/* hamovai.com — one stylesheet for every page.

   The look is the app's: its mint canvas (lighter at the top), white cards,
   ink text, Noto Sans Armenian. The colours are the tokens of
   app/lib/design_system/hamov_theme.dart, and they keep the app's rule:
   lime is for what you can press, never for decoration. */

/* --- fonts ----------------------------------------------------------------
   Noto Sans Armenian carries Armenian and Latin. Cyrillic comes from a cut
   of Noto Sans, fetched only by a page that has Cyrillic on it. */
@font-face { font-family: "Noto Sans Armenian"; font-weight: 400; font-display: swap; src: url("/fonts/NotoSansArmenian-Regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Armenian"; font-weight: 500; font-display: swap; src: url("/fonts/NotoSansArmenian-Medium.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Armenian"; font-weight: 600; font-display: swap; src: url("/fonts/NotoSansArmenian-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Armenian"; font-weight: 700; font-display: swap; src: url("/fonts/NotoSansArmenian-Bold.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Cyrillic"; font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; src: url("/fonts/NotoSansCyrillic-Regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Cyrillic"; font-weight: 500; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; src: url("/fonts/NotoSansCyrillic-Medium.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Cyrillic"; font-weight: 600; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; src: url("/fonts/NotoSansCyrillic-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Cyrillic"; font-weight: 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; src: url("/fonts/NotoSansCyrillic-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --canvas-top: #F8FBF7;
  --canvas-bottom: #DCEDD5;
  --card: #FFFFFF;
  --sunken: #F0F6ED;
  --ink: #14180F;
  /* The app's `muted` (#6B7263) is 4.06:1 on the deep end of the canvas; text
     that sits on the canvas itself uses this darker step, 6:1 there. */
  --soft: #4E5747;
  --muted: #6B7263;
  --line: #DDE8D8;
  --brand: #7BE23F;
  --brand-hover: #88E951;
  --brand-deep: #57C81C;
  /* What is written on a brand fill — the app's `onBrand`, dark in both
     modes: `--ink` is light in the dark and 1.5:1 on the lime. */
  --on-brand: #14180F;
  --brand-glow: 0 8px 20px -10px rgba(87, 200, 28, .9);
  --brand-soft: #EDFBE3;
  --brand-ink: #2F7A14;
  --outline: #C9D8C2;
  --dash: #B9C9B1;
  /* See-through white over the canvas: the footer and a store pill; the
     stage a screen stands on; what a link in the bar turns on a pointer. */
  --glass: rgba(255, 255, 255, .6);
  --stage: rgba(255, 255, 255, .62);
  --stage-line: rgba(221, 232, 216, .9);
  --hover: rgba(255, 255, 255, .8);
  --chip: rgba(20, 24, 15, .06);
  --seg: #FFFFFF;
  --seg-shadow: 0 1px 3px rgba(20, 24, 15, .12);
  --header: rgba(248, 251, 247, .82);
  --header-line: rgba(221, 232, 216, .7);
  /* A filled control that is the opposite of the page: the skip link, a
     store button once it has a link. */
  --solid: #14180F;
  --solid-hover: #23291B;
  --on-solid: #FFFFFF;
  --on-solid-soft: #C4CEBE;
  /* The privacy block — the app's black card in the light, a raised
     surface in the dark. */
  --panel: #14180F;
  --panel-line: transparent;
  --on-panel: #FFFFFF;
  --on-panel-soft: #C4CEBE;
  --tile-on-panel: #253817;
  /* The drawn phone round a screenshot. */
  --phone: #14180F;
  --phone-rim: transparent;
  /* The welcome film's own ground, top and bottom, as a browser paints it. */
  --film-top: #F3F8F2;
  --film-bottom: #E6F2E2;

  --radius-l: 40px;
  --radius-m: 28px;
  --radius-s: 18px;
  --shadow: 0 1px 2px rgba(20, 24, 15, .04), 0 12px 32px -16px rgba(20, 24, 15, .18);
  --font: "Noto Sans Armenian", "Noto Sans Cyrillic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- the dark ---------------------------------------------------------------
   The app's dark palette (`HamovPalette.dark`, round 3: charcoal surfaces,
   the lime `#6FDF3A` with dark text on it). It is written TWICE, and the two
   blocks must stay the same (`test_build.py` holds them to it): once for a
   reader whose device asks for the dark and who has not chosen the light
   here, once for a reader who chose the dark here on a device that does not.
   The choice is `data-theme` on <html>, set by `js/theme.js` before the page
   is drawn. The app's screens change with it (each is a <picture> with a
   twin taken in the app's dark mode); the film's own screens do not — the
   app's dark welcome film shows light screens on a dark ground. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas-top: #131712;
    --canvas-bottom: #0E120D;
    --card: #1A2018;
    --sunken: #151A14;
    --ink: #F2F4EE;
    --soft: #B7BEB1;
    --muted: #A9B0A3;
    --line: #30382C;
    --brand: #6FDF3A;
    --brand-hover: #82E552;
    --brand-deep: #48B925;
    --on-brand: #111510;
    --brand-glow: none;
    --brand-soft: #273D1D;
    --brand-ink: #B8F094;
    --outline: #48503F;
    --dash: #48503F;
    --glass: rgba(255, 255, 255, .04);
    --stage: rgba(255, 255, 255, .035);
    --stage-line: rgba(48, 56, 44, .9);
    --hover: rgba(255, 255, 255, .08);
    --chip: rgba(255, 255, 255, .07);
    --seg: #2C3428;
    --seg-shadow: none;
    --header: rgba(19, 23, 18, .82);
    --header-line: rgba(48, 56, 44, .7);
    --solid: #F2F4EE;
    --solid-hover: #FFFFFF;
    --on-solid: #111510;
    --on-solid-soft: #4E5747;
    --panel: #20271D;
    --panel-line: #30382C;
    --on-panel: #F2F4EE;
    --on-panel-soft: #A9B0A3;
    --tile-on-panel: #273D1D;
    --phone: #0A0D09;
    --phone-rim: #3A4236;
    --film-top: #101510;
    --film-bottom: #0E130D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas-top: #131712;
  --canvas-bottom: #0E120D;
  --card: #1A2018;
  --sunken: #151A14;
  --ink: #F2F4EE;
  --soft: #B7BEB1;
  --muted: #A9B0A3;
  --line: #30382C;
  --brand: #6FDF3A;
  --brand-hover: #82E552;
  --brand-deep: #48B925;
  --on-brand: #111510;
  --brand-glow: none;
  --brand-soft: #273D1D;
  --brand-ink: #B8F094;
  --outline: #48503F;
  --dash: #48503F;
  --glass: rgba(255, 255, 255, .04);
  --stage: rgba(255, 255, 255, .035);
  --stage-line: rgba(48, 56, 44, .9);
  --hover: rgba(255, 255, 255, .08);
  --chip: rgba(255, 255, 255, .07);
  --seg: #2C3428;
  --seg-shadow: none;
  --header: rgba(19, 23, 18, .82);
  --header-line: rgba(48, 56, 44, .7);
  --solid: #F2F4EE;
  --solid-hover: #FFFFFF;
  --on-solid: #111510;
  --on-solid-soft: #4E5747;
  --panel: #20271D;
  --panel-line: #30382C;
  --on-panel: #F2F4EE;
  --on-panel-soft: #A9B0A3;
  --tile-on-panel: #273D1D;
  --phone: #0A0D09;
  --phone-rim: #3A4236;
  --film-top: #101510;
  --film-bottom: #0E130D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas-bottom);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* The canvas: the app's sweep, held to the window as it is in the app. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--canvas-top), var(--canvas-bottom));
}

main { flex: 1; }
img, video, svg { max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }

.icon { flex: none; }

/* A grid child is as wide as its longest word unless told otherwise, and
   Armenian words are long: let every one of them shrink and wrap. */
.hero-grid > *, .cards > *, .row > *, .stack > *, .widget-card > *, .dark-card > *,
.footer-grid > *, .legal-grid > *, .legal-main > *, .contact-card > *, .contact-box > * { min-width: 0; }

/* --- type ------------------------------------------------------------------ */

h1 {
  /* 11vw keeps «Սկանավորիր,» on one line down to a 320 px phone. */
  font-size: clamp(2.1rem, 11vw, 4.75rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.01em;
}
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--soft); }

.eyebrow {
  margin-bottom: 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
}

/* --- header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--header-line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--hover); }

.langs {
  display: flex;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--chip);
}
.langs a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--soft);
  text-decoration: none;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--seg); color: var(--ink); box-shadow: var(--seg-shadow); }

/* The dark-mode button: the moon offers the dark, the sun the light. It is
   `hidden` until js/site.js shows it — without the script the page follows
   the device and the button could do nothing. */
.theme-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--soft);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .icon + .icon,
.theme-toggle[aria-pressed="true"] .icon { display: none; }
.theme-toggle[aria-pressed="true"] .icon + .icon { display: block; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .langs { margin-left: 8px; }
}
/* On a phone the name, the three languages and the button share the bar. */
@media (max-width: 480px) {
  .header-row { gap: 12px; }
  .langs a { padding: 6px 10px; }
  .theme-toggle { width: 34px; height: 34px; margin-left: -4px; }
}
/* On the narrowest phones the name and the three languages share 280 px,
   and there is no room for the button: the page follows the phone. */
@media (max-width: 380px) {
  .brand { gap: 8px; font-size: 1.125rem; }
  .brand img { width: 30px; height: 30px; }
  .langs a { padding: 6px 9px; }
  .theme-toggle { display: none; }
}

/* --- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 54px;
  padding: 12px clamp(18px, 5vw, 28px);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--brand-glow); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--brand-deep); transform: none; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--outline); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }

/* The store pills. Until a store link exists in site.json they are not
   links, and say so. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 164px;
  min-height: 60px;
  padding: 8px 20px;
  border-radius: var(--radius-s);
  border: 1.5px dashed var(--dash);
  background: var(--glass);
  color: var(--soft);
  text-decoration: none;
}
.store-small { font-size: .75rem; font-weight: 500; letter-spacing: .02em; }
.store-name { font-size: 1.125rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.store-live { border: 1.5px solid var(--solid); background: var(--solid); color: var(--on-solid-soft); }
.store-live .store-name { color: var(--on-solid); }
.store-live:hover { background: var(--solid-hover); }
.stores-note { margin-top: 14px; font-size: .9375rem; color: var(--soft); }

/* --- hero ------------------------------------------------------------------ */

.hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
/* Above the film's ground, which reaches under the ends of these lines. */
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 span { display: block; }
.hero-copy .lead { max-width: 34em; margin-top: 24px; }
.hero-actions { margin-block: 32px 28px; }

.hero-art { position: relative; display: grid; place-items: center; padding-block: 8px; }

/* The welcome film is the app's own (`assets/welcome/showcase.mp4`): a phone
   moving on an empty ground, so no frame is drawn round it here. Its ground
   is the app's canvas, baked in — top to bottom of the FILM — while the
   page's canvas is held to the WINDOW, so the two agree at one scroll
   position only. Two things hide that: the film's four edges fade out, as
   the app's welcome page fades them, and under it lies a band of the
   film's own two colours (as a browser paints them), as wide as the window
   — so the film has no side to be seen — that fades into the page above
   and below. (A ground only a little wider than the film showed as a pale
   box once the page was scrolled.) On a phone the film runs to both edges
   of the window. */
.film {
  position: relative;
  isolation: isolate;
  width: calc(100% + 40px);
  max-width: 600px;
}
.film::before {
  content: "";
  position: absolute;
  inset-block: -10%;
  /* the film stands in the right half of a wide window: twice the window,
     centred on the film, reaches both of the window's edges from anywhere */
  left: 50%;
  width: 200vw;
  margin-left: -100vw;
  z-index: -1;
  /* the film's own box is 8.33 %–91.67 % of this height */
  background: linear-gradient(180deg, var(--film-top) 8.33%, var(--film-bottom) 91.67%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8.33%, #000 91.67%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8.33%, #000 91.67%, transparent);
}
.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1104 / 1280;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
                      linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
              linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

.phone {
  position: relative;
  width: min(100%, 310px);
  padding: 10px;
  border-radius: 46px;
  background: var(--phone);
  box-shadow: 0 0 0 1.5px var(--phone-rim), 0 40px 70px -30px rgba(20, 24, 15, .55), 0 12px 24px -12px rgba(20, 24, 15, .25);
}
.phone-screen { display: block; width: 100%; height: auto; border-radius: 36px; background: var(--sunken); }
/* A screen is a <picture>: its dark twin is a <source> the browser takes
   on a dark device, and js/site.js turns that on or off for a reader who
   chose a mode here — so only the picture that is drawn is fetched. */
.phone picture { display: block; }
.phone-small { width: 100%; padding: 7px; border-radius: 34px; }
.phone-small .phone-screen { border-radius: 27px; }

@media (min-width: 900px) {
  h1 { font-size: clamp(3rem, 5.6vw, 4.75rem); }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; }
}

/* --- sections -------------------------------------------------------------- */

.section { padding-block: clamp(48px, 8vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 14px; }

.cards { display: grid; gap: 20px; }
.card {
  padding: clamp(20px, 6vw, 28px);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: 0; }
.card h3, .card h2 { margin-block: 20px 8px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card p { color: var(--muted); }
.card-small { padding: clamp(20px, 6vw, 24px); }
.card-small p { font-size: .9688rem; }
.card-wide h2 + p, .card-wide .steps { margin-top: 8px; }
.card-wide p + p { margin-top: 18px; }

.tile {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sunken);
  color: var(--ink);
}
.tile-onink { width: 40px; height: 40px; border-radius: 12px; background: var(--tile-on-panel); color: var(--brand); }

@media (min-width: 640px) {
  .cards-2, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The three big rows: words on one side, the app's screen on the other. */
.section-rows { padding-block: 0; }
.row { display: grid; gap: 36px; align-items: center; padding-block: clamp(28px, 5vw, 64px); }
.row-copy .lead { margin-top: 16px; }
.row-media {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px) 20px;
  border-radius: var(--radius-l);
  background: var(--stage);
  border: 1px solid var(--stage-line);
}
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; }
.checks .icon {
  width: 26px;
  height: 26px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  stroke-width: 2.4;
}
@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); }
  .row-flip .row-media { order: -1; }
}

.widget-card {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow);
}
.widget-copy h3 { margin-block: 20px 8px; font-size: 1.375rem; }
.widget-copy p { color: var(--muted); max-width: 30em; }
.widget-stage {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 44px);
  border-radius: 24px;
  background: linear-gradient(160deg, #1D2A3D, #10141B);
}
.widget-stage img { display: block; width: min(100%, 440px); border-radius: 8.4% / 15%; }
@media (min-width: 900px) {
  .widget-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; }
}

