:root {
  --ink: #0e1624;
  --ink-2: #172235;
  --ink-3: #243149;
  --stone: #f2f7fc;
  --stone-2: #e2edf8;
  --paper: #ffffff;
  --copper: #2070b4;
  --copper-2: #5aa9ea;
  --blue: #3b9ae1;
  --muted: #5a6475;
  --line: rgba(14, 22, 36, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-lg: 0 40px 80px -24px rgba(14, 22, 36, 0.35), 0 12px 24px -12px rgba(14, 22, 36, 0.18);
  --shadow-md: 0 24px 48px -20px rgba(14, 22, 36, 0.28), 0 6px 16px -8px rgba(14, 22, 36, 0.14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display em {
  font-style: italic;
  color: var(--copper);
}

.on-dark .display em {
  color: var(--copper-2);
}

h2.display {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
}

.on-dark .lede {
  color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(32, 112, 180, 0.7);
}

.btn-primary:hover {
  background: #1a5d98;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(14, 22, 36, 0.05);
}

.on-dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.on-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(242, 247, 252, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta .login {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-cta .btn {
  padding: 12px 22px;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 150px 0 40px;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(32, 112, 180, 0.16), transparent 60%),
    radial-gradient(800px 500px at 5% 30%, rgba(59, 154, 225, 0.14), transparent 60%),
    var(--stone);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 22, 36, 0.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  margin: 22px 0 26px;
}

.hero .lede {
  margin: 0 0 34px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  padding-bottom: 7%;
}

.draw-card {
  width: 84%;
  margin-left: auto;
  transform: rotate(1.5deg);
}

.draw-card .frame {
  box-shadow: 0 60px 120px -30px rgba(14, 22, 36, 0.45), 0 18px 36px -12px rgba(14, 22, 36, 0.2);
}

.float {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 22, 36, 0.08);
  will-change: transform;
}

.float img {
  width: 100%;
}

.float.hv-3d {
  left: 0;
  top: 30%;
  width: 46%;
  --r: -2.5deg;
  z-index: 3;
  animation: bob 12s ease-in-out -1s infinite;
}

.float.hv-sum {
  right: -2%;
  bottom: 0;
  width: 40%;
  --r: 2deg;
  z-index: 4;
  animation: bob 11s ease-in-out -4s infinite;
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(var(--r, 0deg));
  }
}

.chip {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 8s ease-in-out infinite;
}

.chip i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5f6ec;
  color: #15803d;
  font-style: normal;
}

.chip.c1 {
  left: 4%;
  top: 6%;
  --r: 0deg;
}

.chip.c2 {
  left: 8%;
  bottom: 3%;
  --r: 0deg;
  animation-delay: -4s;
}

.chip.c2 i {
  background: #e4f1fc;
  color: #1d6fb8;
}

/* Marquee */
.marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 38s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}

.marquee-track span::after {
  content: "\2726";
  color: var(--copper-2);
  font-size: 1rem;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* Statement */
.statement {
  padding: clamp(90px, 14vw, 180px) 0 clamp(60px, 9vw, 120px);
  text-align: center;
}

.statement p.display {
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  max-width: 22ch;
  margin-inline: auto;
}

.statement .strike {
  white-space: nowrap;
}

.statement .strike {
  color: rgba(14, 22, 36, 0.28);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--copper);
}

.statement .lede {
  margin: 28px auto 0;
}

/* Story */
.story {
  padding: 40px 0 120px;
}

.story-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.story-head h2 {
  margin: 18px 0 0;
}

.wrap.wide {
  width: min(1400px, 100% - 48px);
}

.story-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.45s ease;
}

.step.is-active {
  opacity: 1;
}

.step .num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--copper);
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.step p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 22px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--copper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.story-stage {
  position: sticky;
  top: 12vh;
  align-self: start;
}

.slides {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  position: relative;
  align-self: center;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.frame {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 22, 36, 0.08);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: #eaf2fa;
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9d3c8;
}

