/*
 * pianom.net — the site's design tokens, modelled on the app's (src/ui/tokens/tokens.css, docs/ui-2/DESIGN-SYSTEM.md):
 * the same colour roles, Estedad FD, the lavender trace, the same radii, easing and shadows — retuned for a marketing
 * page: a taller type ladder for the hero, more air between sections, and one ink band (the final call) where the app
 * would never use a field. Light and dark flip through `data-theme` on <html> (the system's choice unless the visitor
 * picks one). Nothing in the site writes a colour outside this file.
 */

@font-face { font-family: 'Estedad'; src: url('/assets/fonts/Estedad-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/assets/fonts/Estedad-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/assets/fonts/Estedad-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/assets/fonts/Estedad-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/assets/fonts/Estedad-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
/* Bravura (Steinberg, SIL OFL 1.1), the SMuFL music font, subset to the glyphs the site's staves draw. */
@font-face { font-family: 'Bravura'; src: url('/assets/fonts/Bravura-subset.woff2') format('woff2'); font-display: block; }
/* Latin digits inside a foreign name (writing rule 12): Estedad FD draws every digit as a Persian one. */

:root {
  color-scheme: light;
  /* surfaces and ink */
  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f4f4;
  --surface-pressed: #ececec;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --fg: #171717;
  --fg-muted: #6b6b6b;
  --fg-faint: #919191;
  --on-fg: #fafafa;
  /* the lavender trace */
  --accent: #6a55d4;
  --accent-deep: #3f2d9e;
  --accent-soft: #f0eefb;
  --accent-ink: #3f2d9e;
  --on-accent: #ffffff;
  /* status */
  --success: #3f8f6b; --success-soft: #e8f1ed; --success-ink: #35785a;
  --danger: #c2554d;  --danger-soft: #f8ebea;  --danger-ink: #af4c45;
  --reward: #c3840c;  --reward-soft: #faf0dd;  --reward-ink: #946409;
  /* Iran's flag, softened (edit 19: the «ایرانی» tab): a sage green and a coral red, never the flag's hard ones */
  /* the hands (edits 21–22): the right hand a dense lavender (the brand's), the left a dense emerald (the owner's velvet) */
  --hand-right: var(--accent); --hand-right-light: var(--main-light-from);
  --hand-left: #127a55; --hand-left-light: #3fb487;
  /* Iran's flag drawn small (edit 21: the «ایرانی» tab), in the same velvet: emerald, ivory, a deep rose; no emblem */
  --flag-green: #21906f; --flag-white: #f6f4ee; --flag-red: #c4455a;
  /* a photographed page on a desk, and a clean printed score (edit 20: «قطعه خودت رو بیار»'s before and after) */
  --paper: #efe7d8; --paper-ink: #2f2a24; --desk-top: #3b3029; --desk-bottom: #191512; --score-ink: #161616;
  /* an old photocopy (the photo tool's second sample, 2026-11-03): yellowed paper, toner gone brown */
  --paper-old: #e2d1aa; --paper-old-ink: #3b3122;
  /* a book's cloth and its gold (BookCover, phase 4.8): fixed in both themes, a binding does not change with the room */
  --bind-wine: #6e2433; --bind-navy: #1f2f52; --bind-forest: #23493b; --bind-ochre: #8a5a1c;
  --bind-plum: #4b2a57; --bind-slate: #333c47; --bind-teal: #1d4f55; --bind-umber: #4e3424;
  --gold: #d2ae62; --gold-hi: #f1dca2; --gold-lo: #9c7a36;
  /* the keys at rest are white and black (edit 22: the lavender was for the played keys only) */
  --key-white: #ffffff;
  --key-white-edge: #d9d9d9;
  --key-black: #171717;
  /* a played key takes its hand's colour, dense (edit 22): the right hand lavender, the left emerald */
  --key-lit: color-mix(in srgb, var(--hand-right) 62%, var(--key-white));
  --key-lit-soft: color-mix(in srgb, var(--hand-left) 62%, var(--key-white));
  --key-black-lit: var(--hand-right);
  --key-black-lit-soft: var(--hand-left);
  --scrim: rgb(10 10 10 / 0.4);
  --media-shade: #0a0a0a;
  --on-media: #ffffff;
  /* the practice groups' hues (the app's data-group themes) */
  --notes: #4568f2;     --notes-soft: #e8edfe;     --notes-ink: #2d4cc2;
  --rhythm: #0c968c;    --rhythm-soft: #ddf4f1;    --rhythm-ink: #0a6b65;
  --chords: #9a4fd0;    --chords-soft: #f3eafb;    --chords-ink: #7334a5;
  --ear: #dc4f96;       --ear-soft: #fde8f2;       --ear-ink: #a92a6b;
  --intervals: #1384b5; --intervals-soft: #e0f2fa; --intervals-ink: #0c6890;

  /* shadows: neutral and shallow (the owner, edit 1: no purple shadows); depth comes from a faint brand edge and glass */
  --shadow-card: 0 1px 2px rgb(23 23 23 / 0.04), 0 8px 24px -18px rgb(23 23 23 / 0.18);
  --shadow-raised: 0 1px 2px rgb(23 23 23 / 0.05), 0 20px 48px -24px rgb(23 23 23 / 0.28);
  --shadow-button: 0 8px 18px -10px rgb(23 23 23 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.14);
  --shadow-glass: 0 6px 16px -12px rgb(23 23 23 / 0.25);
  /* a card on the page (edit 11): neutral in both themes, never the brand's colour (edit 1) */
  --shadow-tile: 0 1px 2px var(--black-6), 0 10px 28px -20px var(--ink-30);
  --shadow-tile-hover: 0 1px 2px var(--black-8), 0 22px 44px -26px var(--ink-45);
  --shadow-accent: 0 6px 16px -6px color-mix(in srgb, var(--accent-deep) 50%, transparent);
  /* the brand edge: a hairline of the brand's colour on every surface that sits on the page, light enough to be felt */
  --edge: color-mix(in srgb, var(--accent) 22%, var(--line));
  --edge-strong: color-mix(in srgb, var(--accent) 45%, var(--line));
  --edge-gradient: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 10%, transparent) 50%, color-mix(in srgb, var(--accent) 45%, transparent));
  /* glass: a translucent surface with blur, for what floats over the page (the header, the hero's card, menus) */
  --glass: color-mix(in srgb, var(--surface) 70%, transparent);
  --glass-strong: color-mix(in srgb, var(--surface) 86%, transparent);
  --blur: blur(18px) saturate(1.25);
  --shadow-bar: 0 1px 0 var(--line), 0 12px 32px -24px color-mix(in srgb, var(--fg) 40%, transparent);
  --shadow-key: inset 0 -6px 0 rgb(0 0 0 / 0.06), 0 1px 0 rgb(0 0 0 / 0.08);
  --shadow-black-key: inset 0 -5px 0 rgb(255 255 255 / 0.08), 0 2px 3px rgb(0 0 0 / 0.35);

  /* fixed colours: the same value in both themes; a component's own dark rule picks the dark one. The number in a name
     is the opacity in percent: white for the light edge on glass and keys, ink, shade and black for shadows and scrims. */
  --white: #ffffff;
  --black: #000000;
  --white-3: rgb(255 255 255 / 0.03); --white-5: rgb(255 255 255 / 0.05); --white-7: rgb(255 255 255 / 0.07); --white-8: rgb(255 255 255 / 0.08); --white-10: rgb(255 255 255 / 0.1);
  --white-12: rgb(255 255 255 / 0.12); --white-15: rgb(255 255 255 / 0.15); --white-18: rgb(255 255 255 / 0.18); --white-28: rgb(255 255 255 / 0.28); --white-30: rgb(255 255 255 / 0.3); --white-60: rgb(255 255 255 / 0.6); --white-65: rgb(255 255 255 / 0.65); --white-70: rgb(255 255 255 / 0.7);
  --black-6: rgb(0 0 0 / 0.06); --black-8: rgb(0 0 0 / 0.08); --black-18: rgb(0 0 0 / 0.18); --black-20: rgb(0 0 0 / 0.2); --black-55: rgb(0 0 0 / 0.55); --black-80: rgb(0 0 0 / 0.8); --black-90: rgb(0 0 0 / 0.9);
  --ink-30: rgb(23 23 23 / 0.3); --ink-35: rgb(23 23 23 / 0.35); --ink-40: rgb(23 23 23 / 0.4); --ink-45: rgb(23 23 23 / 0.45); --ink-50: rgb(23 23 23 / 0.5); --ink-55: rgb(23 23 23 / 0.55);
  --shade-38: rgb(10 10 10 / 0.38); --shade-45: rgb(10 10 10 / 0.45); --shade-75: rgb(10 10 10 / 0.75);
  /* the dark glass of what floats: the island on a phone, the menus, the drawer */
  --night-drawer-top: rgb(30 28 40 / 0.86);
  --night-drawer-bottom: rgb(18 17 24 / 0.82);
  --night-island-top: rgb(26 25 32 / 0.86);
  --night-island-bottom: rgb(20 19 26 / 0.8);
  --night-island-top-scrolled: rgb(26 25 32 / 0.93);
  --night-island-bottom-scrolled: rgb(20 19 26 / 0.9);
  --night-pop-top: rgb(32 31 40 / 0.8);
  --night-pop-bottom: rgb(24 23 31 / 0.72);
  /* the path's course cards (edit 18): dark in both themes */
  --night-card-top: #1d1c25; --night-card-bottom: #121117;
  /* the dark layer over a picture that carries text (edit 19: the path's courses and figure) */
  --night-shade-top: rgb(16 15 22 / 0.42); --night-shade-bottom: rgb(14 13 20 / 0.94);
  /* the main button's gradient: light (then the accent and its deep), and dark with its ink */
  --main-light-from: #7c66e6;
  --main-dark-from: #a292f2; --main-dark-via: #8a76ee; --main-dark-to: #6b54e0; --on-main-dark: #130c33;
  --key-black-pressed: #333333;

  /* the hero's wash */
  --wash-1: color-mix(in srgb, var(--accent) 14%, transparent);
  --wash-2: color-mix(in srgb, var(--accent) 6%, transparent);

  /* type: the app's ladder, with a taller top for a page the visitor reads from a metre away */
  --font-sans: 'Estedad', ui-sans-serif, system-ui, sans-serif;
  --font-music: 'Bravura';
  --text-hero: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);          /* 34 → 56 */
  --lh-hero: 1.3;
  --text-display: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);        /* 28 → 40 */
  --lh-display: 1.35;
  --text-title-1: 1.625rem; --lh-title-1: 2.375rem;              /* 26 / 38 */
  --text-title-2: 1.3125rem; --lh-title-2: 2rem;                 /* 21 / 32 */
  --text-title-3: 1.125rem; --lh-title-3: 1.75rem;               /* 18 / 28 */
  --text-headline: 1rem; --lh-headline: 1.625rem;                /* 16 / 26 */
  --text-lead: 1.125rem; --lh-lead: 2rem;                        /* 18 / 32: the hero's line */
  --text-paragraph: 1rem; --lh-paragraph: 1.75rem;               /* 16 / 28 */
  --text-callout: 0.9375rem; --lh-callout: 1.625rem;             /* 15 / 26 */
  --text-subhead: 0.875rem; --lh-subhead: 1.5rem;                /* 14 / 24 */
  --text-footnote: 0.8125rem; --lh-footnote: 1.375rem;           /* 13 / 22 */
  --text-label: 0.8125rem; --lh-label: 1.25rem;                  /* 13 / 20 */
  --text-caption: 0.6875rem; --lh-caption: 1rem;                 /* 11 / 16 */

  /* shape */
  --radius-card: 24px;
  --radius-tile: 16px;
  --radius-control: 14px;
  --radius-badge: 8px;
  --radius-pill: 9999px;

  /* motion: one easing, three durations */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --d-press: 120ms;
  --d-default: 200ms;
  --d-enter: 300ms;
  --d-media: 600ms;      /* a picture leaning in under the pointer */

  /* layout */
  /* the site's frame (edit 19: one for the hero and every section, `.frame` in base.css): the content's width, wide but
     never the whole screen (edit 1: 1200 felt «خفه»), and the gutter beside it: 16, 32 from 768, 40 from 1280 */
  --frame: 1600px;
  --text-measure: 600px; /* running text */
  --gutter: 16px;
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --header-h: 76px;
  --header-h-compact: 60px;
}