/* Six screens: a strip to swipe on a phone; on a desk two rows of three —
   the day's pages and the fast first, Progress's three charts under them. */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 20px 28px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { flex: 0 0 min(64vw, 260px); scroll-snap-align: start; }
.gallery figcaption { margin-top: 16px; font-size: .9375rem; font-weight: 500; text-align: center; color: var(--soft); }
@media (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 28px;
    width: min(1120px, 100% - 40px);
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }
  /* A third of the row is wider than a phone should stand here. */
  .gallery li { width: 100%; max-width: 280px; justify-self: center; }
}

/* The one dark block, as the app's own black card; in the dark, a raised
   surface with a line round it. */
.dark-card {
  display: grid;
  gap: 36px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-l);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--panel-line);
  color: var(--on-panel);
}
.dark-head p { margin-block: 16px 28px; font-size: 1.125rem; color: var(--on-panel-soft); }
.dark-points { display: grid; gap: 18px; align-content: center; }
.dark-points li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.dark-points .icon { width: 20px; height: 20px; stroke-width: 2.4; }
@media (min-width: 900px) {
  .dark-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

/* --- questions ------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-a { display: grid; gap: 12px; padding: 0 24px 22px; color: var(--muted); }

/* --- the last word --------------------------------------------------------- */

.final { display: grid; justify-items: center; gap: 18px; text-align: center; }
.final img { width: 88px; height: 88px; }
.final .stores { justify-content: center; margin-top: 12px; }

/* --- footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(32px, 6vw, 72px);
  padding-block: 48px 36px;
  background: var(--glass);
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 22em; color: var(--soft); }
.site-footer h2 {
  margin-bottom: 12px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
}
.site-footer li + li { margin-top: 8px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--soft); }
.footer-note { max-width: 62em; margin-bottom: 12px; font-size: .875rem; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
}

/* --- the inner pages ------------------------------------------------------- */

.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.12; overflow-wrap: break-word; }
.page-head .lead { margin-top: 18px; max-width: 40em; }

