/* DigitalSolutions site: dark theme, one stylesheet, no dependencies. */
:root {
  --bg: #131415;
  --bg-alt: #0f1011;
  --card: #1a1c20;
  --line: #2a2e35;
  --text: #f2f4f7;
  --muted: #a3a9b3;
  --mint: #6becae;
  --ink: #0b0c0d;
  --accent: var(--mint);
  --glow: #0e2a22;
  --wrap: 1120px;
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.5px; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
h2 a, h3 a { color: inherit; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.center .icon-lg { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(19, 20, 21, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.dd { position: relative; }
.dd > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dd-menu { position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.15s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.dd-menu a:hover { background: var(--line); }

.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.mnav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav[open] summary span:nth-child(2) { opacity: 0; }
.mnav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav-panel { position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
.mnav-panel a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
.mnav-panel a.sub { padding-left: 18px; color: var(--muted); font-size: 16px; }

/* Sections */
.section { padding: 96px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section.alt, .section.alt + .section { border-top-color: var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

.hero { padding: 104px 0; background: linear-gradient(160deg, var(--glow) 0%, var(--bg) 60%); }
.hero-home { --glow: #0e2a22; background: linear-gradient(160deg, #0e2a22 0%, var(--bg) 55%, #16213d 100%); padding: 120px 0; }
.hero-home.small { padding: 96px 0 72px; }
.hero-home .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-shot .phone { width: 300px; margin: 0 auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.icon { border-radius: 14px; flex: none; }
.icon-lg { border-radius: 22px; margin-bottom: 24px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn-ghost:hover { border-color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card > p:not(.emoji):not(.big) { color: var(--muted); }
.card.glow { background: linear-gradient(135deg, #0e2a22 0%, var(--card) 100%); padding: 36px; border-radius: 24px; }
.emoji { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.accent { color: var(--accent); }
.stat { text-align: center; padding: 24px; }
.stat .big { color: var(--accent); font-size: 40px; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.stat p:not(.big) { font-size: 15px; }
.hero-home ~ .section .stat:nth-child(2) .big { color: #7ea8ff; }
.hero-home ~ .section .stat:nth-child(3) .big { color: #c3b5ff; }
.hero-home ~ .section .stat:nth-child(4) .big { color: #8bc34a; }

.ticks { list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.ticks li { position: relative; padding-left: 26px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.app-card { display: flex; flex-direction: column; padding: 22px; }
.app-card .feature { border-radius: 14px; margin-bottom: 18px; aspect-ratio: 1024 / 500; object-fit: cover; }
.app-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-title h3 { margin: 0; }
.app-card .actions { margin-top: auto; padding-top: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.flip > :first-child { order: 2; }
.two-col .feature { border-radius: var(--radius); }
.two-col .icon { margin-bottom: 20px; }
.two-col:has(.faq) { align-items: start; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { color: var(--text); font-size: 14px; letter-spacing: 0.3px; background: rgba(255, 255, 255, 0.03); }
tbody th { font-weight: 600; color: var(--text); }
td { color: var(--muted); }

/* CTA */
.cta { text-align: center; padding: 48px; border-radius: 28px; background: linear-gradient(135deg, var(--glow) 0%, var(--card) 100%); }
.cta .icon { margin: 0 auto 20px; border-radius: 18px; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); }

/* About contact list */
.contact { list-style: none; padding: 0; margin: 0 0 8px; font-size: 17px; }
.contact li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }
.contact strong { min-width: 110px; }

/* Privacy policy */
.prose { font-size: 17px; color: #d6dae1; overflow-wrap: anywhere; }
.prose h2 { font-size: 28px; margin-top: 48px; padding-top: 8px; }
.prose h3 { font-size: 24px; margin-top: 40px; color: var(--mint); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose > p:first-child { color: var(--muted); }

/* Footer */
.site-footer { background: #0d0e0f; border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid a:not(.brand) { display: block; margin: 0 0 10px; color: var(--mint); }
.foot-grid p { color: var(--muted); }
.foot-grid .brand { margin-bottom: 14px; }
.foot-head { color: var(--text) !important; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.legal { color: var(--muted); font-size: 13px; text-align: center; margin: 40px 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .mnav { display: block; }
  .section { padding: 64px 0; }
  .hero, .hero-home { padding: 64px 0; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.flip > :first-child { order: 0; }
  .hero-shot .phone { width: 240px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .cta { padding: 32px 20px; }
  .shots { grid-auto-columns: 62%; }
}
@media (max-width: 420px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat .big { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
