:root {
  --bg: #f7f2ea;
  --bg-alt: #fbf8f3;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: #fffdf8;
  --surface-soft: #f2ebe1;
  --text: #16332b;
  --heading: #10251f;
  --text-muted: #5c6d66;
  --accent: #2e6a5b;
  --accent-strong: #214f43;
  --accent-soft: #d7e7dd;
  --warm-accent: #c89e72;
  --line: rgba(16, 37, 31, 0.12);
  --line-strong: rgba(16, 37, 31, 0.18);
  --shadow-sm: 0 16px 40px rgba(24, 38, 32, 0.08);
  --shadow-lg: 0 32px 90px rgba(24, 38, 32, 0.16);
  --shadow-xl: 0 40px 120px rgba(24, 38, 32, 0.18);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 36px;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top left, rgba(208, 228, 214, 0.7), transparent 34%),
    radial-gradient(circle at top right, rgba(243, 226, 206, 0.8), transparent 28%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  background-color: var(--bg-alt);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(208, 228, 214, 0.7), transparent 34%),
    radial-gradient(circle at top right, rgba(243, 226, 206, 0.8), transparent 28%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-intro {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.marketing-home h1,
.marketing-home .cta-panel h2,
.beta-page .beta-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.97;
  color: var(--heading);
}

.marketing-home h2,
.beta-page h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.marketing-home h3,
.beta-page h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.marketing-home p,
.beta-page p {
  margin: 0;
}

.btn-primary,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8f5ef;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 36px rgba(33, 79, 67, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(33, 79, 67, 0.24);
}

.btn-primary:active,
.nav-cta:active {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  padding: calc(28px + env(safe-area-inset-top)) 0 8px;
}

.site-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(33, 79, 67, 0.16);
}

.nav-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.marketing-home main {
  overflow: hidden;
}

.marketing-home .hero {
  position: relative;
  padding-top: 32px;
}

.marketing-home .hero::before,
.marketing-home .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.marketing-home .hero::before {
  top: 60px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(186, 217, 197, 0.55);
}

.marketing-home .hero::after {
  right: -60px;
  bottom: 20px;
  width: 260px;
  height: 260px;
  background: rgba(233, 216, 194, 0.7);
}

.hero-layout {
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(3.35rem, 8vw, 6.15rem);
}

