/* iFoldy — landing page.
   Light is cream paper, dark is espresso leather. Tokens live on :root / .dark. */

:root {
  --bg: #F5EFE4;
  --bg-2: #EDE4D4;
  --surface: #FBF7F0;
  --ink: #2B1D14;
  --ink-2: #5E4A3B;
  --ink-3: #8A7564;
  --line: rgba(60, 38, 22, .14);
  --accent: #A85A2A;          /* cognac */
  --accent-ink: #8C4517;
  --accent-soft: rgba(168, 90, 42, .12);
  --stitch: rgba(120, 72, 36, .38);
  --leather: #8B4A24;
  --leather-2: #6B3517;
  --shadow: 0 1px 2px rgba(43, 29, 20, .06), 0 12px 32px -12px rgba(43, 29, 20, .22);
  --shadow-lg: 0 2px 4px rgba(43, 29, 20, .08), 0 40px 80px -30px rgba(43, 29, 20, .45);
  --radius: 22px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

.dark {
  --bg: #1A120D;
  --bg-2: #22170F;
  --surface: #2A1C13;
  --ink: #F3E9DC;
  --ink-2: #CDBBA7;
  --ink-3: #9C8875;
  --line: rgba(243, 233, 220, .12);
  --accent: #E0965E;
  --accent-ink: #F0AD78;
  --accent-soft: rgba(224, 150, 94, .14);
  --stitch: rgba(232, 190, 150, .32);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint paper grain; turns into leather pores in dark. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .28;
}
.dark body::before { opacity: .5; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.005em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 16px; }
.tiny { font-size: .82rem; }
.muted { color: var(--ink-3); }
.accent { color: var(--accent); font-style: italic; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }

/* ---------- Nav ---------- */
#nav-top { position: absolute; top: 0; height: 1px; width: 1px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.brand img { border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.nav-right { display: flex; align-items: center; gap: .25rem; }
.nav-link { color: var(--ink-2); text-decoration: none; font-size: .93rem; padding: .45rem .7rem; border-radius: 999px; }
.nav-link:hover { color: var(--ink); background: var(--accent-soft); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 820px) { .hide-sm { display: none; } }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { color: var(--bg); transform: translateY(-1px); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-ink); }
.btn-secondary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem 1.2rem .6rem 1rem; border-radius: 14px;
  background: var(--ink); color: var(--bg); text-decoration: none; box-shadow: var(--shadow);
}
.store-badge .ico { width: 1.7rem; height: 1.7rem; }
.store-badge small { display: block; font-size: .7rem; opacity: .75; line-height: 1.1; }
.store-badge b { display: block; font: 600 1.15rem/1.15 var(--sans); }
.store-badge:hover { color: var(--bg); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; font-size: .86rem; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pill .ico { color: var(--accent); width: 1.05rem; height: 1.05rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; border-top: 1.5px dashed currentColor; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-icon { width: 72px; height: 72px; border-radius: 16px; }
}

/* The phone in the hero: the cover lies over the open interior and slides up. */
.phone-demo { display: grid; justify-items: center; gap: 1.1rem; }
.phone {
  position: relative;
  width: min(330px, 72vw);
  aspect-ratio: 1206 / 2622;
  border-radius: 15% / 7%;
  padding: 2.6%;
  background: linear-gradient(145deg, #3a332e, #121010 60%, #2a2522);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.9%; overflow: hidden; background: #2a1a10; isolation: isolate; }
.phone .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; z-index: 3; top: 2.4%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; }

.cover {
  position: absolute; inset: 0; z-index: 2;
  border: 0; padding: 0; margin: 0; background: none; cursor: grab;
  touch-action: none;
  transition: transform .9s cubic-bezier(.22, 1.18, .36, 1);
  will-change: transform;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.cover img:not(.on) { opacity: 0; }
.cover::after { /* the cover's lower edge throws a shadow onto the pockets */
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent);
}
.cover.dragging { transition: none; cursor: grabbing; }
.phone-demo.open .cover { transform: translateY(-101%); }
@media (prefers-reduced-motion: reduce) { .cover { transition: none; } }

.demo-hint { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink-3); }
.demo-hint .ico { color: var(--accent); }

.swatches { display: flex; gap: .55rem; }
.swatch {
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 1px 3px rgba(0, 0, 0, .3);
  outline: 1.5px dashed transparent; outline-offset: 3px;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { outline-color: var(--accent); }

/* iPhone Duo frames (ShotForge artwork). The screen sits under the frame's opening;
   offsets come from the SVGs' opening rects: inner 2853×2007 at 75,75 of 3003×2157,
   outer 1398×2034 at 109,109 of 1616×2252. */
.duo { position: relative; aspect-ratio: 3003 / 2157; filter: drop-shadow(0 30px 40px rgba(20, 10, 4, .35)); }
.duo > .screen {
  position: absolute; left: 2.4975%; top: 3.477%; width: 95.005%; height: 93.046%;
  border-radius: 4.8% / 6.83%; overflow: hidden; background: #1c120c;
}
.duo > .screen > img, .duo > .screen > video { width: 100%; height: 100%; object-fit: cover; }
.duo::after, .duo-outer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("frame-duo-inner.svg") center / 100% 100% no-repeat;
}
.duo-outer { position: relative; aspect-ratio: 1616 / 2252; filter: drop-shadow(0 24px 30px rgba(20, 10, 4, .4)); }
.duo-outer::after { background-image: url("frame-duo-outer.svg"); }
.duo-outer > .screen {
  position: absolute; left: 6.745%; top: 4.84%; width: 86.51%; height: 90.32%;
  border-radius: 8.94% / 6.15%; overflow: hidden; background: #1c120c;
}
.duo-outer > .screen > img { width: 100%; height: 100%; object-fit: cover; }

/* Hero: the open Duo, with the folded one leaning in front of it. */
.duo-hero { position: relative; padding: 0 0 14% 0; }
.duo-hero .duo-outer { position: absolute; width: 30%; left: -6%; bottom: 0; transform: rotate(-6deg); }
@media (max-width: 880px) { .duo-hero { margin-inline: 4% 0; } .duo-hero .duo-outer { left: -3%; } }

/* The fold recording has its own grey stage; the panel matches it. */
.fold-stage { background: #272727; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.fold-stage video { width: 100%; aspect-ratio: 4 / 3; }
.fold-stage figcaption { padding: .8rem 1.2rem 1rem; color: #b9b2aa; font-size: .88rem; }

.duo-pair { position: relative; padding-bottom: 10%; }
.duo-pair .duo:nth-child(2) { position: absolute; width: 62%; right: 0; bottom: 0; }
.duo-pair .duo:nth-child(1) { width: 86%; }

.duo-covers { display: flex; align-items: flex-end; justify-content: center; gap: clamp(1rem, 4vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.duo-covers .duo { width: min(560px, 60%); }
.duo-covers .duo-outer { width: min(240px, 26%); }

/* Material fills, reused in the materials grid. */
.m-cognac   { background: radial-gradient(circle at 30% 25%, #B86A3A, #8B4A24 60%, #6B3517); }
.m-espresso { background: radial-gradient(circle at 30% 25%, #6A4634, #48301F 60%, #2E1D12); }
.m-bordeaux { background: radial-gradient(circle at 30% 25%, #8E3446, #6B1F30 60%, #4A1220); }
.m-forest   { background: radial-gradient(circle at 30% 25%, #3E6B4E, #2A4D37 60%, #1A3324); }
.m-sand     { background: radial-gradient(circle at 30% 25%, #DCC29C, #C6A77C 60%, #A78A62); }
.m-olive    { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 4px), repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 2px, transparent 2px 4px), #6E7148; }
.m-navy     { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 4px), repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 2px, transparent 2px 4px), #2C3A55; }
.m-carbon   { background: repeating-linear-gradient(45deg, #2a2d32 0 3px, #1a1c20 3px 6px), #222; }

/* ---------- Sections ---------- */
section.block { padding: clamp(4rem, 9vw, 7.5rem) 0; }
section.block.tinted { background: var(--bg-2); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.12rem; color: var(--ink-2); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.feature-list { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; }
.feature-list .badge { grid-row: span 2; }
.feature-list h3 { font-size: 1.12rem; }
.feature-list p { color: var(--ink-2); font-size: .98rem; }

.badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.badge .ico { width: 1.35rem; height: 1.35rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.gallery figure { margin: 0; display: grid; gap: .9rem; align-content: start; }
.gallery figcaption { font-size: .95rem; color: var(--ink-2); }
.gallery figcaption b { color: var(--ink); font-weight: 600; display: block; font-family: var(--serif); font-size: 1.05rem; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr; } }

/* Materials */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.material {
  position: relative; border-radius: 18px; aspect-ratio: 4 / 3; padding: 1rem; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .15);
  overflow: hidden;
}
.material::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(255, 255, 255, .32); border-radius: 11px; pointer-events: none; }
.material b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.material span { font-size: .8rem; opacity: .85; position: relative; }
.material.m-sand { color: #3a2a18; }
.material.m-sand::before { border-color: rgba(60, 40, 20, .3); }
.material.m-sand b { text-shadow: none; }
@media (max-width: 880px) { .materials { grid-template-columns: repeat(2, 1fr); } .material { aspect-ratio: 2 / 1; } }

/* Detail cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.6rem;
  display: grid; gap: .7rem; align-content: start;
  box-shadow: var(--shadow);
}
.card::after { content: ""; position: absolute; inset: 7px; border: 1.2px dashed var(--stitch); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .7; }
.card p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Privacy: a leather panel in both themes. */
.leather-panel {
  position: relative; border-radius: 30px; padding: clamp(2rem, 5vw, 4rem); color: #F6E8D8;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 210, 160, .18), transparent 60%),
    linear-gradient(160deg, #8B4A24, #5E2D12);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .15);
  overflow: hidden;
}
.leather-panel::before { content: ""; position: absolute; inset: 14px; border: 1.8px dashed rgba(255, 225, 190, .35); border-radius: 20px; pointer-events: none; }
.leather-panel h2 { color: #FFF3E6; }
.leather-panel .eyebrow { color: #F2C39A; }
.leather-panel p { color: rgba(246, 232, 216, .86); }
.leather-panel .grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 2.5rem; }
.leather-panel .grid div { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.leather-panel .grid .ico { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: #F2C39A; margin-top: .15rem; }
.leather-panel h3 { color: #FFF3E6; font-size: 1.12rem; }
.leather-panel a { color: #FFD6B0; }
@media (max-width: 760px) { .leather-panel .grid { grid-template-columns: 1fr; } }

/* Requirements / CTA */
.cta { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.cta .hero-icon { width: 112px; height: 112px; border-radius: 25px; }
.req { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* ---------- Footer ---------- */
.footer { padding: 3rem 0 3.5rem; border-top: 1px dashed var(--stitch); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 1rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--ink-3); max-width: 60rem; }

/* ---------- Document pages (privacy, support, legal) ---------- */
.doc { width: min(780px, 100% - 32px); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.doc-meta { color: var(--ink-3); margin-bottom: 2.5rem; }
.doc section { margin-top: 2.4rem; }
.doc h2 { font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.doc h2 .ico { color: var(--accent); }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: .8rem; }
.doc ul { padding-left: 1.2rem; margin: .8rem 0 0; display: grid; gap: .45rem; }
.doc strong { color: var(--ink); }
.doc .summary { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.doc .summary::after { content: ""; position: absolute; inset: 7px; border: 1.2px dashed var(--stitch); border-radius: 16px; pointer-events: none; }
.doc .summary h2 { margin-top: 0; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.doc dt { color: var(--ink); font-weight: 600; }
.doc dd { margin: 0; color: var(--ink-2); }
.doc details { background: var(--surface); border-radius: 16px; padding: 1rem 1.3rem; box-shadow: var(--shadow); }
.doc details + details { margin-top: .7rem; }
.doc summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.doc details p { margin-top: .7rem; }
.doc .back { margin-top: 3rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Sleeve contents under the gallery, and the personalization notes under the covers. */
.pockets-list { margin-top: clamp(2rem, 5vw, 3.5rem); }
.personal-list { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 880px) { .personal-list { grid-template-columns: 1fr; } }

/* Pro: a champagne ribbon on locked finishes and a small tag on Pro features, as in the app. */
.material.pro::after {
  content: "PRO"; position: absolute; top: 14px; right: -34px; width: 120px; transform: rotate(45deg);
  background: linear-gradient(90deg, #E9D5A8, #CFAF72); color: #3A2A14; text-align: center;
  font: 700 .62rem/1 var(--sans); letter-spacing: .16em; padding: .32rem 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.pro-tag {
  display: inline-block; vertical-align: .15em; margin-left: .35rem; padding: .18rem .45rem; border-radius: 6px;
  background: linear-gradient(90deg, #E9D5A8, #CFAF72); color: #3A2A14;
  font: 700 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.personal-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .personal-list { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plan { position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow); }
.plan::after { content: ""; position: absolute; inset: 7px; border: 1.2px dashed var(--stitch); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .7; }
.plan h3 { margin-bottom: .8rem; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.plan li { position: relative; padding-left: 1.4rem; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .55rem; height: .3rem; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan-pro { background: linear-gradient(160deg, #3A271B, #24170F); color: #F3E9DC; }
.plan-pro::after { border-color: rgba(233, 213, 168, .4); }
.plan-pro h3 { color: #E9D5A8; }
.plan-pro li { color: rgba(243, 233, 220, .86); }
.plan-pro li::before { border-color: #E9D5A8; }
.plans-note { color: var(--ink-3); margin-top: 1rem; }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* TestFlight sign-up */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-beta { color: var(--accent-ink); font-weight: 600; }
.beta {
  position: relative; width: min(560px, 100%); display: grid; gap: .8rem; text-align: left;
  background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow);
}
.beta::after { content: ""; position: absolute; inset: 7px; border: 1.2px dashed var(--stitch); border-radius: calc(var(--radius) - 6px); pointer-events: none; opacity: .7; }
.beta > * { position: relative; z-index: 1; }
.beta p { color: var(--ink-2); font-size: .97rem; }
.beta-row { display: flex; gap: .6rem; }
.beta input[type="email"] {
  flex: 1; min-width: 0; padding: .8rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 1rem/1.2 var(--sans);
}
.beta input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.beta button[disabled] { opacity: .6; cursor: progress; }
.beta-status:empty { display: none; }
.beta-status { font-weight: 600; }
.beta[data-state="done"] .beta-status { color: #3E7B4F; }
.dark .beta[data-state="done"] .beta-status { color: #8FD0A0; }
.beta[data-state="failed"] .beta-status { color: #B3412C; }
.dark .beta[data-state="failed"] .beta-status { color: #F09A84; }
@media (max-width: 480px) { .beta-row { flex-direction: column; } .beta-row .btn { justify-content: center; } }

/* Vintage teaser: the aged wallet is revealed right of the line; the range covers the screen. */
.wear-block { margin-top: clamp(4rem, 9vw, 6.5rem); }
.wear-block .section-head { margin-bottom: 1.6rem; }
.wear { --cut: 50%; }
.wear .screen > img, .wear-aged img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wear-aged { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); }
.wear-aged img { transition: opacity .35s; }
.wear-aged img.swapping { opacity: 0; }
.wear-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: rgba(255, 244, 228, .9); box-shadow: 0 0 10px rgba(0, 0, 0, .45); pointer-events: none; }
.wear-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%);
  border-radius: 999px; background: rgba(255, 244, 228, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E3A1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.wear-tag { position: absolute; top: 5%; padding: .3rem .65rem; border-radius: 999px; background: rgba(26, 18, 13, .62); color: #F6E8D8; font: 600 .74rem/1 var(--sans); letter-spacing: .04em; pointer-events: none; backdrop-filter: blur(4px); }
.wear-tag-l { left: 4%; }
.wear-tag-r { right: 4%; }
.wear-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.wear:has(.wear-range:focus-visible) .wear-line::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.wear-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.wear-chips button {
  padding: .5rem .95rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink-2); font: 600 .9rem/1 var(--sans); box-shadow: inset 0 0 0 1px var(--line);
}
.wear-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
