/* Segera Wedding, landing "Cincin". Tokens first; every colour on the page comes from here. */
:root {
  --putih: #FFFFFF;
  --gading: #FAF6F1;
  --blush: #EFDCD8;
  --burgundy: #6E1A2C;
  --burgundy-malam: #3B0D17;
  --anggur: #8E2A3D;
  --sampanye: #C9A768;
  --sampanye-muda: #E9D7AE;
  --tinta: #24151A;
  --abu: #73625F;            /* CONCEPT #7D6E6C darkened (same hue) so it passes AA on gading and blush */
  --logo-e: #9B1C31;         /* logo only */

  /* derived surfaces (same hues as the tokens above) */
  --malam-2: #4A1320;        /* chat card on burgundy-malam */
  --malam-dalam: #1F060C;    /* phone bezels */
  --garis: #E8DDD6;          /* hairlines on light */
  --garis-kuat: #CDBDB6;     /* dotted leaders, input borders */
  --garis-gelap: rgba(233, 215, 174, .5);  /* outlines on dark (3.8:1 on burgundy-malam) */
  --muda-80: rgba(233, 215, 174, .8);
  --muda-66: rgba(233, 215, 174, .66);

  --f-giant: 'Melodrama', 'Boska', Georgia, 'Times New Roman', serif;
  --f-title: 'Boska', Georgia, 'Times New Roman', serif;
  --f-ui: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);       /* signature: state changes */
  --ease-out: cubic-bezier(.22, 1, .36, 1); /* entrances, reveals */
  --ease-in: cubic-bezier(.4, 0, 1, 1);     /* exits */
  --t-quick: 140ms;
  --t-std: 360ms;
  --t-slow: 900ms;

  --gutter: clamp(16px, 4vw, 56px);
  --giant: clamp(64px, 8.4vw, 168px);
  --ring: min(31vw, 62vh);
  --shadow-paper: 0 2px 0 0 rgba(36, 21, 26, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gading);
  color: var(--tinta);
  font: 400 16px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
svg { max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 4px;
  background: var(--burgundy); color: var(--putih); font-weight: 500;
  transform: translateY(-160%); transition: transform var(--t-quick) var(--ease);
}
.skip:focus { transform: none; }

/* Focus: anggur on light, sampanye on dark */
:focus-visible { outline: 2px solid var(--anggur); outline-offset: 3px; border-radius: 2px; }
.on-dark:focus-visible,
[data-tone="dark"] :focus-visible,
.hdr[data-tone="dark"] :focus-visible,
.plan--hi :focus-visible,
.hero .btn--light:focus-visible,
.panel__head :focus-visible { outline-color: var(--sampanye); }
/* sections that take focus after a menu jump: the scroll already shows where you are */
section[tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: 2px;
  font: 500 14px/1 var(--f-ui); letter-spacing: .01em; white-space: nowrap;
  box-shadow: var(--shadow-paper);
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease),
              transform var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 0 rgba(36, 21, 26, 0); }
.btn--light { background: var(--putih); color: var(--tinta); }
.btn--light:hover { background: var(--gading); }
.btn--burgundy { background: var(--burgundy); color: var(--putih); box-shadow: 0 2px 0 0 var(--burgundy-malam); }
.btn--burgundy:hover { background: var(--anggur); }
.btn--line { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta), var(--shadow-paper); }
.btn--line:hover { background: var(--tinta); color: var(--gading); }
.btn--line:active { box-shadow: inset 0 0 0 1px var(--tinta); }

.pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  font: 500 13.5px/1 var(--f-ui); white-space: nowrap;
  background: var(--putih); color: var(--burgundy);
  box-shadow: 0 1px 0 0 rgba(36, 21, 26, .18);
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.pill:hover { background: var(--sampanye-muda); }
.pill:active { transform: translateY(1px); box-shadow: none; }

.u-link {
  display: inline-block; padding: 6px 0 5px; font: 500 14px/1.2 var(--f-ui); color: inherit;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--t-std) var(--ease), color var(--t-quick) var(--ease);
}
.u-link:hover { background-size: 0% 1px; background-position: 100% 100%; color: var(--anggur); }
.u-link--light { color: var(--sampanye-muda); }
.u-link--light:hover { color: var(--putih); }
.link-btn { font: 500 13px/1 var(--f-ui); padding: 6px 2px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--garis-kuat); background: var(--putih); color: var(--tinta);
  transition: background-color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { background: var(--gading); }
.round-btn:active { transform: scale(.96); }

