/* MochiBox website — design D "Hybrid": scrapbook warmth, digicam structure, mochi color.
   Colors follow Shared/MochiTheme.swift. No pure black, no industrial greys. */

@font-face { font-family: "Caprasimo"; src: url("/assets/fonts/caprasimo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("/assets/fonts/gochi-hand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/assets/fonts/vt323-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --cream: #FAF9F6;
  --paper: #FFFFFF;
  --dot: #E7E1D6;
  --lilac: #C8B8D6;
  --lilac-soft: #ECE5F4;
  --violet: #8B74A3;
  --violet-ink: #6B5683;
  --plum: #2D2A32;
  --plum-2: #3A3540;
  --plum-soft: #5C5663;
  --blush: #F3D6DC;
  --butter: #F6E3A1;
  --mint: #CDEBDD;
  --amber: #F2B65A;
  --line: #E2DACC;
  --shadow: 0 10px 26px rgba(45, 42, 50, 0.12);
  --shadow-sm: 0 4px 14px rgba(45, 42, 50, 0.07);
  --display: "Caprasimo", "Georgia", serif;
  --body: "Figtree", ui-rounded, "Avenir Next", "Segoe UI", sans-serif;
  --hand: "Gochi Hand", "Marker Felt", cursive;
  --pixel: "VT323", ui-monospace, monospace;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--plum);
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.3px; }
h3 { font-family: var(--body); font-weight: 800; font-size: 19px; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: var(--cream); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font-family: var(--display); font-size: 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-weight: 600; font-size: 15px; }
.nav a { padding: 11px 12px; text-decoration: none; color: var(--plum); border-radius: 999px; }
.nav a:hover { background: var(--lilac-soft); }
.nav a[aria-current="page"] { background: var(--lilac-soft); }
.nav .nav-cta { margin-left: 6px; background: var(--plum); color: var(--cream); padding: 11px 18px; }
.nav .nav-cta:hover { background: var(--plum-2); color: var(--cream); }

/* Buttons */
.btn-store { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 14px 20px; border-radius: 999px; background: var(--plum); color: var(--cream); text-decoration: none; font-weight: 800; font-size: 17px; line-height: 1.2; box-shadow: 0 8px 18px rgba(45,42,50,0.18); transition: transform .15s ease, background .15s ease; }
.btn-store:hover { background: var(--plum-2); color: var(--cream); transform: translateY(-1px); }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-store small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.btn-soft { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--paper); color: var(--plum); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.btn-soft:hover { background: var(--lilac-soft); color: var(--plum); }
.more { font-weight: 700; }

/* Hero */
.hero { padding: 36px 0 76px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 5.6vw, 68px); }
@media (min-width: 641px) { .hero h1 .nw { white-space: nowrap; } }
.hero .lede { margin-top: 22px; font-size: 20px; line-height: 1.6; max-width: 540px; }
.hero .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero .price { font-weight: 600; font-size: 15px; line-height: 1.45; }
.pills { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.pills li { padding: 7px 14px; border-radius: 999px; }
.pills li:nth-child(4n+1) { background: var(--lilac-soft); }
.pills li:nth-child(4n+2) { background: var(--blush); }
.pills li:nth-child(4n+3) { background: var(--mint); }
.pills li:nth-child(4n+4) { background: var(--butter); }
.hero-art { flex: 1 1 420px; min-width: 0; position: relative; max-width: 520px; margin: 0 auto; }
.hero-card { background: var(--paper); border-radius: 36px; padding: 10px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.hero-card img { border-radius: 28px; width: 100%; }
.tape { position: absolute; height: 30px; width: 112px; background: rgba(246, 227, 161, 0.86); box-shadow: 0 1px 2px rgba(45,42,50,0.08); }
.hero-art .tape { left: 38%; top: -14px; transform: rotate(-7deg); }
.hero-art .mascot { position: absolute; right: -18px; bottom: -36px; width: 118px; filter: drop-shadow(0 8px 14px rgba(45,42,50,0.18)); }

/* Page heads for inner pages */
.page-head { padding: 28px 0 44px; }
.page-head .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: end; justify-content: space-between; }
.crumbs { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.crumbs a { color: var(--plum-soft); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 60px); max-width: 780px; }
.page-head .lede { margin-top: 18px; font-size: 19px; max-width: 680px; }

/* Sections */
.section { padding: 76px 0; }
.section.tight { padding-top: 0; }
.band { background: var(--paper); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.band-lilac { background: var(--lilac-soft); }
.band-dark { background: var(--plum); color: var(--cream); }
.band-dark a { color: var(--lilac); }
.band-dark a:hover { color: var(--cream); }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: end; }
.sec-head h2 { flex: 1 1 460px; font-size: clamp(34px, 4.4vw, 48px); }
.sec-head p { flex: 1 1 360px; font-size: 17px; }
h2.h2 { font-size: clamp(34px, 4.4vw, 48px); }
.prose { max-width: 720px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 40px); margin-top: 52px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 6px; }
.prose ul { padding-left: 22px; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }

