/* Arro landing page styles.
   Layout concept: the page reads like the app itself. Tint and white surfaces carry the content,
   deep-green "Night" bands mark the two moments that matter most (widgets and the final call to action),
   and lime is kept for actions and emphasis, as it is in the app.
   Colour values are copied from app/src/main/java/app/arro/ui/theme/Theme.kt (object C). */

/* ---------- 1. Fonts: Outfit, the app's typeface (SIL OFL 1.1, see assets/fonts/OFL.txt) */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* ---------- 2. Tokens (light first; dark values follow the app's dark theme) */
:root {
  --ink: #042D29;          /* C.Ink: primary text */
  --bg: #FFFFFF;           /* C.White: screens and cards */
  --tint: #F4FBEE;         /* C.Tint: soft green surface */
  --panel: #F2F5F3;        /* C.Panel */
  --slate: #5A6366;        /* C.Slate: secondary text */
  --forest: #2F5748;       /* C.Forest */
  --line: #E2EBE5;         /* C.Line */
  --lime: #B0FE78;         /* C.Lime: brand, fixed */
  --lime-deep: #7EDB3F;    /* C.LimeDeep */
  --lime-2: #D4FFB4;       /* C.Lime2 */
  --lime-3: #EEFFE0;       /* C.Lime3 */
  --night: #042D29;        /* C.Night: deep-green brand band */
  --on-night: #FFFFFF;
  --night-cap: #BFD3C9;    /* C.DarkCap: secondary text on Night */
  --primary: #042D29;      /* deep green in light, lime in dark (as in the app) */
  --on-primary: #FFFFFF;
  --primary-accent: #B0FE78;
  --warn-bg: #FFF0E1;      /* C.WarnBg */
  --warn-text: #7F3905;    /* C.WarnText */
  --info-bg: #E6F1FB;      /* C.InfoBg */
  --info-text: #0F4A7A;    /* C.InfoText */
  --bezel: #0B1513;
  --shadow: 0 24px 60px -24px rgba(4, 45, 41, .35);
  --shadow-sm: 0 6px 20px -10px rgba(4, 45, 41, .28);
  --header-bg: rgba(255, 255, 255, .86);

  --font: "Outfit", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-card: 24px;          /* cards */
  --r-field: 14px;         /* fields and segmented controls (14dp in the app) */
  --r-pill: 999px;         /* buttons and chips */
  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6F0EA; --bg: #0A1412; --tint: #101C18; --panel: #131E1B; --slate: #9AA9A3; --forest: #9CC7B0;
    --line: #22302B; --lime-2: #2A4420; --lime-3: #16261A; --night: #143A31;
    --primary: #B0FE78; --on-primary: #042D29; --primary-accent: #042D29;
    --warn-bg: #33230F; --warn-text: #F7C08C; --info-bg: #102536; --info-text: #A9D3F7;
    --bezel: #000000; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, .6);
    --header-bg: rgba(10, 20, 18, .86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E6F0EA; --bg: #0A1412; --tint: #101C18; --panel: #131E1B; --slate: #9AA9A3; --forest: #9CC7B0;
  --line: #22302B; --lime-2: #2A4420; --lime-3: #16261A; --night: #143A31;
  --primary: #B0FE78; --on-primary: #042D29; --primary-accent: #042D29;
  --warn-bg: #33230F; --warn-text: #F7C08C; --info-bg: #102536; --info-text: #A9D3F7;
  --bezel: #000000; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, .6);
  --header-bg: rgba(10, 20, 18, .86);
  color-scheme: dark;
}

/* ---------- 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
svg.i { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--tint); }
.section--night { background: var(--night); color: var(--on-night); }

/* ---------- 4. Type (the app's scale: uppercase bold titles, "Over" labels, Lede) */
.over { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.section--night .over { color: var(--lime); }
.display { font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: .98; font-size: clamp(2.4rem, 5.4vw, 4.25rem); }
.h2 { font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.02; font-size: clamp(2rem, 4.4vw, 3.25rem); }
.h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--slate); max-width: 38em; }
.section--night .lede { color: var(--night-cap); }
.muted { color: var(--slate); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.num { font-variant-numeric: tabular-nums; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--panel); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- 5. Buttons and chips (pills, as in the app) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-pill);
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn--primary .btn__dot { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -10px; border-radius: 50%; background: var(--primary-accent); color: var(--primary); }
.btn--primary .btn__dot svg { width: 16px; height: 16px; }
.btn--lime { background: var(--lime); color: #042D29; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--forest); }
.section--night .btn--ghost { color: var(--on-night); border-color: rgba(255, 255, 255, .28); }
.section--night .btn--ghost:hover { border-color: var(--lime); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 500; background: var(--lime-3); color: var(--ink); }
.chip svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; background: var(--lime-2); color: var(--ink); }
.pill--info { background: var(--info-bg); color: var(--info-text); }

/* ---------- 6. Header and navigation */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__word { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--slate); transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--ink); background: var(--panel); }
.header__cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn__lines { position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -6px; } .menu-btn__lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter-r) 20px var(--gutter-l); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 16px; font-size: 1.0625rem; }
  .header__buy-label { display: none; }
}
@media (max-width: 380px) { .header__buy { padding: 0 14px; } }

