/* tunerapps — site styles. Tokens come from the brand guidelines v1. */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 400 700; font-style: normal; font-display: swap; src: url(/assets/fonts/bricolage-grotesque.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 400 600; font-style: normal; font-display: swap; src: url(/assets/fonts/geist.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400 500; font-style: normal; font-display: swap; src: url(/assets/fonts/geist-mono.woff2) format('woff2'); }

:root {
  --ink: #13211F;
  --deep: #1E4A45;
  --teal: #2F6F68;
  --mist: #DCE5E0;
  --paper: #F5F6F2;
  --spark: #E3A33E;
  --white: #FFFFFF;
  --line: #C9D3CE;
  --muted: #5A6661;
  --body: #3E4A46;
  --soft: #A9B8B2;
  --sea: #7FB3A9;
  --amber-text: #9A6514;
  --fg: #13211F;
  --link: #2F6F68;
  --link-hover: #1E4A45;
  --on-ink: #F5F6F2;
  --on-ink-2: #DCE5E0;
  --press-bg: #13211F;
  --press-fg: #F5F6F2;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
  --max: 1200px;
}

/* appearance: follows the device by default; data-theme (set by main.js / the toggle) overrides */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; --paper: #0D1816; --white: #14231F; --mist: #1B2E2A; --line: #2A403B; --ink: #1A2D29; --fg: #EEF2EE; --body: #B8C5BF; --muted: #8FA19A; --link: #7FB3A9; --link-hover: #A6D0C6; --amber-text: #E3A33E; --press-bg: #EEF2EE; --press-fg: #0D1816; }
  :root:not([data-theme]) .dial-card, :root:not([data-theme]) .contact-card, :root:not([data-theme]) .privacy-card, :root:not([data-theme]) .feature, :root:not([data-theme]) .store-btn:not(.is-soon) { box-shadow: inset 0 0 0 1px var(--line); }
  :root:not([data-theme]) .app-card, :root:not([data-theme]) .mini-app, :root:not([data-theme]) .member, :root:not([data-theme]) .feature-card, :root:not([data-theme]) .post-card.boxed { box-shadow: none; }
  :root:not([data-theme]) .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
  :root:not([data-theme]) .app-card:hover, :root:not([data-theme]) .mini-app:hover, :root:not([data-theme]) .member:hover, :root:not([data-theme]) .feature-card:hover, :root:not([data-theme]) .post-card.boxed:hover, :root:not([data-theme]) .shots img:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
  :root:not([data-theme]) .phone { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
  :root:not([data-theme]) .shots img { border-color: var(--line); }
  :root:not([data-theme]) .theme-toggle .moon { display: none; }
  :root:not([data-theme]) .theme-toggle .sun { display: block; }
}

:root[data-theme="dark"] { color-scheme: dark; --paper: #0D1816; --white: #14231F; --mist: #1B2E2A; --line: #2A403B; --ink: #1A2D29; --fg: #EEF2EE; --body: #B8C5BF; --muted: #8FA19A; --link: #7FB3A9; --link-hover: #A6D0C6; --amber-text: #E3A33E; --press-bg: #EEF2EE; --press-fg: #0D1816; }
:root[data-theme="dark"] .dial-card, :root[data-theme="dark"] .contact-card, :root[data-theme="dark"] .privacy-card, :root[data-theme="dark"] .feature, :root[data-theme="dark"] .store-btn:not(.is-soon) { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .app-card, :root[data-theme="dark"] .mini-app, :root[data-theme="dark"] .member, :root[data-theme="dark"] .feature-card, :root[data-theme="dark"] .post-card.boxed { box-shadow: none; }
:root[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .app-card:hover, :root[data-theme="dark"] .mini-app:hover, :root[data-theme="dark"] .member:hover, :root[data-theme="dark"] .feature-card:hover, :root[data-theme="dark"] .post-card.boxed:hover, :root[data-theme="dark"] .shots img:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .phone { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .shots img { border-color: var(--line); }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--fg); font-family: var(--f-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.skip { position: absolute; left: -9999px; top: 8px; background: #13211F; color: var(--on-ink); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.stack { display: flex; flex-direction: column; }
.band-white { background: var(--white); border-block: 1px solid var(--mist); }
.band-mist { background: var(--mist); }

/* type */
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.eyebrow.on-mist { color: var(--link-hover); }
.eyebrow.on-ink { color: var(--spark); }
.h-display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.h-section { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.035em; line-height: 1; }
.h-sub { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--body); max-width: 520px; }
.mono-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.head-row > div { display: flex; flex-direction: column; gap: 10px; }

/* logo */
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.logo:hover { color: var(--fg); }
.logo svg { width: 34px; height: 34px; }
.wordmark { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.05em; line-height: 1; }
.wordmark span { color: var(--link); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--mist); }
.site-header .wrap { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--fg); text-decoration: none; }
.nav a:hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); font-weight: 600; }
.nav .nav-cta { background: var(--press-bg); color: var(--press-fg); border-radius: 999px; padding: 11px 18px; font-weight: 500; }
.nav .nav-cta:hover { background: var(--link); color: var(--press-fg); }

/* buttons */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; padding: 0 26px; font: 500 16px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--teal); color: var(--on-ink); }
.btn-primary:hover { background: var(--deep); color: var(--on-ink); }
.btn-ghost { border-color: var(--soft); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn-spark { background: var(--spark); color: #13211F; font-weight: 600; }
.btn-spark:hover { background: #EDB65A; color: #13211F; }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); }
.hero .btn-row { padding-top: 8px; }
.dial-card { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.dial-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.dial-top b { font-weight: 400; color: var(--spark); }
.dial { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background-color: #182B28;
  background-image: repeating-linear-gradient(90deg, #5E7A74 0 2px, transparent 2px 100px), repeating-linear-gradient(90deg, #2F4A46 0 2px, transparent 2px 20px);
  background-size: 100% 70%, 100% 40%; background-position: left bottom, left bottom; background-repeat: no-repeat; }
.dial-needle { position: absolute; left: 63%; top: 14px; bottom: 0; width: 3px; background: var(--spark); border-radius: 2px; transition: left .6s cubic-bezier(.2, .8, .2, 1); }
.dial-needle::before { content: ""; position: absolute; left: -6px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: var(--spark); }
.dial-scale { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.dial-scale .on { color: var(--spark); }
.dial-foot { display: flex; align-items: center; gap: 16px; border-top: 1px solid #2B3D3A; padding-top: 24px; }
.dial-foot p { font-size: 15px; line-height: 1.5; color: var(--on-ink-2); }
.icon-stack { display: flex; flex-shrink: 0; }
.icon-stack svg { width: 52px; height: 52px; }
.icon-stack svg + svg { margin-left: -10px; }

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--fg); font: 400 15px var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--press-bg); border-color: var(--press-bg); color: var(--press-fg); }

/* app cards */
.grid { display: grid; gap: 20px; }
.grid-apps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.app-card { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--mist); color: var(--fg); text-decoration: none; transition: transform .2s, border-color .2s; }
.app-card:hover { color: var(--fg); border-color: var(--link); transform: translateY(-3px); }
.app-card svg { width: 72px; height: 72px; }
.app-card-top { display: flex; justify-content: space-between; align-items: start; }
.app-card-body { display: flex; flex-direction: column; gap: 8px; }
.app-card .cat { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.app-card .name { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.app-card .line { font-size: 16px; line-height: 1.55; color: var(--body); }
.app-card .more { margin-top: auto; font-size: 15px; font-weight: 500; color: var(--link); }
[hidden] { display: none !important; }

/* how we work */
.step { border-top: 2px solid var(--fg); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step.is-spark { border-top-color: var(--spark); }
.step .n { font-family: var(--f-mono); font-size: 13px; color: var(--link); }
.step.is-spark .n { color: var(--amber-text); }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.step p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* about / team */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: var(--section-y); }
.ph { background: var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--body); }
.about .ph { aspect-ratio: 4 / 3; border-radius: 28px; font-size: 13px; }
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy p { font-size: 18px; line-height: 1.65; color: var(--body); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.team { padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 28px; }
.grid-team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.member { background: var(--paper); border-radius: 22px; padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 14px; }
.member .ph { aspect-ratio: 1 / 1; border-radius: 14px; }
.member-body { padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
.member h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.member .role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.member p { font-size: 15px; line-height: 1.5; color: var(--body); padding-top: 4px; }

/* journal cards */
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; color: var(--fg); text-decoration: none; }
.post-card:hover { color: var(--fg); }
.post-card:hover .post-title { color: var(--link); }
.post-card .thumb { aspect-ratio: 16 / 10; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.thumb.build { background: var(--mist); color: var(--body); }
.thumb.release { background: var(--teal); color: var(--on-ink-2); }
.thumb.craft { background: var(--spark); color: #13211F; }
.thumb.team { background: var(--ink); color: var(--soft); }
.post-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.post-meta span { color: var(--muted); }
.post-title { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.post-excerpt { font-size: 15px; line-height: 1.55; color: var(--body); }
.post-card.boxed { padding: 24px; border-radius: 22px; border: 1px solid var(--mist); background: var(--white); gap: 12px; }
.post-card.boxed .post-meta { color: var(--muted); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--on-ink); text-decoration: none; }
.feature:hover { color: var(--on-ink); }
.feature-art { min-height: 320px; background-color: #182B28; background-image: repeating-linear-gradient(90deg, #5E7A74 0 2px, transparent 2px 100px), repeating-linear-gradient(90deg, #2F4A46 0 2px, transparent 2px 20px); background-size: 100% 50%, 100% 28%; background-position: left bottom, left bottom; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.feature-copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feature-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.badge { background: var(--spark); color: #13211F; border-radius: 999px; padding: 5px 10px; }
.feature h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.feature p { font-size: 17px; line-height: 1.6; color: var(--on-ink-2); }
.byline { display: flex; align-items: center; gap: 10px; padding-top: 8px; font-size: 15px; color: var(--on-ink-2); }
.byline i { width: 32px; height: 32px; border-radius: 50%; background: #3C5A55; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--mist); padding-bottom: 20px; }
.count { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

/* contact */
.contact { padding: 0 var(--gutter) var(--section-y); }
.contact-card { max-width: var(--max); margin: 0 auto; background: var(--ink); color: var(--on-ink); border-radius: 32px; padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; gap: 24px; }
.contact-card h2 { max-width: 760px; font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -.04em; line-height: 1; }
.contact-card p { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--on-ink-2); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.contact-links a:not(.btn) { color: var(--on-ink); font-size: 16px; padding: 12px 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--mist); }
.site-footer .wrap { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }

/* app page */
.crumbs { font-family: var(--f-mono); font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.app-hero { padding-block: 32px clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 40px; }
.app-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 6vw, 72px); align-items: center; }
.app-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.app-hero-copy > svg { width: 112px; height: 112px; }
.app-hero h1 { font-size: clamp(44px, 6vw, 84px); }
.store-btn { display: flex; flex-direction: column; background: var(--ink); color: var(--on-ink); text-decoration: none; border-radius: 14px; padding: 10px 22px; min-width: 150px; }
.store-btn:hover { background: var(--deep); color: var(--on-ink); }
.store-btn small { font-size: 12px; color: var(--soft); }
.store-btn strong { font-size: 18px; font-weight: 600; }
.facts { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 4px; }
.phones { background: var(--mist); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center; gap: 20px; }
.phone { width: 46%; max-width: 240px; aspect-ratio: 9 / 19.5; border-radius: 34px; background: var(--ink); padding: 8px; }
.phone + .phone { margin-top: 48px; }
.phone .ph { width: 100%; height: 100%; border-radius: 27px; background: var(--paper); color: var(--muted); text-align: center; }
.grid-shots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid-shots .ph { aspect-ratio: 9 / 16; border-radius: 22px; background: var(--mist); }
.feature-card { background: var(--paper); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature-card .n { font-family: var(--f-mono); font-size: 13px; color: var(--link); }
.feature-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.feature-card p { font-size: 16px; line-height: 1.6; color: var(--body); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 72px); }
.changelog { display: flex; flex-direction: column; }
.changelog div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--mist); }
.changelog div:last-child { border-bottom: 1px solid var(--mist); }
.changelog b { font: 400 14px var(--f-mono); color: var(--muted); }
.changelog div:first-child b { color: var(--amber-text); }
.changelog span { font-size: 16px; line-height: 1.55; }
.privacy-card { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.privacy-card strong { font-family: var(--f-display); font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.privacy-card p { font-size: 16px; line-height: 1.6; color: var(--on-ink-2); }
.privacy-card nav { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.privacy-card a { color: var(--on-ink); font-size: 15px; }
.mini-app { background: var(--paper); border-radius: 20px; padding: 18px; display: flex; gap: 16px; align-items: center; color: var(--fg); text-decoration: none; }
.mini-app:hover { color: var(--fg); background: var(--white); }
.mini-app svg { width: 56px; height: 56px; flex-shrink: 0; }
.mini-app span { display: flex; flex-direction: column; gap: 4px; }
.mini-app b { font-weight: 600; font-size: 17px; }
.mini-app small { font-size: 14px; color: var(--muted); }

/* prose (privacy, 404) */
.prose { max-width: 720px; padding-block: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 20px; }
.prose h1 { font-size: clamp(44px, 6vw, 72px); }
.prose h2 { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; padding-top: 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--body); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-block: 80px; }
.notfound h1 { font-size: clamp(64px, 12vw, 160px); }

/* real app assets */
.app-icon { width: 112px; height: 112px; border-radius: 28px; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: var(--paper); }
.store-btn.is-soon { background: var(--mist); color: var(--fg); border: 1px dashed var(--soft); }
.store-btn.is-soon small { color: var(--muted); }
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.shots img { flex: 0 0 auto; height: min(520px, 70vh); width: auto; border-radius: 22px; scroll-snap-align: start; border: 1px solid var(--mist); }
.details { margin: 0; display: flex; flex-direction: column; }
.details div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--mist); }
.details div:last-child { border-bottom: 1px solid var(--mist); }
.details dt { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.details dd { margin: 0; font-size: 16px; line-height: 1.55; }
.app-card .app-img { width: 72px; height: 72px; border-radius: 20px; }
.mini-app img { width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; }
.icon-stack img { width: 52px; height: 52px; border-radius: 15px; }
.icon-stack img + img { margin-left: -10px; box-shadow: 0 0 0 3px var(--ink); }

/* app cards with banner */
.app-card { padding: 0; gap: 0; overflow: hidden; background: var(--white); }
.app-banner { position: relative; margin-bottom: 44px; background: var(--mist); }
.app-banner > img:first-child { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.app-banner .app-img { position: absolute; left: 24px; bottom: -36px; width: 72px; height: 72px; border-radius: 18px; border: 3px solid var(--white); background: var(--white); box-shadow: 0 4px 14px rgba(19, 33, 31, .18); }
.app-card .app-card-body { padding: 0 24px; }
.app-card .more { padding: 20px 24px 24px; }

/* screenshot gallery */
.gallery { position: relative; }
.shots { scrollbar-width: thin; scrollbar-color: var(--soft) transparent; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--fg); font: 400 28px/1 var(--f-body); cursor: pointer; box-shadow: 0 4px 14px rgba(19, 33, 31, .15); display: flex; align-items: center; justify-content: center; padding: 0 0 4px; z-index: 2; }
.gallery-btn:hover { background: var(--press-bg); color: var(--press-fg); }
.gallery-btn.prev { left: -12px; }
.gallery-btn.next { right: -12px; }
@media (max-width: 700px) { .gallery-btn { display: none !important; } }

/* ---------- motion ---------- */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* page-to-page transitions (Chrome/Edge/Safari; others just navigate normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
  ::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* scroll reveal: main.js tags elements with data-reveal and adds .is-in when visible */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* scroll progress + header state */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--spark); transform: scaleX(0); transform-origin: 0 50%; z-index: 20; pointer-events: none; }
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(19, 33, 31, .08); }

/* hero dial: the needle hunts for the sweet spot, then settles and pulses */
.dial-needle { transition: none; animation: tune 2.4s var(--ease-out) .3s both; }
.dial-needle::before { animation: pulse 2.4s ease-out 2.7s infinite; }
@keyframes tune { 0% { left: 6%; } 28% { left: 88%; } 52% { left: 30%; } 74% { left: 72%; } 100% { left: 63%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 163, 62, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(227, 163, 62, 0); } }

/* floating phones */
.phones .phone { animation: float 7s ease-in-out infinite; }
.phones .phone + .phone { animation-delay: -3.5s; animation-duration: 8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* links and buttons */
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--spark); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); }
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.btn, .store-btn, .nav-cta { transition: transform .25s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s; }
.btn:hover, .store-btn:not(.is-soon):hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 33, 31, .18); }
.btn:active, .store-btn:active, .nav-cta:active { transform: translateY(0); box-shadow: none; }
.logo svg { transition: transform .5s var(--spring); }
.logo:hover svg { transform: rotate(-14deg) scale(1.08); }

/* app cards */
.app-card { transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s; }
.app-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(19, 33, 31, .14); }
.app-banner-img { overflow: hidden; background: var(--mist); }
.app-banner-img img { width: 100%; aspect-ratio: 2 / 1; height: auto; object-fit: cover; transition: transform .8s var(--ease-out); }
.app-card:hover .app-banner-img img { transform: scale(1.07); }
.app-banner .app-img { transition: transform .5s var(--spring); }
.app-card:hover .app-banner .app-img { transform: translateY(-5px) rotate(-5deg) scale(1.06); }
.app-card .more i { display: inline-block; font-style: normal; transition: transform .3s var(--ease-out); }
.app-card:hover .more i { transform: translateX(6px); }
.mini-app, .member, .feature-card, .step, .post-card.boxed { transition: transform .35s var(--ease-out), box-shadow .35s, background-color .2s; }
.mini-app:hover, .member:hover, .feature-card:hover, .post-card.boxed:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(19, 33, 31, .1); }
.shots img { transition: transform .4s var(--ease-out), box-shadow .4s; }
.shots img:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(19, 33, 31, .18); }
.post-card .thumb, .feature-art { transition: transform .6s var(--ease-out); }
.post-card:hover .thumb { transform: scale(1.03); }
.chip { transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--spring); }
.chip:active { transform: scale(.94); }
[data-filter-list] > * { animation: pop .45s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .phones .phone, .dial-needle, .dial-needle::before { animation: none; }
  .progress { display: none; }
}

