/* Nine — Digital Gallery, web edition. Tokens mirror lib/core/design/nine_tokens.dart. */

@font-face { font-family: "Geist"; src: url("fonts/geist-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geistmono-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #FAFAF8;
  --surface: #F0F0EC;
  --line: #E2E2DD;
  --line-strong: #B4B4AE;
  --fg: #111111;
  --fg-muted: #6E6E69;
  --primary: #111111;
  --on-primary: #FAFAF8;
  --accent: #B3341F;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0E; --surface: #1C1C1B; --line: #2A2A29; --line-strong: #5A5A57;
    --fg: #F2F2EF; --fg-muted: #8E8E89; --primary: #F2F2EF; --on-primary: #0E0E0E; --accent: #E5644D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0E; --surface: #1C1C1B; --line: #2A2A29; --line-strong: #5A5A57;
  --fg: #F2F2EF; --fg-muted: #8E8E89; --primary: #F2F2EF; --on-primary: #0E0E0E; --accent: #E5644D;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono, .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.wordmark .glyph { display: grid; grid-template-columns: repeat(3, 5px); gap: 2px; }
.wordmark .glyph i { width: 5px; height: 5px; background: var(--fg); border-radius: 1px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--fg-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 18px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 500 16px/1 var(--sans); text-decoration: none; border: 1px solid var(--fg); transition: transform .15s ease, opacity .15s; cursor: pointer; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.btn[aria-disabled="true"] { cursor: default; }
.store-btn { height: 56px; padding: 0 22px 0 18px; }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn .lines { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.store-btn small { font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-weight: 500; font-size: clamp(44px, 7.2vw, 92px); line-height: .98; letter-spacing: -.045em; margin: 18px 0 24px; }
.hero h1 em { font-style: normal; color: var(--fg-muted); }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--fg-muted); max-width: 30em; margin: 0 0 36px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin-top: 18px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The 3x3 grid motif */
.grid9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; justify-self: end; }
.grid9 figure { margin: 0; min-height: 0; position: relative; overflow: hidden; background: var(--surface); border-radius: 2px; }
.grid9 img { width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease, transform 1.4s ease; }
.grid9 img.swap { opacity: 0; transform: scale(1.04); }
.hero .grid9 figure { opacity: 0; transform: translateY(10px); animation: tileIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes tileIn { to { opacity: 1; transform: none; } }
.grid-caption { display: flex; justify-content: space-between; margin-top: 12px; max-width: 560px; justify-self: end; width: 100%; }
.hero-art { display: grid; }
@media (max-width: 900px) { .grid9, .grid-caption { justify-self: stretch; max-width: none; } }

/* Sections */
section.block { padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-bottom: clamp(36px, 6vw, 64px); align-items: end; }
.section-head h2 { font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 0; }
.section-head p { color: var(--fg-muted); margin: 0; max-width: 34em; font-size: 18px; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.step { background: var(--bg); padding: 28px 24px 32px; min-height: 240px; display: flex; flex-direction: column; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); }
.step h3 { font-weight: 500; font-size: 21px; letter-spacing: -.015em; margin: auto 0 8px; padding-top: 48px; }
.step p { margin: 0; color: var(--fg-muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step h3 { padding-top: 28px; } }

.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.look .cover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; aspect-ratio: 3 / 1.25; border-radius: 4px; overflow: hidden; }
.look .cover img { width: 100%; height: 100%; object-fit: cover; }
.look h3 { font-weight: 500; font-size: 20px; letter-spacing: -.015em; margin: 16px 0 2px; }
.look .mood { margin: 0 0 10px; }
.look p { margin: 0 0 14px; font-size: 15px; color: var(--fg-muted); }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
@media (max-width: 1000px) { .looks { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
@media (max-width: 520px) { .looks { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--surface); border-radius: 16px; padding: 28px; }
.pillar h3 { font-weight: 500; font-size: 19px; margin: 18px 0 8px; letter-spacing: -.01em; }
.pillar p { margin: 0; font-size: 15px; color: var(--fg-muted); }
.pillar svg { width: 24px; height: 24px; stroke: var(--fg); fill: none; stroke-width: 1.5; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.plans-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--surface); border-radius: 24px; padding: clamp(28px, 5vw, 56px); }
.plans-band h2 { font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 14px; }
.plans-band p { color: var(--fg-muted); margin: 0 0 24px; }
.plans-band ul { list-style: none; margin: 0; padding: 0; }
.plans-band li { padding: 14px 0; border-top: 1px solid var(--line-strong); display: flex; gap: 12px; font-size: 16px; }
.plans-band li:last-child { border-bottom: 1px solid var(--line-strong); }
.plans-band li span:first-child { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); padding-top: 3px; min-width: 24px; }
@media (max-width: 800px) { .plans-band { grid-template-columns: 1fr; } }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-weight: 400; font-size: 24px; color: var(--fg-muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--fg-muted); max-width: 44em; }

.closing { text-align: center; padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.closing h2 { font-weight: 500; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.045em; line-height: 1; margin: 0 0 28px; }
.closing .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin: 6px 0 16px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot a { text-decoration: none; color: var(--fg); }
.site-foot a:hover { text-decoration: underline; }
.site-foot .base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-muted); }
@media (max-width: 800px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* Legal / document pages */
.doc-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.doc-hero h1 { font-weight: 500; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; line-height: 1; margin: 14px 0 18px; }
.doc-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.toc a { text-decoration: none; color: var(--fg-muted); }
.toc a:hover { color: var(--fg); }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; } }
.prose { max-width: 720px; }
.prose h2 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin: 56px 0 14px; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 500; font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 500; color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0 8px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 400 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.summary-box { background: var(--surface); border-radius: 16px; padding: 24px 28px; margin: 0 0 48px; }
.summary-box h2 { margin-top: 0 !important; font-size: 18px !important; }
.summary-box ul { margin: 0; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps.three { grid-template-columns: 1fr; } }
.planned { margin-top: 48px; }
.planned ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.planned li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--fg-muted); }
.tbc { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--fg); border-radius: 4px; padding: 1px 6px; font-family: var(--mono); font-size: .82em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; display: block; transition: border-color .2s; }
a.card:hover { border-color: var(--fg); }
.card h3 { margin: 0 0 6px !important; }
.card p { margin: 0; font-size: 15px; color: var(--fg-muted) !important; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero .grid9 figure { opacity: 1; transform: none; }
}
