/* Be Still: the app's own world on the web. A night sky with stars, a moon and
   warm dunes at the horizon; Liquid Glass cards on parchment by day and on dusk
   blue at night; New York serif for Scripture and headings, as in the app. */
:root {
  /* Sky (always night, like the Library after dark) */
  --sky-top: #0c0f26;
  --sky-mid: #1c1f45;
  --sky-low: #3b3463;
  --glow: #f0c48a;
  --dune-far: #6c5579;
  --dune-near: #2d2445;
  /* Page */
  --bg: #f6efe4;
  --bg-2: #efe5d5;
  --ink: #2a241c;
  --muted: #6e6455;
  --gold: #b9773a;
  --gold-soft: #e7b77a;
  --glass: rgba(255, 252, 246, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 10px 30px rgba(58, 40, 18, 0.10);
  --line: rgba(110, 90, 60, 0.16);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 26px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12142c;
    --bg-2: #181a38;
    --ink: #f1ebe1;
    --muted: #aaa4bd;
    --gold: #e7b77a;
    --gold-soft: #f0c48a;
    --glass: rgba(40, 42, 78, 0.55);
    --glass-edge: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --line: rgba(255, 255, 255, 0.10);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 720px; }

/* ---------- The sky ---------- */
.sky {
  margin-bottom: -1px;
  position: relative; overflow: hidden; color: #f4efe6;
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(240, 196, 138, 0.55), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 80%, #6b4e6a 100%);
  isolation: isolate;
}
.sky canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.moon {
  position: absolute; z-index: -1; top: 118px; right: max(9%, 40px);
  width: 76px; height: 76px; border-radius: 50%;
  box-shadow: 18px -10px 0 0 #f6ecd2; transform: rotate(-10deg);
  filter: drop-shadow(0 0 18px rgba(246, 236, 210, 0.55));
}
.dunes { position: absolute; left: 0; right: 0; bottom: -2px; z-index: -1; width: 100%; height: 162px; display: block; }
.dunes .far { fill: var(--dune-far); opacity: 0.55; }
.dunes .near { fill: var(--bg); }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.nav a { color: rgba(244, 239, 230, 0.82); text-decoration: none; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: var(--gold-soft); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-block: 40px 150px; }
.hero > * { min-width: 0; }
.hero .icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); margin-bottom: 22px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin: 0 0 10px; }
.hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.hero .lede { font-family: var(--sans); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: rgba(244, 239, 230, 0.82); margin: 16px 0 26px; max-width: 30ch; }
.verse { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; margin: 0 0 30px; padding-left: 16px; border-left: 2px solid var(--gold-soft); color: #f7f0e3; }
.verse cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 239, 230, 0.6); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pill svg { width: 18px; height: 18px; fill: currentColor; }
.quiet-facts { font-size: 14px; color: rgba(244, 239, 230, 0.7); }

/* Phones */
.phone {
  position: relative; border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #3a3550, #15142a);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.phone img { border-radius: 37px; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; }
.hero .phone { max-width: 320px; margin-inline: auto; transform: rotate(3deg); }

/* ---------- Page sections ---------- */
section.band { padding-block: 72px; }
section.band.alt { background: var(--bg-2); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 640px; }
.section-head h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.screens figure { margin: 0; display: grid; gap: 14px; }
.screens .phone { border-radius: 36px; padding: 8px; }
.screens .phone img { border-radius: 29px; }
.screens figcaption { font-size: 15px; color: var(--muted); }
.screens figcaption b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }

/* Glass cards */
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 20px; display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; min-width: 0; }
@media (max-width: 560px) { .feature { grid-template-columns: auto 1fr; gap: 14px; } }
.feature h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.badge { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.badge svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.b-gold { background: linear-gradient(160deg, #e6a65a, #c4782f); }
.b-orange { background: linear-gradient(160deg, #ffaa4d, #f07a1c); }
.b-indigo { background: linear-gradient(160deg, #8c8cff, #5b5bf0); }
.b-pink { background: linear-gradient(160deg, #ff7a98, #e5456b); }
.b-purple { background: linear-gradient(160deg, #b98bf2, #8a55d8); }
.b-teal { background: linear-gradient(160deg, #4fd0c6, #1f9f9a); }
.b-blue { background: linear-gradient(160deg, #6fb3ff, #3a7fe0); }
.b-sky { background: linear-gradient(160deg, #3d3a73, #1c1f45); }

/* Promise (the night again) */
.promise { border-radius: 34px; padding: 44px 40px; color: #f4efe6; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 85% 120%, rgba(240, 196, 138, 0.45), transparent 60%), linear-gradient(170deg, var(--sky-top), var(--sky-mid) 60%, var(--sky-low)); }
.promise canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.promise h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 26px; max-width: 18ch; text-wrap: balance; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.promise li b { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--gold-soft); }
.promise li span { color: rgba(244, 239, 230, 0.78); font-size: 15px; }
.promise a { color: var(--gold-soft); }

/* Closing verse */
.closing { text-align: center; padding-block: 80px 40px; }
.closing blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; margin: 0 auto; max-width: 26ch; text-wrap: balance; }
.closing cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--gold); }

/* ---------- Document pages (privacy, support) ---------- */
.page-hero { padding-block: 24px 120px; }
.page-hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05; margin: 8px 0 10px; }
.page-hero p { margin: 0; color: rgba(244, 239, 230, 0.78); font-family: var(--sans); font-size: 1.2rem; }
.doc { margin-top: -70px; position: relative; padding: 34px clamp(22px, 5vw, 48px); display: grid; gap: 30px; }
.doc section { display: grid; gap: 10px; }
.doc h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.45rem; margin: 0; }
.doc p, .doc ul { margin: 0; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc .summary { font-size: 1.15rem; line-height: 1.55; }
.email-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 20px; background: rgba(185, 119, 58, 0.10); border: 1px solid rgba(185, 119, 58, 0.25); }
.email-card .email { font-weight: 600; font-size: 1.1rem; user-select: all; overflow-wrap: anywhere; }
.copy { font: inherit; font-size: 14px; font-weight: 600; color: var(--gold); background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
details { border-top: 1px solid var(--line); padding-block: 14px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 8px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 24px 130px; text-align: left; }
  .hero .phone { max-width: 260px; transform: rotate(2deg); }
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
  .screens figure { scroll-snap-align: center; }
  .promise { padding: 34px 24px; }
}
@media (max-width: 520px) {
  .moon { width: 56px; height: 56px; top: 74px; box-shadow: 13px -8px 0 0 #f6ecd2; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .brand span { display: none; }
}

/* ---------- The iPhone Duo ---------- */
.hero-duo { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 48px; padding-block: 30px 130px; max-width: none; }
.hero-duo .hero-copy { max-width: 440px; }
.hero-duo .lede { max-width: 30ch; }
.duo-stage { position: relative; width: 100%; margin-right: -4%; padding-bottom: 4%; }
.duo {
  position: relative; border-radius: 34px; padding: 12px;
  background: linear-gradient(160deg, #4a4560, #19182c 55%, #2c2943);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.duo img { width: 100%; height: auto; aspect-ratio: 2853 / 2007; object-fit: cover; border-radius: 24px; }
/* The fold: a soft crease down the middle of the inner screen. */
.duo .hinge {
  position: absolute; top: 12px; bottom: 12px; left: 50%; width: 22px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.10) 40%, rgba(255, 255, 255, 0.18) 50%, rgba(0, 0, 0, 0.10) 60%, transparent);
}
.phone.folded {
  position: absolute; left: -9%; bottom: -10%; width: 23%; border-radius: 30px; padding: 7px;
  transform: rotate(-6deg); background: linear-gradient(160deg, #4a4560, #19182c);
}
.phone.folded img { border-radius: 24px; aspect-ratio: 756 / 1100; }
.duo-band .duo.wide { max-width: 980px; margin-inline: auto; }
.duo-points { list-style: none; padding: 0; margin: 34px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.duo-points b { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.duo-points li { color: var(--muted); font-size: 15px; }
.duo-points li b { color: var(--ink); }
@media (max-width: 960px) {
  .hero-duo { grid-template-columns: 1fr; gap: 40px; }
  .hero-duo .hero-copy { max-width: none; }
  .duo-stage { margin-right: 0; padding-left: 6%; }
  .phone.folded { left: -2%; }
}
@media (max-width: 860px) {
  .duo { border-radius: 22px; padding: 7px; }
  .duo img { border-radius: 16px; }
  .duo .hinge { top: 7px; bottom: 7px; width: 14px; }
  .phone.folded { width: 30%; border-radius: 20px; padding: 5px; bottom: -10%; }
  .phone.folded img { border-radius: 16px; }
  .duo-points { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Closer to the app ---------- */
/* The app's ambient sky: night at the top, easing through a lavender mist into
   the page, with pale hills at the horizon, as behind the Library. */
:root { --mist: #e7e1ec; --hill: #cfc6dc; --hill-near: #e3dce8; }
@media (prefers-color-scheme: dark) { :root { --mist: #1c1e40; --hill: #2a2c55; --hill-near: #1d1f42; } }
.sky {
  background:
    radial-gradient(70% 40% at 50% 92%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #0c0f2c 0%, #1b1f4a 40%, #34366a 64%, #7f7ba8 80%, var(--mist) 92%, var(--bg) 100%);
}
@media (prefers-color-scheme: dark) {
  .sky { background: linear-gradient(180deg, #0a0c24 0%, #151839 40%, #22254f 70%, var(--mist) 88%, var(--bg) 100%); }
}
.dunes .far { fill: var(--hill); opacity: 0.7; }
.dunes .near { fill: var(--hill-near); }
.dunes { height: 120px; }

/* Liquid Glass, as on the app's cards and rows. */
:root { --glass: rgba(255, 255, 255, 0.72); --glass-edge: rgba(255, 255, 255, 0.85); --glass-shadow: 0 8px 26px rgba(40, 36, 80, 0.09); }
@media (prefers-color-scheme: dark) { :root { --glass: rgba(44, 46, 86, 0.55); --glass-edge: rgba(255, 255, 255, 0.10); --glass-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); } }
.glass { border-radius: 22px; }

/* Library-style rows: a colored tile, a title and a quiet line under it. */
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; }
.feature h3 { font-size: 1.06rem; font-weight: 600; margin: 0 0 2px; }
.feature p { font-size: 15px; }
.badge { width: 44px; height: 44px; border-radius: 10px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature { grid-template-columns: auto minmax(0, 1fr); } }

/* The Today card, as it opens the Library. */
.today-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  margin: 4px 0 28px; padding: 18px 20px 16px; border-radius: 24px; max-width: 440px;
  background: linear-gradient(170deg, #121539, #0d102b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.today-card canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.today-card .tc-label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: rgba(244, 239, 230, 0.6); }
.today-card .tc-verse { font-family: var(--serif); font-size: 1.32rem; line-height: 1.42; color: #f7f1e6; margin: 10px 0 14px; }
.today-card .tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today-card .tc-ref { font-weight: 600; font-size: 15px; color: #f4efe6; }
.glass-btn {
  display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: 15px; color: #f4efe6;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.2rem); }
.eyebrow { letter-spacing: 0.16em; }

/* The folded Duo leans on the open one's right side, clear of the Today card. */
.phone.folded { left: auto; right: -4%; bottom: -12%; transform: rotate(6deg); }
@media (max-width: 960px) { .phone.folded { left: auto; right: -1%; } .duo-stage { padding-left: 0; padding-right: 6%; } }

/* ---------- See it on each device ---------- */
/* One frame that changes shape: the open Duo, the iPhone, the iPad. */
.phone.folded { display: none; }
.showcase { display: grid; justify-items: center; gap: 22px; width: 100%; }
.device-stage { width: 100%; aspect-ratio: 1.36; display: grid; place-items: center; }
.device {
  --pad: 12px; --r: 34px;
  position: relative; padding: var(--pad); border-radius: var(--r);
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #4a4560, #19182c 55%, #2c2943);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: width .7s cubic-bezier(.2, .9, .25, 1), height .7s cubic-bezier(.2, .9, .25, 1), border-radius .7s, padding .7s;
}
.device .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--r) - var(--pad)); transition: border-radius .7s; background: #0c0f2c; }
.device .screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .7s cubic-bezier(.2, .9, .25, 1);
}
.showcase[data-device="duo"] img[data-for="duo"],
.showcase[data-device="iphone"] img[data-for="iphone"],
.showcase[data-device="ipad"] img[data-for="ipad"] { opacity: 1; transform: none; }
.showcase[data-device="iphone"] .device { --pad: 9px; --r: 44px; }
.showcase[data-device="ipad"] .device { --pad: 14px; --r: 30px; }
.device .hinge { top: var(--pad); bottom: var(--pad); transition: opacity .4s; }
.showcase:not([data-device="duo"]) .device .hinge { opacity: 0; }
.device .island { position: absolute; top: calc(var(--pad) + 9px); left: 50%; width: 30%; max-width: 92px; height: 22px; border-radius: 999px; background: #000; transform: translateX(-50%) scale(.6); opacity: 0; transition: opacity .3s, transform .5s; }
.showcase[data-device="iphone"] .device .island { opacity: 1; transform: translateX(-50%); }

/* The switch: Liquid Glass, with a glass thumb that slides to the device. */
.device-switch {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.25);
}
.device-switch .thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px;
  background: rgba(255, 255, 255, 0.20); border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform .5s cubic-bezier(.3, 1.3, .4, 1);
}
.showcase[data-device="iphone"] .device-switch .thumb { transform: translateX(100%); }
.showcase[data-device="ipad"] .device-switch .thumb { transform: translateX(200%); }
.device-switch button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border: 0; background: none; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--sans); color: rgba(244, 239, 230, 0.75); white-space: nowrap; transition: color .3s;
}
.device-switch button[aria-checked="true"] { color: #fff; }
.device-switch button:hover { color: #fff; }
.device-switch svg { width: 26px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.device-switch button[aria-checked="true"] svg { stroke: var(--gold-soft); }
.device-caption { margin: 0; min-height: 2.6em; text-align: center; font-size: 15px; color: rgba(244, 239, 230, 0.75); max-width: 40ch; }
@media (max-width: 960px) {
  .device-stage { aspect-ratio: 1.05; max-width: 640px; }
}
@media (max-width: 520px) {
  .device-switch button { padding: 9px 12px; font-size: 14px; gap: 6px; }
  .device-switch svg { width: 20px; }
  .showcase[data-device="iphone"] .device { --pad: 7px; --r: 32px; }
  .device { --pad: 8px; --r: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .device, .device .screen, .device .screen img, .device-switch .thumb { transition: none; }
}

/* Small screens: the switch fits the width, and the night lasts past it. */
.showcase, .device-stage { min-width: 0; max-width: 100%; }
.device-switch { max-width: 100%; }
@media (max-width: 960px) {
  .sky { background: linear-gradient(180deg, #0c0f2c 0%, #1b1f4a 45%, #34366a 75%, #6e6a9a 90%, var(--mist) 97%, var(--bg) 100%); }
}
@media (max-width: 520px) {
  .device-switch button { padding: 9px 10px; font-size: 13px; gap: 5px; }
  .device-switch svg { width: 18px; height: 16px; }
}

/* Stacked hero (Duo, small iPad, phone): a compact title block so the
   devices sit high on the first screen. */
@media (max-width: 960px) {
  .hero-duo { padding-block: 6px 110px; gap: 26px; }
  .hero-duo .hero-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; justify-items: start; }
  .hero-duo .hero-copy .icon { grid-row: 1 / span 2; width: 66px; height: 66px; border-radius: 15px; margin: 0; }
  .hero-duo .eyebrow { align-self: end; margin: 0 0 2px; font-size: 11px; }
  .hero-duo h1 { align-self: start; font-size: clamp(2.3rem, 7vw, 3rem); }
  .hero-duo .lede, .hero-duo .cta { grid-column: 1 / -1; }
  .hero-duo .lede { margin: 14px 0 18px; max-width: 46ch; font-size: 1.1rem; }
  .hero-duo .today-card { display: none; }
  .moon { top: 84px; width: 54px; height: 54px; box-shadow: 13px -8px 0 0 #f6ecd2; }
}
@media (max-width: 520px) {
  .hero-duo .hero-copy .icon { width: 56px; height: 56px; border-radius: 13px; }
  .hero-duo .lede { font-size: 1.02rem; }
  .pill { padding: 11px 16px; font-size: 14px; }
}

/* No shape-change animation until the frame has its first size. */
.showcase:not(.ready) .device, .showcase:not(.ready) .device .screen { transition: none; }
@media (max-width: 960px) { .device-stage { aspect-ratio: 1.25; } }
@media (max-width: 520px) { .device-stage { aspect-ratio: 1; } }

@media (max-width: 520px) { .hero-duo .eyebrow { display: none; } .hero-duo .hero-copy .icon { grid-row: 1; } .hero-duo h1 { align-self: center; } }

/* ---------- One gallery: the device switch picks the frame, the tabs pick the screen ---------- */
.device .screen img.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 1; transform: none; transition: opacity .3s ease, transform .5s cubic-bezier(.2, .9, .25, 1);
}
.device .screen img.shot.swap { opacity: 0; transform: scale(.985); }
.device { touch-action: pan-y; cursor: grab; }
.screen-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: -6px; }
.screen-tabs button {
  font: 600 14px/1 var(--sans); color: rgba(244, 239, 230, 0.62); background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; transition: color .25s, background .25s;
}
.screen-tabs button:hover { color: #fff; }
.screen-tabs button[aria-selected="true"] { color: var(--gold-soft); background: rgba(255, 255, 255, 0.10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.device-caption { margin-top: -6px; }
@media (max-width: 520px) { .screen-tabs button { padding: 7px 9px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .device .screen img.shot { transition: none; } }

/* The gallery's tabs and caption stay on night sky, where they read clearly. */
@media (min-width: 961px) {
  .sky { background: radial-gradient(70% 40% at 50% 96%, rgba(255, 255, 255, 0.3), transparent 70%),
    linear-gradient(180deg, #0c0f2c 0%, #1b1f4a 42%, #34366a 70%, #6e6a9a 86%, var(--mist) 95%, var(--bg) 100%); }
}

@media (max-width: 520px) { .screen-tabs { flex-wrap: nowrap; gap: 0; } .screen-tabs button { padding: 7px 7px; font-size: 12.5px; white-space: nowrap; } }

/* ---------- Gallery: a row of real screens for the chosen device ---------- */
.hero-gallery { grid-template-columns: 1fr; padding-block: 18px 30px; }
.hero-gallery .hero-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: center; max-width: 760px; }
.hero-gallery .hero-copy .icon { grid-row: 1 / span 2; width: 84px; height: 84px; border-radius: 19px; margin: 0; }
.hero-gallery .eyebrow { align-self: end; margin: 0 0 2px; }
.hero-gallery h1 { align-self: start; }
.hero-gallery .lede, .hero-gallery .cta { grid-column: 1 / -1; }
.hero-gallery .lede { margin: 16px 0 20px; max-width: 46ch; }

.gallery { position: relative; padding-bottom: 140px; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.gallery .device-switch { width: min(100%, 460px); }
.gallery[data-device="iphone"] .device-switch .thumb { transform: translateX(100%); }
.gallery[data-device="ipad"] .device-switch .thumb { transform: translateX(200%); }
.strip-nav { display: flex; gap: 10px; }
.round {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background .2s, opacity .2s;
}
.round:hover { background: rgba(255, 255, 255, 0.18); }
.round[disabled] { opacity: .35; cursor: default; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.strip {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px max(20px, calc((100vw - 1180px) / 2 + 20px)) 18px; scroll-padding-inline: max(20px, calc((100vw - 1180px) / 2 + 20px));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip[hidden] { display: none; }
.strip:not([hidden]) { animation: rise .55s cubic-bezier(.2, .9, .25, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.strip figure { flex: none; margin: 0; display: grid; gap: 16px; scroll-snap-align: start; }
.strip .frame {
  position: relative; padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #4a4560, #19182c 55%, #2c2943);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.strip .frame img { display: block; width: auto; max-width: none; border-radius: 31px; background: #0c0f2c; }
.strip[data-for="duo"] .frame { border-radius: 30px; padding: 10px; }
.strip[data-for="duo"] .frame img { height: clamp(210px, 33vw, 440px); border-radius: 20px; }
.strip[data-for="iphone"] .frame img { height: clamp(400px, 44vw, 560px); }
.strip[data-for="ipad"] .frame { border-radius: 30px; padding: 12px; }
.strip[data-for="ipad"] .frame img { height: clamp(340px, 40vw, 520px); border-radius: 18px; }
.strip .hinge { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 18px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.1) 40%, rgba(255,255,255,.18) 50%, rgba(0,0,0,.1) 60%, transparent); }
.strip .island { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 30%; height: 4.2%; max-height: 24px; border-radius: 999px; background: #000; }
.strip figcaption { max-width: 34ch; font-size: 15px; color: rgba(244, 239, 230, 0.72); }
.strip figcaption b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 2px; }

@media (max-width: 720px) {
  .gallery-head { flex-direction: column; align-items: stretch; }
  .strip-nav { display: none; }
  .strip { gap: 18px; }
  .strip[data-for="duo"] figure { width: calc(100vw - 56px); }
  .strip[data-for="duo"] .frame img { width: 100%; height: auto; }
  .strip[data-for="iphone"] .frame img { height: 420px; }
  .strip[data-for="ipad"] .frame img { height: 380px; }
  .hero-gallery .hero-copy .icon { width: 64px; height: 64px; border-radius: 15px; }
}
@media (max-width: 520px) { .hero-gallery .eyebrow { display: none; } .hero-gallery .hero-copy .icon { grid-row: 1; } .hero-gallery h1 { align-self: center; } }
@media (prefers-reduced-motion: reduce) { .strip { scroll-behavior: auto; } .strip:not([hidden]) { animation: none; } }
/* The night lasts behind the gallery; the mist comes below it. */
.sky { background: linear-gradient(180deg, #0c0f2c 0%, #1b1f4a 30%, #2c2f60 70%, #5e5a8c 86%, var(--mist) 95%, var(--bg) 100%) !important; }

/* Each caption wraps to its frame, so the frame hugs the screen. */
.strip figure { width: min-content; }
.strip .frame { width: max-content; }
@media (max-width: 720px) { .strip[data-for="duo"] figure { width: calc(100vw - 56px); } .strip[data-for="duo"] .frame { width: auto; } }

/* Page dots: where you are in the row, as on an iPhone. */
.strip-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.strip-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); transition: width .3s, background .3s; }
.strip-dots span.on { width: 22px; background: var(--gold-soft); }

/* ---------- Layout pass: centered, sized to fit one screen ---------- */
.hero-gallery { padding-block: 10px 34px; }
.hero-gallery .hero-copy { margin-inline: auto; justify-items: center; text-align: center; grid-template-columns: 1fr; max-width: 720px; }
.hero-gallery .hero-copy .icon { grid-row: auto; width: 76px; height: 76px; border-radius: 18px; margin-bottom: 14px; }
.hero-gallery .eyebrow, .hero-gallery h1 { align-self: auto; grid-column: 1; }
.hero-gallery .eyebrow { margin: 0 0 6px; display: block; }
.hero-gallery .lede { margin: 14px auto 22px; }
.hero-gallery .cta { justify-content: center; }

.gallery-head { justify-content: center; margin-bottom: 22px; }
.strip-area { position: relative; }
/* The row fades out at its ends, so the next screen reads as "more". */
.strip { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip figure { scroll-snap-align: center; }
.strip[data-for="duo"] .frame img { height: clamp(220px, 27vw, 400px); }
.strip[data-for="iphone"] .frame img { height: clamp(380px, 36vw, 500px); }
.strip[data-for="ipad"] .frame img { height: clamp(340px, 32vw, 460px); }
.strip figcaption { text-align: center; justify-self: center; }

/* Arrows sit on the row's sides, level with the screens. */
.strip-nav { position: absolute; inset: 0 0 56px 0; display: flex; align-items: center; justify-content: space-between; padding-inline: max(16px, calc((100vw - 1260px) / 2)); pointer-events: none; z-index: 2; }
.strip-nav .round { pointer-events: auto; width: 52px; height: 52px; }
.gallery { padding-bottom: 150px; }
.strip-dots { margin-top: 2px; }

@media (max-width: 720px) {
  .hero-gallery .hero-copy .icon { width: 60px; height: 60px; border-radius: 14px; }
  .hero-gallery .eyebrow { display: none; }
  .strip { -webkit-mask-image: none; mask-image: none; }
  .strip[data-for="duo"] .frame img { width: 100%; height: auto; }
  .strip[data-for="iphone"] .frame img { height: 430px; }
  .strip[data-for="ipad"] .frame img { height: 380px; }
}

/* Desktop: a compact title block so the screens and their captions fit the first screen. */
@media (min-width: 721px) {
  .hero-gallery { padding-block: 0 26px; }
  .hero-gallery .hero-copy { grid-template-columns: auto auto; justify-content: center; column-gap: 18px; text-align: left; justify-items: start; }
  .hero-gallery .hero-copy .icon { grid-row: 1 / span 2; grid-column: 1; width: 72px; height: 72px; margin: 0; }
  .hero-gallery .eyebrow { grid-column: 2; align-self: end; margin: 0; }
  .hero-gallery h1 { grid-column: 2; align-self: start; font-size: clamp(2.6rem, 4.4vw, 3.6rem); }
  .hero-gallery .lede, .hero-gallery .cta { grid-column: 1 / -1; justify-self: center; text-align: center; }
  .hero-gallery .lede { max-width: 62ch; margin: 12px auto 18px; }
  .gallery-head { margin-bottom: 18px; }
  .strip[data-for="duo"] .frame img { height: min(27vw, 44vh, 400px); min-height: 220px; }
  .strip[data-for="iphone"] .frame img { height: min(36vw, 52vh, 500px); min-height: 360px; }
  .strip[data-for="ipad"] .frame img { height: min(32vw, 48vh, 460px); min-height: 320px; }
}
@media (min-width: 721px) {
  .hero-gallery .hero-copy { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-gallery .hero-copy .icon { display: none; }
  .hero-gallery .eyebrow, .hero-gallery h1 { grid-column: 1; justify-self: center; }
  .strip[data-for="duo"] .frame img { height: min(27vw, 41vh, 400px); }
}

@media (max-width: 720px) { .strip-nav { display: none; } }

/* ---------- The Duo opening (Apple's official bezels, flat 2D only) ----------
   Closed, the Duo sits where the right half of the open phone will be (its
   spine is the hinge). Opening: the cover folds toward the spine, revealing
   the right page beneath; then the left page opens out from the hinge, and the
   phone slides to center. Screen openings are measured from Apple's PNGs. */
.unfold { width: min(100%, 880px); margin: 8px auto 30px; display: grid; justify-items: center; gap: 14px; }
.unfold-stage {
  position: relative; width: 100%; aspect-ratio: 3093 / 2247;
  transform: translateX(-24.6%);
  transition: transform 1.5s cubic-bezier(.45, 0, .2, 1);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.unfold-open, .unfold-closed { position: absolute; }
.unfold-open { inset: 0; opacity: 0; clip-path: inset(0 0 0 49.2%); }
.unfold-closed { right: 0; top: 1.18%; width: 50.89%; height: 97.64%; transform-origin: 0% 50%; }
.unfold-bezel { position: absolute; inset: 0; width: 100%; height: 100%; }
.unfold-screen { position: absolute; object-fit: cover; }
.unfold-open .unfold-screen { left: 3.8797%; top: 5.3405%; width: 92.2405%; height: 89.3191%; border-radius: 2.2%; }
.unfold-closed .unfold-screen { left: 5.5909%; top: 3.6463%; width: 88.8183%; height: 92.7074%; }
.unfold.is-open .unfold-stage { transform: none; }
.unfold.is-open .unfold-open {
  opacity: 1; clip-path: inset(0 0 0 0);
  transition: opacity .15s linear, clip-path .85s cubic-bezier(.2, .75, .25, 1) .62s;
}
.unfold.is-open .unfold-closed {
  transform: scaleX(0); filter: brightness(.55);
  transition: transform .68s cubic-bezier(.55, 0, .85, .45), filter .68s;
}
.unfold.no-anim * { transition: none !important; }
.replay {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--sans); color: rgba(244, 239, 230, 0.8);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0; transition: opacity .4s 1.6s;
}
.unfold.is-open .replay { opacity: 1; }
.replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .unfold * { transition: none !important; } }

/* The Duo screens in the carousel sit in Apple's own open-Duo frame. */
.strip .frame.bezel { position: relative; padding: 0; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.4)); }
.strip .frame.bezel .bezel-frame { position: relative; display: block; width: auto; max-width: none; border-radius: 0; background: none; z-index: 1; }
.strip .frame.bezel .bezel-screen { position: absolute; left: 3.8797%; top: 5.3405%; width: 92.2405%; height: 89.3191%; object-fit: cover; border-radius: 2.2%; }
.strip[data-for="duo"] .frame.bezel .bezel-frame { height: min(30vw, 46vh, 440px); min-height: 240px; }
@media (max-width: 720px) {
  .strip[data-for="duo"] .frame.bezel { width: 100%; }
  .strip[data-for="duo"] .frame.bezel .bezel-frame { width: 100%; height: auto; min-height: 0; }
  .unfold { margin-bottom: 22px; }
}

/* Apple frame boxes hug the bezel image exactly, so the screen percentages line up. */
.strip[data-for="duo"] .frame.bezel { padding: 0 !important; border-radius: 0 !important; line-height: 0; }

/* Cards in a row keep their own height: extra space never stretches a frame. */
.strip { align-items: flex-start; }
.strip figure { align-content: start; }
.strip .frame { align-self: start; }

/* ---------- One showcase: the Duo unfolds, then becomes the carousel ---------- */
.strip figure.unfold { width: min-content; margin: 0; gap: 16px; }
.strip .frame.unfold-stage {
  padding: 0; background: none; box-shadow: none; border-radius: 0;
  height: min(30vw, 46vh, 440px); min-height: 240px; width: auto; aspect-ratio: 3093 / 2247;
}
@media (max-width: 720px) {
  .strip[data-for="duo"] figure.unfold { width: calc(100vw - 56px); }
  .strip .frame.unfold-stage { width: 100%; height: auto; min-height: 0; }
}

/* The unfolding Duo's images keep their own geometry inside the carousel. */
.strip[data-for="duo"] .frame.unfold-stage img.unfold-bezel {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0;
  background: none; border-radius: 0; display: block;
}
.strip[data-for="duo"] .frame.unfold-stage img.unfold-screen { position: absolute; max-width: none; min-height: 0; background: none; display: block; object-fit: cover; }
.strip[data-for="duo"] .frame.unfold-stage .unfold-open img.unfold-screen { left: 3.8797%; top: 5.3405%; width: 92.2405%; height: 89.3191%; border-radius: 2.2%; }
.strip[data-for="duo"] .frame.unfold-stage .unfold-closed img.unfold-screen { left: 5.5909%; top: 3.6463%; width: 88.8183%; height: 92.7074%; border-radius: 0; }

/* Folding back runs the opening in reverse: the left page closes into the
   hinge, then the cover comes back over it as the phone slides home. */
.unfold-stage { transition: transform 1.4s cubic-bezier(.45, 0, .2, 1); }
.unfold-open { transition: clip-path .7s cubic-bezier(.6, 0, .8, .4), opacity .15s linear .78s; }
.unfold-closed { transition: transform .62s cubic-bezier(.15, .55, .3, 1) .68s, filter .62s .68s; }

/* Fold / Unfold: a small glass pair under the Duo. */
.fold-controls { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 2px auto 14px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.gallery:not([data-device="duo"]) .fold-controls { display: none; }
.fold-controls button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 var(--sans); color: rgba(244, 239, 230, 0.75); background: none; transition: background .25s, color .25s; }
.fold-controls button:hover { color: #fff; }
.fold-controls button[aria-pressed="true"] { color: var(--gold-soft); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.fold-controls svg { width: 22px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Folded, every screen in the row shows on the Duo's outer screen: the closed
   phone stands centered in its open frame's place, so the row never jumps. */
.folded-duo {
  position: absolute; top: 1.18%; left: 50%; height: 97.64%; aspect-ratio: 861 / 1200;
  transform: translateX(-50%); opacity: 0; z-index: 2; pointer-events: none;
  transition: opacity .6s ease;
}
.strip[data-for="duo"] .frame.bezel .folded-duo img {
  position: absolute; display: block; max-width: none; min-height: 0; background: none;
}
.strip[data-for="duo"] .frame.bezel .folded-duo .folded-bezel { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.strip[data-for="duo"] .frame.bezel .folded-duo .folded-screen { left: 5.5909%; top: 3.6463%; width: 88.8183%; height: 92.7074%; object-fit: cover; border-radius: 0; }
.strip .frame.bezel .bezel-screen, .strip .frame.bezel .bezel-frame { transition: opacity .6s ease; }
.strip.folded .frame.bezel .bezel-screen, .strip.folded .frame.bezel .bezel-frame { opacity: 0; }
.strip.folded .folded-duo { opacity: 1; }
.strip.folded .frame.bezel { filter: none; }
.strip.folded .folded-duo { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.4)); }
/* Captions follow the fold. */
.strip figcaption:has(.cap-folded) { display: grid; }
.strip figcaption > span { grid-area: 1 / 1; transition: opacity .6s ease .2s; }
.strip .cap-folded, .strip.folded .cap-open { opacity: 0; }
.strip.folded .cap-folded { opacity: 1; }

/* Be Still home: everything on one centered axis, the app icon at the top
   (no small icon in the corner), the whole block lifted toward the top. */
.topbar-center { justify-content: center; padding-block: 12px 0; }
.hero-gallery { padding-top: 0; }
.hero-gallery .hero-copy { grid-template-columns: 1fr !important; justify-items: center !important; text-align: center !important; }
.hero-gallery .hero-copy .icon { display: block !important; grid-row: auto !important; grid-column: 1 !important; width: 64px; height: 64px; border-radius: 15px; margin: 10px 0 10px !important; }
.hero-gallery .eyebrow, .hero-gallery h1, .hero-gallery .lede, .hero-gallery .cta { grid-column: 1 !important; justify-self: center !important; align-self: auto !important; }
.hero-gallery .cta { justify-content: center; }
.gallery-head { justify-content: center !important; align-items: center !important; }
@media (max-width: 720px) { .gallery .device-switch { margin-inline: auto; } .hero-gallery .hero-copy .icon { margin-top: 6px !important; } }

/* The closed Duo's outer screen is D-shaped: tight corners at the spine,
   wide ones on the open edge (measured from Apple's bezel: about 15 and
   100 px on a 764 x 1112 opening). Square screens poked out past them. */
.strip[data-for="duo"] .frame.bezel .folded-duo .folded-screen,
.strip[data-for="duo"] .frame.unfold-stage .unfold-closed img.unfold-screen,
.unfold-closed .unfold-screen {
  border-radius: 2% 13.4% 13.4% 2% / 1.4% 9.2% 9.2% 1.4%;
}