/* Film strip */
.filmstrip { margin-top: 36px; background: var(--plum); border-radius: 14px; padding: 16px 0; }
.filmstrip::before, .filmstrip::after { content: ""; display: block; height: 10px; margin: 0 14px; background-image: repeating-linear-gradient(90deg, var(--cream) 0 14px, transparent 14px 30px); opacity: .82; }
.filmstrip::before { margin-bottom: 12px; }
.filmstrip::after { margin-top: 12px; }
.frames { list-style: none; margin: 0; padding: 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.frame { background: var(--plum-2); border-radius: 8px; padding: 10px 10px 14px; color: var(--cream); }
.frame .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.frame .pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.frame .no { margin: 10px 0 0; font-family: var(--pixel); font-size: 19px; line-height: 1; color: var(--amber); }
.frame h3 { font-size: 17px; margin-top: 4px; }
.frame p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: #EDE6F7; }
.frame a { color: inherit; text-decoration: none; display: block; }
.frame a:hover h3 { text-decoration: underline; }
.frame { transition: transform .18s ease, box-shadow .18s ease; }
.frame:hover, .frame:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--amber); }
.frame a::after { content: "Compare ↔"; display: inline-block; margin-top: 8px; font-family: var(--pixel); font-size: 17px; letter-spacing: .5px; color: var(--amber); }

/* "Tap a Look" hint above the strip, and the slider button below it */
.strip-hint { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 999px; background: var(--butter); font-size: 16px; line-height: 1.4; }
.strip-hint svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--plum); color: var(--butter); }
.filmstrip { margin-top: 18px; }
.strip-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.strip-foot p { flex: 1 1 320px; margin: 0; }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--plum); color: var(--cream); text-decoration: none; font-weight: 800; font-size: 16px; box-shadow: 0 8px 18px rgba(45,42,50,0.18); transition: transform .15s ease, background .15s ease; }
.btn-dark:hover { background: var(--plum-2); color: var(--cream); transform: translateY(-1px); }

/* Split feature */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .shot { flex: 1 1 300px; min-width: 0; max-width: 380px; margin: 0 auto; }
.split > .copy { flex: 1 1 460px; min-width: 0; }
.phone { background: var(--paper); border-radius: 36px; padding: 9px; box-shadow: var(--shadow); }
.phone img { border-radius: 28px; width: 100%; }
.features { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; }
.features dt { font-weight: 800; font-size: 16px; }
.features dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }

/* Cards */
.cards { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: 28px; padding: 28px 30px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 21px; }
.card p { margin-top: 10px; font-size: 16px; }
.card .more { display: inline-block; margin-top: 14px; }

/* Spec rows */
.specs { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 0 56px; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px dashed rgba(45,42,50,0.25); }
.specs dt { font-weight: 800; }
.specs dd { margin: 0; text-align: right; }

