/* Moments Studio — studio.html
   Warm paper, Studio blue (#26547C, #5A8BB8 in dark), coral only for discounts.
   Every page class is prefixed ms- so the shared header/footer CSS that layout.js
   injects (.btn, .nav, footer…) never collides with it. Checkout (#co) styles at the end. */

/* Metric-matched fallbacks, so the page doesn't jump when the web fonts arrive */
@font-face { font-family: 'Instrument Serif Fallback'; src: local('Times New Roman'), local('Times'), local('Liberation Serif'); size-adjust: 84%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'); size-adjust: 97%; }

:root,
[data-theme="light"] {
  --bg: #f4efe6;
  --bg-2: #ebe4d7;
  --card: #fbf8f2;
  --card-2: #f6f1e7;
  --text: #1a222d;
  --muted: #4c5764;
  --faint: #555e6a;
  --line: rgba(26, 34, 45, .13);
  --line-strong: rgba(26, 34, 45, .26);
  --surface: rgba(26, 34, 45, .05);
  --blue: #26547c;
  --blue-text: #26547c;
  --blue-soft: rgba(38, 84, 124, .1);
  --on-blue: #fff;
  --band: #1f4466;
  --band-2: #18385a;
  --coral: #ff8552;
  --coral-ink: #2a1307;
  --coral-text: #a8441a;
  --paper: #fffdf8;
  --paper-ink: #1f2630;
  --shadow: rgba(52, 38, 18, .16);
  --glass: rgba(251, 248, 242, .7);
  --mint: #26547c;
  --ink: #1a222d;
  --serif: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  --sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #111418;
  --bg-2: #161a20;
  --card: #1b2027;
  --card-2: #20262e;
  --text: #eee9e0;
  --muted: #b9b4ab;
  --faint: #9a958d;
  --line: rgba(238, 233, 224, .12);
  --line-strong: rgba(238, 233, 224, .24);
  --surface: rgba(238, 233, 224, .055);
  --blue: #5a8bb8;
  --blue-text: #85abd0;
  --blue-soft: rgba(90, 139, 184, .14);
  --on-blue: #0a1520;
  --band: #14283b;
  --band-2: #10202f;
  --coral-text: #ffa07a;
  --paper: #f3eee4;
  --paper-ink: #1f2630;
  --shadow: rgba(0, 0, 0, .5);
  --glass: rgba(27, 32, 39, .68);
  --mint: #85abd0;
  --ink: #eee9e0;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Paper grain: one small SVG noise tile, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .35; mix-blend-mode: screen; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.ms-skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: var(--on-blue); font-weight: 600; text-decoration: none; transition: top .2s; }
.ms-skip:focus { top: 12px; }
.ms-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── Header (fallback until layout.js injects the shared CSS) ── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: max(13px, env(safe-area-inset-top)); pointer-events: none; }
.site-header .shell { width: min(1320px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 6px 8px 6px 13px; background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 16px; backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); pointer-events: auto; transition: background .3s, box-shadow .3s; }
.site-header.scrolled .nav { background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 13px 35px var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 15px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 29px; height: 29px; border-radius: 8px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-links > a, .nav-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s; }
.nav-links > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface); }
.nav-item { position: relative; }
.nav-chevron { width: 11px; height: 11px; transition: transform .22s var(--ease); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 5; display: grid; gap: 4px; width: 330px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--bg) 96%, transparent); box-shadow: 0 24px 55px var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -7px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-trigger[aria-expanded="true"] + .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav-dropdown--discover { grid-template-columns: 1fr 1fr; width: 390px; }
.nav-dropdown--features { width: 278px; }
.nav-dd-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border-radius: 11px; color: var(--text); text-decoration: none; transition: background .18s; }
.nav-dd-item:hover { background: var(--surface); }
.nav-dd-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue-text); }
.nav-dd-icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.nav-dd-copy { display: block; min-width: 0; }
.nav-dd-copy b { display: block; font-size: 11px; }
.nav-dd-copy small { display: block; overflow: hidden; margin-top: 3px; color: var(--faint); font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.nav-pro { color: var(--blue-text) !important; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-store { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding-inline: 14px; border-radius: 999px; background: var(--blue); color: var(--on-blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
.mobile-menu { display: none; }
.ms-theme-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.ms-theme-btn:hover { color: var(--text); background: var(--surface); }
.ms-theme-btn svg { width: 17px; height: 17px; }
[data-theme="dark"] .ms-theme-btn .i-moon, [data-theme="light"] .ms-theme-btn .i-sun { display: none; }
@media (max-width: 700px) {
  .site-header { padding-top: max(9px, env(safe-area-inset-top)); }
  .nav { min-height: 51px; border-radius: 14px; }
  .nav-links, .nav-store { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu { display: block; position: absolute; top: 61px; left: 16px; right: 16px; z-index: 3; max-height: calc(100svh - 90px); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--bg) 97%, transparent); box-shadow: 0 25px 45px var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-menu a { display: block; padding: 11px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
  .mobile-menu a:hover { color: var(--text); background: var(--surface); }
  .mobile-nav-group { margin: 10px 10px 3px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
}

/* Footer fallback (layout.js swaps in the shared footer and its CSS) */
footer { border-top: 1px solid var(--line); padding: 45px 0 30px; }
footer .shell { width: min(1320px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, .7fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 750; text-decoration: none; }
.footer-brand img { width: 31px; border-radius: 9px; }
.footer-blurb { max-width: 29ch; margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.footer-col h2 { margin: 4px 0 14px; color: var(--faint); font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; margin: 0 0 10px; color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 47px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* ── Layout primitives ────────────────────────────────── */
.ms-wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.ms-section { position: relative; padding-block: clamp(84px, 12vw, 168px); }
.ms-section--tint { background: var(--bg-2); }
.ms-section + .ms-section:not(.ms-section--tint):not(.ms-band) { padding-top: clamp(24px, 4vw, 48px); }
.ms-head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }
.ms-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.ms-head--split { max-width: none; }
@media (min-width: 960px) {
  .ms-head--split { grid-template-columns: 1.2fr .8fr; align-items: end; column-gap: 64px; }
  .ms-head--split .ms-eyebrow { grid-column: 1 / -1; }
}

.ms-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--blue-text); font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ms-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.ms-head--center .ms-eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }

.ms-h1, .ms-h2, .ms-h3, .ms-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.ms-h1 { margin: 0; font-size: clamp(52px, 9.4vw, 128px); line-height: .94; }
.ms-h2 { margin: 0; font-size: clamp(42px, 6.4vw, 88px); line-height: .98; text-wrap: balance; }
.ms-h3 { margin: 0; font-size: clamp(32px, 3.8vw, 52px); line-height: 1; }
.ms-h1 em, .ms-h2 em, .ms-h3 em { font-style: italic; color: var(--blue-text); }
.ms-lede { margin: 0; max-width: 58ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; text-wrap: pretty; }
.ms-small { color: var(--faint); font-size: 13.5px; }
.ms-mono { font-family: var(--mono); }

/* ── Buttons, chips, badges ───────────────────────────── */
.ms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: 600 15.5px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s var(--ease), color .25s; }
.ms-btn svg { width: 18px; height: 18px; flex: none; }
.ms-btn:hover { transform: translateY(-2px); }
.ms-btn:active { transform: translateY(0); }
.ms-btn--primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 10px 28px color-mix(in srgb, var(--blue) 32%, transparent); }
.ms-btn--primary:hover { box-shadow: 0 16px 38px color-mix(in srgb, var(--blue) 42%, transparent); }
.ms-btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.ms-btn--ghost:hover { border-color: var(--blue); color: var(--blue-text); }
.ms-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.ms-btn--light { background: var(--paper); color: var(--paper-ink); }
.ms-btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.ms-btn--outline-light:hover { border-color: #fff; color: #fff; }
.ms-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue-text); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.ms-link:hover { text-decoration-thickness: 2px; }

.ms-badge { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--coral); color: var(--coral-ink); font-size: 13.5px; font-weight: 650; letter-spacing: -.005em; }
.ms-badge b { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(42, 19, 7, .12); font: 600 11px var(--mono); }
.ms-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 500 11.5px/1.2 var(--mono); letter-spacing: .04em; }
.ms-chip svg { width: 13px; height: 13px; }
.ms-chip--blue { border-color: transparent; background: var(--blue-soft); color: var(--blue-text); }
.ms-pro { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: var(--blue); color: var(--on-blue); font: 600 10px/1.4 var(--mono); letter-spacing: .08em; }

/* Image placeholders — clearly marked, never fake content */
.ms-ph { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: inherit; background: repeating-linear-gradient(135deg, transparent 0 11px, var(--surface) 11px 22px), var(--card); color: var(--faint); text-align: center; }
.ms-ph-tag { padding: 3px 8px; border-radius: 6px; background: var(--coral); color: var(--coral-ink); font: 600 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ms-ph-file { max-width: 100%; overflow-wrap: anywhere; font: 500 11px/1.35 var(--mono); }
.ms-ph-name { color: var(--text); font: 400 clamp(22px, 2.4vw, 30px)/1 var(--serif); }
.iphone > .iphone-screen.ms-ph { border-radius: 13.9% / 6.4%; border-width: 0; background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,.04) 11px 22px), #0d1117; color: rgba(255,255,255,.6); }
.iphone > .iphone-screen.ms-ph .ms-ph-name { color: #fff; font-size: clamp(18px, 2vw, 24px); }

/* ── Reveal ───────────────────────────────────────────── */
.js .ms-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .ms-reveal.is-in { opacity: 1; transform: none; }

/* ── 1 · Hero ─────────────────────────────────────────── */
/* CSS-only entrance: starts at first paint, never waits for JS (keeps LCP early). */
@media (prefers-reduced-motion: no-preference) {
  .ms-rise { animation: ms-rise 1.1s var(--ease) both; animation-delay: var(--d, 0ms); }
}
@keyframes ms-rise { from { opacity: .01; transform: translateY(18px); } }
.ms-hero { position: relative; padding-top: calc(118px + env(safe-area-inset-top)); padding-bottom: clamp(40px, 5vw, 64px); overflow: clip; }
.ms-hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 90%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 16%, transparent), transparent 75%); pointer-events: none; }
.ms-hero-grid { display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
.ms-hero-copy { display: grid; gap: 26px; justify-items: start; }
.ms-hero .ms-lede { font-size: clamp(18px, 1.7vw, 21px); }
.ms-hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--faint); font: 500 12px/1.4 var(--mono); letter-spacing: .04em; }
.ms-hero-note li { display: inline-flex; align-items: center; gap: 7px; }
.ms-hero-note li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.ms-stage { position: relative; width: min(100%, 560px); margin-inline: auto; aspect-ratio: 1 / 1.08; }
.ms-stage .iphone { position: absolute; left: 50%; top: 2%; z-index: 3; width: 47%; transform: translateX(-50%); box-shadow: 0 40px 80px -20px var(--shadow), 0 18px 36px -18px var(--shadow); }
.ms-fan { position: absolute; z-index: 1; width: 41%; margin: 0; overflow: hidden; border-radius: 16px; background: var(--card); box-shadow: 0 30px 60px -24px var(--shadow), 0 0 0 1px var(--line); }
.ms-fan img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ms-fan--1 { left: 0; top: 18%; transform: rotate(-9deg); }
.ms-fan--2 { right: 0; top: 12%; transform: rotate(8deg); }
.ms-fan--3 { right: 6%; bottom: 0; width: 33%; transform: rotate(-4deg); z-index: 4; }
.ms-glass { background: var(--glass); border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 18px 40px -18px var(--shadow); }
.ms-float { position: absolute; z-index: 5; display: grid; gap: 2px; padding: 11px 14px; border-radius: 16px; font-size: 13px; line-height: 1.3; }
.ms-float small { color: var(--faint); font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ms-float b { font-weight: 650; }
.ms-float--a { left: -2%; bottom: 20%; }
.ms-float--b { right: 2%; top: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .ms-fan--1 { animation: ms-drift-a 11s ease-in-out infinite alternate; }
  .ms-fan--2 { animation: ms-drift-b 13s ease-in-out infinite alternate; }
  .ms-fan--3 { animation: ms-drift-c 9s ease-in-out infinite alternate; }
  .ms-float--a { animation: ms-bob 7s ease-in-out infinite alternate; }
  .ms-float--b { animation: ms-bob 8s ease-in-out -3s infinite alternate; }
}
@keyframes ms-drift-a { to { transform: rotate(-11deg) translate(-6px, 8px); } }
@keyframes ms-drift-b { to { transform: rotate(10deg) translate(6px, -6px); } }
@keyframes ms-drift-c { to { transform: rotate(-2deg) translate(-4px, -8px); } }
@keyframes ms-bob { to { transform: translateY(-8px); } }
@media (min-width: 960px) {
  .ms-hero { padding-top: calc(150px + env(safe-area-inset-top)); }
  .ms-hero-grid { grid-template-columns: 1.08fr .92fr; }
}
@media (max-width: 520px) {
  .ms-float--b { display: none; }
  .ms-float--a { left: 0; bottom: 6%; }
}

/* ── 2 · How it works ─────────────────────────────────── */
.ms-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ms-step { position: relative; display: grid; gap: 14px; align-content: start; padding: 30px 0 0; border-top: 1px solid var(--line-strong); }
.ms-step-n { color: var(--blue-text); font: 400 clamp(64px, 7vw, 96px)/.8 var(--serif); font-style: italic; }
.ms-step h3 { margin: 0; font: 600 21px/1.25 var(--sans); letter-spacing: -.02em; }
.ms-step p { margin: 0; color: var(--muted); max-width: 38ch; }
.ms-step-icons { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 860px) { .ms-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ── 3 · Made for you ─────────────────────────────────── */
.ms-mfy { overflow: clip; }
.ms-carousel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.ms-carousel-ctrl { display: flex; gap: 10px; }
.ms-round { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.ms-round:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-text); }
.ms-round:disabled { opacity: .35; cursor: default; }
.ms-round svg { width: 18px; height: 18px; }
.ms-track { --pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 330px); gap: 18px; margin: 0; padding: 6px var(--pad) 26px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.ms-track::-webkit-scrollbar { display: none; }
.ms-track:focus-visible { outline-offset: -4px; }
.ms-mfy-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-snap-align: start; box-shadow: 0 20px 40px -30px var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ms-mfy-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px var(--shadow); }
.ms-mfy-card figure { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--bg-2); }
.ms-mfy-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ms-mfy-card:hover figure img { transform: scale(1.04); }
.ms-mfy-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.ms-mfy-why { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-text); font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ms-mfy-why svg { width: 13px; height: 13px; }
.ms-mfy-title { margin: 0; font: 400 28px/1.05 var(--serif); }
.ms-mfy-kind { color: var(--faint); font-size: 13.5px; }
.ms-example { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; background: var(--glass); color: var(--text); font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ── 4 · Designed products ────────────────────────────── */
.ms-perks { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-index { display: flex; gap: 8px; margin: 0 0 clamp(48px, 7vw, 88px); padding: 0 0 6px; overflow-x: auto; scrollbar-width: none; list-style: none; }
.ms-index::-webkit-scrollbar { display: none; }
.ms-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.ms-index a span { color: var(--faint); font: 500 11px var(--mono); }
.ms-index a:hover { border-color: var(--blue); color: var(--blue-text); }
.ms-dps { display: grid; gap: clamp(80px, 11vw, 150px); }
.ms-dp { display: grid; gap: clamp(28px, 4vw, 44px); align-items: center; scroll-margin-top: 90px; }
.ms-dp-fig { position: relative; margin: 0; overflow: hidden; border-radius: 26px; background: var(--bg-2); box-shadow: 0 50px 90px -50px var(--shadow); }
.ms-dp-fig > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ms-dp-fig figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 999px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; }
.ms-dp-copy { display: grid; gap: 20px; align-content: center; }
.ms-dp-n { color: var(--faint); font: 500 12px var(--mono); letter-spacing: .14em; }
.ms-dp-copy p { margin: 0; color: var(--muted); max-width: 52ch; font-size: 17px; }
.ms-dp-from { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ms-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.ms-tab { position: relative; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .3s var(--ease), color .3s, box-shadow .3s; }
.ms-tab:hover { color: var(--text); }
.ms-tab[aria-selected="true"], .ms-tab[aria-checked="true"] { background: var(--card); color: var(--text); box-shadow: 0 4px 14px -6px var(--shadow), 0 0 0 1px var(--line); }
.ms-panel { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ms-panel[hidden] { display: none; }
.ms-panel.is-entering { animation: ms-panel-in .5s var(--ease) both; }
@keyframes ms-panel-in { from { opacity: 0; transform: translateY(8px); } }
.ms-panel .ms-ph, .ms-panel-img { aspect-ratio: 3 / 4; border-radius: 10px; padding: 8px; gap: 4px; }
.ms-panel .ms-ph .ms-ph-file { font-size: 8.5px; }
.ms-panel .ms-ph .ms-ph-tag { font-size: 8px; padding: 2px 5px; }
.ms-panel-img { width: 100%; object-fit: cover; padding: 0; }
.ms-panel h4 { margin: 0 0 4px; font: 400 26px/1.05 var(--serif); }
.ms-panel p { margin: 0; font-size: 15px; }
.ms-share-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--faint); font-size: 13.5px; }
.ms-share-row span { display: inline-flex; align-items: center; gap: 7px; }
.ms-share-row svg { width: 15px; height: 15px; color: var(--blue-text); }
@media (min-width: 960px) {
  .ms-dp { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .ms-dp--flip .ms-dp-fig { order: 2; }
}

.ms-feature-phone { display: grid; gap: 28px; align-items: center; margin: 0 0 clamp(64px, 9vw, 120px); padding: clamp(24px, 4vw, 52px); border-radius: 28px; background: var(--bg-2); }
.ms-feature-phone .iphone { width: min(250px, 66%); margin-inline: auto; box-shadow: 0 40px 70px -40px var(--shadow); }
.ms-feature-copy { display: grid; gap: 14px; max-width: 46ch; }
.ms-feature-copy p:not(.ms-eyebrow) { margin: 0; color: var(--muted); font-size: 17px; }
@media (min-width: 860px) { .ms-feature-phone { grid-template-columns: 300px 1fr; gap: 56px; } .ms-feature-phone .iphone { width: 250px; } }

/* ── 5 · Share styles ─────────────────────────────────── */
.ms-share-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.ms-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.ms-seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.ms-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 4px 14px -6px var(--shadow); }
.ms-marquee { --h: clamp(300px, 42vw, 440px); position: relative; overflow: hidden; padding-block: 8px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ms-marquee-track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 0; list-style: none; }
.ms-marquee[data-format="story"] { --ar: 9 / 16; }
.ms-marquee[data-format="post"] { --ar: 4 / 5; }
.ms-marquee[data-format="square"] { --ar: 1 / 1; }
.ms-share-tile { flex: none; height: var(--h); aspect-ratio: var(--ar, 4 / 5); border-radius: 18px; transition: aspect-ratio .6s var(--ease); }
.ms-share-tile .ms-ph { height: 100%; border-radius: 18px; }
.ms-share-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.ms-share-tile .ms-ph-desc { max-width: 22ch; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ms-share-tile .ms-ph-for { color: var(--blue-text); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .ms-marquee.is-running .ms-marquee-track { animation: ms-marquee 70s linear infinite; }
  .ms-marquee.is-running:hover .ms-marquee-track,
  .ms-marquee.is-running:focus-within .ms-marquee-track,
  .ms-marquee.is-paused .ms-marquee-track { animation-play-state: paused; }
}
@keyframes ms-marquee { to { transform: translateX(calc(-50% - 9px)); } }
.ms-marquee:not(.is-running) { overflow-x: auto; scrollbar-width: thin; -webkit-mask-image: none; mask-image: none; }
.ms-marquee:not(.is-running) [data-clone] { display: none; }

/* ── 6 · Merch ────────────────────────────────────────── */
.ms-land { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: clamp(80px, 10vw, 130px); }
.ms-land-stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; overflow: hidden; border-radius: 26px; background: #f3f0ea; box-shadow: 0 50px 90px -50px var(--shadow); }
.ms-land-stage > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .5s; }
.ms-land-print { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%); transform-origin: 50% 50%; }
.ms-land-print img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: saturate(1.05); }
.ms-land-handles { position: absolute; inset: -6px; border: 1.5px solid #26547c; border-radius: 4px; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ms-land-handles i { position: absolute; width: 11px; height: 11px; border: 1.5px solid #26547c; border-radius: 50%; background: #fff; }
.ms-land-handles i:nth-child(1) { left: -6px; top: -6px; } .ms-land-handles i:nth-child(2) { right: -6px; top: -6px; }
.ms-land-handles i:nth-child(3) { left: -6px; bottom: -6px; } .ms-land-handles i:nth-child(4) { right: -6px; bottom: -6px; }
.ms-land-handles i:nth-child(5) { left: 50%; top: -30px; margin-left: -6px; }
.ms-land-handles i:nth-child(5)::after { content: ""; position: absolute; left: 4px; top: 10px; width: 1.5px; height: 14px; background: #26547c; }
.ms-land-stage.show-handles .ms-land-handles { opacity: 1; }
.ms-land-tag { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(255, 253, 248, .85); color: #1f2630; font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ms-land-status { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; justify-content: center; }
.ms-land-status span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 253, 248, .9); color: #1f2630; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(0,0,0,.3); }
.ms-land-copy { display: grid; gap: 22px; }
.ms-land-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ms-land-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .3s; }
.ms-land-steps li b { color: var(--text); font-weight: 600; }
.ms-land-steps li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--blue-text); }
.ms-land-steps li.is-on { color: var(--text); }
@media (min-width: 960px) { .ms-land { grid-template-columns: 1fr 1fr; gap: 80px; } }

