/* Landing page (light theme). Self-contained (does not load app.css) so studio/back-office styles never fight it. */
:root {
  color-scheme: light;
  --mint: #e5f0ec;       /* the "table" the prints sit on */
  --mint-2: #d6e7e1;
  --teal: #1e6f6a;
  --teal-deep: #17403c;
  --cta: #c2532f;
  --cta-hover: #ab4626;
  --ink: #22302d;
  --ink-2: #52605c;
  --ink-3: #7f8b87;
  --paper: #fffdfa;
  --blush: #fcefe8;
  --shelf: #f4eee6;
  --line: #e2dcd2;
  --line-mint: #c9ddd6;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Leelawadee UI', Tahoma, system-ui, sans-serif;
  --hand: 'Sriracha', 'IBM Plex Sans Thai', 'Noto Sans Thai', cursive;
  --ppi: 22;             /* CSS px per print inch in the size comparison */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.3; letter-spacing: -.005em; color: var(--teal-deep); }
h3 { font-size: 1.125rem; line-height: 1.45; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img, canvas, video { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
[hidden] { display: none !important; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--teal-deep); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 6px 16px rgba(194, 83, 47, .22); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-ghost { border-color: var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn-ghost:hover { background: rgba(23, 64, 60, .06); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .95rem; border-radius: 10px; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 250, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; font-size: 1.05rem; color: var(--teal-deep); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--cta); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.nav-links { margin-left: auto; display: none; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; font-size: .97rem; }
.nav-links a:hover { color: var(--ink); background: var(--mint); }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) { .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }

/* ---------- hero ---------- */
.hero { background: var(--mint); color: var(--ink); overflow: hidden; position: relative; }
.hero::before { /* a pool of daylight on the table, behind the prints */
  content: ''; position: absolute; width: 920px; height: 920px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 28px; padding-top: 40px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); line-height: 1.2; letter-spacing: -.012em; font-weight: 700; color: var(--teal-deep); }
.hero .lead { margin-top: 18px; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.75; color: var(--ink-2); max-width: 34em; }
.hero .actions { margin-top: 28px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg) translateY(-2px); flex: none; }
@media (min-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 72px; min-height: min(760px, calc(100vh - 62px)); }
}