[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0a0a0a;
  --surface: #171717;
  --surface-muted: #202020;
  --surface-pressed: #2a2a2a;
  --line: #262626;
  --line-strong: #404040;
  --fg: #fafafa;
  --fg-muted: #a3a3a3;
  --fg-faint: #6b6b6b;
  --on-fg: #0a0a0a;
  --accent: #9a88ef;
  --accent-deep: #6b54e0;
  --accent-soft: #2f2b3e;
  --accent-ink: #c9bff8;
  --on-accent: #ffffff;
  --success: #5fb08a; --success-soft: #25362e; --success-ink: #5fb08a;
  --danger: #db7a72;  --danger-soft: #3e2b29;  --danger-ink: #dc7d75;
  --reward: #f0b03a;  --reward-soft: #42361e;  --reward-ink: #f0b03a;
  --key-white: #d4d4d4;
  --key-white-edge: #9a9a9a;
  --key-black: #0a0a0a;
  --hand-left: #23a273; --hand-left-light: #5fd3a6;
  --scrim: rgb(0 0 0 / 0.6);
  --notes: #5b7cf8;     --notes-soft: #1c2856;     --notes-ink: #a8b9ff;
  --rhythm: #0f988e;    --rhythm-soft: #0c3634;    --rhythm-ink: #6fdcd2;
  --chords: #a45fd8;    --chords-soft: #2c1f3d;    --chords-ink: #d8b8f6;
  --ear: #e8619f;       --ear-soft: #451a36;       --ear-ink: #ffa6d1;
  --intervals: #1a8fc2; --intervals-soft: #11303e; --intervals-ink: #8ed3f0;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -18px color-mix(in srgb, var(--accent-deep) 60%, transparent);
  --shadow-raised: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 60px -24px color-mix(in srgb, var(--accent-deep) 70%, transparent);
  --shadow-button: 0 10px 22px -10px rgb(0 0 0 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.5);
  --shadow-glass: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 18px -12px rgb(0 0 0 / 0.6);
  --shadow-tile: 0 1px 2px var(--black-20), 0 12px 32px -20px var(--black-80);
  --shadow-tile-hover: 0 1px 2px var(--black-20), 0 24px 48px -24px var(--black-90);
  --shadow-accent: 0 6px 16px -6px color-mix(in srgb, var(--accent-deep) 80%, transparent);
  --shadow-bar: 0 1px 0 var(--line), 0 12px 32px -24px rgb(0 0 0 / 0.8);
  --shadow-key: inset 0 -6px 0 rgb(0 0 0 / 0.12), 0 1px 0 rgb(0 0 0 / 0.5);
  --wash-1: color-mix(in srgb, var(--accent) 18%, transparent);
  --wash-2: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* A practice group's theme on everything inside it. */
[data-group='notes'] { --g: var(--notes); --g-soft: var(--notes-soft); --g-ink: var(--notes-ink); }
[data-group='rhythm'] { --g: var(--rhythm); --g-soft: var(--rhythm-soft); --g-ink: var(--rhythm-ink); }
[data-group='chords'] { --g: var(--chords); --g-soft: var(--chords-soft); --g-ink: var(--chords-ink); }
[data-group='ear'] { --g: var(--ear); --g-soft: var(--ear-soft); --g-ink: var(--ear-ink); }
[data-group='intervals'] { --g: var(--intervals); --g-soft: var(--intervals-soft); --g-ink: var(--intervals-ink); }

/* the gutter beside the frame grows with the screen (edit 19) */
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --tw-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --tw-spacing: 0.25rem;
    --tw-container-xs: 20rem;
    --tw-container-md: 28rem;
    --tw-container-xl: 36rem;
    --tw-container-2xl: 42rem;
    --tw-container-3xl: 48rem;
  }
}
@layer utilities {
  .tw\:mt-8 {
    margin-top: calc(var(--tw-spacing) * 8);
  }
  .tw\:flex {
    display: flex;
  }
  .tw\:grid {
    display: grid;
  }
  .tw\:h-24 {
    height: calc(var(--tw-spacing) * 24);
  }
  .tw\:h-28 {
    height: calc(var(--tw-spacing) * 28);
  }
  .tw\:h-40 {
    height: calc(var(--tw-spacing) * 40);
  }
  .tw\:w-48 {
    width: calc(var(--tw-spacing) * 48);
  }
  .tw\:w-full {
    width: 100%;
  }
  .tw\:max-w-2xl {
    max-width: var(--tw-container-2xl);
  }
  .tw\:max-w-3xl {
    max-width: var(--tw-container-3xl);
  }
  .tw\:max-w-24 {
    max-width: calc(var(--tw-spacing) * 24);
  }
  .tw\:max-w-90 {
    max-width: calc(var(--tw-spacing) * 90);
  }
  .tw\:max-w-md {
    max-width: var(--tw-container-md);
  }
  .tw\:max-w-xl {
    max-width: var(--tw-container-xl);
  }
  .tw\:max-w-xs {
    max-width: var(--tw-container-xs);
  }
  .tw\:shrink-0 {
    flex-shrink: 0;
  }
  .tw\:basis-44 {
    flex-basis: calc(var(--tw-spacing) * 44);
  }
  .tw\:snap-start {
    scroll-snap-align: start;
  }
  .tw\:scroll-mt-28 {
    scroll-margin-top: calc(var(--tw-spacing) * 28);
  }
  .tw\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .tw\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tw\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tw\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tw\:grid-cols-\[repeat\(auto-fill\,minmax\(96px\,1fr\)\)\] {
    grid-template-columns: repeat(auto-fill,minmax(96px,1fr));
  }
  .tw\:flex-wrap {
    flex-wrap: wrap;
  }
  .tw\:place-items-center {
    place-items: center;
  }
  .tw\:items-center {
    align-items: center;
  }
  .tw\:items-end {
    align-items: flex-end;
  }
  .tw\:items-start {
    align-items: flex-start;
  }
  .tw\:justify-between {
    justify-content: space-between;
  }
  .tw\:justify-items-center {
    justify-items: center;
  }
  .tw\:justify-items-start {
    justify-items: start;
  }
  .tw\:gap-1 {
    gap: var(--tw-spacing);
  }
  .tw\:gap-2 {
    gap: calc(var(--tw-spacing) * 2);
  }
  .tw\:gap-3 {
    gap: calc(var(--tw-spacing) * 3);
  }
  .tw\:gap-4 {
    gap: calc(var(--tw-spacing) * 4);
  }
  .tw\:gap-5 {
    gap: calc(var(--tw-spacing) * 5);
  }
  .tw\:gap-6 {
    gap: calc(var(--tw-spacing) * 6);
  }
  .tw\:gap-8 {
    gap: calc(var(--tw-spacing) * 8);
  }
  .tw\:gap-x-4 {
    column-gap: calc(var(--tw-spacing) * 4);
  }
  .tw\:gap-y-2 {
    row-gap: calc(var(--tw-spacing) * 2);
  }
  .tw\:rounded-card {
    border-radius: var(--radius-card);
  }
  .tw\:rounded-ctl {
    border-radius: var(--r-ctl);
  }
  .tw\:border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .tw\:border-edge {
    border-color: var(--edge);
  }
  .tw\:bg-surface {
    background-color: var(--surface);
  }
  .tw\:bg-surface-muted {
    background-color: var(--surface-muted);
  }
  .tw\:p-5 {
    padding: calc(var(--tw-spacing) * 5);
  }
  .tw\:px-2 {
    padding-inline: calc(var(--tw-spacing) * 2);
  }
  .tw\:py-3 {
    padding-block: calc(var(--tw-spacing) * 3);
  }
  .tw\:py-10 {
    padding-block: calc(var(--tw-spacing) * 10);
  }
  .tw\:text-center {
    text-align: center;
  }
  .tw\:text-end {
    text-align: end;
  }
  .tw\:font-mono {
    font-family: var(--tw-font-mono);
  }
  .tw\:break-all {
    word-break: break-all;
  }
  @media (width >= 48rem) {
    .tw\:md\:p-7 {
      padding: calc(var(--tw-spacing) * 7);
    }
  }
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
    }
  }
}
/*
 * The reset the page is drawn with (no Tailwind preflight: CLAUDE.md, "Styling"), the type roles, the icon box, the
 * page frame (the canvas and the hero's lavender wash) and the entrance motions. Values only from tokens.css.
 */