/* ---------- 7. Hero */
.hero { position: relative; overflow: hidden; background: var(--tint); padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 80px); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--lime-2); opacity: .7; pointer-events: none; }
.hero::before { width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; right: -14vw; top: -10vw; }
.hero::after { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; left: -12vw; bottom: -14vw; opacity: .45; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__copy .display span { color: var(--forest); }
.hero__points { display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--primary); color: var(--primary-accent); flex: none; }
.tick svg { width: 14px; height: 14px; }
.hero__note { font-size: .875rem; color: var(--slate); }

.hero__stage { position: relative; min-width: 0; aspect-ratio: 1 / 1.02; max-width: 600px; width: 100%; justify-self: center; }
.hero__stage .hero__phone { position: absolute; width: 44%; }
.hero__phone--center { left: 28%; top: 0; z-index: 3; }
.hero__phone--left { left: 0; top: 9%; z-index: 2; transform: rotate(-7deg); }
.hero__phone--right { right: 0; top: 9%; z-index: 1; transform: rotate(7deg); }
.hero__widget { position: absolute; z-index: 4; left: 2%; bottom: 0; width: 58%; filter: drop-shadow(0 20px 30px rgba(4, 45, 41, .28)); }
@media (prefers-reduced-motion: no-preference) {
  .hero__phone--center { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__phone--left { animation: fan-l 1s .12s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__phone--right { animation: fan-r 1s .12s cubic-bezier(.2, .8, .2, 1) both; }
  .hero__widget { animation: rise 1s .35s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
@keyframes fan-l { from { transform: translateX(22%) rotate(0); } to { transform: rotate(-7deg); } }
@keyframes fan-r { from { transform: translateX(-22%) rotate(0); } to { transform: rotate(7deg); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { max-width: 460px; }
}

/* Phone frame around real screenshots (1080 x 2400) */
.phone { display: block; position: relative; padding: 3.4%; background: var(--bezel); border-radius: 13% / 6%; box-shadow: var(--shadow); }
.phone::after { content: ""; position: absolute; top: 3.4%; left: 50%; width: 4.2%; aspect-ratio: 1; margin-top: 2.6%; transform: translateX(-50%); border-radius: 50%; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.phone img { width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 10.5% / 4.8%; background: var(--panel); }

/* ---------- 8. Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--bg); }
.facts__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts__item { padding: 24px 16px; display: grid; gap: 2px; text-align: center; border-left: 1px solid var(--line); }
.facts__item:first-child { border-left: 0; }
.facts__big { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.facts__big small { font-size: .5em; font-weight: 600; letter-spacing: 0; }
.facts__label { font-size: .875rem; color: var(--slate); }
@media (max-width: 760px) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { border-left: 0; border-top: 1px solid var(--line); }
  .facts__item:nth-child(-n+2) { border-top: 0; }
  .facts__item:nth-child(even) { border-left: 1px solid var(--line); }
  .facts__item:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- 9. About */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about__copy { display: grid; gap: 20px; min-width: 0; }
.about__copy p { max-width: 36em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.split__col { padding: 28px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.split__col--in { background: var(--lime-3); }
.split__col--out { background: var(--bg); }
.split__col ul { display: grid; gap: 12px; }
.split__col li { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; line-height: 1.45; }
.split__col li svg { width: 20px; height: 20px; margin-top: 1px; color: var(--forest); flex: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-field); background: var(--warn-bg); color: var(--warn-text); font-size: .9375rem; line-height: 1.5; }
.notice svg { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.audience { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.audience li { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--r-card); background: var(--panel); font-weight: 500; line-height: 1.4; }
.icon-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.icon-dot svg { width: 20px; height: 20px; }
.icon-dot--lime { background: var(--lime); color: #042D29; }
@media (max-width: 1000px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audience li:last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .about__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 10. Features */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.spot + .spot { margin-top: clamp(64px, 9vw, 112px); }
.spot--flip .spot__media { order: -1; }
.spot__copy { display: grid; gap: 18px; min-width: 0; }
.spot__list { display: grid; gap: 12px; margin-top: 4px; }
.spot__list li { display: flex; gap: 12px; align-items: flex-start; }
.spot__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); align-items: end; min-width: 0; padding: clamp(20px, 3vw, 36px); border-radius: 32px; }
.spot__media--lime { background: linear-gradient(135deg, #D2FFAE, #AEF676); }
.spot__media--sky { background: linear-gradient(135deg, #DDF1FF, #A9DAFB); }
.spot__media--single { position: relative; grid-template-columns: minmax(0, 260px); justify-content: center; padding-block: clamp(28px, 4vw, 48px); }
.spot__widget { position: absolute; width: clamp(130px, 36%, 190px); right: 6%; bottom: 10%; filter: drop-shadow(0 18px 28px rgba(4, 45, 41, .3)); }
.spot__label { font-size: .8125rem; color: var(--slate); display: flex; gap: 8px; align-items: center; }
.rate-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 14px 18px; border-radius: var(--r-field); background: var(--night); color: var(--on-night); }
.rate-line strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rate-line span { color: var(--night-cap); font-size: .875rem; }
@media (max-width: 860px) { .spot { grid-template-columns: minmax(0, 1fr); } .spot--flip .spot__media { order: 0; } }

.cards { margin-top: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: grid; align-content: start; gap: 14px; padding: 28px 24px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); overflow: hidden; min-width: 0; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card ul { display: grid; gap: 6px; color: var(--slate); font-size: .9688rem; line-height: 1.45; }
.card ul li { padding-left: 16px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); }
.card__tag { justify-self: start; }
.also { margin-top: 24px; padding: 20px 24px; border-radius: var(--r-card); background: var(--panel); display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.also strong { margin-right: 4px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. Screenshot gallery */
.shots-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.shot { display: grid; gap: 10px; align-content: start; min-width: 0; }
.shot__cat { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 13% / 6%; transition: transform .25s ease; }
.shot__btn:hover { transform: translateY(-6px); }
.shot__title { font-weight: 600; font-size: .9688rem; line-height: 1.3; }
.shot__cap { font-size: .875rem; color: var(--slate); line-height: 1.45; }
.shots-more { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border-radius: var(--r-card); background: var(--tint); }
.shots-more p { max-width: 40em; font-weight: 500; }
.round-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.round-btn:hover { border-color: var(--forest); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn--next svg { transform: rotate(180deg); }
@media (max-width: 1000px) { .shots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lightbox */
.lightbox { width: min(100vw, 980px); max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: auto; padding: 0; border: 0; background: transparent; color: var(--on-night); overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 20, 18, .86); backdrop-filter: blur(6px); }
.lightbox__inner { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.lightbox__close { grid-column: 3; grid-row: 1; justify-self: end; }
.lightbox__fig { grid-column: 2; grid-row: 2; margin: 0; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; justify-items: center; }
.lightbox__frame { height: 100%; min-height: 0; aspect-ratio: 9 / 20; max-width: 100%; }
.lightbox__frame.phone { padding: 1.6%; }
.lightbox__frame img { height: 100%; width: 100%; object-fit: contain; aspect-ratio: auto; }
.lightbox__cap { text-align: center; max-width: 36em; display: grid; gap: 2px; }
.lightbox__cap strong { font-size: 1.0625rem; }
.lightbox__cap span { color: var(--night-cap); font-size: .9375rem; }
.lightbox__prev { grid-column: 1; grid-row: 2; }
.lightbox__next { grid-column: 3; grid-row: 2; }
.lightbox .round-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox .round-btn:hover { border-color: var(--lime); }
.lightbox__count { grid-column: 2; grid-row: 1; text-align: center; color: var(--night-cap); font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .lightbox__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .lightbox__count { grid-column: 1; justify-self: start; }
  .lightbox__close { grid-column: 2; }
  .lightbox__fig { grid-column: 1 / -1; }
  .lightbox__prev { grid-column: 1; grid-row: 3; justify-self: end; }
  .lightbox__next { grid-column: 2; grid-row: 3; justify-self: start; }
}

/* ---------- 12. Widgets (Night band) */
.widgets__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.homescreen { position: relative; width: min(100%, 400px); justify-self: center; padding: 3.4%; background: #000; border-radius: 13% / 6%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.homescreen__screen { position: relative; aspect-ratio: 9 / 20; border-radius: 10.5% / 4.8%; overflow: hidden; display: flex; flex-direction: column; gap: 4%; padding: 6% 5% 5%;
  background: radial-gradient(120% 70% at 85% 0%, rgba(176, 254, 120, .55), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(126, 219, 63, .35), transparent 60%), linear-gradient(160deg, #2F5748, #0C3F38 55%, #042D29); }
.homescreen__status { display: flex; justify-content: space-between; color: #fff; font-size: clamp(.6875rem, 1.6vw, .8125rem); font-weight: 600; padding: 0 3%; }
.homescreen__clock { color: #fff; text-align: center; margin: 2% 0 1%; }
.homescreen__clock b { display: block; font-size: clamp(2.5rem, 9vw, 3.75rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.homescreen__clock span { font-size: clamp(.75rem, 1.8vw, .875rem); opacity: .85; }
.homescreen__row { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; }
.homescreen img { width: 100%; height: auto; }
.homescreen__dock { margin-top: auto; display: flex; justify-content: center; }
.homescreen__app { display: grid; justify-items: center; gap: 4px; color: #fff; font-size: .6875rem; }
.homescreen__app img { width: 46px; height: 46px; }
.wcards { display: grid; gap: 14px; }
.wcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: var(--r-card); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.wcard h3 { color: var(--on-night); }
.wcard p { color: var(--night-cap); font-size: .9688rem; line-height: 1.5; }
.wcard .icon-dot { background: var(--lime); color: #042D29; }
.wcard__body { display: grid; gap: 6px; min-width: 0; }
.wcard__states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wcard__states span { padding: 3px 10px; border-radius: var(--r-pill); background: rgba(176, 254, 120, .14); color: var(--lime); font-size: .75rem; font-weight: 600; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-field); background: rgba(255, 255, 255, .08); gap: 2px; }
.seg button { padding: 8px 18px; border-radius: 10px; border: 0; background: transparent; color: var(--night-cap); font: 500 .9375rem/1.2 var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--lime); color: #042D29; }
.widgets__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.widgets__note { margin-top: 18px; font-size: .875rem; color: var(--night-cap); }
.widget-strip { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 16px; align-items: center; }
.widget-strip figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.widget-strip figcaption { font-size: .8125rem; color: var(--night-cap); text-align: center; }
@media (max-width: 900px) { .widgets__grid { grid-template-columns: minmax(0, 1fr); } .widget-strip { grid-template-columns: 1fr 1fr; } .widget-strip figure:first-child, .widget-strip figure:last-child { grid-column: 1 / -1; } }

/* ---------- 13. Requirements and included */
.req__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 20px; min-width: 0; }
.included { display: grid; gap: 14px; }
.included li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.included li .icon-dot { width: 40px; height: 40px; }
.included strong { display: block; font-weight: 600; }
.included span { color: var(--slate); font-size: .9375rem; line-height: 1.45; }
.specs { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--slate); width: 42%; padding-right: 16px; }
.specs td { font-variant-numeric: tabular-nums; font-weight: 500; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; line-height: 1.5; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: #042D29; font-weight: 700; font-size: .875rem; }
.req__lower { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.golive { display: grid; gap: 10px; }
.golive li { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; line-height: 1.45; }
.golive li svg { width: 20px; height: 20px; margin-top: 1px; color: var(--forest); flex: none; }
@media (max-width: 900px) { .req__grid, .req__lower { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 14. Custom development */
.dev__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.dev__copy { display: grid; gap: 22px; min-width: 0; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.services li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.services li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--forest); flex: none; }
.contact { position: sticky; top: 96px; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--night); color: var(--on-night); display: grid; gap: 18px; box-shadow: var(--shadow); }
.contact .h3 { font-size: 1.5rem; }
.contact p { color: var(--night-cap); }
.contact__row { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-field); background: rgba(255, 255, 255, .06); }
.contact__label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.contact__value { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; font: 500 .8125rem/1.2 var(--font); cursor: pointer; }
.copy-btn:hover { border-color: var(--lime); }
.copy-btn svg { width: 14px; height: 14px; }
.contact .btn { width: 100%; }
.contact .btn--ghost { color: var(--on-night); border-color: rgba(255, 255, 255, .28); }
.contact .btn--ghost:hover { border-color: var(--lime); }
@media (max-width: 900px) { .dev__grid { grid-template-columns: minmax(0, 1fr); } .contact { position: static; } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 15. FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--forest); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s; color: var(--forest); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .faq__a { padding: 0 22px 22px; color: var(--slate); display: grid; gap: 10px; max-width: 46em; }

/* ---------- 16. Final call to action */
.final { position: relative; overflow: hidden; text-align: center; }
.final::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; left: 50%; top: 100%; transform: translate(-50%, -38%); background: radial-gradient(circle, rgba(176, 254, 120, .28), transparent 65%); pointer-events: none; }
.final__inner { position: relative; display: grid; gap: 22px; justify-items: center; }
.final .btn-row { justify-content: center; }
.final .mark-xl { width: 72px; height: 72px; }

/* ---------- 17. Footer */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__about { display: grid; gap: 14px; align-content: start; }
.footer__about p { color: var(--slate); max-width: 30em; }
.footer h2 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--slate); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--slate); font-size: .8125rem; line-height: 1.55; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer__about { grid-column: 1 / -1; } }

/* ---------- 18. Scroll reveal: content is visible at rest; this only adds a short lift as it enters */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.is-below { transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Toast for copy buttons */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; padding: 12px 20px; border-radius: var(--r-pill); background: var(--night); color: #fff; font-weight: 500; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
