/* Camis AI — site styles. Refined studio: warm paper, ink type, app icons as objects. */
/* Fonts are self-hosted: no third-party requests. Newsreader (OFL), Hanken Grotesk (OFL), IBM Plex Mono (OFL). */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f1ea;
  --paper-2: #ede7dc;
  --card: #fffdf9;
  --ink: #1c1a17;
  --ink-2: #4a453e;
  --ink-3: #7d766b;
  --line: #e2dacb;
  --line-2: #d4cab8;
  --brand: #c0532a;
  --brand-ink: #9c3f1c;
  --radius: 18px;
  --shadow-icon: 0 1px 1px rgba(40,30,20,.08), 0 6px 14px -4px rgba(40,30,20,.22), 0 22px 36px -18px rgba(40,30,20,.35);
  --shadow-card: 0 1px 0 rgba(40,30,20,.04), 0 12px 32px -20px rgba(40,30,20,.25);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* faint paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: #f1c9a8; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ——— Header ——— */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand small { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin-left: 2px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav a.cta:hover { background: #000; }
@media (max-width: 820px) { .nav a:not(.cta) { display: none; } }

/* ——— Type ——— */
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 0; font-optical-sizing: auto; }
.display { font-size: clamp(42px, 6vw, 82px); letter-spacing: -.035em; line-height: .98; }
.display em { font-style: italic; color: var(--brand); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 26px 0 0; line-height: 1.55; }

/* ——— Buttons ——— */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--ink); transition: transform .15s ease, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-3); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.pending { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 15px; }
.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--brand)); opacity: .7; }