*, ::before, ::after { box-sizing: border-box; }
html { font-family: var(--font-sans); background: var(--canvas); color: var(--fg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-size: var(--text-paragraph); line-height: var(--lh-paragraph); min-height: 100dvh; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-badge); }
[dir='ltr'] { direction: ltr; }
[hidden] { display: none !important; }
/* the site's frame (edit 19): the hero and every section sit in it, so their edges line up at every width */
.frame { width: 100%; max-width: calc(var(--frame) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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; inset-inline-start: 16px; top: -64px; z-index: 50; padding: 10px 16px; background: var(--fg); color: var(--on-fg); border-radius: var(--radius-control); }
.skip:focus { top: 12px; }

/* type roles */
.t-hero { font-size: var(--text-hero); line-height: var(--lh-hero); font-weight: 800; letter-spacing: 0; text-wrap: balance; }
.t-display { font-size: var(--text-display); line-height: var(--lh-display); font-weight: 800; text-wrap: balance; }
.t-title-1 { font-size: var(--text-title-1); line-height: var(--lh-title-1); font-weight: 800; }
.t-title-2 { font-size: var(--text-title-2); line-height: var(--lh-title-2); font-weight: 700; }
.t-title-3 { font-size: var(--text-title-3); line-height: var(--lh-title-3); font-weight: 700; }
.t-headline { font-size: var(--text-headline); line-height: var(--lh-headline); font-weight: 600; }
.t-lead { font-size: var(--text-lead); line-height: var(--lh-lead); font-weight: 400; }
.t-callout { font-size: var(--text-callout); line-height: var(--lh-callout); }
.t-subhead { font-size: var(--text-subhead); line-height: var(--lh-subhead); }
.t-footnote { font-size: var(--text-footnote); line-height: var(--lh-footnote); }
.t-label { font-size: var(--text-label); line-height: var(--lh-label); font-weight: 600; }
.t-caption { font-size: var(--text-caption); line-height: var(--lh-caption); font-weight: 500; }
/* a page's hero: its title (a part in the accent's gradient, `em`) and its line (edit 2: larger, more leading) */
.h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.375rem); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.h1 em { font-style: normal; color: var(--accent-ink); background: linear-gradient(90deg, var(--accent-deep), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead2 { max-width: 46rem; color: var(--fg-muted); font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem); line-height: 1.9; margin: 0; text-wrap: pretty; }
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }

