:root {
  --bg: #f8f5ee;
  --paper: #ffffff;
  --ink: #153243;
  --muted: #5a6b72;
  --teal: #1b7f79;
  --teal-deep: #0f5f5a;
  --amber: #f2a65a;
  --coral: #f26b6b;
  --mist: #dde7e6;
  --leaf: #2b9348;
  --line: rgba(21, 50, 67, 0.12);
  --shadow: 0 24px 60px rgba(21, 50, 67, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(242, 166, 90, 0.24), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(27, 127, 121, 0.18), transparent 22%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
  font-family: "Atkinson Hyperlegible", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.5;
}

.site-shell::before {
  top: 120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: rgba(242, 166, 90, 0.24);
  animation: drift 14s ease-in-out infinite;
}

.site-shell::after {
  left: -120px;
  top: 720px;
  width: 300px;
  height: 300px;
  background: rgba(27, 127, 121, 0.14);
  animation: drift 16s ease-in-out infinite reverse;
}

.container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  padding: 20px 0 8px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(21, 50, 67, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(27, 127, 121, 0.95), rgba(15, 95, 90, 1));
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.22);
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(27, 127, 121, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
}

.hero {
  padding: 44px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(27, 127, 121, 0.11);
  color: var(--teal-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.section-intro,
.legal-intro {
  margin: 0;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 18px 34px rgba(27, 127, 121, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.store-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  min-width: 230px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 50, 67, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 26px rgba(21, 50, 67, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(27, 127, 121, 0.4);
  box-shadow: var(--shadow);
  outline: none;
}

.store-badge img {
  display: block;
  width: 190px;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(21, 50, 67, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 80px 30px 30px 40px;
  border-radius: 48px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.84), rgba(221, 231, 230, 0.1)),
    linear-gradient(180deg, rgba(27, 127, 121, 0.16) 0%, rgba(242, 166, 90, 0.08) 100%);
  filter: blur(2px);
}

.phone-mockup {
  position: absolute;
  right: 0;
  top: 20px;
  width: min(100%, 392px);
  padding: 18px 18px 20px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1b2e35 0%, #10232b 100%);
  box-shadow: 0 34px 70px rgba(21, 50, 67, 0.24);
  overflow: hidden;
  transform: rotate(4deg);
  animation: floaty 8s ease-in-out infinite;
}

.demo-mockup {
  transform: none;
  animation: none;
}

.demo-video-shell,
.prompt-card,
.mini-card,
.flow-card,
.card,
.legal-card,
.legal-callout,
.support-card {
  border: 1px solid rgba(21, 50, 67, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.phone-screen-frame {
  position: relative;
  padding: 22px 10px 10px;
  border-radius: 32px;
  background: linear-gradient(180deg, #0b171d 0%, #13252d 100%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #091217;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.demo-video-shell {
  overflow: hidden;
  position: relative;
  aspect-ratio: 480 / 854;
  border-radius: 26px;
  padding: 0;
  background: #000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 26px;
  background: #000;
  object-fit: contain;
}

.demo-caption {
  margin-top: 14px;
  padding: 0 4px;
  text-align: center;
}

.demo-caption strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  color: #f5f7fa;
}

.demo-caption span {
  display: block;
  color: rgba(245, 247, 250, 0.78);
  font-size: 0.94rem;
}

.floating-bubble {
  position: absolute;
  padding: 14px 16px;
  max-width: 220px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(21, 50, 67, 0.14);
}

.floating-bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.floating-bubble small {
  display: block;
  color: var(--muted);
}

.bubble-left {
  left: -18px;
  top: 76px;
  transform: rotate(-5deg);
}

.bubble-right {
  right: -12px;
  bottom: 80px;
  transform: rotate(6deg);
}

.section {
  padding: 38px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.muted-kicker {
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.stats-grid,
.card-grid,
.legal-grid,
.faq-grid,
.platform-grid,
.company-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-grid,
.company-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.flow-card,
.legal-card,
.support-card {
  padding: 24px;
}

.stats-grid .card strong,
.flow-card strong,
.legal-card strong,
.support-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.card p,
.flow-card p,
.legal-card p,
.support-card p,
.stats-grid .card p {
  margin: 0;
  color: var(--muted);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.inline-list li {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(27, 127, 121, 0.09);
  color: var(--teal-deep);
  font-weight: 700;
}

.company-block {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(27, 127, 121, 0.12), rgba(242, 166, 90, 0.12)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 50, 67, 0.08);
  box-shadow: var(--shadow);
}

.company-block h2,
.company-block h3,
.legal-section h2,
.legal-callout h3 {
  margin-top: 0;
  font-family: "Fredoka", sans-serif;
}

.company-block p,
.company-block address,
.legal-section p,
.legal-section li,
.legal-callout p,
.footer p {
  margin: 0;
  color: var(--muted);
}

.company-block address {
  font-style: normal;
}

.company-grid .support-card {
  height: 100%;
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: rgba(242, 166, 90, 0.12);
}

.note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.footer {
  padding: 30px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  outline: none;
}

.page-hero {
  padding: 52px 0 24px;
}

.page-hero .eyebrow {
  background: rgba(242, 166, 90, 0.16);
  color: #8a541e;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 24px;
  padding-bottom: 36px;
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-section,
.legal-callout {
  padding: 26px;
  border: 1px solid rgba(21, 50, 67, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
  margin-top: 12px;
}

.legal-list,
.legal-list-tight {
  padding-left: 20px;
}

.legal-list li + li,
.legal-list-tight li + li {
  margin-top: 10px;
}

.legal-list strong,
.legal-list-tight strong,
.contact-list strong {
  color: var(--ink);
}

.legal-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(221, 231, 230, 0.38);
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--ink);
  background: rgba(27, 127, 121, 0.1);
  outline: none;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 245, 238, 0.9);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 68vh;
  text-align: center;
}

.empty-state .card {
  max-width: 560px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(27, 127, 121, 0.12);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(27, 127, 121, 0.08);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -18px, 0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .legal-layout,
  .stats-grid,
  .card-grid,
  .legal-grid,
  .platform-grid,
  .company-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 540px;
  }

  .phone-mockup {
    position: relative;
    margin: 0 auto;
    right: auto;
  }

  .floating-bubble {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  .phone-mockup {
    width: 100%;
    transform: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .button,
  .button-secondary,
  .store-badge {
    width: 100%;
  }
}