/* ——— App icon tiles ——— */
.icon { --s: 64px; display: block; width: var(--s); height: var(--s); border-radius: 22.5%; flex: none; position: relative; box-shadow: var(--shadow-icon); overflow: hidden; background: #fff; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon.fit-mac { box-shadow: none; background: none; overflow: visible; border-radius: 0; }
.icon.fit-mac img { filter: drop-shadow(0 6px 10px rgba(40,30,20,.22)) drop-shadow(0 1px 1px rgba(40,30,20,.1)); transform: scale(1.12); }
.icon.fit-mark { background: #fff; }
.icon.fit-mark img { object-fit: contain; padding: 14%; }
.icon.fit-bleed-inset img { transform: scale(1.1); }

/* ——— Home hero ——— */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font: 500 13px/1.4 var(--mono); color: var(--ink-3); }
.hero-meta b { color: var(--ink); font-weight: 600; }

.shelf { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.2vw, 26px); padding: clamp(18px, 3vw, 36px); }
.shelf::before { content: ""; position: absolute; inset: 0; border-radius: 36px; background: radial-gradient(120% 90% at 30% 20%, #fffaf2 0%, var(--paper-2) 70%); border: 1px solid var(--line); z-index: -1; }
.shelf a { display: block; text-decoration: none; position: relative; animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.53s); }
.shelf a:nth-child(4n+2) { margin-top: 26px; }
.shelf a:nth-child(4n+3) { margin-top: 10px; }
.shelf a:nth-child(4n) { margin-top: 34px; }
.shelf .icon { --s: 100%; aspect-ratio: 1; height: auto; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.shelf a:hover .icon, .shelf a:focus-visible .icon { transform: translateY(-6px) scale(1.06) rotate(-2deg); }
.shelf .tip { position: absolute; left: 50%; bottom: -8px; transform: translate(-50%, 100%); white-space: nowrap; font: 500 12px/1 var(--mono); background: var(--ink); color: var(--paper); padding: 6px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.shelf a:hover .tip, .shelf a:focus-visible .tip { opacity: 1; }
.shelf a.shelf-featured { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 0; padding: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; animation: none; }
.shelf .shelf-featured .icon { --s: 72px; width: var(--s); height: var(--s); }
.shelf-label { min-width: 0; }
.shelf-label b { display: block; font: 500 clamp(23px, 2.3vw, 30px)/1.1 var(--serif); }
.shelf-label small { display: block; margin-top: 6px; font: 500 11px/1.5 var(--mono); color: var(--ink-2); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (hover: none), (max-width: 560px) { .shelf .tip { display: none; } }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(4, 1fr); gap: 12px; } .shelf a:nth-child(n) { margin-top: 0; } }

/* ——— Section index strip ——— */
.index { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 55%, transparent); }
.index .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.index a { padding: 22px 20px 22px 0; text-decoration: none; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-left: 20px; transition: background .15s; }
.index a:first-child { padding-left: 0; }
.index a:last-child { border-right: 0; }
.index a:hover .t { color: var(--brand); }
.index .n { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.index .t { font: 500 22px/1.2 var(--serif); letter-spacing: -.01em; transition: color .15s; }
@media (max-width: 760px) { .index .wrap { grid-template-columns: 1fr 1fr; } .index a { padding-left: 0 !important; border-right: 0; border-bottom: 1px solid var(--line); } .index a:nth-child(odd) { padding-right: 14px; } .index a:nth-last-child(-n+2) { border-bottom: 0; } }

/* ——— Featured (Embersong) ——— */
.feature { padding: clamp(56px, 8vw, 104px) 0 0; }
.feature-card { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 28px; overflow: hidden; background: #17120c; color: #f6ecd9; text-decoration: none; box-shadow: 0 40px 80px -40px rgba(30,15,0,.6); isolation: isolate; }
.feature-card .art { position: relative; min-height: 420px; }
.feature-card .art img { object-position: 50% 0; }
.feature-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.feature-card:hover .art img { transform: scale(1.035); }
.feature-card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #17120c 100%); }
.feature-card .copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feature-card h3 { font-size: clamp(30px, 3.2vw, 42px); color: #fff4e0; margin: 0 0 16px; }
.feature-card h3 span { display: block; font-style: italic; color: #f3c77a; font-size: .62em; margin-top: 8px; letter-spacing: -.01em; }
.feature-card .eyebrow { color: #cfae74; }
.feature-card p { color: #d9ccb4; margin: 0; font-size: 17px; }
.feature-card p.eyebrow { font-size: 12px; margin-bottom: 18px; }
.nw { white-space: nowrap; }
.feature-card .platforms { margin-top: 22px; }
.feature-card .platforms span { border-color: rgba(246,236,217,.25); color: #e8dcc4; background: transparent; }
.feature-card .more { margin-top: 28px; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: #f3c77a; }
@media (max-width: 860px) { .feature-card { grid-template-columns: 1fr; } .feature-card .art { min-height: 0; aspect-ratio: 16/9; } .feature-card .art::after { background: linear-gradient(180deg, transparent 60%, #17120c 100%); } }

/* ——— Catalogue ——— */
.cat { padding: clamp(64px, 9vw, 112px) 0 0; }
.cat-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 28px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-head .num { font: 500 13px/1 var(--mono); color: var(--brand); padding-bottom: 8px; }
.cat-head h2 { font-size: clamp(34px, 4.4vw, 54px); }
.cat-head p { margin: 0; color: var(--ink-3); max-width: 26em; text-align: right; font-size: 15.5px; padding-bottom: 6px; }
@media (max-width: 760px) { .cat-head { grid-template-columns: auto 1fr; } .cat-head p { grid-column: 1 / -1; text-align: left; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
@media (min-width: 761px) { .grid.n2 { grid-template-columns: repeat(2, 1fr); } }
.card { --accent: var(--brand); position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow-card); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; overflow: hidden; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(40,30,20,.04), 0 24px 44px -24px rgba(40,30,20,.35); border-color: var(--line-2); }
.card:hover::after { transform: scaleX(1); }
.card .icon { --s: 68px; }
.card .body { min-width: 0; flex: 1; }
.card h3 { font-size: 25px; line-height: 1.1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.card .go { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); border: 1px solid var(--line); transition: all .2s; }
.card:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
.card .body { padding-right: 28px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.platforms span { font: 500 11.5px/1 var(--mono); letter-spacing: .02em; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.badge { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: #fbe9d9; color: var(--brand-ink); font-style: normal; }

/* ——— Principles ——— */
.principles { margin-top: clamp(80px, 11vw, 140px); background: var(--ink); color: #efe8db; padding: clamp(64px, 8vw, 104px) 0; }
.principles .eyebrow { color: #a89f90; }
.principles h2 { font-size: clamp(34px, 4.6vw, 58px); max-width: 16em; }
.principles h2 em { color: #f0a47c; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid #3a352d; }
.pgrid > div { padding: 28px 28px 0 0; border-right: 1px solid #3a352d; margin-right: 28px; }
.pgrid > div:last-child { border-right: 0; margin-right: 0; }
.pgrid .n { font: 500 12px/1 var(--mono); color: #f0a47c; letter-spacing: .08em; }
.pgrid h3 { font-size: 27px; margin: 16px 0 10px; color: #fff; }
.pgrid p { margin: 0; color: #b9b0a1; font-size: 16px; }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; } .pgrid > div { border-right: 0; margin-right: 0; padding-bottom: 26px; border-bottom: 1px solid #3a352d; } .pgrid > div:last-child { border-bottom: 0; } }

/* ——— Contact ——— */
.contact { padding: clamp(72px, 9vw, 120px) 0; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.contact h2 { font-size: clamp(40px, 5.6vw, 72px); }
.contact h2 em { color: var(--brand); }
.contact p { color: var(--ink-2); margin: 0 0 18px; }
.mail { font: 500 clamp(20px, 2.4vw, 28px)/1.2 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--brand); padding-bottom: 3px; }
.mail:hover { color: var(--brand); }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ——— Footer ——— */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--brand); }
.foot-grid .about p { margin: 14px 0 0; max-width: 24em; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font: 500 12px/1.4 var(--mono); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .about { grid-column: 1 / -1; } }

/* ——— Product page ——— */
.crumbs { padding-top: 28px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.p-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.p-hero.solo .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 960px) { .p-hero .wrap, .p-hero.solo .wrap { grid-template-columns: 1fr; } }
.p-hero .icon { --s: 112px; margin-bottom: 30px; }
.p-hero h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -.035em; line-height: 1; }
.p-hero h1.long { font-size: clamp(40px, 4.8vw, 64px); }
.p-hero .tag { font: italic 400 clamp(22px, 2.4vw, 30px)/1.25 var(--serif); color: var(--accent); margin: 16px 0 0; letter-spacing: -.01em; }
.p-hero .summary { color: var(--ink-2); font-size: 18px; margin: 22px 0 0; max-width: 32em; }
.p-hero .req { margin-top: 18px; font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); }
.p-hero .btn-primary { background: var(--accent); border-color: var(--accent); }
.p-hero .btn-primary:hover { filter: brightness(.9); background: var(--accent); }

.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: -6% -6% -10% -4%; border-radius: 40px; background: radial-gradient(80% 70% at 60% 40%, color-mix(in srgb, var(--accent) 22%, var(--paper)) 0%, transparent 72%); z-index: -1; }
@media (max-width: 960px) { .stage::before { inset: -4% 0 -6% 0; } }
.stage .window { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 50px 80px -40px rgba(30,20,10,.55), 0 0 0 1px rgba(0,0,0,.06); background: #fff; }
.stage .window img { width: 100%; }
.stage .cutout img { width: 108%; max-width: none; margin: -4% -4%; }
.stage .phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.stage .phones img { width: min(46%, 300px); border-radius: 22px; box-shadow: 0 40px 70px -35px rgba(30,20,10,.6), 0 0 0 1px rgba(0,0,0,.06); }
.stage .phones img:nth-child(2) { margin-top: 48px; }
.stage .phones.one img { width: min(62%, 320px); border-radius: 30px; }
.stage .monument { aspect-ratio: 1; max-width: 420px; margin: 0 auto; display: grid; place-items: center; border-radius: 48px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--accent) 34%, var(--paper-2))); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.stage .monument .icon { --s: 58%; aspect-ratio: 1; height: auto; margin: 0; }
.stage .banner { border-radius: 22px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(30,15,0,.6); }

.p-features { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.p-features .head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.p-features h2 { font-size: clamp(32px, 4vw, 48px); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fgrid > div { padding: 28px 28px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.fgrid > div:nth-child(3n+1) { padding-left: 0; }
.fgrid > div:nth-child(3n) { border-right: 0; padding-right: 0; }
.fgrid .k { font: 500 12px/1 var(--mono); color: var(--accent); }
.fgrid h3 { font-size: 24px; margin: 14px 0 8px; line-height: 1.15; }
.fgrid p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > div:nth-child(n) { padding: 26px 24px 28px; border-right: 1px solid var(--line); }
  .fgrid > div:nth-child(odd) { padding-left: 0; }
  .fgrid > div:nth-child(even) { border-right: 0; padding-right: 0; }
}
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } .fgrid > div:nth-child(n) { padding: 24px 0 26px; border-right: 0; } }

.note { margin-top: 40px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); color: var(--ink-2); }
.note svg { flex: none; color: var(--accent); margin-top: 2px; }

.facts { padding: 0 0 clamp(56px, 8vw, 96px); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fact h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.fact p, .fact ul { margin: 0; font-size: 16px; }
.fact ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.fact a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fact a:hover { color: var(--accent); text-decoration-color: currentColor; }
@media (max-width: 820px) { .facts .wrap { grid-template-columns: 1fr; } }

.more-apps { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 112px); background: var(--paper-2); border-top: 1px solid var(--line); }
.more-apps .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 20px; }
.more-apps h2 { font-size: clamp(30px, 3.6vw, 44px); }
.more-apps .all { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--brand); padding-bottom: 2px; white-space: nowrap; }
.more-apps .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.more-apps .card { flex-direction: column; gap: 16px; }
.more-apps .card .icon { --s: 56px; }
.more-apps .card h3 { font-size: 22px; }

/* ——— Editions (multi-SKU products) ——— */
.editions { padding: 0 0 clamp(56px, 8vw, 96px); }
.editions .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.editions h2 { font-size: clamp(32px, 4vw, 48px); }
.editions .head p { margin: 0; color: var(--ink-3); max-width: 30em; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 12px; box-shadow: var(--shadow-card); }
.ed-group .eyebrow { margin-bottom: 12px; color: var(--accent); }
.ed-group h3 { font-size: 28px; }
.ed-note { color: var(--ink-2); margin: 10px 0 14px; font-size: 15.5px; }
.ed-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.ed-name { font-weight: 600; font-size: 17px; }
.ed-meta { grid-column: 1; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.ed-cta { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); transition: all .15s; white-space: nowrap; }
.ed-row:hover .ed-cta { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ——— Reveal on scroll ——— */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.load > * { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.load > *:nth-child(2) { animation-delay: .08s; } .load > *:nth-child(3) { animation-delay: .16s; } .load > *:nth-child(4) { animation-delay: .24s; } .load > *:nth-child(5) { animation-delay: .32s; } .load > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ——— Product page: richer sections ——— */
.p-id { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.p-hero .p-id .icon { margin-bottom: 0; }
.status { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.sec-head { margin-bottom: 36px; max-width: 44em; }
.sec-head h2, .faq h2 { font-size: clamp(32px, 4vw, 48px); }
.privacy h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; }
.sec-head .eyebrow, .privacy .eyebrow, .faq .eyebrow { color: var(--accent); }

/* frames for screenshots */
.frame { position: relative; }
.frame img { width: 100%; display: block; }
.f-window .frame, .frame.f-window, .frame.f-narrow { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 40px 70px -40px rgba(30,20,10,.5), 0 0 0 1px rgba(0,0,0,.07); }
.frame.f-cutout img { width: 106%; max-width: none; margin: -3%; }
.frame.f-phone { border-radius: 26px; overflow: hidden; box-shadow: 0 36px 60px -32px rgba(30,20,10,.55), 0 0 0 1px rgba(0,0,0,.08); background: #fff; }
.stage .frame.f-phone { max-width: 320px; margin: 0 auto; }
.stage .phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.stage .phones .frame { width: min(46%, 300px); }
.stage .phones .frame:nth-child(2) { margin-top: 48px; }
.stage .phones.one .frame { width: min(64%, 320px); }
.stage .frame.f-narrow { max-width: 420px; margin: 0 auto; }

/* highlights */
.hl { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 60%, transparent); }
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hl-grid > div { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hl-grid > div:first-child { padding-left: 0; }
.hl-grid > div:last-child { border-right: 0; }
.hl b { font: 500 clamp(22px, 2.3vw, 28px)/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.hl span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .hl-grid { grid-template-columns: 1fr; } .hl-grid > div { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); } .hl-grid > div:last-child { border-bottom: 0; } }

/* how it works */
.how { padding: clamp(64px, 8vw, 104px) 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps.n4 { grid-template-columns: repeat(4, 1fr); }
.steps.n3 { grid-template-columns: repeat(3, 1fr); }
.steps li { position: relative; padding: 26px 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 16px/1 var(--sans); margin-bottom: 18px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) { .steps.n4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps.n4, .steps.n3 { grid-template-columns: 1fr; } }

/* gallery */
.gallery { padding: clamp(64px, 8vw, 104px) 0 0; }
.g-note { margin: 12px 0 0; font: 500 12.5px/1.4 var(--mono); color: var(--ink-3); }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; align-items: start; }
.g-grid figure { margin: 0; }
.g-grid figure.g-narrow, .g-grid figure.g-phone { justify-self: center; width: min(100%, 360px); }
.g-grid figure.g-phone { width: min(100%, 300px); }
.g-grid figcaption { margin-top: 18px; color: var(--ink-2); font-size: 15px; max-width: 34em; }
.g-lead { margin: 40px 0 0; color: var(--ink-3); font-size: 14.5px; }
.g-lead b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) { .g-grid { grid-template-columns: 1fr; } }
.p-features { margin-top: clamp(64px, 8vw, 104px); }

/* privacy */
.privacy { padding: clamp(64px, 8vw, 104px) 0; background: color-mix(in srgb, var(--accent) 6%, var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pv-list li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.pv-list li:first-child { border-top: 0; padding-top: 4px; }
.pv-list svg { flex: none; color: var(--accent); margin-top: 3px; }
.pv-list h3 { font-size: 22px; margin-bottom: 6px; }
.pv-list p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .privacy .wrap { grid-template-columns: 1fr; } }

/* keyboard */
.keys { padding: clamp(64px, 8vw, 104px) 0 0; }
.kb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 28px; box-shadow: var(--shadow-card); }
.kb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.kb-row:nth-last-child(-n+2) { border-bottom: 0; }
.kb-keys { display: flex; gap: 6px; flex: none; order: 2; }
kbd { font: 500 13px/1 var(--mono); padding: 6px 8px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) { .kb { grid-template-columns: 1fr; } .kb-row:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* FAQ */
.faq { padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 500 20px/1.3 var(--serif); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .25s, background .2s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink-2); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.qa details[open] summary i { background: var(--accent); border-color: var(--accent); }
.qa details[open] summary i::before, .qa details[open] summary i::after { background: #fff; }
.qa details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa details p { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }

/* external cards */
@media (max-width: 380px) { #games .card { gap: 14px; padding: 20px; } #games .card .icon { --s: 56px; } }

.card .site { display: inline-block; margin-top: 12px; font: 500 12px/1 var(--mono); color: var(--accent); }
.stage .phones .frame img, .stage .phones.one .frame img { width: 100%; border-radius: 0; box-shadow: none; margin: 0; }