/* icons: an inline SVG in a 1.25em box, the colour of the text */
.i { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.3em; flex: none; }
.i svg { width: 100%; height: 100%; fill: currentColor; }
.i-16 { width: 16px; height: 16px; } .i-18 { width: 18px; height: 18px; } .i-20 { width: 20px; height: 20px; } .i-24 { width: 24px; height: 24px; } .i-28 { width: 28px; height: 28px; }
.flip-rtl { transform: scaleX(-1); }

/* ---------- the page frame ---------- */
.emils { --island-h: 80px; --r-ctl: 12px; --r-nav: 10px; --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); }
.emils body, body.emils { background: var(--canvas); }
body.emils { position: relative; isolation: isolate; }
body.emils::before { content: ''; position: absolute; inset: 0 0 auto 0; height: min(110vh, 1100px); z-index: -1; pointer-events: none; background:
  radial-gradient(46% 50% at 82% 6%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
  radial-gradient(38% 44% at 10% 46%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  radial-gradient(30% 30% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
[data-theme='dark'] body.emils::before { background:
  radial-gradient(46% 50% at 82% 6%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
  radial-gradient(38% 44% at 10% 46%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
  radial-gradient(30% 30% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }

/* entrances: stagger from a visible shape, strong ease-out; reduced motion keeps only the fade */
.rise { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
@starting-style { .rise { opacity: 0; transform: translateY(12px) scale(0.985); } }
.reveal-up { opacity: 1; clip-path: inset(0 0 0 0 round 24px); transform: none; filter: blur(0); transition: opacity 600ms var(--ease-out) 260ms, clip-path 700ms var(--ease-out) 260ms, transform 700ms var(--ease-out) 260ms, filter 500ms var(--ease-out) 260ms; }
@starting-style { .reveal-up { opacity: 0; clip-path: inset(30% 0 0 0 round 24px); transform: translateY(16px); filter: blur(2px); } }

/* ---------- reduced motion: fades stay, movement goes ---------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rise, .reveal-up { transition: opacity 200ms ease; transform: none !important; clip-path: none !important; filter: none !important; }
}
/* IconButton: a 42 px square, an icon, a visible hover on a fine pointer, press feedback. */

.ibtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-ctl); color: var(--fg); background: transparent; border: 1px solid transparent; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.ibtn svg { width: 19px; height: 19px; transition: transform 240ms var(--ease-out); }
.ibtn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .ibtn:hover { background: color-mix(in srgb, var(--accent-soft) 80%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); }
}
.ibtn.menu-btn { background: var(--glass); border-color: var(--edge-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
/* the drawer's close button: glass, like the menu button that opened it */
.dw-close { background: var(--glass); border-color: var(--edge-strong); }
/* Pill: the site's button. Quiet (glass), main (the brand gradient), the header's, small, large, full width. */

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-ctl); font-size: var(--text-subhead); font-weight: 600; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pill .i { transition: transform 200ms var(--ease-out); }
.pill .i { width: 17px; height: 17px; }
.pill:active { transform: scale(0.97); }
.pill.lg { height: 54px; padding: 0 26px; font-size: var(--text-headline); border-radius: 14px; }
.pill.lg .i { width: 19px; height: 19px; }
.pill.sm { height: 34px; padding: 0 12px; font-size: var(--text-label); }
.pill.block { width: 100%; }
.pill.quiet { color: var(--fg); background: var(--glass); border: 1px solid var(--edge-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
@media (hover: hover) and (pointer: fine) {
  .pill.quiet:hover { background: color-mix(in srgb, var(--accent-soft) 85%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 18px -12px var(--ink-35); }
  .pill.quiet:hover .i { transform: scale(1.12); }
  .pill.quiet:hover .i[data-icon='rocket'] { transform: translate(3px, -3px) rotate(-6deg); }
  .pill.quiet:active { transform: scale(0.97); }
}
[data-theme='dark'] .pill.quiet:hover { background: color-mix(in srgb, var(--accent-soft) 90%, transparent); }
.pill.main { position: relative; color: var(--on-accent); background: linear-gradient(135deg, var(--main-light-from) 0%, var(--accent) 45%, var(--accent-deep) 100%); background-size: 160% 160%; background-position: 0% 50%; box-shadow: inset 0 1px 0 var(--white-28), 0 10px 22px -14px var(--ink-50); transition: transform 160ms var(--ease-out), background-position 300ms ease, box-shadow 160ms ease; }
.pill.main .i { color: var(--on-accent); transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pill.main:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--white-30), 0 14px 26px -14px var(--ink-55); } .pill.main:hover .flip-rtl { transform: scaleX(-1) translateX(3px); } .pill.main:active { transform: scale(0.97); } }
[data-theme='dark'] .pill.main { background: linear-gradient(135deg, var(--main-dark-from) 0%, var(--main-dark-via) 45%, var(--main-dark-to) 100%); color: var(--on-main-dark); } [data-theme='dark'] .pill.main .i { color: var(--on-main-dark); }
.pill.hdr { height: 42px; padding: 0 16px; gap: 8px; font-size: var(--text-subhead); }
.pill.hdr .i { width: 18px; height: 18px; color: var(--accent); }
/* The phone and tablet menu (edit 6): a glass panel from the right, groups as accordions. Motion is in Drawer.tsx (WAAPI). */

html.dw-lock { overflow: hidden; }
.drawer2 { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--fg); overflow: hidden; }
.drawer2::backdrop { background: transparent; }
.dw-scrim { position: absolute; inset: 0; background: var(--shade-38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-theme='dark'] .dw-scrim { background: var(--black-55); }
.dw-panel { position: absolute; top: 10px; bottom: 10px; inset-inline-start: 10px; width: min(calc(100vw - 40px), 380px); display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 14px 14px 16px; border-radius: 24px; overflow: hidden; touch-action: pan-y;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, transparent), color-mix(in srgb, var(--surface) 70%, transparent)); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--surface) 50%, var(--edge)); box-shadow: inset 0 1px 0 var(--white-70), 0 30px 60px -30px var(--shade-45); }
[data-theme='dark'] .dw-panel { background: linear-gradient(180deg, var(--night-drawer-top), var(--night-drawer-bottom)); border-color: var(--white-10); box-shadow: inset 0 1px 0 var(--white-10), 0 30px 60px -30px var(--black-80); }
.dw-panel::before { content: ''; position: absolute; inset: -30% -40% auto auto; width: 90%; height: 60%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.dw-grip { position: absolute; inset-inline-end: 6px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.dw-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 7%, transparent); }
.dw-head img { height: 50px; width: auto; }
.dw-nav { position: relative; display: grid; align-content: start; gap: 2px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px; scrollbar-width: none; }
.dw-nav::-webkit-scrollbar { display: none; }
.dw-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 8px; border-radius: 14px; font-size: var(--text-headline); font-weight: 600; color: var(--fg); text-align: start; transition: background-color 150ms ease, transform 120ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.dw-item:active { transform: scale(0.98); background: color-mix(in srgb, var(--accent-soft) 85%, transparent); }
@media (hover: hover) and (pointer: fine) { .dw-item:hover { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); } }
.dw-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.dw-ico .i { width: 19px; height: 19px; }
.dw-t { flex: 1; }
.dw-caret { width: 16px; height: 16px; color: var(--fg-faint); transition: transform 260ms var(--ease-out); }
.dw-group.open > .dw-item { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.dw-group.open .dw-caret { transform: rotate(180deg); color: var(--accent); }
.dw-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.dw-group.open > .dw-sub { grid-template-rows: 1fr; }
.dw-sub-in { overflow: hidden; display: grid; gap: 2px; padding-inline-start: 12px; margin-inline-start: 26px; border-inline-start: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.dw-group.open .dw-sub-in { padding-block: 4px 8px; }
.dw-sub a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 12px; font-size: var(--text-callout); font-weight: 500; color: var(--fg-muted); opacity: 0; transform: translateX(8px); transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.dw-group.open .dw-sub a { opacity: 1; transform: none; }
.dw-group.open .dw-sub a:nth-child(2) { transition-delay: 30ms; } .dw-group.open .dw-sub a:nth-child(3) { transition-delay: 60ms; } .dw-group.open .dw-sub a:nth-child(4) { transition-delay: 90ms; } .dw-group.open .dw-sub a:nth-child(5) { transition-delay: 120ms; }
.dw-sub a .i { width: 17px; height: 17px; color: var(--accent); }
.dw-sub a:active { background: color-mix(in srgb, var(--accent-soft) 85%, transparent); color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .dw-sub a:hover { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); color: var(--fg); } }
.dw-foot { position: relative; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--fg) 7%, transparent); }
.dw-foot .pill { height: 50px; font-size: var(--text-headline); }
@media (prefers-reduced-motion: reduce) { .dw-sub, .dw-sub a, .dw-caret { transition: none; } .dw-sub a { opacity: 1; transform: none; } }
/*
 * The header: a floating glass island that opens to the full width once the page scrolls, the centred nav with its mega
 * menus (frosted glass with a real blur, edit 8), the actions at the end. Rules by width: design/DESIGN-SYSTEM.md, H4.
 */

/* ---------- the island ---------- */
.island-wrap { position: sticky; top: 0; z-index: 30; pointer-events: none; padding: 12px 16px 0; overflow-x: clip; transition: padding 300ms var(--ease-out); }
@media (min-width: 768px) { .island-wrap { padding: 14px 20px 0; } }
.island-wrap.scrolled { padding: 0; }
.island-wrap::after { /* the scroll edge: content fades under the chrome, no divider */
  content: ''; position: absolute; inset-inline: 0; top: 100%; height: 28px; background: linear-gradient(to bottom, var(--canvas), transparent); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.island-wrap.scrolled::after { opacity: 1; }
/* the header: a floating glass box, clear of the top, soft 18 px corners, the brand hairline and a bright top edge */
.island { position: relative; pointer-events: auto; height: var(--island-h); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--surface) 55%, var(--edge)); box-shadow: 0 12px 32px -20px var(--ink-30); transition: border-radius 300ms var(--ease-out), max-width 360ms var(--ease-out), padding 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out); }
/* the glass is a layer of its own (edit 8): an element with a backdrop-filter is a backdrop root, so a menu inside it could
   blur only the header itself; with the glass on ::before the menus blur the page behind them */
