/* Wipe theme + page sections. Shared system: landing.css */
:root {
  /* Ink & Marker, the app's own palette (Wipe/DesignSystem/WipeTheme.swift, light) */
  --bg: #f3f1ec;           /* paper */
  --bg-2: #e9e6df;         /* surfaceSunken */
  --surface: #ffffff;
  --text: #141413;         /* ink */
  --muted: #5f5d57;        /* inkSecondary */
  --line: #dad6cd;
  --accent: #e4ff3a;       /* marker: a highlight behind dark text, never text itself */
  --on-accent: #141413;
  --accent-text: #141413;  /* wherever the accent would be text, ink is */
  --risk: #c2361b;         /* signal */
  --risk-bg: #fbe7e1;
  --h-from: #000000;
  --h-to: #666666;
  --glass: rgba(243, 241, 236, 0.72);
  --glass-line: rgba(20, 20, 19, 0.08);
  --glass-hover: rgba(20, 20, 19, 0.06);
  --menu-bg: rgba(255, 255, 255, 0.8);
  --soon-bg: #dad6cd;
  --soon-fg: #141413;
  --phone: #141413;
  color-scheme: light;
}

/* Hero: fly through a tunnel of shared moments to the motion piece */
.hero { height: 460vh; }
.hero .scene-pin { perspective: 1000px; perspective-origin: 50% 50%; }
.hero-copy { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: var(--s-600); }
.hero-copy .hero-title, .hero-copy .lead { margin-inline: auto; }
.hero-copy .cta-row, .hero-copy .proof { justify-content: center; }
.tunnel { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 50%; pointer-events: none; }
.fly { position: absolute; left: 50%; top: 50%; width: clamp(130px, 17vw, 240px); aspect-ratio: 3 / 4; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.45); opacity: 0; will-change: transform, opacity; }
.fly img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.ftag { position: absolute; left: -12px; bottom: 16px; display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-75); border-radius: 12px; background: #141413; color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.ftag svg { width: 14px; height: 14px; color: #f39b8c; }
.fok { position: absolute; right: -10px; top: -10px; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent); opacity: 0; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.fok svg { width: 16px; height: 16px; }
@property --tug { syntax: "<length>"; inherits: false; initial-value: 0px; }
.hero-card {
  transition: --tug 450ms var(--ease);
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(92vw, 1040px, calc((100svh - 160px) * 1.5)); aspect-ratio: 3 / 2;
  border-radius: 24px; overflow: hidden; background: var(--bg-2); opacity: 0;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08), 0 48px 96px -40px rgba(20, 20, 19, 0.45);
}
.hero-card video { width: 100%; height: 100%; object-fit: cover; }
.chapters { position: absolute; left: 50%; bottom: var(--s-300); z-index: 3; transform: translateX(-50%); width: min(560px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-75); opacity: 0; }
.chapters div { display: grid; gap: var(--s-75); }
.chapters i { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.chapters b { display: block; height: 100%; width: 0; background: var(--accent-text); }
.chapters { position: absolute; }
.hold-hint { position: absolute; left: 50%; bottom: calc(100% + var(--s-200)); transform: translate(-50%, 8px); padding: var(--s-50) var(--s-100); border-radius: 9999px; background: var(--text); color: var(--bg); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
.hold-hint.on { opacity: 1; transform: translate(-50%, 0); }
.chapters span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); transition: color var(--dur) var(--ease); }
.chapters .on span { color: var(--text); }