/* Privacy */
.privacy-grid { display: flex; flex-wrap: wrap; gap: 44px; align-items: start; }
.privacy-grid > div { flex: 1 1 420px; min-width: 0; }
.privacy-grid h2 { font-size: clamp(40px, 5vw, 56px); }
.privacy-grid p { margin-top: 18px; font-size: 18px; color: #EDE6F7; }
.ticks { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ticks li { padding: 16px 18px; border: 1px solid rgba(200,184,214,0.34); border-radius: 16px; }

/* Steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; counter-reset: step; }
.steps > li { background: var(--paper); border-radius: 26px; padding: 12px 12px 22px; box-shadow: var(--shadow-sm); counter-increment: step; }
.steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.steps h3 { margin: 16px 10px 0; }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin: 6px 10px 0; font-size: 15px; line-height: 1.55; }
.hand { font-family: var(--hand); font-size: 24px; color: var(--violet-ink); display: inline-block; transform: rotate(-1.5deg); }

/* Long guide steps */
.guide { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.guide > li { counter-increment: g; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; padding: 40px 0; border-top: 2px dashed var(--line); }
.guide > li:first-child { border-top: 0; }
.guide .shot { flex: 0 1 300px; min-width: 0; margin: 0 auto; }
.guide .copy { flex: 1 1 380px; min-width: 0; }
.guide h2 { font-family: var(--body); font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.guide h2::before { content: counter(g); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 12px; border-radius: 50%; background: var(--butter); font-family: var(--display); font-weight: 400; font-size: 22px; vertical-align: 2px; }
.guide p { margin-top: 12px; }

/* Backup band */
.backup { background: var(--mint); border-radius: 28px; padding: 30px 34px; display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.backup h2 { font-size: 34px; }
.backup p { margin-top: 8px; font-size: 17px; }

/* FAQ */
.faq-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.faq-head img { width: 84px; }
.faq { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; padding: 0 24px; box-shadow: 0 3px 10px rgba(45,42,50,0.06); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 20px 28px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 600; color: var(--violet-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; font-size: 16px; line-height: 1.65; }
.faq details > div p + p { margin-top: 10px; }

/* Look detail (looks page) */
.look { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; padding: 48px 0; border-top: 2px dashed var(--line); }
.look:first-of-type { border-top: 0; }
.look .compare { flex: 1 1 420px; min-width: 0; }
.look .copy { flex: 1 1 340px; min-width: 0; }
.look .family { font-family: var(--pixel); font-size: 21px; color: var(--violet-ink); letter-spacing: 1px; }
.look h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 4px; }
.look .tags { margin-top: 10px; font-weight: 600; color: var(--plum-soft); }
.look p.desc { margin-top: 14px; }
.look .good { margin-top: 14px; font-size: 15px; }

/* Before/after compare: works as two stacked images without JS; slider enhances it. */
.compare-box { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); aspect-ratio: 900 / 660; }
.compare-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-box .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-box .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--cream); box-shadow: 0 0 0 1px rgba(45,42,50,.15); pointer-events: none; }
.compare-box .divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--cream); box-shadow: var(--shadow-sm); background-image: linear-gradient(90deg, transparent 13px, var(--violet) 13px 15px, transparent 15px 23px, var(--violet) 23px 25px, transparent 25px); }
.compare-box .label { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(45,42,50,.72); color: var(--cream); font-size: 13px; font-weight: 700; pointer-events: none; }
.compare-box .label.l { left: 12px; }
.compare-box .label.r { right: 12px; }
.compare-box input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-box input[type="range"]:focus-visible + .divider::after { outline: 3px solid var(--violet); outline-offset: 2px; }

.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 15px; border-radius: 999px; background: var(--lilac-soft); font-weight: 600; font-size: 15px; }
.chips.butter li { background: var(--butter); }
.chips.blush li { background: var(--blush); }
.chips.mint li { background: var(--mint); }
.group-label { margin-top: 22px; font-weight: 800; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: var(--plum-soft); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 28px 40px; margin-top: 32px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; text-align: center; color: var(--plum-soft); }

.note { margin-top: 22px; padding: 16px 20px; border-radius: 18px; background: var(--butter); font-size: 15px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4vw, 44px); }
.cta-band p { margin: 12px auto 26px; max-width: 560px; }
.cta-band img.mascot { width: 120px; margin: 0 auto 18px; }

/* Footer */
.site-footer { border-top: 2px dashed var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; padding-top: 40px; padding-bottom: 52px; font-size: 14px; line-height: 1.7; }
.site-footer .name { font-weight: 800; font-size: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; max-width: 560px; }

/* Load-in: one orchestrated reveal on the first screen. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .14s; } .rise.d3 { animation-delay: .22s; } .rise.d4 { animation-delay: .30s; } .rise.d5 { animation-delay: .40s; }
  .hero-card.rise { animation-name: rise-tilt; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes rise-tilt { from { opacity: 0; transform: translateY(18px) rotate(1deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
  .hero-art .mascot { animation: bob 4.5s ease-in-out 1s infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -6px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 10px 11px; }
  .nav .nav-cta { display: none; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 10px; }
  .frame { padding: 7px 7px 11px; }
  .frame p { font-size: 13px; }
  .frame h3 { font-size: 15px; }
  .split > .shot, .guide .shot { max-width: 280px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .shots .phone { border-radius: 24px; padding: 6px; }
  .shots .phone img { border-radius: 19px; }
  .hero { padding-top: 12px; }
  .hero .lede { font-size: 18px; }
  .hero-art .mascot { width: 84px; right: -4px; bottom: -28px; }
  .section { padding: 56px 0; }
  .specs { grid-template-columns: 1fr; }
  .specs div { flex-direction: column; gap: 2px; }
  .specs dd { text-align: left; }
  .backup { padding: 24px; }
  .faq details { padding: 0 18px; }
}
@media (max-width: 640px) {
  .strip-hint { border-radius: 20px; font-size: 15px; }
  .frame a::after { font-size: 15px; }
}