.island::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 38%, transparent), color-mix(in srgb, var(--surface) 22%, transparent)); backdrop-filter: blur(26px) saturate(1.9) brightness(1.04); -webkit-backdrop-filter: blur(26px) saturate(1.9) brightness(1.04); box-shadow: inset 0 1px 0 var(--white-65), inset 0 -1px 0 var(--white-15); transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.island > * { position: relative; }
@media (min-width: 768px) { .island { padding: 0 16px 0 24px; } }
[data-theme='dark'] .island { border-color: var(--white-12); box-shadow: 0 12px 32px -20px var(--black-80); }
[data-theme='dark'] .island::before { background: linear-gradient(180deg, var(--white-7), var(--white-3)); box-shadow: inset 0 1px 0 var(--white-12); backdrop-filter: blur(26px) saturate(1.6) brightness(0.9); -webkit-backdrop-filter: blur(26px) saturate(1.6) brightness(0.9); }
.scrolled .island { box-shadow: 0 18px 44px -22px var(--ink-40); }
/* scrolled (edit 21: «Blur هدر در حالت Scroll رو بیشتر کرد» and the menu's words readable): a deeper blur, a denser pane */
.scrolled .island::before { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 76%, transparent), color-mix(in srgb, var(--surface) 64%, transparent)); box-shadow: inset 0 1px 0 var(--white-65); backdrop-filter: blur(44px) saturate(1.8) brightness(1.05); -webkit-backdrop-filter: blur(44px) saturate(1.8) brightness(1.05); }
[data-theme='dark'] .scrolled .island::before { background: linear-gradient(180deg, var(--night-island-top-scrolled), var(--night-island-bottom-scrolled)); box-shadow: inset 0 1px 0 var(--white-12); backdrop-filter: blur(44px) saturate(1.5) brightness(0.85); -webkit-backdrop-filter: blur(44px) saturate(1.5) brightness(0.85); }
.scrolled .nlink { color: color-mix(in srgb, var(--fg) 82%, var(--fg-muted)); }
.island-brand { display: inline-flex; align-items: center; height: 44px; padding-inline-end: 6px; }
.island-brand img { height: 65px; width: auto; }
.island-nav { display: none; }
.island-end { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.island-end .menu-btn { display: inline-grid; }
.island { max-width: calc(var(--frame) + 40px); margin-inline: auto; } /* the frame and 20 px either side, its own padding inside */
.scrolled .island { max-width: 100%; border-radius: 0; border-inline-width: 0; border-top-width: 0; } /* edit 14: a transparent border showed a 1 px line of the page above the glass */
@media (min-width: 1024px) {
  .island { display: grid; grid-template-columns: auto 1fr auto; }
  .scrolled .island { padding-inline: 32px; }
  .island-nav { display: flex; align-items: center; gap: 4px; justify-self: center; flex-wrap: nowrap; min-width: 0; }
  .island-end { justify-self: end; }
  .island-end .menu-btn { display: none; }
}
/* 1024–1359 (edit 9, was 1199): the two header actions keep their place as icon buttons (their names stay as aria-labels and tooltips) */
@media (min-width: 1024px) and (max-width: 1359px) { .island-end .pill.hdr { width: 42px; padding: 0; } .island-end .pill.hdr span { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) { .island-brand img { height: 52px; } }
@media (max-width: 1023px) { .island-end .pill.quiet { display: none; } .island-brand img { height: 52px; } }
@media (max-width: 479px) { .island-brand img { height: 46px; } .emils { --island-h: 68px; } }
@media (max-width: 1023px) {
  .island::before { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, transparent), color-mix(in srgb, var(--surface) 76%, transparent)); }
  .scrolled .island::before { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 86%, transparent)); }
  [data-theme='dark'] .island::before { background: linear-gradient(180deg, var(--night-island-top), var(--night-island-bottom)); }
  [data-theme='dark'] .scrolled .island::before { background: linear-gradient(180deg, var(--night-island-top-scrolled), var(--night-island-bottom-scrolled)); }
}