/* Layers scene */
.layers { height: 420vh; background: var(--bg); }
.layers .scene-pin { display: grid; align-items: center; }
.layers-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-700); align-items: center; }
.steps { position: relative; min-height: 280px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.step.on { opacity: 1; transform: none; filter: none; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: var(--s-300); border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.progress { display: flex; gap: var(--s-75); margin-top: var(--s-400); }
.progress i { width: 32px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i b { display: block; height: 100%; width: 0; background: var(--accent-text); }

.photo-stage { height: min(72vh, 620px); display: grid; place-items: center; }
.photo-obj { position: relative; width: min(64vw, 330px); aspect-ratio: 3 / 4; }
.photo-obj .print { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #fff; padding: 10px; box-shadow: 0 32px 64px -32px rgba(20, 20, 19, 0.5); }
.photo-obj .print img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.photo-obj .plane { position: absolute; inset: 0; border-radius: 16px; border: 1px dashed rgba(20, 20, 19, 0.35); background: rgba(228, 255, 58, 0.14); opacity: 0; }
.tag {
  position: absolute; display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100) var(--s-75) var(--s-75); border-radius: 12px;
  background: #141413; color: #fff; white-space: nowrap;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.tag .ic { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: #e2533f; }
.tag .ic svg { width: 16px; height: 16px; }
.tag small { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: #f39b8c; letter-spacing: 0.02em; }
.tag.keep .ic { background: var(--accent); color: var(--on-accent); }
.tag.keep small { color: var(--accent); }
.tag.keep .kept { display: none; margin-left: var(--s-50); padding: 2px var(--s-75); border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 16px; }
.photo-obj.clean .tag.keep .kept { display: inline-block; }
.clean-pill {
  position: absolute; left: 50%; bottom: -20px; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--s-75); white-space: nowrap;
  padding: var(--s-75) var(--s-200); border-radius: 9999px; background: var(--accent); color: var(--on-accent);
  font-size: 14px; line-height: 20px; font-weight: 700; opacity: 0;
}
.clean-pill svg { width: 16px; height: 16px; }
.sweep { position: absolute; top: -8%; bottom: -8%; width: 38%; left: -50%; border-radius: 24px; background: rgba(228, 255, 58, 0.85); opacity: 0; filter: blur(2px); }
@media (max-width: 900px) {
  .layers { height: 380vh; }
  .layers-grid { grid-template-columns: 1fr; gap: var(--s-300); }
  .steps { min-height: 176px; order: 2; }
  .step h2.title { font-size: 30px; line-height: 36px; }
  .step .lead { margin-top: var(--s-100); font-size: 16px; line-height: 24px; }
  .step .num { margin-bottom: var(--s-100); }
  .photo-stage { height: 46vh; }
  .photo-obj { width: min(52vw, 230px); }
  .tag { font-size: 12px; line-height: 16px; padding: var(--s-50) var(--s-75) var(--s-50) var(--s-50); }
  .tag .ic { width: 24px; height: 24px; }
  .progress { display: none; }
}

/* Tagline */
.tagline-band { padding-block: 160px; }
@media (max-width: 640px) { .tagline-band { padding-block: var(--s-900); } }

/* Presets */
.presets { margin-top: var(--s-600); }
.preset { display: flex; flex-direction: column; gap: var(--s-200); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .preset:hover { transform: translateY(-4px); border-color: #b9b4a8; } }
.preset .badge { align-self: flex-start; padding: var(--s-50) var(--s-100); border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 16px; font-weight: 700; }
.preset .badge.quiet { background: var(--bg-2); color: var(--muted); }
.preset ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); font-size: 14px; line-height: 20px; }
.preset li { display: flex; gap: var(--s-75); align-items: flex-start; }
.preset li svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.preset li.rm svg { color: var(--risk); }
.preset li.kp svg { color: var(--accent-text); }
.preset p { color: var(--muted); }

/* Phones fan */
.fan { height: 280vh; background: var(--bg); }
.fan .scene-pin { display: grid; grid-template-rows: auto 1fr; padding-top: 112px; }
.fan-stage { display: flex; justify-content: center; align-items: center; gap: var(--s-600); min-height: 0; padding-bottom: var(--s-300); perspective: 1600px; }
.fan-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-300); flex: none; transform-style: preserve-3d; }
.fan-item .iphone { --w: calc(min(56vh, 560px, 100svh - 340px) * 0.4826); }
.fan-item figcaption { text-align: center; max-width: 240px; opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.fan-item.on figcaption { opacity: 1; transform: none; }
.fan-item b { display: block; font-size: 16px; line-height: 24px; }
.fan-item figcaption span { font-size: 14px; line-height: 20px; color: var(--muted); }
}

@media (pointer: coarse) { .step { filter: none !important; } }

/* Hidden in the file */
.reveal-list { margin-top: var(--s-400); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 480px) { .reveal-list { grid-template-columns: 1fr; } }
.reveal-list div { display: grid; grid-template-columns: 24px 1fr; column-gap: var(--s-100); row-gap: var(--s-25); }
.reveal-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--risk); grid-row: span 2; }
.reveal-list b { font-size: 16px; line-height: 24px; }
.reveal-list span { font-size: 14px; line-height: 20px; color: var(--muted); }
.inspector { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: var(--s-300); box-shadow: 0 32px 64px -32px rgba(20, 20, 19, 0.3); }
.insp-head { display: flex; align-items: center; gap: var(--s-200); }
.insp-head img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.insp-head strong { display: block; font-size: 16px; line-height: 24px; }
.insp-head span { font-size: 14px; line-height: 20px; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-50); margin: var(--s-300) 0 var(--s-200); padding: var(--s-50); border-radius: 9999px; background: var(--bg-2); }
.seg button { min-height: 40px; border: 0; border-radius: 9999px; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(20, 20, 19, 0.12); }
.seg button:active { transform: scale(0.98); }
.fields { margin: 0; padding: 0; list-style: none; }
.fields li { display: grid; grid-template-columns: 20px auto 1fr auto; align-items: center; gap: var(--s-100); padding: var(--s-100) 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.fields svg { width: 18px; height: 18px; color: var(--risk); }
.fields .keep svg { color: var(--accent-text); }
.fields .k { font-weight: 600; }
.fields .v { text-align: right; color: var(--muted); transition: opacity 500ms var(--ease) calc(var(--i) * 80ms), filter 500ms var(--ease) calc(var(--i) * 80ms); }
.fields .gone { display: none; padding: 2px var(--s-75); border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 700; }
[data-state="clean"] .fields .rm .v { opacity: 0.35; filter: blur(4px); text-decoration: line-through; }
[data-state="clean"] .fields .gone { display: inline-block; }
[data-state="clean"] .fields .rm .gone { background: var(--risk-bg); color: var(--risk); }
[data-state="clean"] .fields .keep .gone { background: var(--accent); color: var(--on-accent); }
.insp-foot { margin-top: var(--s-200); padding: var(--s-100) var(--s-200); border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 600; background: var(--risk-bg); color: var(--risk); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.insp-foot svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: var(--s-50); }
[data-state="clean"] .insp-foot { background: var(--accent); color: var(--on-accent); }
[data-state="original"] .when-clean, [data-state="clean"] .when-original { display: none; }

/* Two ways */
.modes { margin-top: var(--s-600); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }
.mode { display: flex; flex-direction: column; gap: var(--s-200); }
.mode.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mode .badge { align-self: flex-start; padding: var(--s-50) var(--s-100); border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 16px; font-weight: 700; }
.mode .badge.quiet { background: var(--bg-2); color: var(--muted); }
.mode p { color: var(--muted); }
.mode ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.mode li { display: flex; gap: var(--s-100); align-items: center; font-size: 14px; line-height: 20px; }
.mode .kp { display: inline-flex; width: 24px; height: 24px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.mode .kp svg { width: 14px; height: 14px; }

/* Privacy promise */
.promise { margin-top: var(--s-600); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); text-align: center; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; } }
.promise div { display: flex; flex-direction: column; align-items: center; gap: var(--s-100); }
.promise svg { width: 48px; height: 48px; padding: var(--s-100); border-radius: 16px; background: var(--accent); color: var(--on-accent); margin-bottom: var(--s-100); }
.promise p { font-size: 14px; line-height: 20px; color: var(--muted); }