.ms-merch { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ms-merch-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ms-merch-card figure { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.ms-merch-card figure img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; transition: transform 1.4s var(--ease); }
.ms-merch-card:hover figure img { transform: scale(1.035); }
.ms-merch-body { display: grid; gap: 12px; align-content: start; padding: 22px 22px 18px; }
.ms-merch-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.ms-merch-top h3 { margin: 0; font: 400 32px/1 var(--serif); }
.ms-price { color: var(--text); font: 500 15px var(--mono); }
.ms-price small { color: var(--faint); font-size: 12px; }
.ms-merch-body p { margin: 0; color: var(--muted); font-size: 15px; }
.ms-merch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; }
.ms-merch-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 14.5px; }
.ms-merch-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--blue-text); }
@media (min-width: 640px) { .ms-merch { grid-template-columns: 1fr 1fr; } .ms-merch > :first-child { grid-column: 1 / -1; } .ms-merch > :first-child figure img { aspect-ratio: 16 / 10; object-position: 50% 30%; } }
@media (min-width: 1040px) {
  .ms-merch { grid-template-columns: repeat(6, 1fr); }
  .ms-merch > :first-child { grid-column: auto; }
  .ms-merch > :nth-child(-n+2) { grid-column: span 3; }
  .ms-merch > :nth-child(n+3) { grid-column: span 2; }
  .ms-merch > :first-child figure img, .ms-merch > :nth-child(2) figure img { aspect-ratio: 4 / 3.6; }
}