.nitem { position: relative; }
.nlink { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: var(--r-nav); font-size: 0.96875rem; white-space: nowrap; font-weight: 600; color: color-mix(in srgb, var(--fg) 30%, var(--fg-muted)); transition: color 150ms ease, background-color 150ms ease, transform 100ms var(--ease-out); }
.nlink .ni { width: 15px; height: 15px; color: var(--accent); }
/* the nav by width (edit 9: about 10 % larger, more room either side): 15.5 px with icons from 1680 (where the header
   stops growing); 14.5 px with icons 1520–1679; 14.5 px without icons 1200–1519; 14 px 1024–1199. The header's actions
   are icon buttons up to 1359. Measured: at least 20 px clear of the logo and the actions at every band's edge. */
@media (max-width: 1679px) { .nlink { font-size: 0.90625rem; padding: 0 11px; gap: 6px; } .island-end { gap: 6px; } }
@media (max-width: 1519px) { .nlink .ni { display: none; } .nlink { padding: 0 10px; } }
@media (max-width: 1199px) { .nlink { font-size: var(--text-subhead); padding: 0 8px; } .island-nav { gap: 2px; } }
.nlink .caret { width: 11px; height: 11px; color: color-mix(in srgb, var(--fg) 20%, var(--fg-faint)); margin-inline-start: 1px; transition: transform 180ms var(--ease-out); }
.nitem.open > .nlink .caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .nlink:hover { color: var(--fg); background: color-mix(in srgb, var(--accent-soft) 75%, transparent); } }
.nitem.open > .nlink { color: var(--fg); background: color-mix(in srgb, var(--accent-soft) 75%, transparent); }
.nlink:active { transform: scale(0.97); }
/* the popover grows from its trigger, not from nowhere */
.pop::before { content: ''; position: absolute; inset: -14px -8px auto -8px; height: 16px; }
.pop { position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; translate: 50% 0; min-width: 300px; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, transparent), color-mix(in srgb, var(--surface) 72%, transparent)); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border: 1px solid color-mix(in srgb, var(--surface) 50%, var(--edge)); box-shadow: inset 0 1px 0 var(--white-60), 0 24px 48px -24px var(--ink-40); transform-origin: top center; opacity: 0; visibility: hidden; transform: scale(0.96) translateY(-4px); filter: blur(2px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), filter 180ms var(--ease-out), visibility 0s linear 180ms; }
.nitem.open > .pop { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), filter 180ms var(--ease-out); }
[data-theme='dark'] .pop { background: linear-gradient(180deg, var(--night-pop-top), var(--night-pop-bottom)); border-color: var(--white-10); box-shadow: inset 0 1px 0 var(--white-8), 0 24px 48px -24px var(--black-80); }
.pop.mega { grid-template-columns: minmax(240px, 1fr) 220px; gap: 8px; min-width: 520px; padding: 10px; }
.mega-list { display: grid; gap: 2px; align-content: start; }
.mega-pic { position: relative; display: grid; align-content: end; min-height: 220px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.mega-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(4px); transform: scale(1.04); transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 400ms var(--ease-out); }
.mega-pic img.show { opacity: 1; filter: blur(0); transform: none; }
.mega-pic .cap { position: relative; padding: 12px; color: var(--on-media); font-size: var(--text-footnote); font-weight: 600; line-height: 1.5; background: linear-gradient(to top, var(--shade-75), transparent); }
.mega-pic .cap { transition: opacity var(--d-default) var(--ease-out), translate var(--d-default) var(--ease-out); }
@starting-style { .mega-pic .cap { opacity: 0; translate: 0 6px; } }
.pop a[role='menuitem'] { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background-color 120ms ease; }
.pop a .i { width: 20px; height: 20px; color: var(--accent); flex: none; }
.pop a b { display: block; font-size: var(--text-callout); font-weight: 600; line-height: 1.4; }
.pop a small { display: block; font-size: var(--text-footnote); color: var(--fg-muted); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .pop a[role='menuitem']:hover { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); } }