/* Share sheet split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-800); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s-600); } }
.tilt { perspective: 2600px; perspective-origin: 50% 50%; display: grid; place-items: center; }
.howto { margin: var(--s-400) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-200); }
.howto li { display: flex; gap: var(--s-200); align-items: center; font-weight: 600; }
.howto li span { display: inline-flex; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 14px; }

/* Quality */
.facts { margin-top: var(--s-600); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }
.fact { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-300); }
.fact .big { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-text); }
.fact b { font-size: 18px; line-height: 28px; }
.fact span { font-size: 14px; line-height: 20px; color: var(--muted); }

/* Pricing */
.plans { margin: var(--s-600) auto 0; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: var(--s-200); text-align: left; }
.plan .price { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan.pro { background: #141413; color: #fff; border-color: #141413; }
.plan.pro .muted, .plan.pro li { color: rgba(255, 255, 255, 0.78); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.plan li { display: flex; gap: var(--s-75); align-items: flex-start; color: var(--muted); }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); flex: none; }
.plan.pro li svg { color: var(--accent); }
.muted { color: var(--muted); }

/* Final CTA */
.final { background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: var(--s-900) var(--s-400); text-align: center; }
.final .hero-title { margin-inline: auto; --h-from: #0b0b0a; --h-to: #3a3a36; }
.final .lead { color: #34332f; margin-inline: auto; }
.final .cta-row { justify-content: center; }
@media (max-width: 480px) { .final { padding: var(--s-700) var(--s-300); } .final .hero-title { font-size: 30px; line-height: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero .scene-pin { position: relative; height: auto; padding: 136px 0 var(--s-800); display: grid; justify-items: center; gap: var(--s-600); }
  .hero-copy { position: static; padding: 0; }
  .tunnel, .chapters { display: none; }
  .hero-card { position: relative; left: auto; top: auto; opacity: 1; transform: none !important; }
  .tilt .iphone { transform: none; }
}

/* Two ways: quick clean vs full review, side by side */
.ways { margin-top: var(--s-600); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-300); padding: var(--s-500) var(--s-500) 0; border-radius: 32px; border: 1px solid var(--line); }
@media (max-width: 480px) { .way { padding: var(--s-300) var(--s-300) 0; border-radius: 24px; } }
.way.quick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.way.review { background: var(--surface); }
.way-head { display: flex; align-items: center; gap: var(--s-200); }
.way-head h3 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.way-ic { display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center; border-radius: 16px; background: var(--on-accent); color: var(--accent); }
.way.review .way-ic { background: var(--bg-2); color: var(--accent-text); }
.way-ic svg { width: 28px; height: 28px; }
.way-time { display: inline-block; margin-top: var(--s-50); padding: 2px var(--s-100); border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 700; background: rgba(20, 20, 19, 0.12); }
.way.review .way-time { background: var(--bg-2); color: var(--muted); }
.way-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.way-steps li { display: flex; gap: var(--s-100); align-items: center; font-weight: 600; }
.way-steps span { display: inline-flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; font-size: 14px; font-weight: 700; background: var(--on-accent); color: var(--accent); }
.way.review .way-steps span { background: var(--accent); color: var(--on-accent); }
.way-steps span svg { width: 16px; height: 16px; }
.way-best { font-size: 14px; line-height: 20px; }
.way.quick .way-best { color: #141413; }
.way.review .way-best { color: var(--muted); }
.way-best b { color: inherit; font-weight: 700; margin-right: var(--s-50); }

/* Mode cards are links to their sections */
.way-link { display: inline-flex; align-items: center; gap: var(--s-75); font-weight: 700; text-decoration: none; }
.way-link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.way-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) and (pointer: fine) { .way:hover .way-link svg { transform: translateX(4px); } }
.way { cursor: pointer; transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .way:hover { transform: translateY(-4px); } }
.way:has(.way-link:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 4px; }
.way-link:focus-visible { outline: none; }

/* Cross links between the two modes */
.cross { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-75) var(--s-100); margin-top: var(--s-400); padding: var(--s-100) var(--s-200); border-radius: 9999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; line-height: 20px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cross span { color: var(--muted); }
.cross b { display: inline-flex; align-items: center; gap: var(--s-50); color: var(--accent-text); }
.cross svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .cross:hover { transform: translateY(-2px); border-color: #b9b4a8; } }
.cross:active { transform: scale(0.98); }
.howto li span svg { width: 16px; height: 16px; }
.review-head { padding-bottom: 0; background: var(--bg); }



/* Phone mockups in cards stand up as the card comes into view: no roll, no skew, never cropped at the sides */
.way-phone { margin-top: auto; height: 300px; display: flex; justify-content: center; perspective: 2600px; perspective-origin: 50% 85%; clip-path: inset(-120px -120px 0 -120px); }
.way-phone .iphone { --w: 240px; margin-top: var(--s-300); transform-origin: 50% 100%; transform: translateY(48px) rotateX(28deg); opacity: 0.5;
  transition: transform 1400ms var(--ease) 150ms, opacity 900ms var(--ease) 150ms; }
.way.in .way-phone .iphone { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .way.in:hover .way-phone .iphone { transform: translateY(-10px); transition-delay: 0s; } }
@media (max-width: 720px) { .way-phone { height: 270px; } .way-phone .iphone { --w: min(56vw, 230px); } }
@media (prefers-reduced-motion: reduce) { .way-phone .iphone { transform: none; opacity: 1; } }
.tilt .iphone { --w: min(300px, 64vw); transform-origin: 50% 100%; transform: translateY(48px) rotateX(28deg); opacity: 0.5; transition: transform 1400ms var(--ease) 150ms, opacity 900ms var(--ease) 150ms; }
.tilt.in .iphone { transform: rotateY(-10deg); opacity: 1; }
@media (max-width: 720px) { .tilt.in .iphone { transform: none; } }

/* Smooth hero on phones: moving photos without live shadows, layers promoted once */
.fly, .ftag, .hero-card, .hero-copy, .photo-obj .tag { will-change: transform, opacity; }
@media (pointer: coarse) { .fly { box-shadow: none; } .hero-card { box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.45); } .sweep { filter: none; } }


/* the two modes are a short chooser; details live in their own sections */
.way { padding-bottom: var(--s-500); gap: var(--s-200); }
.way.quick .way-best { color: #141413; }
.way-best { font-size: 16px; line-height: 24px; }
@media (max-width: 480px) { .way { padding-bottom: var(--s-300); } }

/* card phones always stand upright: no lying-down start state */
.way-phone { perspective: none !important; }
.way-phone .iphone, .tilt .iphone { transform: none !important; opacity: 1 !important; }

/* ===== Phones, portrait and landscape: their own layout (system in landing.css) ===== */
@media (max-width: 720px), (pointer: coarse) and (max-height: 540px) {
  /* hero: the copy and the motion piece; no tunnel */
  .hero { height: auto; }
  .hero .scene-pin { position: relative; height: auto; overflow: visible; perspective: none; display: grid; justify-items: center; gap: var(--s-400); padding: var(--s-700) 0; }
  .tunnel, .chapters { display: none; }
  .hero-copy { position: static; padding: 0; z-index: auto; }
  .hero-card { display: none; }
  .film-intro { --film-bg: #f3f1ec; --film-fg: #141413; }
  .tagline-band .tagline { font-size: 30px; line-height: 36px; }
  .ways { gap: var(--s-200); }
  .grid-3.presets { gap: var(--s-200); margin-top: var(--s-400); }
  .facts { grid-template-columns: 1fr 1fr; gap: var(--s-100); margin-top: var(--s-400); }
  .fact { padding: var(--s-200); }
  .fact .big { font-size: 36px; line-height: 40px; }
  .plans { gap: var(--s-200); margin-top: var(--s-400); }
  .tilt .iphone { --w: calc(min(60svh, 560px) * 0.4826); }
  .m-slide h3 { font-size: 20px; line-height: 28px; }

  /* the second layer, in three slides: tags on the photo → lifted off it → wiped */
  .wl .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: var(--s-100); border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
  .wl h2.title { font-size: 30px; line-height: 36px; }
  .wl .m-vis { perspective: 900px; padding: var(--s-200) 0 var(--s-300); }
  .wl-photo { position: relative; width: min(52vw, calc(var(--m-room) * 0.4 * 0.75)); aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform 1200ms var(--ease) 200ms; }
  .wl-photo .print { position: absolute; inset: 0; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.45); }
  .wl-photo .print img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
  .wl-photo .tag { transition: transform 900ms var(--ease) calc(300ms + var(--o) * 120ms), opacity 600ms var(--ease) calc(300ms + var(--o) * 120ms); }
  .wl[data-state="1"].on .wl-photo { transform: rotateY(-26deg) rotateX(12deg); }
  .wl[data-state="1"].on .tag { transform: translateZ(calc(60px + var(--o) * 18px)); }
  .wl[data-state="2"].on .tag:not(.keep) { transform: translate3d(72px, -16px, 0) scale(0.85); opacity: 0; }
  .wl[data-state="2"] .kept { display: none; }
  .wl[data-state="2"].on .kept { display: inline-block; }
  .wl .clean-pill { transform: translate(-50%, 8px); transition: opacity 500ms var(--ease) 1100ms, transform 500ms var(--ease) 1100ms; }
  .wl[data-state="2"].on .clean-pill { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) {
  .hero .scene-pin { padding: var(--s-500) 0; }
  .hero-copy .lead { font-size: 14px; line-height: 20px; margin-top: var(--s-100); }
  .hero-copy .cta-row { margin-top: var(--s-200); }
  .grid-3.presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways, .plans, .split { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tilt .iphone { --w: calc((var(--m-room) - var(--s-600)) * 0.4826); }
  .wl-photo { width: calc((var(--m-room) - var(--s-700)) * 0.75); }
}
/* landscape: the review heading sits in the text column, the phone gets the full height beside it */
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) {
  #review-m { position: relative; }
  #review-m { padding-top: var(--s-500); }
  #review-m .m-head { position: absolute; z-index: 1; left: max(var(--gutter), env(safe-area-inset-left, 0px)); top: var(--s-500); width: 44%; margin: 0; text-align: left; pointer-events: none; }
  #review-m .m-head .title { font-size: 24px; line-height: 32px; }
  #review-m .m-slide .m-txt { align-self: start; padding-top: 80px; }
}

/* Two phones side by side (Quick clean in the Share Sheet) */
.duo { display: flex; align-items: flex-start; justify-content: center; gap: var(--s-300); }
.duo .iphone { --w: min(30vw, 250px); }
.duo .iphone + .iphone { margin-top: var(--s-600); }
@media (max-width: 900px) { .duo .iphone { --w: min(38vw, 190px); } .duo .iphone + .iphone { margin-top: var(--s-400); } }
.note { margin-top: var(--s-300); font-size: 14px; line-height: 20px; color: var(--muted); }
.way.quick .note { color: #34332f; }

/* A phone peeking out of the bottom of a card (the card clips it) */
.way-peek { height: clamp(220px, 34vw, 340px); margin: var(--s-200) calc(-1 * var(--s-500)) 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.way-peek img { width: min(62%, 270px); height: auto; margin-top: var(--s-100); filter: drop-shadow(0 18px 24px rgba(20, 20, 19, 0.28)); }
@media (max-width: 480px) { .way-peek { margin-inline: calc(-1 * var(--s-300)); } }
