/* dyald.io home page. The legal pages use style.css; nothing here touches them. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #fff;
  --ink: #222;
  --ink-2: #2b2b2b;
  --muted: #4d4a5c;
  --line: #ece9f4;
  --card: #fff;
  --soft: #fdfcff;
  --hero-bg: linear-gradient(100deg, #ecebff 0%, #f6f2ff 45%, #fdf0f3 100%);
  --grad: linear-gradient(90deg, #5b3df5 0%, #9a63f6 45%, #e0529d 100%);
  --grad-btn: linear-gradient(90deg, #5b3df5 0%, #9051e8 55%, #c8428a 100%);
  --btn-dark: #0e0b1a;
  --btn-dark-ink: #fff;
  --shadow: 0 10px 30px rgba(40, 20, 90, .06);
  --orb: radial-gradient(circle at 34% 26%, #e9ddff 0%, #b39bff 22%, #7b5cfa 48%, #3b1e8c 78%, #170b33 100%);
  --f1: #f7f1ff; --f1a: #ead9ff;
  --f2: #fff4f9; --f2a: #ffdcea;
  --f3: #f1f6ff; --f3a: #d8e7ff;
  --f4: #fff6f1; --f4a: #ffe0d1;
  --f5: #f4f2ff; --f5a: #dcd8ff;
  --f6: #f1fbf6; --f6a: #d3f2e2;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0714;
    --ink: #fff;
    --ink-2: #fff;
    --muted: rgba(255, 255, 255, .66);
    --line: rgba(255, 255, 255, .09);
    --card: rgba(255, 255, 255, .035);
    --soft: rgba(255, 255, 255, .03);
    --hero-bg: linear-gradient(180deg, #241b52 0%, #150e33 45%, #0a0714 100%);
    --grad: linear-gradient(90deg, #a996ff 0%, #c9b8ff 45%, #ff9ccc 100%);
    --btn-dark: #fff;
    --btn-dark-ink: #0e0b1a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .3);
    --f1: #16112b; --f1a: #2a1f55;
    --f2: #1a0f22; --f2a: #3a1b3d;
    --f3: #0f1428; --f3a: #1b2a52;
    --f4: #1c1216; --f4a: #3b2129;
    --f5: #13112a; --f5a: #28235a;
    --f6: #0e1a17; --f6a: #183a31;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #7b5cfa; outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--btn-dark); color: var(--btn-dark-ink); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 16px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.orb { display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: var(--orb); flex: none; }
.orb-xs { width: 18px; height: 18px; }
.orb-md { width: 56px; height: 56px; box-shadow: 0 0 30px rgba(123, 92, 250, .42); }
.orb-lg { width: 64px; height: 64px; box-shadow: 0 0 40px rgba(123, 92, 250, .42); }

/* Buttons: the label rolls up to a copy of itself on hover. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.swap { display: grid; height: 20px; overflow: hidden; line-height: 20px; }
.swap > span { grid-area: 1 / 1; transition: transform .45s var(--ease); }
.swap > span + span { transform: translateY(100%); }
.btn:hover .swap > span:first-child { transform: translateY(-100%); }
.btn:hover .swap > span + span { transform: translateY(0); }
.btn-dark { background: var(--btn-dark); color: var(--btn-dark-ink); }
.btn-grad { background: var(--grad-btn); color: #fff; }
.btn-light { background: var(--card); color: var(--ink); border: 1px solid var(--line); height: 54px; }
.btn-white { background: #fff; color: #17122b; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* MARK: Hero */

.hero { background: var(--hero-bg); padding: 0 32px 80px; }
.nav { position: relative; z-index: 20; padding: 17px 0; }
.nav-inner { max-width: 1280px; margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; letter-spacing: -1px; text-decoration: none; color: var(--ink); width: 184px; }
.nav-menu { display: flex; gap: 4px; font-size: 15px; font-weight: 500; }
.nav-menu a { text-decoration: none; padding: 7px 10px; border-radius: 8px; transition: background .2s; }
.nav-menu a:hover { background: rgba(123, 92, 250, .1); }
.nav-cta { width: 208px; }
.nav-toggle { display: none; }

/* Once the nav has scrolled out of view, the same header comes back as a floating glass
   pill (landing.js toggles .is-floating from an IntersectionObserver on .nav-slot, which
   keeps the header's place in the hero). */