/* ---------------------------------------------------------------- reveals (clip slide, hairline draw) */
.reveal { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal > span { display: inline-block; }
.motion .reveal > span { transform: translateY(110%); transition: transform var(--t-slow) var(--ease-out); }
.motion .reveal.is-in > span, .reveal-all .reveal > span { transform: none; }
.hair { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--garis); transform-origin: 0 50%; pointer-events: none; }
.motion .hair { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.motion .hair.is-in, .reveal-all .hair { transform: none; }

.giant {
  font-family: var(--f-giant); font-weight: 600; text-transform: uppercase;
  font-size: var(--giant); line-height: .86; letter-spacing: .005em;
}

/* ---------------------------------------------------------------- 0. header */
.hdr {
  position: fixed; z-index: 50; top: 12px; left: var(--gutter); right: var(--gutter);
  transition: opacity var(--t-std) var(--ease), transform var(--t-std) var(--ease), visibility 0s;
}
.hdr.is-hidden {
  opacity: 0; transform: translateY(-12px); visibility: hidden;
  transition: opacity 280ms var(--ease-in), transform 280ms var(--ease-in), visibility 0s 280ms;
}
.hdr:focus-within { opacity: 1; transform: none; visibility: visible; }
.hdr__bar {
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 1px rgba(36, 21, 26, .06), 0 18px 40px -30px rgba(36, 21, 26, .45);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  transition: background-color var(--t-std) var(--ease), border-color var(--t-std) var(--ease);
}
/* over the hero the glass is split at the seam (--bx, set by main.js): warm white on gading, a wine smoke on burgundy.
   A single white tint washed the burgundy half into dusty pink. No backdrop blur here: the hero behind the bar is two
   flat colours, so the blur only smeared each half ~10 px across the seam into a pink band. */
.hdr[data-tone="split"] .hdr__bar {
  background: linear-gradient(90deg, rgba(250, 246, 241, .55) var(--bx, 50%), rgba(59, 13, 23, .38) var(--bx, 50%));
  border-color: rgba(233, 215, 174, .14);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hdr[data-tone="light"] .hdr__bar { background: rgba(250, 246, 241, .78); border-color: rgba(36, 21, 26, .08); }
.hdr[data-tone="dark"] .hdr__bar { background: rgba(59, 13, 23, .62); border-color: rgba(233, 215, 174, .16); }
.hdr__top {
  display: flex; justify-content: space-between; gap: 16px; padding: 7px 18px 6px;
  font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: .01em;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.hdr[data-tone="light"] .hdr__top { border-bottom-color: rgba(36, 21, 26, .07); }
.hdr__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px 10px 8px 18px; min-height: 54px; }
.hdr__logo { justify-self: start; display: flex; align-items: center; min-height: 44px; color: var(--tinta); }
.hdr__logo svg { height: 30px; width: auto; }
.hdr[data-tone="dark"] .hdr__logo { color: var(--putih); }
.hdr__nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.hdr__nav a, .hdr__link { padding: 8px 0; }
.hdr__end { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.hdr__menu { display: none; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: var(--tinta); }
.hdr__menu svg { width: 22px; height: 22px; }
.hdr[data-tone="dark"] .hdr__menu { color: var(--putih); }

/* two-tone ink over the hero seam; --sx is set per element by main.js */
.ink { color: var(--tinta); }
.hdr[data-tone="split"] .ink, .hero__hint .ink {
  color: transparent;
  background-image: linear-gradient(90deg, var(--tinta) var(--sx, 50vw), var(--putih) var(--sx, 50vw));
  -webkit-background-clip: text; background-clip: text;
}
.no-split .hdr[data-tone="split"] .ink { color: var(--tinta); background: none; }
.hdr[data-tone="dark"] .ink { color: var(--putih); }
.hdr[data-tone="light"] .pill { background: var(--burgundy); color: var(--putih); }
.hdr[data-tone="light"] .pill:hover { background: var(--anggur); }

/* phone menu sheet */
.menu-sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--gading); color: var(--tinta);
}
.menu-sheet[open] { display: flex; flex-direction: column; }
.menu-sheet::backdrop { background: rgba(36, 21, 26, .3); }
.menu-sheet__head { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.menu-sheet__title { font: 500 13px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--abu); }
.menu-sheet__links { list-style: none; margin-top: 24px; }
.menu-sheet__links a {
  display: block; padding: 12px 0; font: 400 40px/1.1 var(--f-title); border-bottom: 1px solid var(--garis);
}
.menu-sheet__foot { margin-top: auto; display: grid; gap: 14px; }
.menu-sheet__foot p { font-size: 14px; color: var(--abu); }
.menu-sheet__foot .btn { width: 100%; }
.motion .menu-sheet[open] { animation: sheet-in 360ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- 1 + 2. hero, pinned act 1 */
.hero { position: relative; height: 300vh; height: 300svh; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__half { position: absolute; top: 0; bottom: 0; width: 50%; }
.hero__half--light { left: 0; background: var(--gading); }
.hero__half--dark { right: 0; background: var(--burgundy); }
.hero__dim { position: absolute; inset: 0; opacity: var(--dk, 0); }
.hero__half--light .hero__dim { background: var(--blush); }
.hero__half--dark .hero__dim { background: var(--burgundy-malam); }

.hero__words { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero__word {
  position: absolute; top: 50%; display: grid; overflow: hidden;
  font-family: var(--f-giant); font-weight: 600; text-transform: uppercase;
  font-size: var(--giant); line-height: .86; height: .86em; letter-spacing: .005em;
  translate: 0 -50%;
}
.hero__word--l { left: 5vw; color: var(--burgundy); }
.hero__word--r { right: 5vw; color: var(--putih); }
.hero__word .w { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; scale: var(--fit, 1); }
.hero__word--l .w { justify-self: start; transform-origin: 0 50%; }
.hero__word--r .w { justify-self: end; transform-origin: 100% 50%; }
.hero__word .w.is-above { transform: translateY(-105%); opacity: 0; }
.hero__word .w.is-in { transform: none; opacity: 1; }
.motion .hero__word .w { transition: transform 520ms var(--ease-in), opacity 520ms var(--ease-in); }
.motion .hero__word .w.is-in { transition: transform 900ms var(--ease-out) 80ms, opacity 600ms var(--ease-out) 80ms; }
/* first load: words rise once */
.motion .hero:not(.is-awake) .hero__word .w.is-in { transform: translateY(105%); opacity: 0; transition: none; }

.hero__ring {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: var(--ring); aspect-ratio: 1;
  translate: -50% -50%;
}
.scene .poster, .scene .stage { position: absolute; inset: 0; }
.scene .poster { display: grid; place-items: center; }
.scene .poster > img, .scene .poster > svg { width: 100%; height: 100%; object-fit: contain; grid-area: 1 / 1; }
.js .scene .poster.has-fallback > img:first-child { opacity: 0; }
.js .scene .poster.has-img > img:first-child { opacity: 1; } /* must out-rank the has-fallback rule above */
.scene .poster.has-img > :not(:first-child) { visibility: hidden; }
.scene.is-live .poster { opacity: 0; transition: opacity 500ms var(--ease); }
.hero__ring:focus-visible { outline: 2px solid var(--sampanye); outline-offset: 6px; border-radius: 50%; }
.scene .stage canvas { display: block; width: 100% !important; height: 100% !important; }
.ring-svg { filter: drop-shadow(0 18px 18px rgba(36, 21, 26, .18)); }

.hero__hint {
  position: absolute; z-index: 4; left: 0; right: 0; top: calc(50% + var(--ring) / 2 + 6px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 32px;
  opacity: 0; transition: opacity var(--t-std) var(--ease);
}
.hero__hint .hint-drag { justify-self: end; }
.hero__hint .link-btn { justify-self: start; }
.hero.has-ring .hero__hint { opacity: 1; }
.hint-drag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; transition: opacity var(--t-std) var(--ease); }
.hint-drag svg { width: 18px; height: 18px; color: var(--sampanye); }
.hero.was-dragged .hint-drag { opacity: 0; }

.hero__foot {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter);
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.hero__product { display: flex; gap: 22px; font-size: 14px; font-weight: 500; color: var(--tinta); }

/* ---------------------------------------------------------------- 3. templates (act 2) */
.tpl {
  position: relative; background: var(--burgundy-malam); color: var(--sampanye-muda); text-align: center;
  padding: clamp(104px, 15vh, 168px) var(--gutter) clamp(88px, 12vh, 140px);
}
.tpl__title { color: var(--sampanye-muda); }
.tpl__lede { max-width: 46ch; margin: 22px auto 0; font-size: 15.5px; color: var(--muda-80); }
.tpl__row {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px); max-width: 1120px; margin: clamp(48px, 8vh, 80px) auto 0;
  perspective: 1400px; --px: 0; --py: 0;
}
.tpl__item { display: flex; flex-direction: column; align-items: center; }
.phone {
  --ry0: 0deg;
  width: min(100%, 236px); aspect-ratio: 9 / 19; border-radius: 34px; padding: 8px;
  background: var(--malam-dalam);
  box-shadow: inset 0 0 0 1px rgba(233, 215, 174, .2), 0 50px 60px -36px rgba(0, 0, 0, .7);
  transform: rotateY(calc(var(--ry0) + var(--px) * 7deg)) rotateX(calc(var(--py) * -5deg));
  transition: transform 700ms var(--ease-out);
}
.tpl__item:nth-child(1) .phone { --ry0: 16deg; }
.tpl__item:nth-child(3) .phone { --ry0: -16deg; }
.phone__screen { height: 100%; border-radius: 27px; overflow: hidden; }
.cover { width: 100%; height: 100%; }
.cover * { transition: fill 450ms var(--ease), stroke 450ms var(--ease); }
.cover .c-bg { fill: var(--p-bg); }
.cover .c-2 { fill: var(--p-2); }
.cover .c-2d { fill: var(--p-2d, var(--p-2)); }
.cover .c-3 { fill: var(--p-3); }
.cover .c-4 { fill: var(--p-4); }
.cover .c-5 { fill: var(--p-5); }
.cover .c-fog { fill: var(--p-fog, #fff); opacity: .5; }
.cover .c-ink { fill: var(--p-ink); }
.cover .c-3s { stroke: var(--p-3); fill: none; }
.cover .c-ink-s { stroke: var(--p-ink); fill: none; }
.cover .t-cap { font: 500 7px var(--f-ui); letter-spacing: .2em; text-transform: uppercase; text-anchor: middle; }
.cover .t-name { font: 400 27px var(--f-title); text-anchor: middle; }
.cover .t-amp { font: italic 400 15px var(--f-title); text-anchor: middle; }
.cover .t-ital { font-style: italic; }
.cover .t-code { font: 700 22px var(--f-ui); letter-spacing: .04em; text-anchor: middle; }
.cover .t-val { font: 500 10px var(--f-ui); text-anchor: middle; }
.phone[data-tpl="lipat"] .t-name { font-size: 20px; }

.phone[data-preset="pagi"]   { --p-bg: #F5E6DD; --p-2: #EDB9A0; --p-3: #CFA9AA; --p-4: #A9757D; --p-5: #6E1A2C; --p-fog: #FFFFFF; --p-ink: #3B0D17; }
.phone[data-preset="senja"]  { --p-bg: #EFC7A0; --p-2: #F8E4B8; --p-3: #C98A6E; --p-4: #8E2A3D; --p-5: #4A1220; --p-fog: #F7DCC0; --p-ink: #3B0D17; }
.phone[data-tpl="kabut"][data-preset="malam"] { --p-bg: #1E1B2E; --p-2: #E9D7AE; --p-3: #3A3554; --p-4: #2B2740; --p-5: #15131F; --p-fog: #6C6788; --p-ink: #E9D7AE; }
.phone[data-preset="subuh"]  { --p-bg: #EEF2F7; --p-2: #C9D6E6; --p-3: #9DB3CF; --p-4: #4C6A92; --p-ink: #22344A; }
.phone[data-preset="sogan"]  { --p-bg: #E9DCC8; --p-2: #D4BFA0; --p-3: #A9845C; --p-4: #7A4A24; --p-ink: #2B1D12; }
.phone[data-tpl="doa"][data-preset="surat"] { --p-bg: #F7F3EA; --p-2: #D9E2EE; --p-3: #8FA6C6; --p-4: #2F4B6E; --p-ink: #1E2A3C; }
.phone[data-preset="manis"]  { --p-bg: #FBF1EA; --p-2: #FFFDF9; --p-2d: #F6E4DC; --p-3: #C24F66; --p-5: #F2C7CF; --p-ink: #3A2A31; }
.phone[data-preset="kocak"]  { --p-bg: #FFF3C7; --p-2: #FFFFFF; --p-2d: #FFE58A; --p-3: #D13112; --p-5: #FFFFFF; --p-ink: #1D2340; }
.phone[data-preset="kampung"] { --p-bg: #E8D4B3; --p-2: #F6EBD6; --p-2d: #EADBBF; --p-3: #9A4A22; --p-5: #F6EBD6; --p-ink: #2C1F16; }

.tpl__name { margin-top: 32px; font: 400 32px/1.1 var(--f-title); color: var(--putih); }
.tpl__line { margin-top: 8px; max-width: 30ch; font-size: 14.5px; color: var(--muda-80); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--garis-gelap);
  font: 500 13px/1 var(--f-ui); color: var(--sampanye-muda);
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease),
              border-color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.chip:hover { border-color: var(--sampanye-muda); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { background: var(--sampanye-muda); color: var(--burgundy-malam); border-color: var(--sampanye-muda); }
.tpl__more { margin-top: clamp(48px, 7vh, 72px); }
.tpl__count { display: none; }

/* ---------------------------------------------------------------- 4. editorial list (act 3) */
.list { background: var(--putih); color: var(--tinta); padding: clamp(104px, 15vh, 160px) var(--gutter) 24px; }
.list__head { position: relative; max-width: 1200px; margin: 0 auto; padding-bottom: 14px; }
.list__title { font: 400 clamp(52px, 6.6vw, 108px)/1 var(--f-title); letter-spacing: -.012em; }
.list__tabs { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 52px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tab {
  min-height: 40px; padding: 0; font: 500 14px/1 var(--f-ui); color: var(--abu);
  background: linear-gradient(var(--tinta), var(--tinta)) 0 calc(100% - 6px) / 0% 1px no-repeat;
  transition: color var(--t-quick) var(--ease), background-size var(--t-std) var(--ease);
}
.tab:hover { color: var(--tinta); }
.tab[aria-pressed="true"] { color: var(--tinta); background-size: 100% 1px; }
.list__count { font-size: 14px; color: var(--abu); white-space: nowrap; }

.rows { list-style: none; max-width: 1200px; margin: 0 auto; }
.row {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  min-height: min(76vh, 640px); padding: clamp(48px, 8vh, 96px) 0;
}
.row__obj { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.row__obj .poster > svg, .viewer__obj .poster > svg { width: 82%; height: 82%; }
.row__obj .poster > .poster-fallback, .viewer__obj .poster > .poster-fallback { width: 72%; height: 72%; }
.row__text { max-width: 400px; }
.row__tag { margin-bottom: 14px; font: 500 11.5px/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--abu); }
.row__name { font: 400 clamp(40px, 4.4vw, 64px)/1.02 var(--f-title); letter-spacing: -.01em; }
.row__desc { margin-top: 16px; max-width: 38ch; font-size: 15px; line-height: 1.65; color: var(--abu); }
.row__spec {
  display: flex; align-items: baseline; gap: 10px; margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--garis); font-size: 13.5px;
}
.row__spec span:first-child { color: var(--abu); }
.row__spec span:last-child { font-weight: 500; text-align: right; }
.row__spec i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--garis-kuat); translate: 0 -4px; }
.row__links { display: flex; gap: 24px; margin-top: 26px; }
.motion .row .row__text > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.motion .row.is-in .row__text > *, .reveal-all .row .row__text > * { opacity: 1; transform: none; }
.motion .row.is-in .row__text > :nth-child(2) { transition-delay: 60ms; }
.motion .row.is-in .row__text > :nth-child(3) { transition-delay: 120ms; }
.motion .row.is-in .row__text > :nth-child(4) { transition-delay: 180ms; }
.motion .row.is-in .row__text > :nth-child(5) { transition-delay: 240ms; }

/* ---------------------------------------------------------------- 5. viewer */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 0 var(--gutter); background: var(--putih); color: var(--tinta); overflow: hidden;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: rgba(36, 21, 26, .25); }
.viewer .hair { position: absolute; left: var(--gutter); right: var(--gutter); transform: none; }
.viewer .hair--top { top: 14px; bottom: auto; }
.viewer .hair--bottom { bottom: 14px; }
.viewer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 34px; }
.viewer__title { font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--f-title); }
.viewer__desc { margin: 6px 0 16px; max-width: 42ch; font-size: 14px; color: var(--abu); }
.viewer__obj { position: relative; align-self: center; justify-self: center; width: min(84vw, calc(100vh - 250px), 760px); aspect-ratio: 1; }
.viewer__hint { display: flex; justify-content: center; align-items: center; gap: 8px; padding-bottom: 34px; font-size: 13px; color: var(--abu); }
.viewer__hint svg { width: 18px; height: 18px; color: var(--sampanye); }
.viewer:not(.has-3d) .viewer__hint { visibility: hidden; }
.motion .viewer[open] { animation: viewer-in 420ms var(--ease-out); }
.motion .viewer.is-closing { animation: viewer-out 220ms var(--ease-in) forwards; }
@keyframes viewer-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes viewer-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- 6. Sesa (act 4) */
.sesa { position: relative; background: var(--burgundy-malam); color: var(--sampanye-muda); height: 485vh; height: calc(100svh + 7 * 55svh); }
.sesa__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.05fr) minmax(320px, 440px);
  align-items: center; gap: clamp(20px, 3vw, 56px);
  max-width: 1440px; margin: 0 auto; padding: 96px var(--gutter) 40px;
}
.sesa__title { font-size: clamp(96px, 11.5vw, 210px); color: var(--sampanye-muda); }
.sesa__sub { margin-top: 14px; max-width: 17ch; font: 400 clamp(20px, 1.9vw, 27px)/1.25 var(--f-title); color: var(--putih); }
.rail { list-style: none; margin-top: clamp(24px, 5vh, 44px); display: grid; gap: 0; }
.rail button {
  display: flex; align-items: center; gap: 12px; min-height: 36px; width: 100%; text-align: left;
  font: 500 14px/1.2 var(--f-ui); color: var(--muda-66);
  transition: color var(--t-std) var(--ease);
}
.rail button::before {
  content: ""; flex: none; width: 36px; height: 1px; background: currentColor;
  transform: scaleX(.45); transform-origin: 0 50%; transition: transform var(--t-std) var(--ease);
}
.rail button:hover { color: var(--sampanye-muda); }
.rail button[aria-current="step"] { color: var(--sampanye-muda); }
.rail button[aria-current="step"]::before { transform: none; background: var(--sampanye); }
.rail__now { display: none; }

.sesa__avatar { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.sesa__avatar .poster > .poster-fallback { width: 86%; height: 86%; }

.chat {
  position: relative; align-self: center; border-radius: 18px; padding: 20px;
  background: var(--malam-2); border: 1px solid rgba(233, 215, 174, .16);
}
.chat__label { font: 500 11px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--sampanye); }
.chat__steps { display: grid; margin-top: 16px; }
/* All steps share one grid cell (hidden ones keep their size), so the box is always as tall as the tallest step and
   never resizes; each step sits at the bottom of it, so spare room collects above the first bubble. */
.step { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; visibility: hidden; }
.step.is-on { visibility: visible; }
.step:focus-visible { outline: 2px solid var(--sampanye); outline-offset: 6px; border-radius: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg--you { align-self: flex-end; background: var(--sampanye-muda); color: var(--burgundy-malam); border-bottom-right-radius: 4px; }
.msg--sesa { display: grid; background: var(--putih); color: var(--tinta); border-bottom-left-radius: 4px; transition: background-color 240ms var(--ease); }
.msg--sesa > * { grid-area: 1 / 1; }
/* typing: the reply keeps its space (no layout shift) but only a small typing bubble shows at its corner */
.msg--sesa .typing { display: none; align-self: start; justify-self: start; width: 58px; height: 36px; margin: -10px -14px; padding: 3px 7px; border-radius: 16px 16px 16px 4px; background: var(--putih); }
.motion .step:not(.is-replied) .msg--sesa { background-color: transparent; }
.motion .step:not(.is-replied) .msg--sesa .typing { display: block; }
.motion .step:not(.is-replied) .msg--sesa p { visibility: hidden; }
.card { width: 88%; padding: 14px 16px; border-radius: 12px; background: var(--gading); color: var(--tinta); border: 1px solid var(--garis); }
.card__k { font: 400 20px/1.2 var(--f-title); }
.card__v { margin-top: 3px; font-size: 13px; color: var(--abu); }
.card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font: 500 12.5px/1 var(--f-ui); background: var(--burgundy); color: var(--putih); }
.fake-btn--ghost { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--garis-kuat); }
.motion .step > * { opacity: 0; transform: translateY(10px); transition: opacity 360ms var(--ease-out), transform 420ms var(--ease-out); }
.motion .step.is-on > .msg--you,
.motion .step.is-on > .msg--sesa { opacity: 1; transform: none; }
.motion .step.is-on > .msg--sesa { transition-delay: 160ms; }
.motion .step.is-on.is-replied > .card { opacity: 1; transform: none; transition-delay: 140ms; }
.chat__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muda-80); }
.chat__note svg { width: 12px; height: 12px; flex: none; color: var(--sampanye); }

/* ---------------------------------------------------------------- 7. harga */
.harga { background: var(--gading); padding: clamp(104px, 15vh, 160px) var(--gutter) clamp(88px, 12vh, 128px); }
.harga__head { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.harga__wo { font-size: 15px; font-weight: 500; padding-bottom: 10px; }
.plans {
  max-width: 1200px; margin: clamp(36px, 6vh, 56px) auto 0;
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: stretch; border-top: 1px solid var(--garis);
}
.plan { display: flex; flex-direction: column; padding: 40px clamp(20px, 2.4vw, 36px) 36px; }
.plan + .plan { border-left: 1px solid var(--garis); }
.plan--hi { position: relative; background: var(--burgundy); color: var(--putih); border-left: 0 !important; margin-top: -1px; }
.plan--hi + .plan { border-left: 0; }
.plan__ribbon {
  align-self: flex-start; margin-bottom: 18px; padding: 7px 12px; border-radius: 999px;
  font: 500 12px/1.2 var(--f-ui); background: var(--sampanye-muda); color: var(--burgundy-malam);
}
.plan__name { font: 400 34px/1.1 var(--f-title); }
.plan__price { margin-top: 10px; font: 600 clamp(46px, 4.6vw, 66px)/1 var(--f-giant); letter-spacing: .005em; }
.plan__price small { font: 500 14px var(--f-ui); letter-spacing: 0; vertical-align: .9em; margin-right: 4px; }
.plan__list { list-style: none; display: grid; gap: 12px; margin: 28px 0 34px; font-size: 14.5px; line-height: 1.5; }
.plan__list li { position: relative; padding-left: 24px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--sampanye); }
.plan--hi .plan__list li::before { background: var(--sampanye-muda); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.harga__note { max-width: 1200px; margin: 22px auto 0; font-size: 13px; color: var(--abu); }

/* ---------------------------------------------------------------- 8. close */
.close {
  position: relative; overflow: hidden; background: var(--burgundy); color: var(--putih); text-align: center;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--gutter) 96px;
}
.close__stage { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2vw; }
.close__w { color: var(--putih); }
.close__w--l { justify-self: end; }
.close__w--r { justify-self: start; color: var(--sampanye-muda); }
.close__ring { position: relative; width: min(24vw, 44vh); aspect-ratio: 1; }
.close__line { margin: 34px 0 26px; font: italic 400 clamp(22px, 2.3vw, 32px)/1.2 var(--f-title); color: var(--sampanye-muda); }

/* ---------------------------------------------------------------- 9. footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 36px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--gading); color: var(--tinta);
}
.foot__logo { display: flex; align-items: center; min-height: 44px; }
.foot__logo svg { height: 64px; width: auto; }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.foot__links a { display: inline-block; padding: 8px 0; }
.foot__links a:hover { color: var(--anggur); }
.foot__copy { font-size: 13px; color: var(--abu); }

/* ---------------------------------------------------------------- 10. floating Sesa (built by sesa-chat.js) */
.fab {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  transition: opacity var(--t-std) var(--ease), transform var(--t-std) var(--ease-out), visibility 0s;
}
.fab.is-hidden {
  opacity: 0; transform: translateY(18px); visibility: hidden; pointer-events: none;
  transition: opacity 220ms var(--ease-in), transform 220ms var(--ease-in), visibility 0s 220ms;
}
.fab__btn {
  position: relative; display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--blush); box-shadow: 0 14px 30px -14px rgba(36, 21, 26, .55), 0 0 0 1px rgba(36, 21, 26, .08);
  transition: transform var(--t-quick) var(--ease);
}
.fab__btn:active { transform: scale(.96); }
.fab__btn:focus-visible { outline-offset: 4px; }
.fab__poster, .fab__stage { position: absolute; inset: 0; }
.fab__poster svg { width: 100%; height: 100%; }
.fab__poster > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab__poster.has-img > svg { visibility: hidden; }
.fab__poster { transition: opacity 400ms var(--ease); }
.fab.is-live .fab__poster { opacity: 0; }
.motion .fab__eyes { transform-box: fill-box; transform-origin: 50% 60%; animation: blink 5.2s var(--ease) infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.fab-hint {
  position: absolute; right: 0; bottom: 78px; width: max-content; max-width: min(260px, calc(100vw - 32px));
  padding: 11px 40px 11px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--putih); color: var(--tinta); font-size: 14px; line-height: 1.4;
  border: 1px solid var(--garis); box-shadow: 0 16px 30px -18px rgba(36, 21, 26, .5);
}
.fab-hint button { position: absolute; top: 3px; right: 3px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--abu); border-radius: 50%; }
.fab-hint button svg { width: 14px; height: 14px; }
.motion .fab-hint { animation: hint-in 420ms var(--ease-out); }
@keyframes hint-in { from { opacity: 0; transform: translateY(8px); } }

.panel {
  position: fixed; z-index: 61; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px);
  width: 384px; height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--gading); color: var(--tinta);
  box-shadow: 0 30px 60px -26px rgba(36, 21, 26, .55), 0 0 0 1px rgba(36, 21, 26, .08);
}
.motion .panel.is-entering { animation: panel-in 320ms var(--ease-out); }
.motion .panel.is-leaving { animation: panel-out 200ms var(--ease-in) forwards; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes panel-out { to { opacity: 0; transform: translateY(10px); } }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; background: var(--burgundy-malam); color: var(--putih); }
.panel__av { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: var(--blush); }
.panel__av svg { width: 100%; height: 100%; }
.panel__title { flex: 1; font: 500 15px/1.25 var(--f-ui); }
.panel__title span { display: block; font-size: 12.5px; font-weight: 400; color: var(--sampanye-muda); }
.panel__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--putih); }
.panel__close svg { width: 18px; height: 18px; }
.panel__close:hover { background: rgba(255, 255, 255, .08); }
.panel__log { flex: 1; min-height: 160px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.b { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.b--sesa { align-self: flex-start; background: var(--putih); border: 1px solid var(--garis); border-bottom-left-radius: 4px; }
.b--you { align-self: flex-end; background: var(--burgundy); color: var(--putih); border-bottom-right-radius: 4px; }
.b--typing { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; color: var(--abu); font-size: 13px; }
.b--typing .lot { width: 40px; height: 40px; flex: none; }
.b .btn { margin-top: 10px; min-height: 40px; padding: 9px 16px; }
.b__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.b__acts .btn { margin-top: 0; }
.motion .b { animation: bubble-in 300ms var(--ease-out); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
.panel__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 12px; }
.panel-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(36, 21, 26, .32); }
.motion .panel-scrim:not([hidden]) { animation: scrim-in 240ms var(--ease-out); }
@keyframes scrim-in { from { opacity: 0; } }
.qr {
  flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; white-space: nowrap;
  font: 500 13px/1 var(--f-ui); color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy);
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.qr:hover { background: var(--burgundy); color: var(--putih); }
.qr:active { transform: translateY(1px); }
.panel__form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--garis); }
.panel__form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--garis-kuat); background: var(--putih); color: var(--tinta); font: 400 16px var(--f-ui);
}
.panel__form input::placeholder { color: var(--abu); opacity: 1; }
.panel__form input:focus-visible { outline-offset: 1px; }
.panel__send {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--burgundy); color: var(--putih); transition: background-color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}
.panel__send:hover { background: var(--anggur); }
.panel__send:active { transform: translateY(1px); }
.panel__send svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .foot { padding-right: calc(var(--gutter) + 80px); }
}