.stack { display: grid; gap: 20px; }
.h-section { margin-top: 28px; font-size: clamp(1.375rem, 3vw, 1.75rem); }

.contact-card, .contact-box {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 6vw, 28px);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow);
}
.contact-card h2, .contact-box h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
.contact-card p, .contact-box p { margin-top: 6px; color: var(--muted); }
.contact-card .btn, .contact-box .btn { overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .contact-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .contact-box { grid-template-columns: minmax(0, 1fr) auto; }
}

.link-list { display: grid; gap: 10px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover { color: var(--brand-ink); }
.link-list .icon { width: 20px; height: 20px; }

.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; min-height: 30px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sunken);
  font-size: .875rem;
  font-weight: 600;
}
.note { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--sunken); color: var(--soft) !important; font-size: .9688rem; }
.dots { display: grid; gap: 10px; }
.dots li { position: relative; padding-left: 20px; color: var(--muted); }
.dots li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* The Privacy Policy and the Terms. */
.legal-grid { display: grid; gap: 24px; }
.legal-toc { display: none; }
.legal-main { display: grid; gap: 20px; min-width: 0; }
.legal {
  padding: clamp(20px, 5vw, 56px);
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow);
}
.legal h2 { margin-block: 2.2em .7em; font-size: 1.375rem; line-height: 1.3; letter-spacing: 0; scroll-margin-top: 96px; }
.legal p { margin-block: .9em; }
.legal ul { display: grid; gap: .65em; margin-block: .9em; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 3px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-deep); }
.legal-note { padding: 14px 18px; border-radius: 16px; background: var(--sunken); color: var(--soft); font-size: .9688rem; }
.legal-note:first-child { margin-top: 0; }
.legal-updated { margin-top: 2.4em !important; padding-top: 1.4em; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
@media (min-width: 1000px) {
  .legal-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
  .legal-toc { display: block; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: .9063rem; }
  .legal-toc h2 { margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--soft); }
  .legal-toc ol { display: grid; gap: 2px; }
  .legal-toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--soft); text-decoration: none; }
  .legal-toc a:hover { background: var(--hover); color: var(--ink); }
}

.notfound { display: grid; justify-items: center; gap: 18px; padding-block: clamp(64px, 12vw, 140px); text-align: center; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.notfound .btn { margin-top: 10px; }
.notfound-others { display: grid; gap: 8px; margin-top: 12px; color: var(--soft); }

/* --- motion ----------------------------------------------------------------
   Only for a reader who has not asked for less of it. The scroll reveal
   needs no script: a browser without scroll-driven animation shows the page
   still. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-copy > :nth-child(6) { animation-delay: .3s; }

  @supports (animation-timeline: view()) {
    .section .card, .row-copy, .row-media, .widget-card, .gallery li, .dark-card, .faq details {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