.frame-bar i:nth-child(1) { background: #f0856b; }
.frame-bar i:nth-child(2) { background: #f1c55e; }
.frame-bar i:nth-child(3) { background: #6dc98a; }

.frame img {
  width: 100%;
}

.slide .pop {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 22, 36, 0.08);
}

.slide .pop img {
  width: 100%;
}

.pop.p-br { right: -1.5%; bottom: -8%; width: 40%; }
.pop.p-bl { left: -1.5%; bottom: -6%; width: 40%; }
.pop.p-tr { right: -1.5%; top: -6%; width: 40%; }

.step-media {
  display: none;
}

/* Big quote showcase */
.bigshot {
  padding: clamp(90px, 12vw, 160px) 0 clamp(110px, 14vw, 190px);
  background: var(--stone-2);
  overflow: hidden;
}

.bigshot-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.bigshot-head h2 {
  margin: 18px 0 20px;
}

.bigshot-head .lede {
  margin-inline: auto;
}

.bigshot-stage {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.bs-main {
  width: 82%;
  box-shadow: 0 60px 120px -30px rgba(14, 22, 36, 0.45);
}

.bs-3d {
  position: absolute;
  right: -4%;
  top: 10%;
  width: 46%;
  --r: 2deg;
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
}

.bs-sum {
  position: absolute;
  right: 2%;
  bottom: -9%;
  width: 44%;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-lg);
}

/* Demo */
.demo {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}

.demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(32, 112, 180, 0.4), transparent 60%),
    radial-gradient(700px 500px at 95% 90%, rgba(59, 154, 225, 0.22), transparent 60%);
  pointer-events: none;
}

.demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.demo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.demo h2 {
  margin: 18px 0 22px;
}

.demo-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.demo-status {
  margin-top: 16px;
  min-height: 1.3em;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

.demo-status.ok { color: #6ee7a3; }
.demo-status.err { color: #fca5a5; }

.demo-visual {
  position: relative;
}

.demo-visual .frame {
  transform: rotate(2deg);
}

.demo-visual .pop {
  position: absolute;
  left: -9%;
  bottom: -9%;
  width: 40%;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#demoResult {
  display: none;
  margin-top: 28px;
}

#demoResult p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

#demoResult img {
  border-radius: var(--radius-sm);
  background: #fff;
  max-height: 240px;
  width: auto;
}

.embed-row {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.embed-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.embed-card b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.embed-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

/* Bento */
.features {
  padding: clamp(90px, 12vw, 160px) 0;
}

.features-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.features-head h2 {
  margin-top: 18px;
  max-width: 14ch;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  grid-column: span 4;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tile.s7 { grid-column: span 7; }
.tile.s5 { grid-column: span 5; }
.tile.s6 { grid-column: span 6; }
.tile.s12 { grid-column: span 12; }

.tile.wide {
  flex-direction: row;
  align-items: stretch;
  min-height: 560px;
}

.tile.wide .tile-copy {
  flex: 0 0 31%;
  padding: 48px 20px 0 48px;
  align-self: center;
  padding-bottom: 48px;
}

.tile.wide .tile-copy h3 {
  font-size: 2.6rem;
}

.tile.wide .tile-shot {
  flex: 1;
  margin: 48px 0 0 0;
  border-radius: 14px 0 0 0;
}

.tile.wide.flip {
  flex-direction: row-reverse;
}

.tile.wide.flip .tile-copy {
  padding: 48px 48px 48px 20px;
}

.tile.wide.flip .tile-shot {
  margin: 48px 0 0 0;
  border-radius: 0 14px 0 0;
  border-left: 0;
  border-right: 1px solid var(--line);
}
.tile.dark {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.tile-copy {
  padding: 30px 30px 0;
}

.tile-copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.08;
  margin: 0 0 10px;
}

.tile-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 44ch;
}

.tile.dark .tile-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.tile-shot {
  position: relative;
  margin: 26px 0 0 30px;
  flex: 1;
  min-height: 200px;
  border-radius: 14px 0 0 0;
  overflow: hidden;
  box-shadow: -8px -8px 30px -12px rgba(14, 22, 36, 0.3);
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  background: #fff;
}

.tile-shot img {
  width: 100%;
  height: auto;
  min-width: 100%;
}

/* Testimonial */
.quote-block {
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--stone-2);
  text-align: center;
}

.quote-block blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.quote-block blockquote::before {
  content: "\201C";
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--copper);
  margin-bottom: 12px;
}

.quote-block cite {
  display: block;
  margin-top: 34px;
  font-style: normal;
  font-weight: 600;
}

.quote-block cite small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

/* Pricing */
.pricing {
  padding: clamp(90px, 12vw, 160px) 0;
}

.pricing-head {
  text-align: center;
  margin-bottom: 44px;
}

.pricing-head h2 {
  margin: 18px 0 16px;
}

.pricing-head .lede {
  margin-inline: auto;
}

.toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--stone-2);
  margin-top: 28px;
}

