/* Home page, mobile first. Photo-led: one section per feature, each showing
   the feature as a card, never a phone mockup. From 760 px text and visual
   sit side by side, alternating sides. Colours mirror
   app/lib/core/theme/app_tokens.dart; the type is the site's own. */
:root {
  --bg: #F5F4F8; --surface: #FFFFFF; --night: #0F101A; --night2: #1A1B28;
  --ink: #0F101A; --ink2: #4A4B5C; --muted: #6E6F84;
  --line: rgba(15, 16, 26, .08);
  --accent: #CC4418; --accent-ink: #A8360F; --accent-soft: #FDEDE5; --accent-night: #F08A5D; --peach: #FFD9C7;
  --go: #1F6FE0; --go-soft: #E7F0FD; --go-ink: #1552B8; --ok: #1E8A4C;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 10px 14px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(80px, 10vw, 136px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.ruled { border-top: 1px solid var(--line); }

/* type */
.h { font: 500 clamp(36px, 5.2vw, 64px)/1.03 var(--sans); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; color: var(--accent); }
.h--xl { font-size: clamp(42px, 6.4vw, 84px); }
.h--hero { font-size: clamp(46px, 8vw, 104px); letter-spacing: -.045em; max-width: 1000px; }
.ln { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--ink2); max-width: 400px; text-wrap: pretty; }
.mono { font: 500 12.5px/1.2 var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.dist { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--accent-ink); }
.dist::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(204, 68, 24, .16); }
.kind { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* nav: sticky; the section links scroll sideways on a phone */
html { scroll-padding-top: 72px; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 248, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--sans); letter-spacing: -.02em; }
.nav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-right: -10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); padding-inline: 8px; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="true"] { color: var(--accent-ink); }
/* phone: a menu button opens a full-screen sheet (without JS the link row stays) */
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.sheet { position: fixed; z-index: 19; left: 0; right: 0; top: 60px; bottom: 0; background: var(--bg); overflow-y: auto; padding-block: 24px max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 32px; }
.sheet[hidden] { display: none; }
.sheet > .wrap { width: 100%; }
.sheet__links { display: flex; flex-direction: column; }
.sheet__links a { padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 34px/1.1 var(--sans); letter-spacing: -.03em; }
.sheet__links a[aria-current="true"] { color: var(--accent); }
.sheet .badges { justify-content: flex-start; }
.menu-open { overflow: hidden; }
.menu-open .nav { background: var(--bg); border-bottom-color: var(--line); }
@media (max-width: 759px) {
  .js .nav__links { display: none; }
  .js .nav__toggle { display: block; }
}
@media (min-width: 760px) { .sheet { display: none !important; } }