/* ---------------------------------------------------------------- tablet and below */
@media (max-width: 1080px) {
  .hdr__nav { gap: 20px; }
  .hdr__end { gap: 16px; }
  .sesa__pin { grid-template-columns: minmax(200px, 1fr) minmax(320px, 420px); }
  .sesa__avatar { display: none; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 767px) {
  :root { --giant: min(19vw, 10.5svh); --ring: min(74vw, 38svh); }
  .hdr { top: 8px; }
  .hdr__top, .hdr__nav, .hdr__link { display: none; }
  .hdr__main { grid-template-columns: 1fr auto; padding: 6px 4px 6px 14px; min-height: 52px; }
  .hdr__logo svg { height: 28px; }
  .hdr__end { gap: 4px; }
  .hdr__menu { display: grid; }
  .hdr[data-tone="split"] .ink { color: var(--tinta); background: none; }
  .hdr[data-tone="split"] .hdr__bar { background: rgba(250, 246, 241, .78); border-color: rgba(36, 21, 26, .08); }
  .hdr[data-tone="split"] .pill { background: var(--burgundy); color: var(--putih); }

  .hero__half { width: 100%; height: 50%; left: 0; right: auto; }
  .hero__half--light { top: 0; bottom: auto; }
  .hero__half--dark { top: 50%; bottom: auto; }
  .hero__word { left: 50% !important; right: auto !important; translate: -50% -50%; }
  .hero__word--l { top: 27%; }
  /* below the ring and its hint row, never under them (short phones put the hint right where 76% was) */
  .hero__word--r { top: max(76%, calc(50% + var(--ring) / 2 + 52px + var(--giant) * .43)); }
  .hero__word .w { justify-self: center !important; transform-origin: 50% 50% !important; }
  .hero__hint { top: calc(50% + var(--ring) / 2 + 2px); grid-template-columns: auto auto; justify-content: center; column-gap: 20px; }
  .hero__hint .ink { color: var(--putih); background: none; }
  .hero__product { flex-direction: column; gap: 0; color: var(--putih); font-size: 13.5px; line-height: 1.4; }
  .hero__product span:last-child { color: var(--sampanye-muda); }

  .tpl__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 12px 14vw 24px; perspective: none;
  }
  .tpl__row::-webkit-scrollbar { display: none; }
  /* each phone fills its slide, so ~18vw of the next phone peeks in as the swipe cue; text fades at the edges */
  .tpl__row { padding-inline: 19vw; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7vw, #000 93vw, transparent); mask-image: linear-gradient(90deg, transparent, #000 7vw, #000 93vw, transparent); }
  .tpl__item { flex: 0 0 62vw; scroll-snap-align: center; }
  .phone { width: 100%; max-width: 236px; --ry0: 0deg !important; transform: none; }
  .tpl__count { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: .08em; color: var(--muda-80); }
  .tpl__name { margin-top: 22px; font-size: 28px; }

  .tabs { gap: 0 12px; flex-wrap: nowrap; }
  .row { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 40px 0 52px; }
  .row__obj { width: min(78vw, 300px); }
  .row__name { font-size: 40px; }
  .row__links { gap: 32px; }

  .viewer__obj { width: min(92vw, 56vh); }

  .sesa { height: calc(100svh + 7 * 50svh); }
  .sesa__pin {
    grid-template-columns: 1fr auto; grid-template-rows: auto auto auto auto 1fr; align-items: start; align-content: start;
    gap: 6px 14px; padding: 76px var(--gutter) 16px;
  }
  .sesa__intro { display: contents; }
  .sesa__title { grid-column: 1; grid-row: 1; font-size: min(26vw, 13svh); }
  .sesa__sub { grid-column: 1; grid-row: 2; margin-top: 0; font-size: 18px; }
  .sesa__avatar { display: block; grid-column: 2; grid-row: 1 / span 2; width: min(30vw, 120px); align-self: center; }
  .rail { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 2px; margin-top: 4px; }
  .rail li { flex: 1; min-width: 0; }
  .rail button { min-height: 44px; padding: 0; }
  .rail button::before { width: 100%; height: 2px; transform: none; background: rgba(233, 215, 174, .28); }
  .rail button[aria-current="step"]::before { background: var(--sampanye); }
  .rail button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail__now { display: block; grid-column: 1 / -1; grid-row: 4; margin-top: -2px; font-size: 12.5px; color: var(--muda-80); }
  .chat { grid-column: 1 / -1; grid-row: 5; align-self: start; margin-top: 8px; padding: 16px; }
  .msg { font-size: 14px; }

  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--garis); }
  .plan--hi + .plan { border-top: 0; }

  .close__stage { grid-template-columns: 1fr; gap: 8px; justify-items: center; }
  .close__w--l, .close__w--r { justify-self: center; }
  .close__ring { width: min(62vw, 34svh); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .foot__logo svg { height: 56px; }

  /* 44 px tap targets (the boxes grow, the type stays put) */
  .pill, .chip, .qr, .tab { min-height: 44px; }
  .tab { min-width: 44px; }
  .tab { background-position: 0 calc(100% - 9px); }
  .u-link, .link-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-inline: -10px;
    background: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  }
  .foot__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .fab-hint button { width: 44px; height: 44px; top: -1px; right: -1px; }

  .panel { left: 0; right: 0; bottom: 0; width: auto; height: min(620px, 78svh); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 380px) {
  .hero__foot .btn { padding-inline: 16px; }
  /* the tab row stays one line; the count is still announced (aria-live) but not shown */
  .list__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* short phones (iPhone SE, small Androids, Safari with its bars): the pinned Sesa act must fit inside 100svh */
@media (max-width: 767px) and (max-height: 720px) {
  .sesa__pin { padding-top: 64px; padding-bottom: 10px; gap: 4px 12px; }
  .sesa__avatar { display: none; }
  .sesa__title { font-size: min(20vw, 9svh); }
  .sesa__sub { font-size: 15px; }
  .rail__now { font-size: 12px; }
  .chat { padding: 12px; margin-top: 4px; }
  .chat__label { font-size: 10px; }
  .chat__steps { margin-top: 10px; }
  .step { gap: 7px; }
  .msg { font-size: 13px; padding: 8px 12px; line-height: 1.42; }
  .card { padding: 10px 12px; }
  .card__k { font-size: 17px; }
  .card__v { font-size: 12.5px; }
  .card__acts { margin-top: 8px; }
  .fake-btn { min-height: 26px; }
  .chat__note { margin-top: 10px; font-size: 12px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .phone { transform: rotateY(var(--ry0)); }
}