.toggle button {
  font: 600 0.92rem var(--sans);
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}

.toggle button.on {
  background: var(--ink);
  color: #fff;
}

.toggle button em {
  font-style: normal;
  font-size: 0.75rem;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  padding: 40px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.price-card.feature {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.price-card .tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.price-card.feature .tag {
  color: var(--copper-2);
}

.price-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.8rem;
  margin: 10px 0 6px;
  line-height: 1;
}

.price-card .sub {
  color: var(--muted);
  margin: 0 0 26px;
  min-height: 3.1em;
}

.price-card.feature .sub {
  color: rgba(255, 255, 255, 0.65);
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.amount strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.6rem;
  line-height: 1;
}

.amount span {
  color: var(--muted);
}

.price-card.feature .amount span {
  color: rgba(255, 255, 255, 0.65);
}

.billing-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 28px;
  min-height: 1.4em;
}

.price-card.feature .billing-note {
  color: rgba(255, 255, 255, 0.6);
}

.price-card .ticks {
  margin-bottom: 34px;
  flex: 1;
}

.price-card .btn {
  width: 100%;
}

.price-foot {
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
}

.price-foot b {
  color: var(--ink);
}

/* FAQ */
.faq {
  padding: 20px 0 clamp(90px, 12vw, 150px);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
}

.faq h2 {
  margin-top: 18px;
}

details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.12rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
}

details p {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 60ch;
}

/* Final CTA */
.final {
  position: relative;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(100px, 14vw, 190px) 0;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 420px at 50% 100%, rgba(32, 112, 180, 0.55), transparent 65%);
}

.final .wrap {
  position: relative;
}

.final h2 {
  font-size: clamp(2.8rem, 7.4vw, 6.4rem);
  max-width: 14ch;
  margin: 0 auto 30px;
}

.final .hero-actions {
  margin-top: 36px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0 40px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer img {
  height: 30px;
  width: auto;
}

.footer nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* Demo overlay */
#td-demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(4px);
}

#td-demo-overlay iframe {
  width: 1200px;
  height: 1000px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 14px;
  background: #fff;
}

