/*
 * Pros Cam: home.css — the home page.
 *
 *   1. Type and small parts
 *   2. Hero
 *   3. What it is
 *   4. Ways to record (the pinned scroll sequence)
 *   5. Split sections: lights, photos, editor, themes
 *   6. Languages
 *   7. Themes
 *   8. Closing
 *   9. Motion
 *
 * Type is fluid (clamp), spacing is on the 8-point grid, and every colour is a token from site.css.
 */

/* 1. Type and small parts --------------------------------------------------------------------- */

.section { position: relative; padding: clamp(104px, 14vw, 200px) 0; overflow-x: clip; }
/* A chapter's label: a small glass tag with a light in the theme's mark colour. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font: 650 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 12px var(--mark); }
.h2 { font: 800 clamp(40px, 6vw, 96px)/0.98 var(--font); letter-spacing: -0.05em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--mark); }
.lead { font: 400 clamp(18px, 1.6vw, 22px)/1.55 var(--font); color: var(--text-2); max-width: 34em; margin-top: 24px; text-wrap: pretty; }
.h2 + .lead { margin-top: 24px; }
.center-head { text-align: center; max-width: 880px; margin: 0 auto; }
.center-head .lead { margin-inline: auto; }

.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 26px 0 20px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--on-primary);
  cursor: default;
  overflow: hidden;
  isolation: isolate;
}
.store::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 7s var(--ease-in-out) 2.4s infinite;
}
.store-ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.store-txt { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.store-txt small { font: 500 11px/1 var(--font); letter-spacing: 0.05em; opacity: 0.8; }
.store-txt b { font: 650 22px/1 var(--font); letter-spacing: -0.02em; }
.store.big { height: 72px; padding: 0 32px 0 24px; border-radius: 20px; gap: 16px; }
.store.big .store-ico { width: 34px; height: 34px; }
.store.big .store-txt b { font-size: 28px; }
.store.big .store-txt small { font-size: 12px; }

/* A claim's badge (claims.js): built, in testing, or coming later. */
.claim { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font: 650 11px/1 var(--font); letter-spacing: 0.02em; white-space: nowrap; }
.claim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.claim-built { color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); }
.claim-checked { color: var(--mark); background: color-mix(in srgb, var(--mark) 16%, transparent); }
.claim-soon { color: var(--text-3); box-shadow: inset 0 0 0 1px var(--hairline); }
.claim-soon::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }

.reveal { }
.js .reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1s var(--ease-out) var(--r, 0s), transform 1.2s var(--ease-out) var(--r, 0s), filter 1s var(--ease-out) var(--r, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* 2. Hero ------------------------------------------------------------------------------------- */

.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; padding: var(--header) 0 0; overflow: clip; isolation: isolate; }
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-light i { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-light i:nth-child(1) { width: min(1100px, 120vw); aspect-ratio: 1; right: -18%; top: -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mark) 26%, transparent), transparent 70%); animation: drift 18s var(--ease-in-out) infinite alternate; }
.hero-light i:nth-child(2) { width: min(900px, 100vw); aspect-ratio: 1; left: -24%; bottom: -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow-b) 70%, transparent), transparent 70%); animation: drift 22s var(--ease-in-out) -6s infinite alternate-reverse; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "fig"; gap: 8px; align-items: center; text-align: center; min-height: calc(100svh - var(--header)); }
.hero-copy { grid-area: copy; }
.hero-phone, .hero-fig { grid-area: fig; }
.hero-copy { position: relative; z-index: 3; padding-top: 24px; }
.hero-title { margin: 0; line-height: 1; }
.hero-title .wm { font-size: clamp(44px, 5.2vw, 88px); }
.hero-slogan { font: 800 clamp(56px, 7.8vw, 136px)/0.94 var(--font); letter-spacing: -0.055em; margin-top: 8px; text-wrap: balance; }
.hero .lead { margin: 24px auto 0; font-size: clamp(19px, 1.7vw, 24px); max-width: 22em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; justify-content: center; align-items: center; }
.hero-hand { position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-hand p { display: none; font-size: 15px; color: var(--text-3); max-width: 30em; }
.hero-phone { position: relative; display: grid; place-items: center; align-self: end; padding-top: 24px; margin-bottom: -2px; }
/* The hero's devices: a stage of its own height, a label for the pose, and a dot for each step. */
.hero-fig { position: relative; margin: 0; align-self: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; min-width: 0; max-width: 100%; overflow-x: clip; }
.hero-fig .hero-stage.stage { height: clamp(420px, 78svh, 800px); min-height: 0; opacity: 0; transform: scale(0.97); transition: opacity 0.5s var(--ease-out), transform 0.7s var(--spring); }
.hero-fig .hero-stage.stage.is-ready { opacity: 1; transform: none; }
.hero-fig .hero-stage.stage.is-ready.is-morph { opacity: 0; transform: scale(0.94); transition-duration: 0.3s; }
.hero-mode { display: inline-flex; align-items: baseline; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; align-items: center; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.hero-mode span { font-weight: 700; color: var(--text); }
.hero-mode b { font-weight: 500; }
.hero-dots { display: flex; gap: 6px; align-items: center; }
.hero-dots button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.hero-dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); opacity: 0.5; transition: width 0.35s var(--spring), background 0.3s, opacity 0.3s; }
.hero-dots button[aria-current="true"]::after { width: 20px; border-radius: 4px; background: var(--primary, var(--text)); opacity: 1; }
.hero-phone .phone { position: relative; z-index: 1; translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -4px); }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); grid-template-areas: "copy fig"; grid-template-rows: auto; align-content: center; column-gap: clamp(24px, 4vw, 72px); row-gap: 0; text-align: left; }
  .hero-phone, .hero-fig { grid-row: auto; }
  .hero-copy { align-self: end; }
  .hero .lead { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-hand { grid-area: hand; position: relative; left: auto; bottom: auto; transform: none; align-self: start; align-items: flex-start; margin-top: 40px; }
  .hero-hand p { display: block; }
}

/* Glass that floats in front of the phone at its own depth: the app's own pills. */
.float { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font: 600 14px/1 var(--font); color: #fff; background: rgba(12, 12, 14, 0.62); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  translate: calc(var(--px, 0) * var(--depth-x, 18px)) calc(var(--py, 0) * var(--depth-y, 12px)); animation: hover 7s var(--ease-in-out) infinite; }
.float .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 10px #ff453a; animation: blink 1.6s steps(2, jump-none) infinite; }
.float b { font-weight: 850; letter-spacing: 0.06em; font-size: 12px; }
.float span { font-variant-numeric: tabular-nums; }
.float em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.float em svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-live { right: calc(50% + var(--pw, 340px) / 2 - 16px); top: 30%; --depth-x: 26px; --depth-y: 16px; }
.f-voice { right: calc(50% + var(--pw, 340px) / 2 + 30px); top: 86%; animation-delay: -3s; --depth-x: 34px; --depth-y: 22px; }
/* With the left hand the thumb is on the left: the glass moves to the other side. */
.hero.is-left .f-live { right: auto; left: calc(50% + var(--pw, 340px) / 2 - 16px); }
.hero.is-left .f-voice { right: auto; left: calc(50% + var(--pw, 340px) / 2 + 30px); }
.f-live, .f-voice { transition: left 0.8s var(--spring), right 0.8s var(--spring); }
.f-voice .wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.f-voice .wave s { width: 3px; height: 100%; border-radius: 2px; background: var(--mark); animation: voice 1.1s var(--ease-in-out) infinite; }
.f-voice .wave s:nth-child(2) { animation-delay: -0.3s; } .f-voice .wave s:nth-child(3) { animation-delay: -0.6s; } .f-voice .wave s:nth-child(4) { animation-delay: -0.15s; }
/* Narrower than 1200 the floating glass would cover the copy or the drawn screen: the screen says it already. */
@media (max-width: 1199px) { .float { display: none; } }

/* The hand switch: two choices on one glass track, the chosen one under a knob that springs across. */
.hand-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); isolation: isolate; }
.hand-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; color: var(--text-2); font: 600 15px/1 var(--font); white-space: nowrap; transition: color 0.35s var(--ease-out), transform 0.4s var(--spring); }
.hand-switch button:hover { color: var(--text); }
.hand-switch button:active { transform: scale(0.96); }
.hand-switch button[aria-checked="true"] { color: var(--on-primary); }
.hand-switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--primary); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45); transition: transform 0.6s var(--spring); }
.hand-switch:not(.is-left) .hs-knob { transform: translateX(100%); }