/* store badges (official artwork; home.js renders them only with a real URL) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges:empty { display: none; }
.badge { display: inline-flex; line-height: 0; border-radius: 10px; }
.badge img { height: 48px; width: auto; }
.badge--play img { height: 71px; margin: -11.5px -10.5px; }

/* chat pieces */
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 11px 15px; font-weight: 500; font-size: 15px; line-height: 1.4; display: flex; flex-direction: column; gap: 6px; }
.bubble--soft { background: var(--bg); border-color: transparent; }
.me { align-self: flex-start; background: var(--night); color: #FFFFFF; border-radius: 16px 16px 4px 16px; padding: 10px 15px; font-weight: 500; font-size: 15px; line-height: 1.35; }
.panel .me { align-self: flex-end; }
.say { display: flex; align-items: flex-end; gap: 10px; }
.say > img { flex: none; width: 32px; height: 32px; }

/* hero */
.hero { padding-top: clamp(32px, 7vw, 88px); padding-bottom: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.hero__top { display: flex; flex-direction: column; gap: 24px; }
.hero__row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.hero__row .ln { max-width: 440px; }
.moments { display: grid; }
.moment { grid-area: 1 / 1; margin: 0; position: relative; height: clamp(540px, 58vw, 730px); border-radius: clamp(20px, 2.4vw, 28px); overflow: hidden; background: var(--night2); }
.moment > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moment > img.pos-right { object-position: 72% 50%; }
.moment > img.pos-house { object-position: 45% 72%; }
.moment > img.pos-bottom { object-position: 50% 75%; }
.moment__say { position: absolute; left: 12px; right: 12px; top: 12px; }
.moment__say > img { width: 34px; height: 34px; }
.moment__say .bubble { box-shadow: 0 10px 30px rgba(8, 8, 14, .18); }
.moment__card { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--surface); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(8, 8, 14, .18); }
.moment__card strong { font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.moment__card span:last-child { font-size: 15.5px; line-height: 1.45; color: var(--ink2); }
.js .moment { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.js .moment.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.no-js .moment:not(.is-on) { display: none; }
.js .moment .moment__say, .js .moment .moment__card { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .moment.is-on .moment__say { opacity: 1; transform: none; transition-delay: .5s; }
.js .moment.is-on .moment__card { opacity: 1; transform: none; transition-delay: 1.6s; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots:empty { display: none; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(15, 16, 26, .18); transition: width .4s, background .4s; }
.dot[aria-current="true"] { width: 24px; background: var(--accent); }
/* 44 px tap target around each small dot */
.dot { position: relative; }
.dot::after { content: ""; position: absolute; inset: -18px -4px; }

/* section heads */
.head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; justify-content: space-between; }
.head__t { flex: 1 1 520px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.discover .eyebrow { color: var(--accent-night); }

/* discover: dark, the biggest section */
.discover { background: var(--night); color: #FFFFFF; }
.discover .h em { color: var(--accent-night); }
.discover .ln { color: rgba(255, 255, 255, .72); }
.discover .dist { color: var(--accent-night); }
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tile { border-radius: 18px; overflow: hidden; position: relative; }
.nudge { position: absolute; z-index: 1; left: 14px; top: 14px; max-width: calc(100% - 28px); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 6px 20px rgba(8, 8, 14, .22); }
.nudge > img { flex: none; width: 22px; height: 22px; }
.nudge .dist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nudge .dist::before { display: none; }
.tile--photo { background: var(--night2); min-height: 300px; }
.tile--big { min-height: 520px; }
.tile--flame { min-height: 460px; }
.tile--flame > img { object-position: 30% 30%; }
.tile--king { min-height: 460px; }
.tile--king > img { object-position: 50% 62%; }
.tile--photo > img, .pick > img, .close__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 22px 22px; background: linear-gradient(transparent, rgba(8, 8, 14, .72)); color: #FFFFFF; display: flex; flex-direction: column; gap: 8px; }
.shade strong { font-weight: 600; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.025em; }
.shade span:not(.kind):not(.mono) { font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .84); }
.shade .kind { color: rgba(255, 255, 255, .82); }
.tile--note { background: var(--night2); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tile--note .kind { color: rgba(255, 255, 255, .6); }
.tile__body { display: flex; flex-direction: column; gap: 10px; }
.tile__body strong { font: 400 26px/1.15 var(--serif); }
.tile__body span:not(.dist) { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .66); }

/* panels */
.panel { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.panel--flush { padding: 0; gap: 0; overflow: hidden; }
.panel__title { font-weight: 600; font-size: 16px; }
.stack { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; }

/* split sections (ask, collect, plan) */
.split { display: flex; flex-direction: column; gap: 40px; }
.txt { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.vis { display: flex; justify-content: center; min-width: 0; }

/* ask */
.sources { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sources li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; font: 400 17px/1.35 var(--serif); }
.panel .say { padding-top: 6px; }

/* collect */
.saved { margin: 0; padding: 0; list-style: none; }
.saved li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.saved .mono { color: var(--ok); }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.thumbs img { width: 100%; height: 120px; border-radius: 12px; object-fit: cover; }

/* plan */
.plan { gap: 14px; }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.plan__title { display: flex; flex-direction: column; gap: 6px; }
.plan__title strong { font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.joined { display: inline-flex; align-items: center; gap: 6px; background: var(--go-soft); color: var(--go-ink); border-radius: 999px; padding: 5px 12px 5px 5px; font-weight: 500; font-size: 13px; }
.joined__face { width: 20px; height: 20px; border-radius: 50%; background: var(--go); color: #FFFFFF; font: 600 11px/20px var(--sans); text-align: center; }
.stop { display: flex; gap: 14px; align-items: center; font-weight: 500; font-size: 16px; line-height: 1.3; }
.stop .mono { width: 42px; flex: none; }
.stop img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.pick { position: relative; height: 200px; border-radius: 14px; overflow: hidden; background: var(--night2); }
.pick .shade { padding: 48px 16px 14px; gap: 6px; }
.pick .shade strong { font-size: 18px; }
.pick__label { color: var(--peach); }

/* close */
.close { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.close__photo { position: relative; min-height: 560px; border-radius: clamp(20px, 2.4vw, 28px); overflow: hidden; background: var(--night2); display: flex; }
.close__body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 40px 12px; background: radial-gradient(ellipse at center, rgba(8, 8, 14, .62), rgba(8, 8, 14, .3) 70%); color: #FFFFFF; }
.close__body .h em { color: var(--peach); }
.close__body .ln { color: rgba(255, 255, 255, .86); max-width: 420px; }
.close .badges { width: 100%; justify-content: center; gap: 10px; padding-top: 6px; }

/* footer */
.foot { padding-top: clamp(24px, 3vw, 40px); padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot__top { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.foot__about { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.foot__about p { margin: 0; line-height: 1.5; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col h3 { margin: 0 0 4px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.foot a { color: var(--muted); text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--ink); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
.foot__bottom .credits { margin: 0; }
.foot__bottom .credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 760px) {
  .foot__top { grid-template-columns: 2fr 1fr 1fr; }
  .foot__about { grid-column: auto; }
}
.mail { user-select: all; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--big, .tile--wide { grid-column: span 2; }
  .moment__say { left: 28px; right: auto; top: 28px; max-width: 440px; }
  .moment__card { left: 28px; right: auto; bottom: 28px; max-width: 380px; padding: 20px 22px; }
  .moment__card strong { font-size: 24px; }
}
@media (min-width: 760px) {
  .split { flex-direction: row; align-items: center; gap: clamp(40px, 6vw, 96px); }
  .split--rev { flex-direction: row-reverse; }
  .txt { flex: 1 1 0; }
  .vis { flex: 1 1 0; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile--big { grid-row: span 2; min-height: 640px; }
  .tile--note, .tile--king { min-height: 300px; }
  .tile--wide { min-height: 270px; grid-column: span 1; }
  .tile--flame { grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .moment, .js .moment .moment__say, .js .moment .moment__card { transition: none; }
}