#td-demo-overlay button {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

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

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }

  .story-inner,
  .demo-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .story-stage { display: none; }

  .step {
    min-height: 0;
    opacity: 1;
    padding: 44px 0;
  }

  .step-media {
    display: block;
    position: relative;
    margin-top: 30px;
  }

  .step-media .pop {
    position: absolute;
    right: 0;
    bottom: -18px;
    width: 46%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }

  .tile,
  .tile.s7,
  .tile.s5,
  .tile.s12,
  .tile.s6 {
    grid-column: span 12;
  }

  .tile.wide,
  .tile.wide.flip {
    flex-direction: column;
    min-height: 0;
  }

  .tile.wide .tile-copy,
  .tile.wide.flip .tile-copy {
    flex: none;
    padding: 30px 30px 0;
  }

  .tile.wide .tile-copy h3 { font-size: 1.9rem; }

  .tile.wide .tile-shot,
  .tile.wide.flip .tile-shot {
    margin: 26px 0 0 30px;
    border-radius: 14px 0 0 0;
    border-left: 1px solid var(--line);
    border-right: 0;
  }

  .embed-row {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .hero-visual {
    display: grid;
    gap: 18px;
    padding-bottom: 0;
  }

  .draw-card { width: 100%; transform: none; }

  .float,
  .float.hv-3d,
  .float.hv-sum {
    position: relative;
    inset: auto;
    width: auto;
    animation: none;
    transform: none;
  }

  .chip { display: none; }

  .bigshot-stage { display: grid; gap: 18px; }
  .bs-main { width: 100%; }
  .bs-3d,
  .bs-sum {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav-cta .login { display: none; }
  .hero { padding-top: 120px; }
  .price-card { padding: 30px 24px; }
  .amount strong { font-size: 3.8rem; }
  .tile-copy,
  .tile.wide .tile-copy,
  .tile.wide.flip .tile-copy { padding: 24px 22px 0; }
  .tile-shot,
  .tile.wide .tile-shot,
  .tile.wide.flip .tile-shot { margin-left: 22px; }
  .btn { white-space: normal; }
}

/* Subscribe / success / cancel pages */
body.subpage { background: var(--stone); }

.page {
  padding: 130px 0 90px;
  min-height: calc(100vh - 110px);
}

.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 64px;
  align-items: start;
}

.sub-copy .display { font-size: clamp(2.6rem, 5vw, 4rem); margin: 14px 0 18px; }
.sub-copy .ticks { margin-top: 28px; }

.sub-card,
.status-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 36px;
}

.field { margin-bottom: 20px; }

.field label,
.field .label {
  display: block;
  font: 600 0.88rem var(--sans);
  color: var(--ink);
  margin-bottom: 7px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"] {
  width: 100%;
  font: 400 1rem var(--sans);
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(32, 112, 180, 0.15);
}

.field small,
.check small {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.sub-card .toggle { margin-top: 0; display: flex; }
.sub-card .toggle button { flex: 1; padding: 11px 14px; }

.stepper {
  display: flex;
  align-items: stretch;
  width: 170px;
}

.stepper button {
  width: 46px;
  font: 500 1.3rem var(--sans);
  border: 1.5px solid var(--line);
  background: var(--stone);
  color: var(--ink);
  cursor: pointer;
}

.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }
.stepper button:hover { background: var(--stone-2); }

.stepper input {
  width: 100%;
  text-align: center;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--stone);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 22px;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--copper);
  flex-shrink: 0;
}

.sub-total {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 18px;
}

.sub-total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sub-total .t-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.sub-total strong { font: 400 2.2rem var(--serif); }
.sub-total p { margin: 6px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecec;
  color: #a12020;
  font-size: 0.92rem;
  line-height: 1.4;
}

.form-error[hidden] { display: none; }

.btn-block { width: 100%; justify-content: center; }

.fine { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

.status-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
}

.status-card .display { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 14px 0 14px; }
.status-card .lede { margin-left: auto; margin-right: auto; }
.status-card .hero-actions { justify-content: center; margin-top: 28px; }

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: var(--stone-2);
  color: var(--muted);
}

.status-icon.ok { background: var(--copper); color: #fff; }
.status-icon svg { width: 30px; height: 30px; }

.steps-list {
  text-align: left;
  margin: 28px auto 0;
  padding: 0 0 0 22px;
  max-width: 460px;
  line-height: 1.55;
  color: var(--ink-2);
}

.steps-list li { margin-bottom: 10px; }

@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .page { padding-top: 104px; }
  .sub-card, .status-card { padding: 26px 20px; }
}

.check s { color: var(--muted); font-weight: 400; }
.free-tag { color: var(--copper); letter-spacing: 0.06em; font-size: 0.82rem; }
.check input:disabled { opacity: 1; }