.ms-phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 56px); max-width: 760px; margin: clamp(56px, 8vw, 96px) auto 0; }
.ms-phone-pair figure { display: grid; gap: 18px; justify-items: center; margin: 0; }
.ms-phone-pair figure:nth-child(2) { margin-top: clamp(24px, 6vw, 72px); }
.ms-phone-pair .iphone { width: min(100%, 260px); box-shadow: 0 40px 70px -40px var(--shadow); }
.ms-phone-pair figcaption { max-width: 30ch; color: var(--muted); font-size: 14.5px; text-align: center; }
.ms-phone-pair figcaption b { color: var(--text); }

/* ── 7 · Why in the app (blue band) ───────────────────── */
.ms-band { background: radial-gradient(ellipse 80% 60% at 85% 0%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(180deg, var(--band), var(--band-2)); color: #f3efe7; }
.ms-band .ms-eyebrow { color: #b7d1ea; }
.ms-band .ms-h2 em { color: #b7d1ea; }
.ms-band .ms-lede { color: rgba(243, 239, 231, .78); }
.ms-compare { display: grid; gap: 18px; }
.ms-cmp { display: grid; gap: 20px; align-content: start; padding: clamp(26px, 3.4vw, 40px); border-radius: 26px; }
.ms-cmp--app { background: var(--paper); color: var(--paper-ink); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .45); }
.ms-cmp--web { border: 1px solid rgba(255, 255, 255, .22); color: rgba(243, 239, 231, .86); }
.ms-cmp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ms-cmp-head h3 { margin: 0; font: 400 clamp(30px, 3vw, 40px)/1 var(--serif); }
.ms-cmp--app .ms-cmp-head span { padding: 5px 10px; border-radius: 999px; background: #26547c; color: #fff; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ms-cmp--web .ms-cmp-head span { color: rgba(243, 239, 231, .7); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ms-cmp ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ms-cmp li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(31, 38, 48, .1); font-size: 15.5px; line-height: 1.45; }
.ms-cmp--web li { border-top-color: rgba(255, 255, 255, .12); }
.ms-cmp li svg { width: 20px; height: 20px; margin-top: 1px; }
.ms-cmp--app li svg { color: #26547c; }
.ms-cmp--web li svg { color: rgba(243, 239, 231, .6); }
.ms-cmp li small { display: block; margin-top: 2px; color: #5b6573; font-size: 13.5px; }
.ms-cmp--web li small { color: rgba(243, 239, 231, .62); }
.ms-cmp-only { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(38, 84, 124, .1); color: #26547c; font: 600 9.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.ms-cmp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 6px; }
.ms-cmp-foot .ms-btn--primary { background: #26547c; color: #fff; }
.ms-same { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); color: rgba(243, 239, 231, .86); font-size: 15px; }
.ms-same svg { flex: none; width: 22px; height: 22px; color: #b7d1ea; }
.ms-band .ms-link { color: #fff; }
.ms-band :focus-visible { outline-color: #fff; }
@media (min-width: 960px) { .ms-compare { grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; } }

/* ── 8 · Discounts, receipt, shipping ─────────────────── */
.ms-discounts { display: grid; gap: 16px; margin: 0 0 clamp(64px, 8vw, 100px); padding: 0; list-style: none; }
.ms-disc { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ms-disc-code { width: fit-content; padding: 5px 10px; border: 1.5px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .1em; }
.ms-disc-big { display: flex; align-items: baseline; gap: 8px; font: 400 64px/.9 var(--serif); }
.ms-disc-big small { color: var(--faint); font: 500 12px var(--sans); }
.ms-disc h3 { margin: 0; font: 650 17px/1.3 var(--sans); letter-spacing: -.015em; }
.ms-disc p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ms-disc--coral::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--coral); }
.ms-disc-flag { position: absolute; top: 22px; right: 20px; padding: 3px 8px; border-radius: 999px; background: var(--coral); color: var(--coral-ink); font: 600 9.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 640px) { .ms-discounts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ms-discounts { grid-template-columns: repeat(4, 1fr); } }

.ms-math { display: grid; gap: clamp(48px, 6vw, 80px); align-items: start; }
.ms-math-copy { display: grid; gap: 18px; }
.ms-math-copy .ms-h3 em { font-style: italic; color: var(--blue-text); }
.ms-receipt-wrap { display: grid; justify-items: center; padding: 10px 0 30px; }
.ms-receipt { position: relative; width: min(100%, 410px); padding: 32px 28px 40px; background: var(--paper); color: var(--paper-ink); font: 400 13.5px/1.5 var(--mono); box-shadow: 0 40px 70px -40px var(--shadow), 0 2px 0 rgba(0,0,0,.03); transform: rotate(-1.2deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.ms-receipt-head { display: grid; justify-items: center; gap: 4px; padding-bottom: 18px; border-bottom: 1.5px dashed rgba(31, 38, 48, .3); text-align: center; }
.ms-receipt-head img { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 4px; }
.ms-receipt-head b { font: 400 26px/1 var(--serif); letter-spacing: 0; }
.ms-receipt-head span { color: #5b6573; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ms-receipt dl { display: grid; margin: 0; }
.ms-receipt .r { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.ms-receipt .r dt { flex: none; }
.ms-receipt .r::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(31, 38, 48, .35); transform: translateY(-4px); }
.ms-receipt .r dd { order: 2; margin: 0; white-space: nowrap; }
.ms-receipt .r small { display: block; color: #5b6573; font-size: 11px; }
.ms-receipt .r--sub { margin-top: 6px; padding-top: 14px; border-top: 1.5px dashed rgba(31, 38, 48, .3); }
.ms-receipt .r--disc dd { color: #a8441a; font-weight: 500; }
.ms-receipt .r--disc dt b { padding: 1px 6px; border-radius: 4px; background: #ff8552; color: #2a1307; font-weight: 500; }
.ms-receipt .r--ship s { color: #5b6573; margin-right: 6px; }
.ms-receipt .r--ship dd b { color: #26547c; }
.ms-receipt .r--total { margin-top: 6px; padding-top: 14px; border-top: 1.5px solid #1f2630; font-size: 16px; font-weight: 500; }
.ms-receipt .r--total dd { font: 400 30px/1 var(--serif); }
.ms-receipt-save { margin: 18px 0 0; padding: 10px; border-radius: 8px; background: rgba(38, 84, 124, .09); color: #26547c; text-align: center; font-size: 12.5px; letter-spacing: .02em; }
.js .ms-receipt .r, .js .ms-receipt-save { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .ms-receipt.is-in .r, .js .ms-receipt.is-in .ms-receipt-save { opacity: 1; transform: none; }

.ms-ship { width: 100%; border-collapse: collapse; font-size: 15px; }
.ms-ship caption { padding-bottom: 14px; text-align: left; color: var(--faint); font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ms-ship th, .ms-ship td { padding: 15px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ms-ship th:first-child, .ms-ship td:first-child { padding-left: 0; }
.ms-ship thead th { color: var(--faint); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom-color: var(--line-strong); }
.ms-ship td { font-family: var(--mono); font-size: 14px; }
.ms-ship tbody th { font-weight: 600; }
.ms-ship tr.is-you th::after { content: "You"; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.ms-ship-notes { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.ms-ship-notes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ms-ship-notes svg { width: 18px; height: 18px; margin-top: 2px; color: var(--blue-text); }
.ms-meter { display: grid; gap: 8px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ms-meter-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ms-meter-label span:last-child { flex: none; color: var(--faint); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.ms-meter-bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.ms-meter-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width 1.6s var(--ease) .3s; }
.ms-meter.is-in .ms-meter-bar i { width: var(--p, 80%); }
@media (min-width: 1000px) { .ms-math { grid-template-columns: .9fr 1.1fr; } .ms-math-receipt { grid-row: span 2; } }

/* ── 9 · Gifts ────────────────────────────────────────── */
.ms-gift { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.ms-gift-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ms-gift-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ms-gift-list svg { width: 22px; height: 22px; color: var(--blue-text); }
.ms-gift-list b { display: block; font-weight: 600; }
.ms-gift-list span { color: var(--muted); font-size: 15px; }
.ms-gift-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.ms-slip { position: relative; width: min(100%, 380px); padding: 28px 26px; background: var(--paper); color: var(--paper-ink); font: 400 13px/1.55 var(--mono); box-shadow: 0 40px 70px -40px var(--shadow); transform: rotate(2deg); }
.ms-slip-h { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px dashed rgba(31, 38, 48, .3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ms-slip-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.ms-slip-row span:last-child { color: #26547c; }
.ms-slip-msg { margin-top: 16px; padding: 16px; border: 1px solid rgba(31, 38, 48, .14); border-radius: 4px; font: italic 400 22px/1.25 var(--serif); }
.ms-slip-msg small { display: block; margin-bottom: 8px; color: #5b6573; font: 500 10px var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.ms-tag { position: absolute; right: 4%; top: 6%; width: 130px; padding: 18px 14px 14px; border-radius: 6px 6px 6px 6px; background: var(--coral); color: var(--coral-ink); font: 400 22px/1.05 var(--serif); text-align: center; transform: rotate(-8deg); box-shadow: 0 20px 30px -18px var(--shadow); }
.ms-tag::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(42, 19, 7, .25); }
.ms-illus { margin-top: 14px; color: var(--faint); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.ms-xmas { display: grid; gap: 14px; margin-top: 30px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--coral) 55%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--coral) 9%, var(--card)); }
.ms-xmas p { margin: 0; }
.ms-xmas b { font-weight: 650; }
.ms-xmas .ms-eyebrow { color: var(--coral-text); }
.ms-tbc { padding: 1px 7px; border: 1.5px dashed var(--coral-text); border-radius: 6px; color: var(--coral-text); font: 600 .85em var(--mono); }
@media (min-width: 960px) { .ms-gift { grid-template-columns: 1fr 1fr; } }

/* ── 10 · After you order ─────────────────────────────── */
.ms-after { display: grid; gap: clamp(48px, 6vw, 72px); }
.ms-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ms-tl { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 30px; }
.ms-tl::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.ms-tl:last-child::before { display: none; }
.ms-tl-dot { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--blue-text); }
.ms-tl-dot svg { width: 19px; height: 19px; }
.ms-tl h3 { margin: 8px 0 4px; font: 650 17px/1.3 var(--sans); }
.ms-tl p { margin: 0; color: var(--muted); font-size: 15px; }
.ms-push { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: min(100%, 340px); margin-top: 12px; padding: 10px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -22px var(--shadow); }
.ms-push img { width: 34px; height: 34px; border-radius: 9px; }
.ms-push div { min-width: 0; font-size: 13px; line-height: 1.35; }
.ms-push b { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.ms-push b span { color: var(--faint); font-weight: 400; }
.js .ms-tl .ms-tl-dot { transition: background .5s, color .5s, border-color .5s; transition-delay: calc(var(--i) * 350ms + 300ms); }
.js .ms-timeline.is-in .ms-tl-dot { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.ms-phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); }
.ms-phones .iphone { width: min(44%, 250px); }
.ms-phones .iphone:nth-child(2) { margin-top: 48px; }
.ms-after-feats { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.ms-after-feats li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); font-size: 15px; }
.ms-after-feats svg { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-text); }
.ms-after-feats b { color: var(--text); font-weight: 600; }
@media (min-width: 960px) { .ms-after { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ── 11 · Pro ─────────────────────────────────────────── */
.ms-pro-card { position: relative; display: grid; gap: clamp(32px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); overflow: hidden; border-radius: 30px; background: linear-gradient(140deg, var(--card), var(--card-2)); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px var(--shadow); }
.ms-pro-card::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 20%, transparent), transparent); pointer-events: none; }
.ms-pro-copy { position: relative; display: grid; gap: 20px; align-content: start; }
.ms-pro-list { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ms-pro-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.ms-pro-list b { display: block; font-size: 16.5px; font-weight: 650; }
.ms-pro-list span { color: var(--muted); font-size: 14.5px; }
.ms-pro-list .ms-pro-num { min-width: 64px; color: var(--blue-text); font: 400 38px/1 var(--serif); text-align: center; }
.ms-pro-list .ms-pro-num svg { width: 30px; height: 30px; margin-inline: auto; }
@media (min-width: 960px) { .ms-pro-card { grid-template-columns: .9fr 1.1fr; } }

/* ── 12 · FAQ ─────────────────────────────────────────── */
.ms-faq-grid { display: grid; gap: 40px; }
.ms-faq { border-top: 1px solid var(--line-strong); }
.ms-faq h3 { margin: 0; }
.ms-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 68px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: 600 17.5px/1.35 var(--sans); letter-spacing: -.015em; text-align: left; cursor: pointer; }
.ms-faq-q:hover { color: var(--blue-text); }
.ms-faq-q i { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .4s var(--ease), background .3s; }
.ms-faq-q i::before, .ms-faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .4s var(--ease); }
.ms-faq-q i::after { transform: rotate(90deg); }
.ms-faq-q[aria-expanded="true"] i { transform: rotate(180deg); background: var(--blue-soft); }
.ms-faq-q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.ms-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.ms-faq-a > div { overflow: hidden; }
.ms-faq-a.is-open { grid-template-rows: 1fr; }
.ms-faq-a p { margin: 0; padding: 16px 0 26px; max-width: 64ch; color: var(--muted); font-size: 16px; }
.ms-faq-a p + p { padding-top: 0; }
.ms-faq-a[hidden] { display: grid !important; visibility: hidden; }
.ms-faq-contact { display: grid; gap: 14px; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ms-faq-contact a { color: var(--blue-text); font-weight: 600; }
@media (min-width: 960px) { .ms-faq-grid { grid-template-columns: 1fr 340px; gap: 72px; align-items: start; } .ms-faq-contact { position: sticky; top: 110px; } }

/* ── 13 · Final CTA ───────────────────────────────────── */
.ms-final { position: relative; overflow: clip; padding-block: clamp(100px, 14vw, 200px); text-align: center; }
.ms-final-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; }
.ms-final .ms-h2 { font-size: clamp(48px, 8.6vw, 124px); max-width: 13ch; }
.ms-final-row { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: center; align-items: center; gap: 20px; opacity: .14; pointer-events: none; }
.ms-final-row img { width: clamp(140px, 18vw, 240px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.ms-final-row img:nth-child(odd) { transform: translateY(-30px) rotate(-4deg); }
.ms-final-row img:nth-child(even) { transform: translateY(30px) rotate(4deg); }
.ms-final::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 70% at 50% 50%, var(--bg) 30%, color-mix(in srgb, var(--bg) 60%, transparent) 75%, transparent); pointer-events: none; }
.ms-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: 14.5px; }
.ms-contact a { color: var(--text); font-weight: 600; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ── Sticky app CTA (mobile) ──────────────────────────── */
.ms-sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px; transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease); }
.ms-sticky.is-shown { transform: none; }
.ms-sticky.ms-glass { background: color-mix(in srgb, var(--card) 96%, transparent); }
.ms-sticky p { margin: 0; font-size: 13.5px; line-height: 1.3; }
.ms-sticky p b { display: block; font-size: 14.5px; }
.ms-sticky p span { color: var(--faint); font-size: 12px; }
.ms-sticky .ms-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (min-width: 768px) { .ms-sticky { display: none; } }

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

/* ═══════════════════════════════════════════════════════
   CHECKOUT (#co) — a full-screen atelier. Left: the product with your
   photo printed on it. Right: one step at a time. Visual layer only.
   ═══════════════════════════════════════════════════════ */
.co { position: fixed; inset: 0; z-index: 1000; display: none; background: var(--bg); color: var(--text); }
.co.co--open { display: block; animation: co-enter .45s var(--ease) both; }
.co.co--closing { animation: co-leave .25s ease both; }
@keyframes co-enter { from { opacity: 0; transform: scale(.985); } }
@keyframes co-leave { to { opacity: 0; transform: scale(.99); } }
.co-shell { display: grid; grid-template-rows: auto 1fr; height: 100%; height: 100dvh; }

/* Top bar with progress */
.co-topbar { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: max(10px, env(safe-area-inset-top)) clamp(12px, 2.4vw, 28px) 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.co-back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 550; cursor: pointer; }
.co-back-link:hover { color: var(--text); background: var(--surface); }
.co-back-link svg { width: 18px; height: 18px; }
.co-topbar-brand { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.co-topbar-logo img { width: 26px; height: 26px; border-radius: 7px; }
.co-topbar-name { font: 400 22px/1 var(--serif); }
.co-steps-nav { display: flex; align-items: center; margin-inline: auto; transition: opacity .3s; }
.co[data-step="notice"] .co-steps-nav, .co[data-step="done"] .co-steps-nav { opacity: 0; visibility: hidden; }
.co-step-nav-item { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.co-step-nav-item + .co-step-nav-item::before { content: ""; width: clamp(16px, 3vw, 44px); height: 1.5px; margin: 0 12px 0 3px; background: var(--line-strong); border-radius: 2px; }
.co-step-nav-item.done + .co-step-nav-item::before { background: var(--blue); }
.co-step-nav-item.active { color: var(--text); }
.co-step-nav-item.done { color: var(--blue-text); }
.co-step-nav-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--line-strong); border-radius: 50%; font: 500 11.5px var(--mono); transition: background .3s, border-color .3s, color .3s; }
.co-step-nav-item.active .co-step-nav-dot { border-color: var(--blue); background: var(--blue); color: var(--on-blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.co-step-nav-item.done .co-step-nav-dot { border-color: var(--blue); color: var(--blue-text); }
.co-close-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; }
.co-close-btn svg { width: 16px; height: 16px; }
.co-close-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* Body: stage + panel */
.co-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 560px); min-height: 0; }

/* The stage */
.co-stage { position: relative; display: grid; min-height: 0; overflow: hidden; padding: clamp(20px, 3vw, 44px); background:
  radial-gradient(ellipse 70% 60% at 50% 42%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%),
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px,
  var(--bg-2); }
.co-stage-inner { display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 22px; min-height: 0; }
.co-stage-product { position: relative; height: min(calc(100dvh - 250px), 800px); max-width: 100%; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; border-radius: 24px; background: #f3f0ea; box-shadow: 0 60px 100px -50px rgba(40, 30, 15, .45), 0 0 0 1px rgba(0, 0, 0, .04); }
.co-stage-product > img { width: 100%; height: 100%; object-fit: cover; }
.co-stage-prints { position: absolute; inset: 0; pointer-events: none; }
.co-print { position: absolute; display: grid; place-items: center; overflow: hidden; border: 2px dashed rgba(38, 84, 124, .5); background: rgba(38, 84, 124, .05); transition: border-color .4s, background .4s; }
.co-print.has-photo, .co-print.has-note { border-color: transparent; background: none; }
.co-print img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.03) saturate(1.04); }
.co-print p { margin: 0; padding: 8%; color: #26547c; font: italic 400 clamp(11px, 1.5vw, 20px)/1.2 var(--serif); text-align: center; overflow-wrap: anywhere; mix-blend-mode: multiply; }
.co-print:not(.has-photo):not(.has-note)::after { content: ""; width: 22%; aspect-ratio: 1; max-width: 46px; background: rgba(38, 84, 124, .55); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .co-print:not(.has-photo):not(.has-note) { animation: co-breathe 2.4s ease-in-out infinite; }
  .co-print.is-landing { animation: co-land .95s cubic-bezier(.2, 1.15, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
}
@keyframes co-breathe { 50% { background: rgba(38, 84, 124, .11); border-color: rgba(38, 84, 124, .8); } }
@keyframes co-land { from { opacity: 0; transform: translateY(-40%) scale(1.3) rotate(-7deg); filter: blur(8px); } 70% { opacity: 1; filter: blur(0); } }
.co-stage-caption { position: absolute; left: 50%; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 253, 248, .92); color: #1f2630; font-size: 13px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.co-stage-stamp { position: absolute; top: 22px; right: 18px; padding: 8px 14px; border: 3px double #26547c; border-radius: 8px; color: #26547c; font: 500 15px var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: 0; transform: rotate(-12deg) scale(1.6); }
.co[data-step="done"] .co-stage-stamp { opacity: .9; transform: rotate(-12deg); transition: opacity .4s .5s, transform .5s cubic-bezier(.2, 1.4, .4, 1) .5s; }

.co-switch { display: flex; gap: 8px; max-width: 100%; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 85%, transparent); scrollbar-width: none; transition: opacity .3s; }
.co-switch::-webkit-scrollbar { display: none; }
.co[data-step="payment"] .co-switch, .co[data-step="done"] .co-switch { opacity: 0; visibility: hidden; }
.co-switch button { display: flex; flex: none; align-items: center; gap: 10px; min-height: 56px; padding: 5px 14px 5px 5px; border: 1.5px solid transparent; border-radius: 17px; background: none; text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.co-switch button:hover { background: var(--surface); }
.co-switch button[aria-checked="true"] { border-color: var(--blue); background: var(--card); }
.co-switch img { width: 40px; height: 46px; border-radius: 10px; object-fit: cover; }
.co-switch b { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.co-switch small { display: block; color: var(--faint); font: 500 11.5px var(--mono); white-space: nowrap; }

/* The panel */
.co-panel { min-height: 0; border-left: 1px solid var(--line); background: var(--card); }
.co-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.co-content-inner { display: flex; flex-direction: column; min-height: 100%; width: min(100%, 520px); margin-inline: auto; padding: clamp(28px, 4vh, 52px) clamp(20px, 3vw, 44px) 48px; }
.co-product-chip { display: none; }
.co-sidebar-photo-overlay { position: absolute; display: none; }
.co-step-back { display: inline-flex; align-items: center; gap: 4px; width: fit-content; min-height: 44px; margin: -10px 0 6px -8px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.co-step-back:hover { color: var(--text); background: var(--surface); }
.co-step-back svg { width: 17px; height: 17px; }
.co-step { display: none; }
.co-step.co-step--active { display: block; animation: co-step-in .5s var(--ease) both; }
@keyframes co-step-in { from { opacity: 0; transform: translateY(12px); } }
.co-kicker { margin: 0 0 12px; color: var(--blue-text); font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.co-step-title, .co-done-title { margin: 0 0 10px; font: 400 clamp(38px, 4.2vw, 54px)/.98 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.co-step-sub { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Notice: two ways */
.co-choices { display: grid; gap: 14px; }
.co-choice { position: relative; display: grid; gap: 14px; padding: 24px; border-radius: 22px; }
.co-choice h3 { margin: 0; font: 400 30px/1 var(--serif); }
.co-choice--app { background: linear-gradient(160deg, var(--band), var(--band-2)); color: #f3efe7; box-shadow: 0 30px 50px -30px rgba(20, 40, 60, .6); }
.co-choice-tag { position: absolute; top: 20px; right: 20px; padding: 4px 9px; border-radius: 999px; background: #ff8552; color: #2a1307; font: 600 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.co-choice--web { border: 1.5px solid var(--line-strong); }
.co-notice-perks, .co-web-list { display: grid; margin: 0; padding: 0; list-style: none; }
.co-notice-perks li, .co-web-list li { position: relative; padding: 9px 0 9px 28px; font-size: 14.5px; line-height: 1.4; }
.co-notice-perks li { border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(243, 239, 231, .9); }
.co-web-list li { border-top: 1px solid var(--line); color: var(--muted); }
.co-notice-perks li::before, .co-web-list li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 12px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.co-notice-perks li::before { color: #b7d1ea; }
.co-web-list li::before { color: var(--blue-text); }
.co-choice--app .co-btn-app { margin-top: 4px; background: #fffdf8; color: #1f2630; box-shadow: none; }
.co-btn-outline { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 1.5px solid var(--text); border-radius: 999px; background: transparent; color: var(--text); font: 600 16px var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.co-btn-outline:hover { background: var(--text); color: var(--bg); }
.co-btn-outline svg { width: 18px; height: 18px; }
.co-notice-same { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; line-height: 1.55; }

/* Forms */
.co-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.co-tab { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.co-tab.co-tab--active { background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 4px 14px -6px var(--shadow); }
.co-field { margin-bottom: 16px; }
.co-label { display: block; margin-bottom: 7px; color: var(--muted); font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.co-input { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--text); font: 400 16px var(--sans); transition: border-color .2s, box-shadow .2s; }
textarea.co-input { resize: vertical; min-height: 92px; line-height: 1.5; }
.co-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.co-input::placeholder { color: var(--faint); opacity: .85; }
select.co-input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.co-input-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.co-upload-zone { position: relative; display: grid; place-items: center; min-height: 190px; padding: 26px 20px; border: 2px dashed var(--line-strong); border-radius: 22px; background: var(--bg); text-align: center; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.co-upload-zone:hover, .co-upload-zone.co-upload-zone--dragover { border-color: var(--blue); background: var(--blue-soft); }
.co-upload-zone.co-upload-zone--dragover { transform: scale(1.015); }
.co-upload-zone:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.co-upload-zone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.co-upload-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); }
.co-upload-icon svg { width: 26px; height: 26px; }
.co-upload-label { font-size: 16px; font-weight: 600; }
.co-upload-label u { color: var(--blue-text); text-underline-offset: 3px; }
.co-upload-hint { margin-top: 4px; color: var(--faint); font-size: 13px; }
.co-upload-preview { display: none; align-items: center; gap: 14px; width: 100%; text-align: left; }
.co-upload-preview img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.co-upload-preview-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 550; }
.co-upload-preview-btns { position: relative; z-index: 2; display: flex; gap: 6px; }
.co-upload-preview-change, .co-upload-preview-remove { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.co-upload-preview-remove { color: #b3261e; }
.co-or-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--faint); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.co-or-divider::before, .co-or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co-char-counter { margin-top: 6px; color: var(--faint); font: 500 11.5px var(--mono); text-align: right; }

/* Options: sticker pack and quantity */
.co-options { display: grid; gap: 18px; margin: 4px 0 8px; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.co-pack { margin: 0; padding: 0; border: 0; min-width: 0; }
.co-pack-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-pack-opts label { position: relative; cursor: pointer; }
.co-pack-opts input { position: absolute; opacity: 0; pointer-events: none; }
.co-pack-opts span { display: grid; gap: 2px; min-height: 64px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--bg); transition: border-color .2s, background .2s, box-shadow .2s; }
.co-pack-opts b { font-size: 15px; font-weight: 650; }
.co-pack-opts small { color: var(--muted); font: 500 13px var(--mono); }
.co-pack-opts input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.co-pack-opts input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.co-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.co-qty .co-label { flex: 1 0 100%; margin: 0; }
.co-stepper { display: inline-flex; align-items: center; padding: 4px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.co-stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; transition: background .2s, opacity .2s; }
.co-stepper button:hover:not(:disabled) { background: var(--surface); }
.co-stepper button:disabled { opacity: .3; cursor: default; }
.co-stepper svg { width: 18px; height: 18px; }
.co-stepper output { min-width: 40px; text-align: center; font: 400 26px/1 var(--serif); }
.co-qty-total { color: var(--muted); font: 500 14px var(--mono); }
.co-stage-badge { position: absolute; top: 16px; left: 16px; padding: 7px 12px; border-radius: 999px; background: #26547c; color: #fff; font: 500 12.5px var(--mono); letter-spacing: .06em; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.co-stage-badge.is-pop { animation: co-pop .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes co-pop { from { transform: scale(.7); } }
.co[data-step="notice"] .co-stage-badge { display: none; }

/* Summary (design, account, shipping) */
.co-summary { display: none; margin-top: auto; padding-top: 30px; }
.co[data-step="design"] .co-summary, .co[data-step="account"] .co-summary, .co[data-step="shipping"] .co-summary { display: block; }
.co-summary > * { border-top: 1px dashed var(--line-strong); }
.co-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 14.5px; }
.co-summary-row small { margin-left: 4px; color: var(--faint); font-size: 12px; }
.co-summary-row b { font: 500 14px var(--mono); white-space: nowrap; }
.co-summary-disc b { color: var(--coral-text); }
.co-summary-meter { padding: 14px 0 0; }
.co-summary-bar { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.co-summary-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .8s var(--ease); }
.co-summary-meter p { margin: 8px 0 0; color: var(--faint); font-size: 13px; }

/* Payment */
.co-pricing { margin-bottom: 14px; padding: 22px 22px 18px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); font-family: var(--mono); box-shadow: 0 20px 40px -30px var(--shadow); }
.co-pricing-head { display: flex; justify-content: space-between; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed rgba(31, 38, 48, .3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #4c5764; }
.co-pricing-row { display: flex; justify-content: space-between; padding: 6px 0; color: #4c5764; font-size: 14px; }
.co-pricing-row.co-pricing-total { margin-top: 8px; padding-top: 14px; border-top: 1.5px solid #1f2630; color: #1f2630; font-size: 15px; }
.co-pricing-row.co-pricing-total span:last-child { font: 400 30px/1 var(--serif); }
.co-pricing-discount { color: #a8441a; }
.co-discount-details { margin-bottom: 8px; }
.co-discount-details summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-text); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.co-discount-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.co-discount-apply { min-height: 52px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); font-weight: 600; cursor: pointer; }
.co-discount-apply:hover { border-color: var(--blue); color: var(--blue-text); }
.co-discount-note { margin-top: 8px; font-size: 13.5px; }
.co-discount-note.ok { color: var(--blue-text); }
.co-discount-note.err { color: #b3261e; }
[data-theme="dark"] .co-discount-note.err, [data-theme="dark"] .co-error, [data-theme="dark"] .co-upload-preview-remove { color: #ff9b8f; }
#co-payment-element { margin-bottom: 16px; }
.co-secure { display: flex; align-items: center; gap: 7px; margin: 18px 0 14px; color: var(--faint); font-size: 13px; }
.co-fineprint { margin: 10px 0 0; color: var(--faint); font-size: 12px; text-align: center; }
.co-bankpay { margin: 18px 0 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.co-bankpay p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Buttons */
.co-btn-primary, .co-btn-app { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 10px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--blue); color: var(--on-blue); font: 600 16.5px var(--sans); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--blue) 70%, transparent); }
.co-btn-primary:hover:not(:disabled), .co-btn-app:hover { transform: translateY(-1px); }
.co-btn-primary:disabled { opacity: .6; cursor: wait; }
.co-btn-app svg { width: 18px; height: 18px; fill: currentColor; }
.co-btn-secondary { display: block; width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.co-btn-secondary:hover { color: var(--text); }
.co-error { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(179, 38, 30, .08); color: #b3261e; font-size: 14px; }
.co-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: co-spin .7s linear infinite; vertical-align: middle; }
@keyframes co-spin { to { transform: rotate(360deg); } }

/* Done */
.co-done-check { display: block; width: 64px; height: 64px; margin-bottom: 20px; color: var(--blue-text); }
.co-done-check-bg { stroke-dasharray: 214; stroke-dashoffset: 214; animation: co-check-ring .8s var(--ease) .1s forwards; }
.co-done-check-tick { stroke-dasharray: 50; stroke-dashoffset: 50; animation: co-check-tick .5s var(--ease) .6s forwards; }
@keyframes co-check-ring { to { stroke-dashoffset: 0; } }
@keyframes co-check-tick { to { stroke-dashoffset: 0; } }
.co-done-sub { margin: 0 0 18px; color: var(--muted); }
.co-done-order-badge { margin-bottom: 20px; }
.co-done-order-badge-inner { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font: 500 13px var(--mono); }
.co-done-order-badge-inner:empty { display: none; }
.co-done-product { display: none; }
.co-done-next-label { margin: 8px 0 14px; color: var(--faint); font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.co-done-timeline { display: grid; margin-bottom: 22px; }
.co-done-timeline-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 16px; }
.co-done-timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.co-done-timeline-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); font: 500 12px var(--mono); }
.co-done-timeline-text { padding-top: 5px; color: var(--muted); font-size: 14.5px; }

/* Tablet and phone: one scrolling column, product on top, action at your thumb */
@media (max-width: 900px) {
  .co-topbar { min-height: 60px; gap: 6px; }
  .co-topbar-brand, .co-back-link span { display: none; }
  .co-back-link { padding: 0 10px; }
  .co-step-nav-item { gap: 6px; font-size: 12.5px; }
  .co-step-nav-item + .co-step-nav-item::before { width: 14px; margin: 0 6px 0 0; }
  .co-step-nav-label { display: none; }
  .co-step-nav-item.active .co-step-nav-label { display: inline; }
  .co-body { display: block; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .co-stage { padding: 16px 16px 14px; overflow: visible; }
  .co-stage-inner { gap: 12px; }
  .co-stage-product { height: auto; width: min(72%, 280px); border-radius: 20px; }
  .co[data-step="notice"] .co-stage-product { width: min(62%, 230px); }
  /* Forms: keep the product in view, small, so the fields stay up front */
  .co[data-step="account"] .co-stage-product, .co[data-step="shipping"] .co-stage-product, .co[data-step="payment"] .co-stage-product { width: 128px; border-radius: 14px; }
  .co[data-step="done"] .co-stage-product { width: min(46%, 180px); }
  .co[data-step="account"] .co-stage-caption, .co[data-step="shipping"] .co-stage-caption, .co[data-step="payment"] .co-stage-caption { display: none; }
  .co[data-step="account"] .co-switch, .co[data-step="shipping"] .co-switch, .co[data-step="payment"] .co-switch, .co[data-step="done"] .co-switch { display: none; }
  .co[data-step="account"] .co-stage-stamp, .co[data-step="shipping"] .co-stage-stamp { display: none; }
  .co-stage-caption { bottom: 10px; padding: 6px 11px; font-size: 12px; }
  .co-stage-stamp { top: 12px; right: 8px; padding: 4px 8px; border-width: 2px; font-size: 10.5px; letter-spacing: .14em; }
  .co-switch { width: 100%; justify-content: flex-start; }
  .co-panel { border-left: 0; border-top: 1px solid var(--line); }
  .co-content { height: auto; overflow: visible; }
  .co-content-inner { min-height: 0; padding: 26px 16px calc(36px + env(safe-area-inset-bottom)); }
  .co-step-title, .co-done-title { font-size: clamp(34px, 9vw, 44px); }
}
@media (max-width: 520px) {
  .co-upload-preview { flex-wrap: wrap; }
  .co-upload-preview-name { flex: 1 1 0; }
  .co-upload-preview-btns { flex: 1 0 100%; }
  .co-upload-preview-btns button { flex: 1; }
}
@media (max-width: 380px) {
  .co-input-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .co.co--open, .co.co--closing { animation-duration: .01ms; }
}