.hero-subhead {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(1.06rem, 1.8vw, 1.26rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 34px 0 28px;
}

.cta-note {
  max-width: 300px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.app-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 34px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(252, 248, 242, 0.76) 100%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(215, 231, 221, 0.6);
}

.app-topbar,
.rules-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-topbar {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.topbar-label,
.topbar-status,
.rules-card-header span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 235, 225, 0.95);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.topbar-status {
  background: rgba(215, 231, 221, 0.92);
  color: var(--accent-strong);
}

.conversation-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.message,
.coach-card,
.rules-card {
  box-shadow: var(--shadow-sm);
}

.message {
  max-width: 86%;
  padding: 16px 18px;
  border-radius: 22px;
  font-size: 0.97rem;
  line-height: 1.55;
}

.message.incoming {
  border: 1px solid var(--line);
  border-top-left-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.message.outgoing {
  margin-left: auto;
  border-top-right-radius: 10px;
  background: linear-gradient(135deg, #2e6a5b 0%, #377664 100%);
  color: #f8f5ef;
}

.coach-card {
  max-width: 88%;
  padding: 18px 20px;
  border: 1px solid rgba(151, 122, 82, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8ee 0%, #f3e8d9 100%);
}

.coach-label,
.solution-label,
.card-tag,
.step-index {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coach-label {
  margin-bottom: 10px;
  color: #8a6d46;
}

.coach-card p {
  color: #5f4f3a;
}

.rules-card {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(247, 243, 236, 0.95);
}

.rules-card strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.rules-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}

.rules-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.rule-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
}

.problem-solution {
  position: relative;
}

.problem-grid,
.outcome-grid,
.steps-grid,
.use-case-grid,
.trust-layout {
  display: grid;
  gap: 24px;
}

.problem-list {
  display: grid;
  gap: 18px;
}

.problem-item,
.outcome-card,
.step-card,
.use-case-card,
.principles-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.problem-item,
.outcome-card,
.step-card,
.use-case-card {
  border-radius: 28px;
  padding: 26px;
}

.problem-item p,
.outcome-card p,
.step-card p,
.use-case-card p,
.trust-copy p,
.principle p,
.cta-support,
.beta-intro p,
.notice,
.step p,
.beta-note {
  color: var(--text-muted);
}

.solution-card {
  border-radius: 32px;
  padding: 32px;
  background: linear-gradient(180deg, #214f43 0%, #16362d 100%);
  box-shadow: var(--shadow-lg);
  color: #f8f5ef;
}

.solution-label {
  margin-bottom: 16px;
  color: rgba(255, 245, 232, 0.68);
}

.solution-card h3 {
  margin-bottom: 16px;
  font-size: 1.75rem;
  color: #fffaf2;
}

.solution-card p {
  color: rgba(255, 245, 232, 0.82);
}

.card-tag {
  margin-bottom: 16px;
  color: var(--accent-strong);
}

.step-card {
  position: relative;
}

.step-index {
  margin-bottom: 16px;
  color: var(--warm-accent);
}

.use-case-card h3,
.principle h3 {
  margin-bottom: 12px;
}

.trust-copy {
  max-width: 520px;
}

.trust-copy p {
  margin-top: 18px;
  font-size: 1.05rem;
}

.principles-card {
  border-radius: 32px;
  overflow: hidden;
}

.principle {
  padding: 26px;
}

.principle + .principle {
  border-top: 1px solid var(--line);
}

.closing-cta {
  padding-top: 24px;
  padding-bottom: 112px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 36px;
  text-align: center;
  color: #f8f5ef;
  background: linear-gradient(135deg, #214f43 0%, #2f6a5b 100%);
  box-shadow: var(--shadow-xl);
}

.cta-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
}

.cta-panel::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -40px;
  background: #d9efe5;
}

.cta-panel::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -40px;
  background: #f6dfc4;
}

.cta-panel .eyebrow,
.cta-panel .cta-support,
.cta-panel h2,
.cta-panel .btn-primary {
  position: relative;
  z-index: 1;
}

.cta-panel .eyebrow {
  color: rgba(248, 245, 239, 0.72);
}

.cta-panel h2 {
  max-width: 19ch;
  margin: 0 auto 18px;
  font-size: clamp(2.35rem, 4.3vw, 3.75rem);
  line-height: 1.02;
  text-wrap: balance;
  color: #fffaf2;
}

.cta-support {
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(248, 245, 239, 0.8);
}

footer {
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
}

footer a,
.step a:not(.btn-primary) {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

footer a:hover,
.step a:not(.btn-primary):hover,
.back-link:hover {
  color: var(--accent-strong);
}

.beta-page .container {
  width: min(860px, calc(100% - 40px));
}

.beta-page {
  background:
    radial-gradient(circle at top left, rgba(208, 228, 214, 0.55), transparent 32%),
    radial-gradient(circle at top right, rgba(243, 226, 206, 0.65), transparent 30%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: calc(28px + env(safe-area-inset-top));
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}

.notice {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.beta-intro {
  padding: 28px 0 12px;
}

.beta-intro h1 {
  max-width: 14.5ch;
  font-size: clamp(3rem, 9vw, 4.8rem);
  text-wrap: balance;
}

.beta-intro p:last-child {
  margin-top: 20px;
  max-width: 620px;
  font-size: 1.05rem;
}

.beta-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.step-number {
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-accent);
}

.step h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.step p {
  margin-bottom: 14px;
}

.step p:last-child {
  margin-bottom: 0;
}

.beta-note {
  padding: 24px 0 0;
  text-align: center;
}

.beta-page footer {
  margin-top: 36px;
  padding-bottom: 44px;
}

.marketing-home .site-header,
.marketing-home .hero-copy .eyebrow,
.marketing-home .hero-copy h1,
.marketing-home .hero-subhead,
.marketing-home .hero-actions,
.marketing-home .trust-strip,
.marketing-home .hero-panel {
  animation: fade-up 0.8s ease both;
}

.marketing-home .site-header {
  animation-delay: 0.05s;
}

.marketing-home .hero-copy .eyebrow {
  animation-delay: 0.1s;
}

.marketing-home .hero-copy h1 {
  animation-delay: 0.16s;
}

.marketing-home .hero-subhead {
  animation-delay: 0.22s;
}

.marketing-home .hero-actions {
  animation-delay: 0.28s;
}

.marketing-home .trust-strip {
  animation-delay: 0.34s;
}

.marketing-home .hero-panel {
  animation-delay: 0.22s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .beta-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .beta-intro h1,
  .beta-intro p:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  }

  .problem-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
  }

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

  .use-case-grid,
  .trust-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    position: relative;
  }

  .steps-grid::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(46, 106, 91, 0.26) 12%, rgba(46, 106, 91, 0.26) 88%, transparent 100%);
  }

  .step-card {
    min-height: 250px;
  }

  .trust-layout {
    align-items: start;
  }
}

@media (max-width: 859px) {
  .section {
    padding: 72px 0;
  }

  .footer-shell,
  .hero-actions,
  .app-topbar,
  .rules-card-header {
    align-items: flex-start;
  }

  .footer-shell {
    flex-direction: column;
  }

  .app-topbar,
  .rules-card-header {
    flex-direction: column;
  }

  .hero-copy h1,
  .cta-panel h2,
  .beta-intro h1 {
    max-width: none;
  }

  .cta-panel {
    text-align: left;
  }

  .cta-panel-inner {
    justify-items: start;
    text-align: left;
    max-width: none;
  }

  .cta-panel h2,
  .cta-support {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: calc(18px + env(safe-area-inset-top)) 0 6px;
  }

  .site-shell {
    gap: 10px 12px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-cta {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .marketing-home .hero {
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
    line-height: 1.02;
  }

  .hero-subhead {
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    margin: 28px 0 22px;
  }

  .cta-note {
    max-width: none;
  }

  .app-shell,
  .problem-item,
  .outcome-card,
  .step-card,
  .use-case-card,
  .step,
  .solution-card,
  .principles-card,
  .cta-panel {
    border-radius: 24px;
  }

  .app-shell,
  .problem-item,
  .outcome-card,
  .step-card,
  .use-case-card,
  .step,
  .solution-card,
  .principle,
  .cta-panel {
    padding: 22px;
  }

  .marketing-home h2,
  .beta-page h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .cta-panel h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }
}

@media (max-width: 540px) {
  .container,
  .beta-page .container {
    width: min(100%, calc(100% - 28px));
  }

  .section {
    padding: 60px 0;
  }

  .hero-actions .btn-primary,
  .cta-panel .btn-primary,
  .step .btn-primary {
    width: 100%;
  }

  .hero-actions,
  .trust-strip {
    gap: 12px;
  }

  .message,
  .coach-card {
    max-width: 100%;
  }

  .trust-pill {
    font-size: 0.84rem;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