/* The name types itself in, a letter at a time, as the app's splash does. */
.wm.type .l { display: inline-block; font-style: normal; opacity: 0; animation: letter 0.7s var(--ease-out) var(--d) both; }
.wm.type .c .l { color: var(--mark); }

/* 3. What it is ------------------------------------------------------------------------------- */

.why { padding-top: clamp(64px, 8vw, 112px); }
.trio { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.card3 { position: relative; padding: 36px 32px 32px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--text) 7%, transparent), transparent 46%), var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 color-mix(in srgb, var(--text) 18%, transparent), 0 30px 60px -30px rgba(var(--shade), 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: transform 0.6s var(--spring), box-shadow 0.4s var(--ease-out); }
.card3::after { content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mark) 18%, transparent), transparent); opacity: 0; transition: opacity 0.5s var(--ease-out); }
.card3:hover { transform: translateY(-4px); }
.card3:hover::after { opacity: 1; }
.card3 svg { width: 48px; height: 48px; fill: none; stroke: var(--mark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 32px; }
.card3 h3 { font: 650 clamp(20px, 1.9vw, 24px)/1.2 var(--font); letter-spacing: -0.02em; margin-bottom: 8px; }
.card3 p { color: var(--text-2); font-size: 17px; line-height: 1.5; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* 4. Ways to record --------------------------------------------------------------------------- */

.ways-track { position: relative; height: calc(100svh + (var(--n) - 1) * 54svh); }
.ways-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.ways-grid { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 12px; width: 100%; padding-top: calc(var(--header) - 8px); text-align: center; }
.ways-copy .h2 { font-size: clamp(30px, 3.4vw, 52px); }
.ways-copy .eyebrow { margin-bottom: 16px; }
.ways-copy .lead, .ways-list { display: none; }
.ways-phone { display: flex; justify-content: center; }
.ways-now { display: flex; flex-direction: column; gap: 8px; align-items: center; max-width: 360px; }
.ways-now b { font: 650 24px/1.15 var(--font); letter-spacing: -0.02em; }
.ways-now span { font-size: 16px; line-height: 1.45; color: var(--text-2); min-height: 3em; }
.pips { display: flex; gap: 6px; margin-top: 4px; }
.pips s { width: 6px; height: 6px; border-radius: 99px; background: var(--hairline); transition: width 0.5s var(--spring), background 0.3s; }
.pips s.on { width: 20px; background: var(--mark); }

@media (min-width: 900px) {
  .ways-grid { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; gap: clamp(32px, 7vw, 120px); text-align: left; padding-top: var(--header); }
  .ways-copy .lead, .ways-list { display: block; }
  .ways-copy .lead { margin-top: 16px; font-size: clamp(17px, 1.3vw, 20px); }
  .ways-now { display: none; }
  .ways-phone { justify-content: flex-end; }
}
@media (min-width: 900px) and (max-height: 820px) { .ways-copy .lead { display: none; } }
.ways-list { margin-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.ways-list li { position: relative; border-bottom: 1px solid var(--line); }
.ways-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--mark); transform: scaleX(0); transform-origin: left; }
.ways-list li.is-on::after { transform: scaleX(var(--f, 0)); }
.ways-list button { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 11px 0; text-align: left; color: var(--text-3); transition: color 0.4s var(--ease-out); }
.ways-list button:hover { color: var(--text-2); }
.ways-list .n { width: 24px; flex: none; font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--text-3); }
.ways-list .t { font: 600 clamp(18px, 1.5vw, 21px)/1.2 var(--font); letter-spacing: -0.02em; }
.ways-list li p { margin: 0 0 0 40px; max-height: 0; opacity: 0; overflow: hidden; color: var(--text-2); font-size: 16px; line-height: 1.45; transition: max-height 0.6s var(--ease-out), opacity 0.5s var(--ease-out), margin 0.6s var(--ease-out); }
.ways-list li.is-on p { max-height: 4.4em; opacity: 1; margin-bottom: 12px; }
/* Split's own choices, under its line while it is on. */
.way-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 40px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.5s var(--ease-out), margin 0.6s var(--ease-out); }
.ways-list li.is-on .way-more { max-height: 120px; opacity: 1; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.ways-list .seg button, .seg button { display: inline-flex; align-items: center; width: auto; height: 32px; padding: 0 14px; border-radius: 999px; font: 600 13px/1 var(--font); color: var(--text-2); transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.4s var(--spring); }
.ways-list .seg button:hover { color: var(--text); }
.ways-list .seg button:active { transform: scale(0.95); }
.ways-list li.is-on .seg button[aria-checked="true"], .seg button[aria-checked="true"] { background: var(--primary); color: var(--on-primary); }
.ways-list li.is-on button { color: var(--text); }
.ways-list li.is-on .n { color: var(--mark); }

/* 5. Split sections --------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.split .phone-fig { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip .phone-fig { order: -1; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { height: 44px; padding: 0 20px; border-radius: 999px; background: var(--fill); color: var(--text); font: 600 15px/1 var(--font); transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.5s var(--spring); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.note { margin-top: 24px; min-height: 3.2em; color: var(--text-2); font-size: 17px; line-height: 1.5; max-width: 32em; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 520px; gap: 4px; padding: 4px; margin-top: 32px; border-radius: 26px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.tabs button { height: 40px; padding: 0 12px; border-radius: 99px; color: var(--text-2); font: 600 15px/1 var(--font); transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
@media (min-width: 640px) { .tabs { display: inline-flex; width: auto; } .tabs button { padding: 0 18px; } }
.tabpanel { min-height: 140px; }
.tabpanel .chips { margin-top: 24px; }
.compare { display: block; margin-top: 24px; max-width: 420px; }
.compare > span { display: block; font: 600 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.compare input { width: 100%; height: 44px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: ew-resize; }
.compare input::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--hairline); }
.compare input::-moz-range-track { height: 4px; border-radius: 99px; background: var(--hairline); }
.compare input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); border: 0; }
.compare input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); border: 0; }
.compare small { display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; }
.compare small b { font-weight: 500; }

.points { margin-top: 40px; display: grid; gap: 24px; }
.points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.points svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); fill: none; stroke: var(--mark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.points h3 { font: 650 19px/1.25 var(--font); letter-spacing: -0.015em; margin: 2px 0 4px; }
.points p { color: var(--text-2); font-size: 16px; line-height: 1.5; }

/* The big screens' stages keep their size before devices.css arrives, so nothing below them moves. */
.stage-fig { position: relative; margin: 0; }
.stage-fig > [data-stage] { position: relative; width: 100%; height: min(62vh, 620px); min-height: 360px; }
@media (max-width: 599px) { .stage-fig > [data-stage] { height: max(340px, 100vw); } }

/* On a narrow screen a chapter with many controls shows its phone right after its first lines, before the controls. */
@media (max-width: 899px) {
  .live .split, .stitch .split { row-gap: 0; }
  .live .split-copy, .stitch .split-copy { display: contents; }
  .live .split-copy > *, .stitch .split-copy > * { order: 2; }
  .live .split-copy > :nth-child(-n+3), .stitch .split-copy > :nth-child(-n+3) { order: 0; }
  .live .phone-fig, .stitch .phone-fig { order: 1; margin: 40px 0 8px; }
  .live .split-copy > .eyebrow, .stitch .split-copy > .eyebrow, .live .split-copy > .menu-btn { justify-self: start; }
}

/* 6. Languages -------------------------------------------------------------------------------- */

.lang-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.lang-grid .phone-fig { display: flex; justify-content: center; }
@media (min-width: 900px) { .lang-grid { grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); } }
.wall { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; }
.lang { height: 48px; padding: 0 20px; border-radius: 999px; background: var(--fill); color: var(--text); font: 500 clamp(16px, 1.3vw, 19px)/1 var(--font); white-space: nowrap; transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.5s var(--spring); }
@media (max-width: 639px) { .wall { gap: 8px; } .lang { height: 40px; padding: 0 16px; font-size: 15px; } }
.lang:hover { transform: translateY(-2px) scale(1.03); }
.lang[aria-checked="true"] { background: var(--primary); color: var(--on-primary); transform: scale(1.06); }
.js .wall .lang { opacity: 0; transform: translateY(12px) scale(0.96); }
.js .wall.in .lang { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out) calc(var(--i) * 28ms), transform 0.9s var(--spring) calc(var(--i) * 28ms), background 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.js .wall.in .lang[aria-checked="true"] { transform: scale(1.06); }