@media (hover: hover) and (pointer: fine) {
  #theme-toggle:hover svg { transform: rotate(-24deg) scale(1.08); }
  .menu-btn:hover svg { transform: scaleX(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .pop { transition: opacity 150ms ease; transform: none; filter: none; }
  .island, .island::before { transition: none; }
}
/* Facts (edits 7–8): an icon tile beside each number and its label, divided by a hairline; on a phone three tiles in a row.
   Numbers never spaced (N4). The landing's hero and every tool page's hero. */
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 8px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts li + li { padding-inline-start: 28px; border-inline-start: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.facts .fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 100%, transparent), color-mix(in srgb, var(--accent-soft) 55%, transparent)); border: 1px solid var(--edge); color: var(--accent-ink); flex: none; }
.facts .fi .i { width: 22px; height: 22px; }
.facts .ft { display: grid; line-height: 1.25; }
.facts b { font-size: var(--text-title-2); line-height: 1.2; font-weight: 800; color: var(--fg); letter-spacing: 0; font-variant-numeric: normal; }
.facts small { font-size: var(--text-footnote); color: var(--fg-muted); font-weight: 500; }
@media (max-width: 559px) { .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; } .facts li { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 6px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid var(--edge); } .facts li + li { padding-inline-start: 6px; border-inline-start: 1px solid var(--edge); } .facts .ft { justify-items: center; } .facts b { font-size: var(--text-title-3); } }
/*
 * The footer (edit 20; in design): a dark band in both themes with round top corners and the brand's light at its
 * head; a faint staff behind the closing call; the logo and its line beside four columns; the rights at its foot.
 */