/* hero screenshots: show the whole image, no cropping inside a frame */
.phone { aspect-ratio: auto; padding: 0; background: none; border-radius: 22px; box-shadow: 0 18px 40px rgba(19, 33, 31, .22); }
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; object-fit: contain; }
.phones { align-items: flex-start; }
.phone { align-self: flex-start; }

/* theme toggle */
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background-color .2s, border-color .2s, transform .4s var(--spring); }
.theme-toggle:hover { border-color: var(--fg); transform: rotate(20deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important; }

/* team photos */
.member-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; border-radius: 14px; background: var(--line); }
.member-body h3 { font-size: 19px; line-height: 1.25; }
.member-body { padding-bottom: 2px; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; background: var(--ink); box-shadow: 0 24px 48px rgba(19, 33, 31, .18); }

/* team cards: photo runs edge to edge, no inner frame */
.member { padding: 0; gap: 0; overflow: hidden; background: var(--paper); }
.member-photo { border-radius: 0; aspect-ratio: 1 / 1; height: auto; object-position: center top; }
.member-body { padding: 16px 18px 18px; }

/* journal posts */
.wrap.post-head { max-width: 900px; padding-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; }
.post-meta-row { color: var(--muted); }
.post-title-h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; }
.post-lede { max-width: 720px; font-size: clamp(19px, 2vw, 23px); }
.byline-line { margin: 0; }
.byline-line .byline { padding-top: 0; color: var(--body); }
.byline-line .byline i { background: var(--teal); }
.wrap.post-hero { max-width: 1040px; padding-block: 36px 8px; }
.post-hero img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 56px rgba(19, 33, 31, .18); }
.wrap.post-body { max-width: 760px; padding-block: 40px clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 22px; }
.post-body h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin-top: 28px; }
.post-body p, .post-body li { font-size: 19px; line-height: 1.75; color: var(--body); }
.post-body p strong, .post-body li strong { color: var(--fg); font-weight: 600; }
.post-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.post-body li { position: relative; padding-left: 30px; }
.post-body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--spark); }
.pull { margin: 18px 0; padding: 0; position: relative; }
.pull::before { content: "\201C"; display: block; font-family: var(--f-display); font-weight: 600; font-size: 96px; line-height: .6; color: var(--spark); margin-bottom: 8px; }
.post-body .pull p { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; color: var(--fg); }
.facts-strip { margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.facts-strip div { background: var(--white); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.facts-strip dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts-strip dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: var(--fg); }
.shot-pair { margin: 20px -40px; background: var(--mist); border-radius: 32px; padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 36px) 20px; }
.shot-pair-imgs { display: flex; justify-content: center; gap: clamp(14px, 3vw, 32px); align-items: flex-start; }
.shot-pair img { width: 42%; max-width: 250px; height: auto; border-radius: 22px; box-shadow: 0 18px 40px rgba(19, 33, 31, .22); }
.shot-pair img + img { margin-top: 40px; }
.shot-pair figcaption { margin-top: 22px; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .shot-pair { margin-inline: 0; } }
.cta-card { margin-top: 36px; background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: center; }
.cta-card > img { width: 72px; height: 72px; border-radius: 18px; }
.cta-copy { display: flex; flex-direction: column; gap: 4px; }
.cta-copy .mono-label { color: var(--soft); }
.cta-copy strong { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.cta-copy span:last-child { color: var(--on-ink-2); font-size: 16px; line-height: 1.5; }
.cta-card .btn-row { grid-column: 1 / -1; }
.cta-card .btn-ghost { color: var(--on-ink); border-color: var(--soft); }
.cta-card .btn-ghost:hover { border-color: var(--on-ink); color: var(--on-ink); }
.cta-card .btn-primary { color: var(--on-ink); }
.btn.is-soon { border-style: dashed; cursor: default; }
.btn.is-soon:hover { transform: none; box-shadow: none; }
.post-card .thumb-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--mist); transition: transform .6s var(--ease-out); }
.post-card:hover .thumb-img { transform: scale(1.03); }
.feature-art.feature-art-img { padding: 0; min-height: 0; background: #182B28; overflow: hidden; }
.feature-art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.feature:hover .feature-art-img img { transform: scale(1.05); }

/* animated signal background */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.site-header { background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.band-white { background: color-mix(in srgb, var(--white) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.band-mist { background: color-mix(in srgb, var(--mist) 84%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-footer { background: color-mix(in srgb, var(--paper) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* let the background show through the whole screen */
.band-white { background: color-mix(in srgb, var(--white) 52%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.band-mist { background: color-mix(in srgb, var(--mist) 58%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.site-header { background: color-mix(in srgb, var(--paper) 86%, transparent); }
.site-footer { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.band-white, .band-mist { -webkit-backdrop-filter: none; backdrop-filter: none; }
.band-white { background: color-mix(in srgb, var(--white) 46%, transparent); }
.band-mist { background: color-mix(in srgb, var(--mist) 50%, transparent); }
.post-card .thumb-img { aspect-ratio: 2 / 1; object-fit: contain; }

/* compact header on phones: logo + toggle on the first row, links on the second */
@media (max-width: 640px) {
  .site-header .wrap { position: relative; padding-block: 10px 8px; gap: 6px 12px; }
  .logo svg { width: 30px; height: 30px; }
  .wordmark { font-size: 21px; }
  .nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 14px; }
  .nav .nav-cta { padding: 9px 14px; margin-left: auto; }
  .theme-toggle { position: absolute; top: 8px; right: var(--gutter); width: 40px; height: 40px; }
  html { scroll-padding-top: 108px; }
}