/* 7. Themes ----------------------------------------------------------------------------------- */

.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; max-width: 560px; }
@media (min-width: 560px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
.sw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 144px;
  padding: 16px 18px 16px;
  border-radius: 24px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  color: var(--st);
  background:
    radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--sa) 78%, transparent), transparent 62%),
    radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--sb) 74%, transparent), transparent 62%),
    var(--sg);
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.32);
  transition: transform 0.6s var(--spring), box-shadow 0.3s var(--ease-out);
}
.sw-card:hover { transform: translateY(-3px) scale(1.02); }
.sw-card[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.32), 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.sw-card .wm { font-size: 30px; color: var(--st); }
.sw-card .wm .c { color: var(--sm); }
.sw-card .nm { font: 600 15px/1 var(--font); }
.sw-card .ck { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--st); color: var(--sg); display: grid; place-items: center; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.5s var(--spring); }
.sw-card .ck svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sw-card[aria-checked="true"] .ck { opacity: 1; transform: none; }

/* 8. Closing ---------------------------------------------------------------------------------- */

.closing { text-align: center; padding-bottom: clamp(96px, 10vw, 144px); overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1200px, 160vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--mark) 16%, transparent), transparent 70%); pointer-events: none; }
.closing-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing-mark .wm { font-size: clamp(56px, 8vw, 112px); }
.closing .h2 { margin-top: 24px; font-size: clamp(36px, 5vw, 72px); }
.closing .lead { margin: 24px auto 0; }
.closing .store { margin-top: 48px; }
.mailto { margin-top: 32px; color: var(--text-2); font-size: 17px; }
.mailto a { color: var(--text); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }

/* 9. Motion ----------------------------------------------------------------------------------- */

@keyframes letter { from { opacity: 0; transform: translateY(0.16em); filter: blur(9px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 4%) scale(1.08); } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes voice { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.phone.is-live .phone-body { animation: bob 7s var(--ease-in-out) infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .wall .lang { opacity: 1; transform: none; }
  .phone.is-live .phone-body { animation: none; }
  .store::after, .scroll-cue i, .float, .float .dot, .f-voice .wave s, .hero-light i { animation: none; }
}