.nav-slot { min-height: 86px; }
.nav.is-floating {
  position: fixed;
  z-index: 60;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5px 5px 5px 20px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .7);
  /* No backdrop-filter: a near-opaque tint keeps the links readable on any section. */
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%), rgba(248, 246, 255, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 10px 30px rgba(24, 12, 70, .16), 0 1px 3px rgba(24, 12, 70, .08);
  animation: nav-in .3s cubic-bezier(.22, 1, .36, 1) both;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav.is-floating {
    background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), rgba(250, 248, 255, .6);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}
.nav.is-floating.is-leaving { animation: nav-out .25s ease-in both; }
.nav.is-floating .nav-inner { height: 44px; }
.nav.is-floating .nav-cta { height: 44px; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes nav-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-16px); } }
@media (prefers-color-scheme: dark) {
  .nav.is-floating {
    border-color: rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%), rgba(20, 15, 40, .94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .4);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .nav.is-floating { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%), rgba(20, 15, 40, .55); }
  }
}

.hero-head { text-align: center; padding-top: 80px; }
h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 80px;
  line-height: 96px;
  font-weight: 500;
  letter-spacing: -5px;
  color: var(--ink);
  animation: rise 1s var(--ease) both;
}
.pill-grad {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -1px;
  border-radius: 99px;
  background: var(--bg);
  color: #6d4aff;
  transform: rotate(-3deg);
  box-shadow: 0 8px 24px rgba(123, 92, 250, .18);
}
.pill-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--grad-btn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.hero-sub { max-width: 600px; margin: 20px auto 0; color: var(--muted); animation: rise 1s .1s var(--ease) both; }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }

.stage { position: relative; height: 2700px; margin-top: 80px; }
/* Pinned clear of the floating nav (14px + 56px tall) with a 14px gap, as on phones. */
.stage-sticky { position: sticky; top: 84px; }
.stage-box { position: relative; max-width: 1238px; height: 590px; margin: 0 auto; perspective: 1400px; }
.phone {
  position: relative;
  border-radius: 46px;
  background: #0d0b16;
  padding: 9px;
  box-shadow: 0 30px 60px rgba(30, 14, 80, .18), inset 0 0 0 2px #3a3550;
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 30%;
  height: 22px;
  margin-left: -15%;
  border-radius: 99px;
  background: #000;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; background: #120c26; }
.phone-center { position: absolute; z-index: 3; left: 50%; top: 0; width: 280px; height: 590px; margin-left: -140px; }
.phone-next, .m-only { display: none; }
.screen { display: contents; }
.phone-side { position: absolute; z-index: 1; top: 29px; left: 50%; width: 259px; height: 531px; margin-left: -129.5px; opacity: 0; border-radius: 42px; }
.phone-left { --x: -345px; }
.phone-right { --x: 345px; }
.phone-side { transform: translateX(calc(var(--x) * var(--sp, 0))); opacity: var(--so, 0); }

.callout {
  position: absolute;
  z-index: 4;
  width: 280px;
  min-height: 159px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transform-origin: 50% 50%;
}
@media (prefers-color-scheme: dark) {
  .callout { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
}
.c1 { left: 124px; top: 0; }
.c2 { left: 834px; top: 0; }
.c3 { left: 62px; top: 265px; }
.c4 { left: 896px; top: 265px; }
.callout-title { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.5px; margin: 12px 0 8px; }
.callout p { font-size: 13px; line-height: 18px; color: var(--muted); }
.ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.ico svg, .m-ico svg, .facts svg, .doc-art svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-violet { background: #e7e0ff; color: #5b3df5; }
.ico-rose { background: #ffe0ec; color: #c8326f; }
.ico-blue { background: #dde9ff; color: #2d5bd8; }
.ico-amber { background: #ffe8d6; color: #b8541a; }

.stage-foot { position: relative; z-index: 5; max-width: 564px; margin: 30px auto 0; text-align: center; }
.stage-foot p { color: var(--muted); margin-bottom: 24px; }
.stage-foot .btn-grad { width: 263px; }
.stage-foot .btn-light { width: 224px; }

/* MARK: Strip */

.strip { padding: 80px 0; text-align: center; overflow: hidden; }
.strip-title { font-size: 16px; line-height: 36px; margin-bottom: 40px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.facts { display: flex; gap: 72px; padding-right: 72px; }
.facts li { display: flex; align-items: center; gap: 10px; height: 40px; font-size: 22px; font-weight: 600; letter-spacing: -.6px; color: var(--muted); white-space: nowrap; }
.facts svg { width: 28px; height: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* MARK: Sections */

.section { padding: 80px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.head { max-width: 700px; margin: 0 auto 80px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.head-left { margin-bottom: 80px; }
.tag {
  position: relative;
  display: inline-block;
  padding: 7px 16px;
  font-size: 14px;
  line-height: 21px;
  border-radius: 99px;
  color: var(--ink);
}
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-btn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
h2 { font-size: 56px; line-height: 1.2; font-weight: 600; letter-spacing: -2px; color: var(--ink-2); }

/* MARK: Bento */

.bento {
  display: grid;
  grid-template-columns: 298fr 681fr 298fr;
  grid-template-rows: 254px 237px 271px;
  gap: 30px;
  grid-template-areas:
    "a b c"
    "d e c"
    "d e f";
}
.tile { position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--card); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.tile h3 { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.6px; }
.tile p { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 12px; }
.t-a { grid-area: a; background: var(--f1); justify-content: space-between; }
.t-a .orb { margin-top: 8px; }
.t-b { grid-area: b; background: var(--f2); justify-content: space-between; }
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #b9a5f5; }
.dots i:nth-child(2) { background: #cfa2f0; }
.dots i:nth-child(3) { background: #ea9ac4; }
.dots i:nth-child(4) { background: #f6c3a5; }
.t-b .statement { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; margin: 0 0 12px; }
.t-c { grid-area: c; text-align: center; }
.heat { width: 100%; max-width: 240px; margin: 0 auto auto; }
.heat .h0 { fill: #e3dff0; }
.heat .h1 { fill: #b9a5f5; }
.heat .h2 { fill: #f2a23a; }
.heat .h3 { fill: #ef4f5f; }
@media (prefers-color-scheme: dark) { .heat .h0 { fill: rgba(255, 255, 255, .12); } }
.t-d { grid-area: d; background: var(--f3); }
.tile-phone { flex: 1; position: relative; overflow: hidden; margin: -20px -20px 16px; padding: 28px 44px 0; }
.phone-sm { height: 380px; border-radius: 36px; padding: 7px; }
.phone-sm img { border-radius: 30px; }
.phone-sm::before { top: 14px; height: 16px; }
.t-e { grid-area: e; background: linear-gradient(135deg, #7b5cfa 0%, #b077f0 50%, #f08aa8 100%); color: #fff; border: 0; }
.t-e p { color: rgba(255, 255, 255, .9); max-width: 520px; }
.t-e h3 { font-size: 24px; }
.chips { position: absolute; inset: 20px 20px 120px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px 10px; padding: 24px; }
.chips span { background: #fff; color: #2b2340; border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 500; box-shadow: 0 6px 16px rgba(40, 10, 80, .18); }
.chips span:nth-child(odd) { transform: rotate(-6deg); }
.chips span:nth-child(3n) { transform: rotate(5deg) translateY(6px); }
.t-f { grid-area: f; background: var(--f4); }
.tile .big-num { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -2px; margin: 0 0 12px !important; }
.t-f h3 { font-size: 18px; }

/* MARK: Feature stack */

.stack { display: flex; flex-direction: column; gap: 40px; }
.fcard {
  position: sticky;
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 48px;
  align-items: center;
  min-height: 567px;
  padding: 20px;
  border-radius: 32px;
  border: 1px solid var(--line);
  transform-origin: 50% 50%;
  will-change: transform;
}
.f1 { top: 16px; background: var(--f1); }
.f2 { top: 32px; background: var(--f2); }
.f3 { top: 48px; background: var(--f3); }
.f4 { top: 64px; background: var(--f4); }
.f5 { top: 80px; background: var(--f5); }
.f6 { position: relative; background: var(--f6); }
.fcard-art { align-self: stretch; border-radius: 20px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; padding-top: 40px; }
.f1 .fcard-art { background: var(--f1a); }
.f2 .fcard-art { background: var(--f2a); }
.f3 .fcard-art { background: var(--f3a); }
.f4 .fcard-art { background: var(--f4a); }
.f5 .fcard-art { background: var(--f5a); }
.f6 .fcard-art { background: var(--f6a); }
.phone-card { width: 240px; height: 490px; margin-bottom: -40px; border-radius: 40px; padding: 8px; }
.phone-card img { border-radius: 33px; }
.chip-tag { display: inline-block; font-size: 12px; line-height: 16px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); }
.fcard h3 { font-size: 40px; line-height: 52px; font-weight: 600; letter-spacing: -2px; margin: 18px 0 16px; color: var(--ink-2); }
.fcard-body > p { max-width: 640px; font-size: 16px; color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; max-width: 640px; margin: 28px 0 36px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8b6cf6;
}
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fcard .btn { height: 48px; }
.phone-mock { background: #120c26; }
.mock { height: 100%; border-radius: 33px; background: linear-gradient(180deg, #241b52 0%, #150e33 40%, #0a0714 100%); color: #fff; padding: 56px 16px 0; text-align: center; }
.mock-title { font-size: 20px; font-weight: 600; margin-top: 14px; }
.mock-sub { font-size: 13px; color: #b9a5f5; margin-bottom: 18px; }
.mock ul { text-align: left; display: grid; gap: 8px; }
.mock li { font-size: 11px; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.mock b { color: #fff; font-weight: 600; font-size: 12px; }

/* MARK: On-device models */

.models { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; text-align: center; min-height: 316px; }
.models li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.models li:nth-child(even) { padding-top: 60px; }
.m-ico { display: grid; place-items: center; width: 100px; height: 100px; margin-bottom: 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(60, 30, 140, .1); color: #5b3df5; }
.m-ico svg { width: 44px; height: 44px; stroke-width: 1.6; }
.m-ico .orb { width: 48px; height: 48px; }
.models b { font-size: 16px; font-weight: 500; }
.models small { font-size: 13px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .m-ico { color: #c9b8ff; } }

/* MARK: How it works */

.head-left { align-items: flex-start; text-align: left; margin-left: 0; max-width: 900px; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; min-height: 576px; }
.how-tabs { display: flex; flex-direction: column; gap: 12px; }
.how-tab {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.how-tab b { display: block; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 6px; }
.how-tab b + span { display: block; font-size: 15px; line-height: 22px; color: var(--muted); }
.how-tab[aria-selected="true"] { border-color: #b39bff; background: var(--card); box-shadow: var(--shadow); }
.how-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--f1a); color: #5b3df5; font-weight: 600; }
@media (prefers-color-scheme: dark) { .how-ico { color: #c9b8ff; } }
.how-panel { position: relative; border-radius: 24px; background: linear-gradient(120deg, #b8b4ff 0%, #d9b6f5 50%, #ffc1c8 100%); overflow: hidden; }
.how-pane { position: absolute; inset: 0; display: flex; justify-content: center; padding-top: 110px; animation: pane-in .6s var(--ease); }
.how-pane[hidden] { display: none; }
.phone-pane { width: 270px; height: 560px; }
@keyframes pane-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* MARK: Coaches */

.section-map { background: radial-gradient(ellipse at 50% 40%, rgba(123, 92, 250, .08), transparent 60%); }
.rules { position: relative; }
.rules-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 24px; }
.rules-track::-webkit-scrollbar { display: none; }
.rule { flex: 0 0 calc((100% - 72px) / 3.6); scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; box-shadow: var(--shadow); }
.rule > p:nth-child(2) { flex: 1; font-size: 16px; line-height: 24px; }
.rule-n { font-weight: 600; font-size: 15px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule-foot { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }
.rule-foot .orb { width: 32px; height: 32px; }
.rule-foot b { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.dots-nav { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.dots-nav button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.dots-nav button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c9c4d8; transition: background .3s; }
.dots-nav button[aria-current="true"]::before { background: #2b2340; }
@media (prefers-color-scheme: dark) { .dots-nav button[aria-current="true"]::before { background: #fff; } .dots-nav button::before { background: rgba(255,255,255,.3); } }

/* MARK: Pricing */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 30px; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.5px; }
.plan > p { font-size: 15px; color: var(--muted); }
.plan > .price { margin: 16px 0 8px; font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -2px; color: var(--ink-2); }
.price small { margin-left: 4px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .checks { flex: 1; grid-template-columns: 1fr; align-content: start; margin: 28px 0 32px; }
.plan .btn { height: 48px; }
.plan-pro { background: var(--f1); border-color: #b39bff; }
.plans-note { max-width: 640px; margin: 32px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* MARK: FAQ */

.section-faq { background: var(--soft); }
.faq { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 25px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 74px; padding: 12px 36px 12px 0; position: relative; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor 0 0) center / 14px 1.6px no-repeat, linear-gradient(currentColor 0 0) center / 1.6px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 36px 22px 34px; color: var(--muted); }
.faq details[open] p { animation: pane-in .45s var(--ease); }
.faq a { color: #5b3df5; }
@media (prefers-color-scheme: dark) { .faq a { color: #c9b8ff; } }

/* MARK: Help (legal) cards */

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.doc-art { display: grid; place-items: center; height: 285px; border-radius: 12px; color: #fff; transition: transform .6s var(--ease); overflow: hidden; }
.doc-card:hover .doc-art { transform: scale(.98); }
.doc-art svg { width: 64px; height: 64px; stroke-width: 1.3; }
.a1 { background: radial-gradient(circle at 30% 30%, #7b5cfa, #241b52 70%); }
.a2 { background: radial-gradient(circle at 70% 30%, #e0529d, #3b1e5c 70%); }
.a3 { background: radial-gradient(circle at 50% 70%, #5b8cff, #1b1846 70%); }
.doc-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.doc-title { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.3px; }
.doc-card:hover .doc-title { text-decoration: underline; }

/* MARK: Community and CTA */

.section-cta { padding-top: 80px; }
.community { position: relative; display: flex; justify-content: space-between; gap: 40px; min-height: 524px; padding: 60px; border-radius: 32px 32px 0 0; background: #2f2a3d; color: #fff; overflow: hidden; }
.community::before { content: ""; position: absolute; right: -180px; top: -40px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.community-copy { display: flex; flex-direction: column; justify-content: center; gap: 32px; max-width: 700px; position: relative; }
.cta-h { font-size: 40px; line-height: 1.2; font-weight: 600; letter-spacing: -1.6px; color: #fff; }
.ticker { position: relative; height: 300px; align-self: center; overflow: hidden; width: 260px; -webkit-mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.ticker-track { animation: ticker 14s linear infinite; }
.ticker li { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; font-size: 20px; }
.ticker li::before { content: ""; width: 22px; height: 22px; border-radius: 5px; background: #fff; }
.ticker li::after { content: ""; position: absolute; left: 8px; top: 16px; width: 5px; height: 10px; border: solid #2f2a3d; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@keyframes ticker { to { transform: translateY(-50%); } }
.cta { position: relative; display: flex; min-height: 476px; border-radius: 0 0 32px 32px; background: linear-gradient(100deg, #5b3df5 0%, #9a57e6 50%, #f0709a 100%); color: #fff; overflow: hidden; }
.cta-copy { position: relative; z-index: 2; max-width: 735px; padding: 60px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.cta-copy > p:not(.btn-row) { max-width: 560px; color: rgba(255, 255, 255, .92); font-size: 15px; }
.cta .btn-row { justify-content: flex-start; margin-top: 12px; }
.cta .btn { height: 44px; font-size: 15px; }
.cta-phones { position: absolute; right: -20px; top: -80px; bottom: -80px; width: 640px; display: flex; gap: 28px; transform: rotate(28deg); }
.cta-col { display: flex; flex-direction: column; gap: 28px; transform: translateY(var(--py, 0px)); }
.cta-col:nth-child(2) { margin-top: 140px; }
.phone-tilt { width: 220px; height: 460px; border-radius: 40px; padding: 8px; }
.phone-tilt img { border-radius: 33px; }

/* MARK: Footer */

.footer { padding: 80px 0; }
.footer .container { display: flex; flex-direction: column; min-height: 545px; }
.foot-bottom { margin-top: 24px !important; }
.wordmark { margin: auto 0 0; padding-top: 48px; font-size: clamp(96px, 16vw, 232px); line-height: .82; font-weight: 700; letter-spacing: -.06em; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; }
.foot-brand { max-width: 430px; }
.foot-brand p { color: var(--muted); margin-top: 16px; }
.foot-links { display: flex; gap: 80px; }
.foot-links div { display: flex; flex-direction: column; gap: 12px; }
.foot-links p { font-weight: 600; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-bottom a { margin-left: 24px; text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* MARK: Scroll reveal. Only hidden when the script is running and motion is allowed. */

.js [data-reveal] { opacity: 0; transform: translateY(100px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="near"] { transform: translateY(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.d1 { --d: .12s; }
.d2 { --d: .24s; }
.js .callout { transform: rotateY(calc(var(--cr, 0) * 1deg)) translateX(calc(var(--ct, 0) * 1px)) scale(var(--cs, 1)); opacity: var(--co, 1); }

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

/* MARK: Tablet (Webflow-style 991 breakpoint) */

@media (max-width: 991px) {
  .nav-menu { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 17px; }
  .nav-menu.is-open a { padding: 12px; }
  .nav.is-floating .nav-menu.is-open { top: calc(100% + 8px); }
  .nav-cta { display: none; }
  .callout { display: none; }
  h1 { font-size: 60px; line-height: 72px; letter-spacing: -4px; }
  h2 { font-size: 44px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "b b" "a c" "d c" "e e" "f f"; }
  .tile { min-height: 254px; }
  .t-e { min-height: 420px; }
  .fcard { position: relative; top: auto; grid-template-columns: 1fr; gap: 24px; transform: none !important; }
  .fcard-art { min-height: 420px; }
  .how { grid-template-columns: 1fr; }
  .how-panel { min-height: 520px; }
  .models { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .models li:nth-child(even) { padding-top: 0; }
  .rule { flex-basis: calc((100% - 24px) / 2); }
  .community { flex-direction: column; }
  .cta { flex-direction: column; }
  .cta-phones { position: relative; right: auto; top: auto; bottom: auto; width: 100%; height: 300px; justify-content: center; transform: rotate(28deg) translateY(-40px); }
}

/* MARK: Mobile (767 and below): the phone sequence replaces the three-phone stage */

@media (max-width: 767px) {
  .hero { padding: 0 16px 48px; }
  .nav-inner { height: 48px; }
  .nav-slot { min-height: 82px; }
  .nav.is-floating { left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); padding-left: 16px; }
  .logo { font-size: 24px; width: auto; }
  .hero-head { padding-top: 32px; }
  h1 { flex-direction: column-reverse; gap: 16px; font-size: 34px; line-height: 40.8px; letter-spacing: -2px; }
  .pill-grad { font-size: 16px; line-height: 20px; padding: 10px 16px; transform: none; letter-spacing: -.3px; }
  .hero-sub { font-size: 15px; line-height: 20px; margin-top: 20px; }
  .stage { height: 1688px; margin-top: 32px; }
  /* Pinned below the floating nav, and never taller than the small viewport (Safari's
     toolbars showing), so the whole frame is on screen for the length of the pin. */
  .stage-sticky { top: 76px; }
  /* The frame stays put. The first screen slides up inside it to uncover the second, then
     the third pushes the second out sideways. landing.js sets --m1 and --m2 on .screen. */
  .stage-box { --fh: min(640px, calc(100vh - 92px)); width: calc(var(--fh) * .4875); height: var(--fh); perspective: none; border-radius: 48px; background: #0d0b16; box-shadow: 0 30px 60px rgba(30, 14, 80, .18), inset 0 0 0 2px #3a3550; }
  @supports (height: 100svh) { .stage-box { --fh: min(640px, calc(100svh - 92px)); } }
  .stage-box::after { content: ""; position: absolute; z-index: 5; top: 20px; left: 50%; width: 30%; height: 24px; margin-left: -15%; border-radius: 99px; background: #000; }
  .phone-side { display: none; }
  /* The mask (not only overflow + radius) is what makes WebKit clip transformed children. */
  .screen { display: block; position: absolute; inset: 9px; overflow: hidden; border-radius: 39px; -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000); isolation: isolate; background: #120c26; }
  .screen .phone { top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; border-radius: 0; background: #120c26; box-shadow: none; }
  .screen .phone::before { display: none; }
  .screen .phone img { border-radius: 0; }
  .m-only, .phone-next { display: block; }
  .screen [data-mscreen="under"] { z-index: 1; transform: translateX(calc(var(--m2, 0) * -100%)); }
  .screen [data-mscreen="1"] { z-index: 2; border-radius: 0 0 39px 39px; overflow: hidden; transform: translateY(calc(var(--m1, 0) * -100%)); box-shadow: 0 14px 30px rgba(0, 0, 0, calc(.5 * min(1, var(--m1, 0) * 8, (1 - var(--m1, 0)) * 8))); }
  /* The screenshots' dark side strips meet at the seam and read as a second bezel, so the
     incoming screen has a lit edge and casts a shadow to its left: it reads as a sheet sliding
     over the glass, not as something beside the phone. */
  .screen [data-mscreen="2"] { z-index: 3; transform: translateX(calc((1 - var(--m2, 0)) * 100%)); box-shadow: -14px 0 30px rgba(0, 0, 0, calc(.55 * min(1, var(--m2, 0) * 8, (1 - var(--m2, 0)) * 8))); }
  .screen [data-mscreen="2"]::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(214, 200, 255, .35); }
  .stage-foot { margin-top: 29px; padding-bottom: 34px; }
  .stage-foot .btn-row { flex-direction: column; gap: 12px; }
  .stage-foot .btn-grad, .stage-foot .btn-light { width: 100%; }
  .strip { padding: 48px 0; min-height: 227px; }
  .strip-title { font-size: 16px; line-height: 24px; padding: 0 16px; margin-bottom: 40px; }
  .facts li { font-size: 18px; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .head { margin-bottom: 60px; gap: 16px; }
  .head-left { align-items: center; text-align: center; }
  h2 { font-size: 32px; line-height: 38.4px; letter-spacing: -1.5px; }
  .bento { grid-template-columns: 1fr; gap: 24px; grid-template-areas: "b" "d" "c" "e" "a" "f"; }
  .t-b { min-height: 271px; }
  .t-b .statement { font-size: 24px; }
  .t-d { min-height: 532px; }
  .t-c { min-height: 515px; justify-content: space-between; }
  .heat { max-width: 300px; }
  .t-e { min-height: 558px; }
  .chips { inset: 20px 20px 150px; }
  .t-a { min-height: 226px; }
  .t-f { min-height: 272px; }
  .fcard { padding: 16px 16px 24px; border-radius: 24px; gap: 24px; min-height: 0; }
  .fcard-art { min-height: 530px; padding-top: 32px; }
  .fcard h3 { font-size: 24px; line-height: 31.2px; letter-spacing: -.5px; margin: 16px 0 12px; }
  .checks { grid-template-columns: 1fr; margin: 24px 0 28px; }
  .fcard .btn { width: 100%; }
  .models { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; min-height: 0; scrollbar-width: none; padding-bottom: 50px; }
  .models li { flex: 0 0 120px; scroll-snap-align: start; }
  .m-ico { width: 88px; height: 88px; }
  .how-panel { min-height: 560px; }
  .how-pane { padding-top: 60px; }
  .phone-pane { width: 220px; height: 460px; }
  .how-tab { padding: 18px; }
  .how-tab b { font-size: 18px; }
  .rule { flex-basis: 100%; }
  .plans { grid-template-columns: 1fr; gap: 24px; }
  .plan { padding: 24px; }
  .plan > .price { font-size: 48px; }
  .faq { padding: 8px 17px; }
  .faq summary { min-height: 87px; }
  .faq details p { padding-left: 0; padding-right: 0; }
  .docs { grid-template-columns: 1fr; gap: 40px; }
  .community { padding: 32px 24px; min-height: 687px; border-radius: 24px 24px 0 0; }
  .cta-h { font-size: 26px; letter-spacing: -1px; }
  .ticker { width: 100%; height: 240px; }
  .cta { border-radius: 0 0 24px 24px; }
  .cta-copy { padding: 32px 24px; }
  .cta .btn-row { flex-direction: column; }
  .cta .btn { width: 100%; }
  .cta-phones { height: 234px; }
  .phone-tilt { width: 150px; height: 312px; border-radius: 30px; padding: 6px; }
  .phone-tilt img { border-radius: 25px; }
  .phone-tilt::before { top: 12px; height: 14px; }
  .footer { padding: 48px 0; }
  .footer .container { min-height: 776px; }
  .foot-top { flex-direction: column; }
  .foot-links { gap: 48px; }
  .foot-bottom { flex-direction: column; }
  .foot-bottom a { margin: 0 24px 0 0; }
}