/* stage: a print lying on the table + the phone that is looking at it */
.stage { margin: 0 auto; width: 100%; max-width: 600px; position: relative; aspect-ratio: 1 / 1.06; container-type: inline-size; }
.print-card { position: absolute; left: 1%; top: 12%; width: 49%; transform: rotate(-5deg); background: #f4ece0; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(23,64,60,.18), 0 12px 26px rgba(23,64,60,.16), 0 30px 60px rgba(23,64,60,.12); }
.print-card canvas { width: 100%; height: auto; border-radius: 2px; aspect-ratio: 2 / 3; }

.phone { position: absolute; left: 53%; top: 4%; width: 40%; aspect-ratio: 9 / 19.2; transform: rotate(4deg); border-radius: 15% / 7.1%;
  background: linear-gradient(145deg, #4a4a4e, #18181b 40%); padding: 2.4%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 22px 50px rgba(23,64,60,.28), 0 4px 10px rgba(23,64,60,.18); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.9%; overflow: hidden; background: #d5e6e1; }
.island { position: absolute; left: 50%; top: 2.2%; width: 30%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 3; }
.cam { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 40%, #f1f7f5, #cfe2dc 75%); } /* the camera sees the same light table */
.cam-print { position: absolute; left: 9%; width: 82%; top: 15%; aspect-ratio: 2 / 3; transform: rotate(-3deg); background: #f4ece0; box-shadow: 0 8px 18px rgba(23,64,60,.22); }
.cam-print > canvas { width: 100%; height: 100%; }
.ar-layer { position: absolute; opacity: 0; transition: opacity .6s; }
.ar-layer::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px #fff, 0 0 16px 4px rgba(255,255,255,.85); }
.burst { position: absolute; display: grid; place-items: center; pointer-events: none; }
.burst b { width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; opacity: 0; }
.burst b::before { content: ''; width: 34%; height: 40%; margin-left: 10%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.toast { position: absolute; left: 50%; top: 8.5%; transform: translateX(-50%); white-space: nowrap; background: var(--cta); color: #fff;
  font-size: 2.1cqw; font-weight: 600; padding: .5cqw 1.8cqw; border-radius: 999px; z-index: 2; opacity: 0; pointer-events: none; }
.ar-layer canvas, .ar-layer video { width: 100%; height: 100%; object-fit: cover; }
.reticle { position: absolute; opacity: 0; transform: scale(1.22); pointer-events: none; }
.reticle i { position: absolute; width: 20%; height: 14%; border: 0 solid #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.55)); }
.reticle i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 6px; }
.reticle i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 6px; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 6px; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 6px; }
.hint { position: absolute; left: 50%; top: 8.5%; transform: translateX(-50%); white-space: nowrap; background: rgba(0,0,0,.55); color: #fff;
  font-size: 2.1cqw; padding: .5cqw 1.8cqw; border-radius: 999px; z-index: 2; transition: opacity .3s; }
.ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 4% 6%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  opacity: 0; transform: translateY(6%); transition: opacity .45s, transform .45s; }
.seek { display: flex; align-items: center; gap: 4%; color: #fff; font-size: 1.7cqw; font-variant-numeric: tabular-nums; padding-top: 16%; }
.seek .bar { flex: 1; height: .55cqw; border-radius: 9px; background: rgba(255,255,255,.35); overflow: hidden; }
.seek .bar i { display: block; height: 100%; width: 0; background: #fff; }
.btns { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 5%; }
.pb { appearance: none; border: 0; background: none; padding: 0; color: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; gap: .6cqw; }
.pb b { width: 6.2cqw; height: 6.2cqw; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 2.6cqw; font-weight: 400; line-height: 1; }
.pb.big b { width: 7.6cqw; height: 7.6cqw; background: rgba(255,255,255,.3); font-size: 3cqw; }
.pb small { font-size: 1.35cqw; color: rgba(255,255,255,.9); white-space: nowrap; }
.pb.rec b i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #ff3b30; }
button.pb { cursor: pointer; }
button.pb:focus-visible { outline-offset: 1px; }

/* hand-written notes, like writing on the back of a photo */
.note { position: absolute; margin: 0; font-family: var(--hand); color: var(--teal); font-size: clamp(.95rem, 3.1cqw, 1.3rem); line-height: 1.35; display: none; }
.note svg { width: 11cqw; height: auto; display: block; }
.note-print { left: 4%; top: 0; }
.note-print svg { margin: 1% 0 0 18%; }
.note-phone { right: 0; bottom: 0; text-align: right; }
.note-phone svg { margin: 0 0 1% auto; transform: translateX(-30%); }
@media (min-width: 520px) { .note { display: block; } }

/* demo loop: scanning → locked (video pops in on the photo) → playing → back to the still print */
.stage.demo .cam-print { animation: handheld 7s ease-in-out infinite alternate; }
.stage.is-scanning .reticle { opacity: 1; animation: seek-pulse 1s ease-in-out infinite; }
.stage.is-live .reticle { opacity: 0; transform: scale(1); transition: transform .35s ease-out, opacity .4s .3s; }
.stage.is-live .ar-layer { opacity: 1; animation: pop-in .7s cubic-bezier(.2, .9, .3, 1.25); }
.stage.is-live .ar-layer::after { animation: ring 1.1s ease-out; }
.stage.is-live .burst b { animation: burst .95s ease-out forwards; }
.stage.is-live .toast { animation: toast 2.6s ease forwards; }
.stage.is-live .hint, .stage.is-ending .hint { opacity: 0; }
.stage.is-live .ui { opacity: 1; transform: none; pointer-events: auto; }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.9); filter: brightness(1.6); } 55% { opacity: 1; transform: scale(1.05); filter: brightness(1.12); } 100% { transform: none; filter: none; } }
@keyframes ring { 0% { opacity: 1; } 100% { opacity: 0; box-shadow: 0 0 0 7px rgba(255,255,255,0), 0 0 30px 12px rgba(255,255,255,0); } }
@keyframes burst { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -40%); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes seek-pulse { 50% { transform: scale(1.14); } }
@keyframes handheld {
  0%   { transform: rotate(-3deg) translate(0, 0); }
  35%  { transform: rotate(-1.4deg) translate(-2.2%, 1.6%) scale(1.03); }
  70%  { transform: rotate(-4.2deg) translate(1.8%, -1%) scale(.98); }
  100% { transform: rotate(-2.4deg) translate(-.8%, 1.2%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .stage .cam-print, .stage .ar-layer, .stage .ar-layer::after, .stage .burst b, .stage .toast { animation: none !important; }
  .ui, .hint, .reticle, .ar-layer { transition: none !important; }
}

/* ---------- steps ---------- */
.steps { background: var(--blush); padding: 72px 0 80px; }
.step-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding-top: 58px; max-width: 30em; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--teal-deep); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; }
.step-list p { margin-top: 6px; color: var(--ink-2); }
/* phones: one column, centred (the number sits above the text, in the middle) */
@media (max-width: 639px) {
  .steps h2 { text-align: center; }
  .step-list li { text-align: center; margin-inline: auto; }
  .step-list li::before { right: 0; margin-inline: auto; }
}
@media (min-width: 640px) { .step-list { grid-template-columns: 1fr 1fr; gap: 36px 40px; } }
@media (min-width: 1000px) {
  .step-list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step-list li::after { content: ''; position: absolute; left: 56px; right: -20px; top: 22px; border-top: 2px dashed #ecc9b9; }
  .step-list li:last-child::after { display: none; }
}

/* ---------- intro: a short letter ---------- */
.intro { position: relative; overflow: hidden; padding: 80px 0 88px; }
/* try-it phone: follows the mouse inside this section (drag it on touch screens); where its screen covers the print, the photo plays */
.intro.lens-on, .intro.lens-on * { cursor: none !important; }
.intro-live { position: absolute; pointer-events: none; clip-path: polygon(0 0, 0 0, 0 0); }
.lens-phone { position: absolute; left: 0; top: 0; z-index: 6; width: 132px; height: 272px; border: 7px solid #18181b; border-radius: 26px; pointer-events: none; will-change: transform;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1.5px #3a3a3e, 0 22px 44px rgba(23,64,60,.3); visibility: hidden; }
.lens-phone.ready { visibility: visible; }
.lens-phone::before { content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 10px; margin-left: -18px; border-radius: 99px; background: #000; z-index: 2; }
.lens-screen { position: absolute; inset: 0; border-radius: 19px; overflow: hidden;
  background: linear-gradient(140deg, rgba(255,255,255,.26), rgba(255,255,255,0) 36%), rgba(229,240,236,.06); }
.lens-pill { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; line-height: 1.4; font-weight: 600;
  padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; transition: background .25s; }
.lens-phone.seeing .lens-pill { background: var(--cta); }
.lens-phone.seeing .lens-screen { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.lens-phone.draggable { pointer-events: auto; touch-action: none; cursor: grab; }
.lens-phone.draggable.dragging { cursor: grabbing; }
@media (max-width: 600px) {
  .lens-phone { width: 104px; height: 214px; border-width: 6px; border-radius: 22px; }
  .lens-screen { border-radius: 16px; }
  .lens-pill { font-size: 10px; padding: 2px 7px; bottom: 8px; }
}
.intro-in { display: grid; gap: 44px; align-items: center; }
@media (min-width: 760px) { .intro-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; } }
@media (min-width: 1000px) { .intro-in { gap: 72px; } }
.letter { max-width: 34em; }
/* a print lying on the back of another photo, with a note written on it */
.keepsake { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / .96; margin: 0 auto; container-type: inline-size; }
.photo-back { position: absolute; right: 3%; top: 2%; width: 56%; aspect-ratio: 5 / 7; transform: rotate(7deg); background: #f8f2e8;
  border-radius: 2px; box-shadow: 0 1px 2px rgba(60,40,20,.14), 0 10px 24px rgba(60,40,20,.12); padding: 10% 9%; }
.photo-back p { margin: 0; font-family: var(--hand); color: #34508f; font-size: 4.6cqw; line-height: 1.55; transform: rotate(-2deg); }
.photo-front { position: absolute; left: 1%; bottom: 2%; width: 72%; transform: rotate(-4deg); background: #f4ece0; border-radius: 2px; line-height: 0;
  box-shadow: 0 1px 2px rgba(60,40,20,.18), 0 14px 30px rgba(60,40,20,.16); }
.photo-front canvas { width: 100%; height: auto; aspect-ratio: 7 / 5; border-radius: 2px; }
.letter p { margin-top: 18px; font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); line-height: 1.95; color: var(--ink-2); }
.letter h2 + p { margin-top: 22px; }
.letter .sign { margin-top: 30px; font-family: var(--hand); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.5; color: var(--teal); }

/* ---------- sizes: prints drawn to scale, standing in one row ---------- */
.sizes { padding: 72px 0 80px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); max-width: 36em; }
.shelf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 18px; margin: 40px 0 28px; }
.size { margin: 0; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; border-radius: 4px; }
.size canvas { width: calc(var(--w) * var(--ppi) * 1px); height: auto; border-radius: 1px; background: #f4ece0;
  box-shadow: 0 1px 2px rgba(60,40,20,.14), 0 8px 18px rgba(60,40,20,.12);
  transition: transform .28s cubic-bezier(.2, .8, .25, 1.15), box-shadow .28s; }
.size .cap { margin-top: 14px; line-height: 1.45; }
.size .t { font-weight: 600; }
.size .s { color: var(--ink-3); font-size: .88rem; }
.size .p { margin-top: 4px; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--teal-deep); transition: color .2s; }
.size .go { margin-top: 6px; font-size: .9rem; font-weight: 600; color: var(--cta); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
/* hover / keyboard focus: the print is picked up off the table */
.size:hover canvas, .size:focus-visible canvas { transform: translateY(-16px) rotate(-1.2deg) scale(1.04);
  box-shadow: 0 2px 4px rgba(60,40,20,.1), 0 26px 44px rgba(60,40,20,.24); }
.size:hover .p, .size:focus-visible .p { color: var(--cta); }
.size:hover .go, .size:focus-visible .go { opacity: 1; transform: none; }
.size:active canvas { transform: translateY(-10px) scale(1.02); }
@media (hover: none) { .size .go { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .size canvas, .size .go, .size .p { transition: none; } }
.size .p.ask { font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.price-note { color: var(--ink-2); font-size: .95rem; margin: -8px 0 24px; }
/* one price for everything */
.shelf-title { margin: 44px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--teal-deep); }
.shelf-title span { display: block; margin-top: 2px; font-size: .9rem; font-weight: 400; color: var(--ink-3); }
.shelf-title + .shelf { margin-top: 24px; }
@media (min-width: 600px) { :root { --ppi: 28; } .shelf { gap: 36px 28px; } }
@media (min-width: 1000px) { :root { --ppi: 37; } .shelf { flex-wrap: nowrap; justify-content: space-between; gap: 20px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--shelf); padding: 72px 0 84px; }
.faq-in { display: grid; gap: 28px; }
@media (min-width: 1000px) { .faq-in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.qa { border-top: 1px solid #ddd4c8; }
details { border-bottom: 1px solid #ddd4c8; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 1.06rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { padding: 0 2px 20px; color: var(--ink-2); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

/* ---------- closing ---------- */
.end { background: var(--mint); padding: 72px 0; }
.end-in p { margin-top: 10px; color: var(--ink-2); }
.end .actions { margin-top: 26px; }
.foot { background: var(--mint-2); color: var(--ink-2); font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 20px; padding-bottom: 24px; }
.foot a { color: var(--ink-2); }
.foot-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-contact:empty { display: none; }
.foot-shop { margin-left: auto; }

/* ---------- scroll reveal (html.reveal is set in <head> only when motion is welcome) ---------- */
.nav { transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 6px 20px rgba(23,64,60,.08); }
.reveal [data-reveal] { transition: opacity .7s ease, transform .85s cubic-bezier(.2, .75, .25, 1), clip-path 1.2s cubic-bezier(.45, .05, .35, 1);
  transition-delay: var(--d, 0ms); }
/* soft rise for text */
.reveal [data-reveal="up"]:not(.in) { opacity: 0; transform: translateY(26px); }
/* a print dropped onto the table, and the phone brought up into view */
.reveal .print-card[data-reveal]:not(.in) { opacity: 0; transform: translateY(-40px) rotate(-12deg) scale(1.06); }
.reveal .phone[data-reveal]:not(.in) { opacity: 0; transform: translateY(60px) rotate(10deg); }
/* handwriting: written from left to right */
.reveal [data-reveal="write"]:not(.in) { clip-path: inset(-15% 130% -15% -30%); }
.reveal [data-reveal="write"].in { clip-path: inset(-15% -5% -15% -30%); }
/* intro keepsake: the back of the photo slides in, then the print lands on it */
.reveal .keepsake .photo-back, .reveal .keepsake .photo-front { transition: opacity .7s ease, transform .9s cubic-bezier(.2, .75, .25, 1.1); }
.reveal .keepsake .photo-front { transition-delay: .18s; }
.reveal .keepsake:not(.in) .photo-back { opacity: 0; transform: translateX(46px) rotate(16deg); }
.reveal .keepsake:not(.in) .photo-front { opacity: 0; transform: translateY(-46px) rotate(-12deg) scale(1.05); }
.reveal .keepsake .photo-back p { transition: clip-path 1.3s cubic-bezier(.45, .05, .35, 1) .8s; }
.reveal .keepsake:not(.in) .photo-back p { clip-path: inset(-10% 100% -10% 0); }
/* the try-it phone only fades (its position is driven by the mouse) */
.reveal .lens-phone[data-reveal] { transition: opacity .6s ease var(--d, 0ms); }
.reveal .lens-phone[data-reveal]:not(.in) { opacity: 0; }
/* steps: one after another, numbers pop, the dashed line draws to the next step */
.reveal .step-list > li { transition: opacity .6s ease, transform .75s cubic-bezier(.2, .75, .25, 1); transition-delay: calc(var(--i, 0) * 140ms); }
.reveal .step-list:not(.in) > li { opacity: 0; transform: translateY(24px); }
.reveal .step-list > li::before { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 140ms + 120ms); }
.reveal .step-list:not(.in) > li::before { transform: scale(.3); }
.reveal .step-list > li::after { transform-origin: left center; transition: transform .6s ease; transition-delay: calc(var(--i, 0) * 140ms + 260ms); }
.reveal .step-list:not(.in) > li::after { transform: scaleX(0); }
/* sizes: prints laid down one by one, smallest first */
.reveal .shelf > * { transition: opacity .55s ease, transform .8s cubic-bezier(.2, .8, .25, 1.15); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal .shelf:not(.in) > * { opacity: 0; transform: translateY(-34px) rotate(var(--r, -4deg)); }
/* FAQ rows */
.reveal [data-reveal="stagger"] > * { transition: opacity .55s ease, transform .7s cubic-bezier(.2, .75, .25, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal [data-reveal="stagger"]:not(.in) > * { opacity: 0; transform: translateY(18px); }

/* packages */
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 22px;
  box-shadow: 0 10px 30px rgba(23,64,60,.07); transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,64,60,.12); border-color: var(--teal); }
.plan.hot { border: 2px solid var(--teal-deep); }
.plan-name { font-size: 1.05rem; font-weight: 700; color: var(--teal-deep); }
.plan-amount { display: flex; align-items: baseline; gap: 8px; color: var(--teal-deep); }
.plan-amount span { font-size: clamp(2.3rem, 1.9rem + 1.6vw, 2.9rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-amount small { font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.plan ul { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 7px; align-content: start; color: var(--ink-2); flex: 1; }
.plan li { position: relative; padding-left: 26px; line-height: 1.5; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.plan-go { align-self: flex-start; font-weight: 600; color: var(--cta); }
.plan-go::after { content: ' →'; }
.plan-badge { position: absolute; top: -12px; right: 18px; font-style: normal; font-size: .8rem; font-weight: 700; color: #fff; background: var(--cta); border-radius: 99px; padding: 3px 12px; }
.plan-badge.soft { background: var(--teal-deep); }
.addons-strip { margin-top: 18px; background: var(--mint); border-radius: 18px; padding: 18px 22px; }
.as-t { font-size: .9rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 10px; }
.as-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.as-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; align-content: start; }
.as-item b { font-weight: 600; color: var(--ink); font-size: .97rem; }
.as-item span { grid-column: 1; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.as-item em { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 700; color: var(--teal-deep); white-space: nowrap; }
@media (max-width: 900px) { .plans, .as-list { grid-template-columns: minmax(0, 1fr); } .plans { gap: 22px; } }

/* DreamFrame logo: the mark (SVG) and the two-colour wordmark, as in the logo artwork */
.brand-logo { width: 34px; height: 34px; flex: none; display: block; }
.wordmark { font-family: 'Nunito', 'IBM Plex Sans Thai', system-ui, sans-serif; font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.wordmark .wm-a { color: #452f26; }
.wordmark .wm-b { color: #e39b7b; }