.ftr { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px 36px 0 0; color: var(--white);
  background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(180deg, var(--night-card-top), var(--night-card-bottom)); }
.ftr-staff { position: absolute; inset-inline: 0; top: 18px; z-index: -1; display: grid; gap: 7px; pointer-events: none; mask-image: linear-gradient(90deg, transparent, var(--black) 20%, var(--black) 80%, transparent); }
.ftr-staff span { height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0.45; }
.ftr-in { display: grid; gap: 48px; padding-block: clamp(72px, 7vw, 96px) 28px; }

/* the closing call */
.ftr-call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-bottom: 44px; border-bottom: 1px solid var(--white-10); }
.ftr-call h2 { font-size: var(--text-display); line-height: var(--lh-display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.ftr-call p { margin-top: 6px; color: var(--white-70); font-size: var(--text-lead); line-height: var(--lh-lead); }

/* the logo and its line, four columns */
.ftr-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr-about { grid-column: 1 / -1; display: grid; justify-items: start; gap: 16px; }
@media (min-width: 1024px) { .ftr-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 40px; } .ftr-about { grid-column: auto; } }
.ftr-logo { display: inline-block; transition: opacity var(--d-default) ease; }
.ftr-logo img { height: 48px; width: auto; }
.ftr-about p { max-width: 30rem; color: var(--white-70); font-size: var(--text-subhead); line-height: 1.9; }
.ftr-soc { display: flex; gap: 8px; }
.ftr-soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--white-8); border: 1px solid var(--white-10); color: var(--white-70); transition: background-color var(--d-default) ease, color var(--d-default) ease, translate var(--d-default) var(--ease-out); }
.ftr-soc a .i { width: 20px; height: 20px; }
.ftr-col h3 { margin-bottom: 14px; color: var(--white); font-size: var(--text-headline); line-height: var(--lh-headline); font-weight: 800; }
.ftr-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ftr-col a { display: inline-flex; align-items: center; gap: 6px; color: var(--white-60); font-size: var(--text-subhead); line-height: var(--lh-subhead); transition: color var(--d-default) ease, translate var(--d-default) var(--ease-out); }

/* the foot */
.ftr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--white-10); color: var(--white-60); font-size: var(--text-footnote); line-height: var(--lh-footnote); }
.ftr-trust { display: grid; place-items: center; min-width: 96px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--white-28); color: var(--white-60); font-size: var(--text-caption); }
.ftr-top { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--white-70); font-weight: 700; transition: color var(--d-default) ease; }
.ftr-top .i { width: 16px; height: 16px; transition: translate var(--d-default) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .ftr-logo:hover { opacity: 0.85; }
  .ftr-soc a:hover { background: var(--white-15); color: var(--white); translate: 0 -2px; }
  .ftr-col a:hover { color: var(--white); translate: -3px 0; }
  .ftr-top:hover { color: var(--white); }
  .ftr-top:hover .i { translate: 0 -3px; }
}
