/* Woah Social — site styles (Comfortaa, Fredoka logo)
   Tokens are measured from the Woah iOS app (v2.2.32, Nov 2026).
   Fonts are close Google Fonts stand-ins: swap in the app's own font files when you have them.
     Wordmark  -> Fredoka 700
     Titles    -> Delius (the app's hand-lettered screen titles and names)
     UI / body -> Nunito
*/

:root {
  color-scheme: light dark;

  /* Brand (from the app) */
  --purple: #5637D2;          /* every primary action in the app */
  --purple-ink: #5637D2;      /* purple used as text */
  --tint: #ECE8FB;            /* active tab pill, profile buttons */
  --tint-line: #D9D1F7;
  --orange: #D5703F;          /* contest card */
  --cream: #FCF3E4;           /* contest timer pill */
  --brown: #7A3E1C;           /* timer digits */
  --green: #5CBF67;           /* Friend tag, avatar rings */
  --sage: #A4C5AD;            /* initial avatars */
  --peach: #E0A992;
  --pink: #D87EB0;            /* Family tag */
  --amber: #E7A038;           /* Colleague tag */
  --red: #EC4D3F;             /* badges, unread */
  --gold: #A8762F;
  --gold-line: #ECD9C3;

  /* Neutrals */
  --bg: #FFFFFF;
  --fill: #F4F4F6;            /* fields, segmented track */
  --banner: #EFEFF0;
  --grouped: #F5F2F9;         /* Settings background */
  --card: #FFFFFF;
  --line: #ECECEE;
  --ink: #111114;
  --ink-2: #6B6B72;           /* meta text (darker than the app's for contrast) */

  --r: 12px;
  --r-lg: 16px;
  --pill: 999px;

  --title: "Comfortaa", "Arial Rounded MT Bold", system-ui, sans-serif;
  --brand: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;  /* logo keeps the app wordmark font */
  --ui: "Comfortaa", "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --purple-ink: #9C86F2;
    --tint: #2A2447;
    --tint-line: #3A3263;
    --bg: #0E0D12;
    --fill: #1D1C23;
    --banner: #18171D;
    --grouped: #15141B;
    --card: #1B1A21;
    --line: #2A2931;
    --ink: #F3F2F7;
    --ink-2: #A3A2AC;
    --gold: #D9AE6A;
    --gold-line: #4A3B25;
  }
}
:root[data-theme="dark"] {
  --purple-ink: #9C86F2;
  --tint: #2A2447;
  --tint-line: #3A3263;
  --bg: #0E0D12;
  --fill: #1D1C23;
  --banner: #18171D;
  --grouped: #15141B;
  --card: #1B1A21;
  --line: #2A2931;
  --ink: #F3F2F7;
  --ink-2: #A3A2AC;
  --gold: #D9AE6A;
  --gold-line: #4A3B25;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--title); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font: 800 20px/1.25 var(--ui); }
p { margin: 0; }
a { color: var(--purple-ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(4vw, 18px); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--xs { width: 14px; height: 14px; }

/* ---------- Brand lockup (logo + line under it, like the app) ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wordmark { font: 700 34px/1 var(--brand); color: var(--purple-ink); letter-spacing: -0.01em; }
.tagline { font: 800 12px/1.2 var(--ui); color: var(--ink); margin-top: 3px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--r);
  font: 700 17px/1 var(--ui);
  text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--tint { background: var(--tint); color: var(--purple-ink); box-shadow: inset 0 0 0 1px var(--tint-line); }
.btn--tint:hover { background: color-mix(in srgb, var(--tint) 80%, var(--purple) 12%); }
.btn--white { background: #fff; color: #5637D2; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 36px; height: 76px; }
.topbar .wordmark { font-size: 30px; }
.topbar .tagline { font-size: 11px; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--purple-ink); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.menu {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--fill); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: var(--pill);
  background: var(--fill); font: 700 14px/1 var(--ui); color: var(--ink);
}
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(48px, 6.4vw, 78px); margin: 20px 0 22px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__art {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 640px;
  background: var(--tint);
  border-radius: 28px;
  overflow: hidden;
}

/* ---------- Phone mockups (authored at real iPhone size, then scaled) ---------- */
.phone {
  --s: .72;
  position: relative;
  width: calc(393px * var(--s) + 20px);
  height: calc(852px * var(--s) + 20px);
  padding: 10px;
  border-radius: 48px;
  background: #0B0B0E;
  box-shadow: 0 30px 60px -20px rgba(40, 20, 110, .45);
  flex: none;
}
.phone--front { z-index: 2; transform: translateX(46px); }
.phone--back { position: absolute; z-index: 1; transform: translateX(-120px) rotate(-6deg) scale(.9); opacity: .96; }
.screen {
  width: 393px; height: 852px;
  transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 54px; overflow: hidden;
  background: #fff; color: #111114;
  font-family: var(--ui);
  position: relative;
  display: flex; flex-direction: column;
}
.screen .ic { width: 24px; height: 24px; }

.sb { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 34px; font: 700 17px/1 var(--ui); flex: none; }
.sb__r { width: 70px; height: 13px; border-radius: 4px; background: linear-gradient(90deg, #111 0 60%, transparent 60% 70%, #111 70%); opacity: .85; }

.bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 10px; flex: none; }
.bar__l, .bar__r { display: flex; gap: 18px; width: 70px; }
.bar__r { justify-content: flex-end; }
.bar__title { font: 400 36px/1 var(--title); }
.bar__brand { display: flex; flex-direction: column; align-items: center; }
.bar__brand .wordmark { font-size: 40px; color: #5637D2; }
.bar__brand .tagline { font-size: 14px; color: #111114; margin-top: 4px; }

.stories { display: flex; gap: 14px; padding: 10px 16px 0; overflow: hidden; flex: none; border-bottom: 1px solid #F0F0F2; padding-bottom: 12px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; color: #9E9EA4; width: 76px; flex: none; }
.story b { color: #111114; font-weight: 800; }

.av {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 18px/1 var(--ui); color: #fff;
  position: relative; flex: none;
}
.av--lg { width: 74px; height: 74px; font-size: 32px; }
.av--sage { background: #A4C5AD; }
.av--peach { background: #E0A992; }
.av--purple { background: #8E79D8; }
.av--me { background: #C9B9A6; }
.ring-green { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5CBF67; }
.ring-purple { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #5637D2; }
.ring-tint { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #D6CCF6; }
.plus {
  position: absolute; right: -2px; bottom: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #5637D2; color: #fff; border: 2px solid #fff;
  font: 800 18px/19px var(--ui); font-style: normal; text-align: center;
}

.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #F0F0F2; flex: none; }
.m-btn {
  height: 58px; border-radius: 12px; background: #5637D2; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 24px/1 var(--ui);
}
.m-btn .ic { width: 26px; height: 26px; }

.m-post { padding: 14px 16px 10px; flex: none; }
.m-post__head { display: flex; align-items: center; gap: 12px; }
.m-name { font: 700 19px/1.1 var(--ui); display: flex; flex-direction: column; }
.m-post__icons { margin-left: auto; display: flex; gap: 22px; }
.creator { font: 700 13px/1.4 var(--ui); color: #7A62D9; display: inline-flex; align-items: center; gap: 4px; }
.m-post__title { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.m-post__title b { font-size: 20px; }
.m-post__title small { font-size: 15px; color: #8A8A90; display: inline-flex; align-items: center; gap: 3px; }
.m-desc { font-size: 16px; color: #8A8A90; margin-top: 4px; }

.m-photo { position: relative; flex: 1; overflow: hidden; background: linear-gradient(#FFC48A 0 54%, #FF9E5E 54% 100%); }
.sun { position: absolute; width: 96px; height: 96px; border-radius: 50%; background: #FFF1D6; left: 55%; top: 40px; }
.peak { position: absolute; bottom: 0; width: 0; height: 0; border-style: solid; border-color: transparent; }
.p1 { left: -50px; border-width: 0 200px 230px; border-bottom-color: #7C5FD9; }
.p2 { left: 150px; border-width: 0 170px 190px; border-bottom-color: #5637D2; }
.p3 { left: -20px; border-width: 0 270px 110px; border-bottom-color: #2A1A6E; }

.tabs {
  margin-top: auto; flex: none;
  height: 92px; padding: 10px 20px 26px;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-top: 1px solid #EFEFF1;
  color: #6E6E75;
}
.tab { width: 52px; height: 38px; border-radius: 19px; display: grid; place-items: center; position: relative; }
.tab--on { background: #E4DFF9; color: #5637D2; }
.tab--on .ic { stroke-width: 2.2; }
.tab--cam { width: 74px; height: 46px; border-radius: 23px; background: #5637D2; color: #fff; }
.tab--badge i {
  position: absolute; top: -2px; right: 6px;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: #EC4D3F; color: #fff; font: 800 12px/18px var(--ui); font-style: normal; text-align: center;
}

/* Explore mock bits */
.m-banner { background: #EFEFF0; text-align: center; font-size: 16px; padding: 12px 10px; margin-top: 8px; flex: none; }
.m-contest {
  margin: 14px 12px 4px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
  background: #D5703F; color: #fff; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  flex: none;
}
.m-contest__av { width: 44px; height: 44px; border-radius: 50%; background: #FCF3E4; display: grid; place-items: center; font-size: 24px; flex: none; }
.m-contest__txt { display: flex; flex-direction: column; font-size: 18px; line-height: 1.2; flex: 1; }
.m-contest__txt small { font-size: 14px; opacity: .92; margin-top: 2px; }
.m-contest__timer { background: #FCF3E4; color: #7A3E1C; border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; flex: none; }
.m-contest__timer small { font: 800 11px/1.2 var(--ui); letter-spacing: .06em; color: #B0673A; }
.m-contest__timer b { font-size: 18px; }
.m-post--text { border-top: 1px solid #F0F0F2; margin-top: 12px; }
.m-eyebrow { font: 800 13px/1 var(--ui); letter-spacing: .06em; color: #7B7B82; margin-top: 16px; }
.m-title { font: 800 21px/1.2 var(--ui); margin-top: 8px; }
.m-tel { font-size: 22px; margin-top: 14px; }
.m-tel span { color: #E07F3C; font-weight: 700; }
.m-meta { font-size: 14px; color: #8A8A90; margin-top: 10px; }

/* ---------- Banner strip (the Explore greeting) ---------- */
.banner { background: var(--banner); text-align: center; padding: 16px 18px; font-size: 18px; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--fill { background: var(--grouped); }
.section__head { max-width: 40em; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(34px, 4.4vw, 50px); }
.section__head p { font-size: 18px; color: var(--ink-2); margin-top: 14px; }
.eyebrow { font: 800 13px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--fill); border-radius: var(--r-lg); padding: 28px; }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--ink-2); }
.step__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--purple); color: #fff; display: grid; place-items: center; }
.step__ic--green { background: var(--green); color: #0E3A16; }

/* Features */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  background: var(--card); border-radius: 20px; padding: clamp(24px, 4vw, 48px);
  margin-bottom: 20px;
}
.feature h3 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--title); margin-bottom: 14px; }
.feature__copy p:last-child { color: var(--ink-2); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 6px; }
.card > p:last-child { color: var(--ink-2); }
.card .demo { margin-bottom: 22px; }

/* In-app component demos (always the app's light look) */
.demo { background: #fff; color: #111114; border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1px #ECECEE; }
:root[data-theme="dark"] .demo { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo { box-shadow: none; } }

.d-label { font: 800 13px/1 var(--ui); letter-spacing: .06em; color: #7B7B82; margin: 16px 0 10px; }
.d-label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--nowrap { flex-wrap: nowrap; overflow: hidden; margin-bottom: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: var(--pill);
  background: #F1F1F3; font: 700 15px/1 var(--ui); white-space: nowrap; flex: none;
}
.chip--on { background: #5637D2; color: #fff; }
.chip--ink { background: #0A0A0C; color: #fff; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip--tag { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
.chip--out { background: #fff; box-shadow: inset 0 0 0 1px #E3E3E6; }
.t-friend { --c: #5CBF67; }
.t-family { --c: #D87EB0; }
.t-colleague { --c: #E7A038; }
.d-hint { text-align: center; font-size: 14px; color: #8A8A90; margin: 18px 0 10px; }
.d-send { display: flex; justify-content: center; align-items: center; height: 50px; border-radius: var(--pill); background: #5637D2; color: #fff; font: 700 18px/1 var(--ui); }

.seg { display: flex; background: #F4F4F6; border-radius: var(--pill); padding: 3px; width: max-content; margin-bottom: 6px; }
.seg span { padding: 9px 16px; border-radius: var(--pill); font: 700 14px/1 var(--ui); }
.seg .seg__on { background: #5637D2; color: #fff; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0F0F2; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row__txt { display: flex; flex-direction: column; overflow: hidden; }
.row__txt small { color: #8A8A90; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hand { font: 400 18px/1.25 var(--title); }
.sq { width: 40px; height: 40px; border-radius: 10px; background: #932DE7; color: #fff; display: grid; place-items: center; font: 700 18px/1 var(--ui); flex: none; }
.sq--photo { background: linear-gradient(135deg, #8E7360, #C9B9A6 60%, #6E5B4D); }
.dot-red { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: #EC4D3F; border: 2px solid #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: 8px;
  font: 700 14px/1 var(--ui); white-space: nowrap;
  background: #fff; box-shadow: inset 0 0 0 1px currentColor;
}
.tag--ink { background: #0A0A0C; color: #fff; box-shadow: none; height: 22px; font-size: 12px; margin-left: auto; letter-spacing: .03em; border-radius: 6px; }
.tag--purple { color: #6A51D0; }
.tag--gold { color: #A8762F; box-shadow: inset 0 0 0 1px #ECD9C3; }
.tag--orange { color: #B85A2B; box-shadow: inset 0 0 0 1px #F2C8AE; }
.demo--tags { display: flex; flex-wrap: wrap; gap: 8px; }
.demo--tel .m-eyebrow { margin-top: 0; }
.demo--tel .m-tel { font-size: 21px; margin-top: 10px; }
.demo--tel .m-tel span { color: #D9672A; }

/* Contest */
.contest {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--orange); color: #fff;
  border-radius: 24px; padding: clamp(28px, 5vw, 56px);
}
.contest__kicker { font: 800 14px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.contest h2 { font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 18px; }
/* App's orange is ~4.1:1 against white, so body copy here stays large and bold enough to pass */
.contest p { font: 700 19px/1.5 var(--ui); }
.contest p + p { margin-top: 12px; }
.contest__timer {
  justify-self: center; text-align: center;
  background: var(--cream); color: var(--brown);
  border-radius: 20px; padding: 28px 32px; min-width: 260px;
}
.contest__timer small { display: block; font: 800 13px/1 var(--ui); letter-spacing: .08em; color: #A05A30; }
.contest__timer b { display: block; font: 800 clamp(34px, 4vw, 44px)/1.1 var(--ui); margin: 10px 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contest__timer span { font-size: 14px; color: #8A5634; }

/* Safety (styled like the app's Settings list) */
.settings { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r-lg); overflow: hidden; max-width: 760px; }
.settings li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.settings li:last-child { border-bottom: 0; }
.settings b { display: block; font-size: 18px; }
.settings small { display: block; font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.s-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; margin-top: 2px; }
.s-ic .ic { width: 20px; height: 20px; }
.s-violet { background: #845EF1; } .s-pink { background: #CF527C; } .s-teal { background: #4A9B94; } .s-amber { background: #CE8E31; }

/* Beta */
.beta { background: var(--purple); color: #fff; border-radius: 24px; padding: clamp(44px, 7vw, 80px) 24px; text-align: center; }
.beta h2 { font-size: clamp(40px, 5.5vw, 60px); }
.beta p { font-size: 19px; max-width: 32em; margin: 16px auto 30px; color: #E9E4FC; }
.beta .beta__mail { font-size: 15px; margin: 18px auto 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.footer__links a:hover { color: var(--purple-ink); }
.footer__legal { margin-top: 32px; color: var(--ink-2); font-size: 14px; }

.switch { width: 51px; height: 31px; border-radius: var(--pill); background: #D1D1D6; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contest { grid-template-columns: minmax(0, 1fr); }
  .contest__timer { justify-self: start; }
}

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; gap: 0; padding: 6px max(4vw, 18px) 14px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .menu { display: flex; }
  .topbar__inner { justify-content: space-between; gap: 12px; }

  .hero { padding: 32px 0 48px; }
  .lede { font-size: 18px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__art { min-height: 560px; border-radius: 22px; }
  .phone { --s: .66; }
  .phone--front { transform: none; }
  .phone--back { display: none; }

  .steps, .grid { grid-template-columns: minmax(0, 1fr); }
  .contest__timer { justify-self: stretch; min-width: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .phone { --s: .6; }
  .hero__art { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Why Woah (manifesto) ---------- */
.manifesto { max-width: 46em; }
.manifesto h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 22px; }
.manifesto > p:last-child { font-size: 20px; line-height: 1.6; color: var(--ink-2); }
.beliefs { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.beliefs li { border-top: 2px solid var(--purple); padding-top: 22px; }
.beliefs h3 { margin: 16px 0 8px; }
.beliefs p { color: var(--ink-2); }
.belief__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--purple-ink); display: grid; place-items: center; }

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.motto { font: 400 22px/1.2 var(--title); color: var(--purple-ink); }

@media (max-width: 980px) {
  .beliefs, .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Closing motto */
.closing { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); text-align: center; }
.closing__line { font: 400 clamp(40px, 6.5vw, 84px)/1.05 var(--title); color: var(--purple-ink); text-wrap: balance; }
.hero h1 { font-size: clamp(64px, 9vw, 120px); }

/* ---------- Comfortaa version ----------
   Comfortaa tops out at 700 and runs wide, so headings go bold and get slightly tighter tracking,
   and body copy gets a touch more line height for readability. */
h1, h2, .bar__title, .hand, .closing__line, .feature h3 { font-weight: 700; letter-spacing: -0.02em; }
.wordmark { letter-spacing: -0.01em; font-weight: 500; }
body { line-height: 1.65; }
.lede, .section__head p, .manifesto > p:last-child { line-height: 1.7; }
.hero h1 { margin-top: 0; }


/* "Woah. Reality Matters." */
.hero__sign { margin-top: 22px; font: 700 16px/1.3 var(--title); color: var(--purple-ink); }
.statement { background: var(--purple); color: #fff; text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.statement p { font: 700 clamp(36px, 6vw, 72px)/1.05 var(--title); letter-spacing: -0.02em; text-wrap: balance; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__sign { font: 700 14px/1.4 var(--title); color: var(--purple-ink); }

/* ---------- Phone feed: real Woah posts, laid out like the app ---------- */
.feed { flex: 1; min-height: 0; overflow: hidden; }            /* moves only in the intro, never by hand */
.hero__art { pointer-events: none; }
.fp { border-bottom: 1px solid #ECECEE; padding-top: 12px; }
.fp__head { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.fp__av { width: 38px; height: 38px; border-radius: 50%; background: #C9B9A6 center/cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #5637D2; flex: none; }
.fp__who { display: flex; flex-direction: column; line-height: 1.15; }
.fp__who b { font: 700 17px/1.2 var(--ui); }
.fp__who small { font: 700 12px/1.3 var(--ui); color: #7A62D9; display: inline-flex; align-items: center; gap: 3px; }
.fp__icons { margin-left: auto; display: flex; gap: 20px; color: #111114; }
.fp__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 16px; margin: 10px 0 2px; }
.fp__title b { font: 700 18px/1.25 var(--ui); }
.fp__title small { font: 600 13px/1 var(--ui); color: #8A8A90; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.fp__desc { padding: 0 16px; font-size: 15px; color: #8A8A90; margin-top: 2px; }
.fp__media { position: relative; margin-top: 10px; }
.fp__media img { display: block; width: 100%; height: auto; }
.fp__sound { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.fp__sound .ic { width: 18px; height: 18px; }
.fp--game .fp__media { background: #0B0F1E; }
.fp__actions { display: flex; align-items: center; gap: 18px; padding: 12px 16px 6px; color: #111114; }
.fp__n { display: inline-flex; align-items: center; gap: 6px; font: 700 16px/1 var(--ui); }
.fp__n--liked { color: #E0413A; }
.fp__n--liked .ic { fill: #E0413A; stroke: #E0413A; }
.fp__views { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 700 15px/1 var(--ui); }
.fp__views .ic { width: 20px; height: 20px; }
.fp__add { padding: 2px 16px 14px; font: 600 14px/1.3 var(--ui); color: #6A51D0; }

/* ---------- Intro: phones slide together while the feed flicks ---------- */
.phone--front { --fs: translateX(190px) translateY(18px) rotate(4deg); --fe: translateX(46px) translateY(0) rotate(0deg); }
.phone--back  { --fs: translateX(-270px) translateY(18px) rotate(0deg) scale(.9); --fe: translateX(-120px) translateY(0) rotate(-6deg) scale(.9); }
@keyframes phoneIn { from { transform: var(--fs); } to { transform: var(--fe); } }
.js .hero__art .phone { animation: phoneIn 2.1s cubic-bezier(.65, 0, .35, 1) .15s both; animation-play-state: paused; }
.js .hero__art.play .phone { animation-play-state: running; }
@media (max-width: 760px) {
  .phone--front { --fs: translateX(0) translateY(60px) rotate(0deg); --fe: translateX(0) translateY(0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__art .phone { animation: none; }
}

/* Games card */
.demo--game { margin: 0 0 22px; padding: 0; overflow: hidden; background: #0B0F1E; box-shadow: none; }
.demo--game img { display: block; width: 100%; height: auto; }

/* Real story avatars */
.av--photo { background: #ddd center/cover no-repeat; }
.ring-seen { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #D6D6DB; }
.online { position: absolute; right: 1px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; background: #34C759; border: 3px solid #fff; }

/* Post / Meet: shorter (height only), matching the app's 44pt buttons */
.m-btn { height: 44px; }

/* Status bar: 3:14 and a random mix of signal / network / battery */
.sb__r { width: auto; height: auto; background: none; opacity: 1; display: flex; align-items: center; gap: 6px; }
.sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.sig i { width: 3.5px; border-radius: 1px; background: #111114; opacity: .25; }
.sig i:nth-child(1) { height: 4.5px; } .sig i:nth-child(2) { height: 7px; } .sig i:nth-child(3) { height: 9.5px; } .sig i:nth-child(4) { height: 12px; }
.sig--1 i:nth-child(-n+1), .sig--2 i:nth-child(-n+2), .sig--3 i:nth-child(-n+3), .sig--4 i { opacity: 1; }
.net { font: 800 13px/1 var(--ui); letter-spacing: -.02em; }
.net svg { width: 17px; height: 13px; display: block; }
.bat { position: relative; width: 27px; height: 13px; border-radius: 4px; background: rgba(17, 17, 20, .3); overflow: hidden; margin-right: 3px; }
.bat::after { content: ""; position: absolute; } 
.bat__lvl { position: absolute; inset: 0 auto 0 0; background: #111114; }
.bat b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 10px/1 var(--ui); color: #fff; letter-spacing: -.02em; }
.bat--low .bat__lvl { background: #FF3B30; }
.bat--charge .bat__lvl { background: #34C759; }
.bat--charge b { color: #111114; }
.sb__r .bat + .nub { display: none; }
.bat { box-shadow: 2.5px 0 0 -0.5px transparent; }
.sb__r::after { content: ""; width: 2px; height: 5px; border-radius: 0 1px 1px 0; background: rgba(17,17,20,.35); margin-left: -9px; }

/* ---------- Icons: Lucide, same set the Woah app uses ---------- */
.ic { stroke-width: 2; }
.ic--fill { fill: currentColor; }
.tab--on .ic { stroke-width: 2; }

/* ---------- Both phones scroll by hand (after the intro) ---------- */
.hero__art { pointer-events: auto; }
.feed { overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.feed::-webkit-scrollbar { display: none; }
.feed--explore .m-banner { margin-top: 4px; }
.feed--explore .m-post--text { padding: 14px 0 16px; }
.feed--explore .m-post--text > p { padding: 0 16px; }
.fp__av--initial { background: #A4C5AD; color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--ui); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #5CBF67; }

/* ---------- Smooth intro: GPU layers only while it runs ---------- */
.hero__art.intro .phone, .hero__art.intro .feed__track { will-change: transform; }
.phone { backface-visibility: hidden; }
.screen { contain: layout paint; }

/* =====================================================================
   DARK ONLY: the site and both phone screens use Woah's dark mode.
   Colors sampled from the Woah Mac app in dark mode (v2.2.32).
   ===================================================================== */
html:root, html:root[data-theme="light"], html:root[data-theme="dark"] {
  color-scheme: dark;
  --purple: #6746EB;        /* actions in dark mode */
  --purple-ink: #9C86F2;    /* purple text on dark */
  --tint: #26213D;          /* active pill */
  --tint-line: #3A3263;
  --bg: #0E0E10;
  --fill: #19181D;
  --banner: #19181D;
  --grouped: #121215;
  --card: #19181D;
  --line: #1F1F22;
  --ink: #EDEDEE;
  --ink-2: #9A99A0;
  --gold: #BB9C67;
  --gold-line: #4A3B25;
}
.wordmark { color: #8A70F2; }
.tagline { color: #EEEEEF; }
.hero__art { background: #17142A; }
.phone { background: #2A2930; box-shadow: 0 0 0 1px #3A3940, 0 30px 70px -20px rgba(103, 70, 235, .45); }
.switch { background: #3A3A3F; }

/* --- phone screens --- */
.screen { background: #0E0E10; color: #EDEDEE; }
.sig i, .bat__lvl { background: #EDEDEE; }
.bat { background: rgba(255,255,255,.3); }
.bat b { color: #0E0E10; }
.sb__r::after { background: rgba(255,255,255,.4); }
.net { color: #EDEDEE; }
.bar__brand .wordmark { color: #8A70F2; }
.bar__brand .tagline { color: #EEEEEF; }
.stories { border-bottom-color: #1F1F22; }
.story { color: #86858A; }
.story b { color: #D6D6D8; }
.ring-purple, .ring-tint { box-shadow: 0 0 0 3px #0E0E10, 0 0 0 5.5px #6746EB; }
.ring-seen { box-shadow: 0 0 0 3px #0E0E10, 0 0 0 5px #2A2A2E; }
.ring-green { box-shadow: 0 0 0 2px #0E0E10, 0 0 0 4px #5CBF67; }
.plus { background: #6746EB; border-color: #0E0E10; }
.online { border-color: #0E0E10; }
.av--sage { background: #234129; color: #7FA889; }
.m-actions { border-bottom-color: #1F1F22; }
.m-btn { background: #6746EB; }
.fp { border-bottom-color: #1F1F22; }
.fp__av { box-shadow: 0 0 0 2px #0E0E10, 0 0 0 3.5px #6746EB; }
.fp__av--initial { background: #234129; color: #7FA889; box-shadow: 0 0 0 2px #0E0E10, 0 0 0 3.5px #5CBF67; }
.fp__who small, .creator { color: #9C86F2; }
.fp__icons, .fp__actions { color: #EDEDEE; }
.fp__title small, .fp__desc { color: #6F6F71; }
.fp__n--liked { color: #E23B3B; }
.fp__n--liked .ic { fill: #E23B3B; stroke: #E23B3B; }
.fp__add { color: #8E78F0; }
.tabs { background: #0E0E10; border-top-color: #1F1F22; color: #8E8D92; }
.tab--on { background: #26213D; color: #9079FA; }
.tab--cam { background: #6746EB; color: #fff; }
.tab--badge i { background: #FF5A4A; }
.m-banner { background: #19181D; color: #EDEDEE; }
.m-post--text { border-color: #1F1F22; }
.m-eyebrow, .m-meta { color: #8E8D92; }

/* --- in-app component demos --- */
.demo { background: #0E0E10; color: #EDEDEE; box-shadow: inset 0 0 0 1px #26252B; }
.d-label { color: #8E8D92; }
.d-hint, .row__txt small { color: #8E8D92; }
.chip { background: #26252B; color: #EDEDEE; }
.chip--on, .d-send, .seg .seg__on { background: #6746EB; color: #fff; }
.chip--ink { background: #EDEDEE; color: #0E0E10; }
.chip--tag { background: transparent; }
.chip--out { background: transparent; box-shadow: inset 0 0 0 1px #333238; }
.seg { background: #19181D; }
.seg span { color: #EDEDEE; }
.row { border-bottom-color: #1F1F22; }
.dot-red { border-color: #0E0E10; }
.tag { background: transparent; }
.tag--ink { background: #EDEDEE; color: #0E0E10; }
.tag--purple { color: #9C86F2; }
.tag--gold { color: #BB9C67; box-shadow: inset 0 0 0 1px #4A3B25; }
.tag--orange { color: #E89A6B; box-shadow: inset 0 0 0 1px #5A3424; }
.demo--tel .m-tel span { color: #E8914F; }
.fp__title--none { margin: 0; height: 2px; }

/* ---------- Hero headline: "Woah." slides to "Reality Matters." ---------- */
.hero h1.flip {
  position: relative;
  height: 2.08em;
  margin: 0 0 22px;
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 1.02;
  overflow: hidden;
}
.flip__item {
  position: absolute; left: 0; top: 50%;
  transform: translateY(calc(-50% + 70%));
  opacity: 0;
  transition: transform .75s cubic-bezier(.7, 0, .2, 1), opacity .5s ease;
  white-space: nowrap;
}
.flip__item.is-on  { transform: translateY(-50%); opacity: 1; }
.flip__item.is-off { transform: translateY(calc(-50% - 70%)); opacity: 0; }
.flip__item--brand { font-family: var(--brand); font-weight: 500; color: #8A70F2; font-size: 1.2em; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) {
  .hero h1.flip { height: auto; }
  .flip__item, .flip__item.is-off { position: static; transform: none; opacity: 1; display: block; transition: none; }
}

/* Lede: AI-free leads, bold and white */
.lede__lead { color: var(--ink); font-weight: 700; }

/* ---------- Scroll photos: mini Woah posts ---------- */
.pc { margin: 0; width: var(--cw, 210px); flex: none; }
.pc__in { background: #19181D; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #26252B, 0 24px 50px -18px rgba(0,0,0,.7); }
.pc__head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.pc__av { width: 28px; height: 28px; border-radius: 50%; background: center/cover; box-shadow: 0 0 0 2px #19181D, 0 0 0 3.5px #6746EB; flex: none; }
.pc__head b { display: block; font: 700 13px/1.2 var(--ui); color: #EDEDEE; }
.pc__head small { display: block; font: 600 11px/1.2 var(--ui); color: #6F6F71; }
.pc img { display: block; width: 100%; height: auto; }

/* Post strip: moves sideways with the scroll */
.strip-band { padding: 24px 0 64px; overflow: hidden; }
.strip { display: flex; gap: 18px; width: max-content; padding: 0 4vw; --cw: 170px; will-change: transform; }
.strip__card:nth-child(odd) .pc__in { transform: rotate(-2deg); }
.strip__card:nth-child(even) .pc__in { transform: rotate(2deg) translateY(16px); }

@media (max-width: 760px) {
  .strip { --cw: 130px; }
}

/* ---------- Fly-through: bordered, tilted photos pass the camera (Woah startup look) ---------- */
.fly { position: relative; height: 260vh; }
.fly__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.fly__center { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.fly__center h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; }
.fly__scene { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 50%; pointer-events: none; z-index: 1; }
.fly__img {
  position: absolute; left: 50%; top: 50%;
  width: clamp(150px, 19vw, 250px); height: auto;
  border: 4px solid #D9D9DE; border-radius: 22px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.6);
  transform: translate(-50%, -50%) translate3d(0, 0, -3000px);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .fly { height: auto; }
  .fly__sticky { position: relative; height: auto; padding: 80px 0; }
  .fly__scene { display: none; }
}

/* Strip: just the photos, bordered and tilted */
.strip__card .pc__head { display: none; }
.strip__card .pc__in { border: 4px solid #D9D9DE; border-radius: 20px; background: none; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); }
.strip { gap: 26px; padding-top: 18px; padding-bottom: 18px; }
.strip__card:nth-child(3n+1) .pc__in { transform: rotate(-5deg); }
.strip__card:nth-child(3n+2) .pc__in { transform: rotate(3deg) translateY(22px); }
.strip__card:nth-child(3n) .pc__in { transform: rotate(-2deg) translateY(-8px); }
.fly__center::before { content: ""; position: absolute; inset: -60px -80px; z-index: -1; background: radial-gradient(closest-side, rgba(14,14,16,.92), rgba(14,14,16,.6) 60%, transparent); }

/* Manifesto as the fly-through's centerpiece */

/* ---------- Hero headline: cleaner swap (old line leaves, then the new one arrives) ---------- */
.flip__item { transition: transform .55s cubic-bezier(.55, 0, .45, 1), opacity .35s ease; }
.flip__item.is-off { transition: transform .5s cubic-bezier(.6, 0, .9, .4), opacity .25s ease; }
.flip__item.is-on  { transition-delay: .3s; }

/* ---------- Two bordered photos beside each section title ---------- */
.headrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; margin-bottom: 44px; }
.headrow .section__head { margin-bottom: 0; }
.tpair { display: flex; align-items: center; padding: 10px 14px 28px; }
.tp {
  display: block; width: clamp(120px, 13vw, 176px); height: auto; aspect-ratio: 480 / 570; object-fit: cover;
  border: 4px solid #D9D9DE; border-radius: 20px; box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .65);
}
.tp:first-child { transform: rotate(-7deg); }
.tp:last-child  { transform: rotate(5deg) translateY(22px); margin-left: -26px; }
.beta { position: relative; }
.tpair--beta { position: absolute; inset: 0; padding: 0; pointer-events: none; justify-content: space-between; align-items: center; }
.tpair--beta .tp { width: clamp(120px, 12vw, 160px); margin: 0; }
.tpair--beta .tp:first-child { transform: translateX(-22%) rotate(-8deg); }
.tpair--beta .tp:last-child  { transform: translateX(22%) rotate(7deg); }
@media (max-width: 1180px) {
  .tpair--beta .tp:first-child { transform: translateX(-12%) rotate(-8deg); }
  .tpair--beta .tp:last-child  { transform: translateX(12%) rotate(7deg); }
}
@media (max-width: 980px) {
  .tpair--beta { position: static; justify-content: center; margin-bottom: 26px; }
  .tpair--beta .tp { width: 118px; }
  .tpair--beta .tp:first-child { transform: rotate(-7deg); }
  .tpair--beta .tp:last-child  { transform: rotate(5deg) translateY(14px); margin-left: -18px; }
}
@media (max-width: 760px) {
  .headrow { grid-template-columns: minmax(0, 1fr); }
  .headrow .tpair { order: -1; justify-content: flex-start; padding-bottom: 14px; }
  .tp { width: 112px; }
  .tp:last-child { transform: rotate(5deg) translateY(14px); margin-left: -18px; }
}

/* ---------- Footer: photo carousel + banner up top ---------- */
.footer { border-top: 0; padding-top: 0; }
.footer .strip-band { padding: 56px 0 72px; }
.footer .statement + .footer__inner { margin-top: 44px; }

/* ---------- Top bar: logo, tagline and button never collide ---------- */
.topbar .brand, .topbar__actions { flex: none; }
.topbar .btn--sm { white-space: nowrap; }
@media (max-width: 760px) { .topbar__inner { gap: 10px; } }
@media (max-width: 440px) {
  .topbar .wordmark { font-size: 26px; }
  .topbar .tagline { font-size: 9.5px; }
  .topbar .btn--sm { min-height: 40px; padding: 0 13px; font-size: 13px; }
  .topbar .menu { width: 40px; height: 40px; }
  .topbar__actions { gap: 8px; }
}
@media (max-width: 350px) {
  .topbar .tagline { display: none; }
}

/* Fly-through photos shrink with the screen instead of piling up on small ones */
.fly__img { width: clamp(64px, 19vw, 250px); border-width: clamp(2px, .32vw, 4px); border-radius: clamp(10px, 1.7vw, 22px); }

/* Beta card: three photos fanned above the title */
.tpair--beta { position: static; inset: auto; justify-content: center; align-items: flex-end; margin: 0 0 30px; padding: 0; }
.tpair--beta .tp { width: clamp(96px, 11vw, 150px); margin: 0; }
.tpair--beta .tp:nth-child(1) { transform: rotate(-9deg) translate(18px, 10px); }
.tpair--beta .tp:nth-child(2) { transform: translateY(-8px); position: relative; z-index: 1; }
.tpair--beta .tp:nth-child(3) { transform: rotate(8deg) translate(-18px, 12px); }
@media (max-width: 1180px), (max-width: 980px), (max-width: 760px) {
  .tpair--beta .tp:nth-child(1) { transform: rotate(-9deg) translate(16px, 10px); }
  .tpair--beta .tp:nth-child(2) { transform: translateY(-8px); margin-left: 0; }
  .tpair--beta .tp:nth-child(3) { transform: rotate(8deg) translate(-16px, 12px); margin-left: 0; }
}

/* Hero: the two-photo pair next to the headline once the phones stack below (tablet and phone) */
.tpair--hero { display: none; }
@media (max-width: 980px) {
  .hero__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; margin-bottom: 22px; }
  .hero__head h1.flip { margin-bottom: 0; }
  .tpair--hero { display: flex; padding: 6px 10px 22px; }
}
@media (max-width: 760px) {
  /* phones: headline and photos share the row, both scale with the screen so they never collide */
  .hero__head { gap: 8px; }
  .hero h1.flip { font-size: clamp(38px, 13vw, 88px); }
  .tpair--hero { padding: 4px 4px 16px 0; }
  .tpair--hero .tp { width: 16.5vw; border-width: 3px; border-radius: 12px; }
  .tpair--hero .tp:last-child { margin-left: -4.5vw; transform: rotate(5deg) translateY(10px); }
}

/* Headline swap: short rise + fade, nothing gets sliced off mid-swap */
.hero h1.flip { overflow: visible; }
.flip__item { transform: translateY(calc(-50% + .35em)); }
.flip__item.is-on  { transform: translateY(-50%); }
.flip__item.is-off { transform: translateY(calc(-50% - .35em)); }
