:root {
  --bg: #FFFFFF;
  --sage-band: #E7F0E9;
  --sage-soft: #F5F7F4;
  --sage-bubble: #DFEAE1;
  --ink: #1F2B25;
  --muted: #46574C;
  --subtle: #485A4F;
  --line: #E0E6DD;
  --accent: #5A7D65;
  --accent-hover: #4A6A54;
  --accent-ink: #FFFFFF;
  --surface: #FFFFFF;
  --radius-card: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-phone: 0 24px 60px rgba(31, 43, 37, 0.14), 0 6px 18px rgba(31, 43, 37, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  caret-color: var(--accent);
}

::selection {
  background: #D6E7DB;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 230, 221, 0.65);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mascot {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  text-underline-offset: 5px;
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 24px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-nav {
  padding: 10px 22px;
}

/* HERO */
.hero {
  padding-top: 38px;
  background: var(--bg);
  overflow-x: clip;
}

.hero-copy {
  text-align: center;
  max-width: 780px;
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

.hero-subtitle {
  margin: 16px auto 0;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  color: var(--muted);
  line-height: 1.48;
  text-wrap: balance;
}

/* WAITLIST FORM */
.waitlist-form {
  margin: 24px auto 0;
  max-width: 470px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease;
}

.waitlist-form:focus-within {
  border-color: var(--accent);
}

.waitlist-form input {
  flex: 1 1 200px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 6px;
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
}

.waitlist-form input::placeholder {
  color: var(--subtle);
}

.waitlist-form .btn-primary {
  padding: 12px 22px;
}

.form-feedback {
  width: 100%;
  margin: 0;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.form-feedback:not(:empty) {
  padding-top: 8px;
  padding-bottom: 4px;
}

.form-feedback.is-error {
  color: #9A3E35;
}

.form-feedback.is-success {
  color: #2E5C42;
}

/* HERO PHONE STAGE */
.hero-stage {
  position: relative;
  margin-top: 32px;
  padding-bottom: 12px;
  background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 76%, var(--sage-band) 76%, var(--sage-band) 100%);
}

.hero-stage-inner {
  display: flex;
  justify-content: center;
  padding-inline: 20px;
}

.phone-wrap {
  position: relative;
  width: min(320px, 100%);
  display: flex;
  justify-content: center;
}

.hero-mascot {
  position: absolute;
  right: -136px;
  bottom: 24px;
  width: 210px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  animation: ruddi-breathe 5.5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes ruddi-breathe {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.2deg);
  }
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #1B201D;
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
}

.phone-screen {
  background: #FAFBF9;
  border-radius: 33px;
  padding: 12px 14px 20px;
  min-height: 360px;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.phone-island {
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #151917;
}

.phone-signals {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* VOICE BUBBLE */
.bubble-voice {
  background: var(--sage-bubble);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 13px;
  margin-left: 16px;
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.voice-play {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease;
}

.voice-play:hover {
  background: var(--accent-hover);
}

.voice-play .icon-pause {
  display: none;
}

.voice-play.is-playing .icon-play {
  display: none;
}

.voice-play.is-playing .icon-pause {
  display: block;
}

.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 24px;
}

.waveform span {
  flex: 1;
  height: var(--h);
  border-radius: 999px;
  background: rgba(45, 72, 55, 0.34);
  transition: background-color 0.2s ease;
}

.waveform span.is-lit {
  background: var(--accent);
}

.voice-time {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.voice-caption {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.38;
  color: var(--ink);
}

/* APPROVAL CARD */
.approval-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
}

.approval-provider {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.approval-to {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--subtle);
}

.approval-subject {
  margin: 8px 0 3px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.approval-body {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.42;
  color: var(--muted);
}

.approval-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  resize: vertical;
  margin-bottom: 10px;
  background: #FAFBF9;
}

.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.btn-card:active {
  transform: scale(0.98);
}

.btn-card-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-card-primary:hover {
  background: var(--accent-hover);
}

.btn-card-secondary {
  background: #EEF2EE;
  color: var(--ink);
}

.btn-card-secondary:hover {
  background: #E2E9E3;
}

.approval-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2E5C42;
}

.btn-link {
  border: 0;
  background: transparent;
  padding: 4px 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--ink);
}

/* SECTION HEADINGS */
.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

.section-title.centered,
.section-lead.centered {
  text-align: center;
  margin-inline: auto;
}

.section-lead {
  margin: 14px 0 0;
  font-size: 1.06rem;
  line-height: 1.58;
  color: var(--muted);
  max-width: 60ch;
}

/* STEPS BAND */
.steps-band {
  background: var(--sage-band);
  padding: 56px 20px 84px;
}

.steps-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-art {
  height: 148px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
}

.step-art img {
  max-height: 142px;
  width: auto;
  object-fit: contain;
}

.step-item h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

/* VIEWABLE EDITORIAL STORY SECTIONS */
.story-section {
  background: var(--bg);
  padding: 96px 20px;
}

.space-section {
  background: var(--sage-soft);
  padding: 96px 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.story-grid-reverse .story-copy {
  order: 2;
}

.story-grid-reverse .space-visual {
  order: 1;
}

.story-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.story-list strong {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.story-list span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.52;
}

/* MOMENT BOARD (CHAT STORY VISUAL) */
.moment-board {
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.moment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.moment-tag {
  color: var(--subtle);
  font-weight: 500;
}

.moment-bubble {
  padding: 15px 18px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.52;
}

.moment-bubble p {
  margin: 0;
}

.moment-user {
  background: var(--sage-bubble);
  border-bottom-right-radius: 4px;
  margin-left: 28px;
}

.moment-ruddi {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  margin-right: 28px;
}

.moment-photo-strip {
  margin-bottom: 10px;
}

.flyer-thumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.moment-status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2E5C42;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* CUSTOMIZABLE SPACE & MINI APPS VISUAL */
.space-canvas {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.space-canvas-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.space-canvas-bar strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.space-canvas-bar span {
  font-size: 0.82rem;
  color: var(--subtle);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-app {
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.mini-app-wide {
  grid-column: 1 / -1;
}

.mini-app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-app-head strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.mini-meta {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--subtle);
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink);
}

.mini-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3F624A;
  min-width: 42px;
}

.habit-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.habit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink);
}

.habit-dots {
  display: inline-flex;
  gap: 4px;
}

.habit-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.habit-dots i.is-off {
  background: #D2DDD4;
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-chip {
  display: inline-block;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.mini-chip.is-warm {
  background: #F9EFE0;
  color: #6B4B22;
}

/* INTEGRATIONS + MCP BAND */
.integrations-band {
  background: var(--bg);
  padding: 96px 20px;
}

.integrations-header {
  text-align: center;
  margin-bottom: 44px;
}

.integrations-wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.int-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.int-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.int-tile:hover {
  border-color: #B9D1BF;
  background: #EFF5F0;
}

.int-tile.is-mcp {
  background: var(--sage-band);
  border-color: #B9D1BF;
  color: #1F3B28;
}

.int-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-strip {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.trust-item h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-item p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.56;
  color: var(--muted);
}

/* CLOSING BAND */
.closing-band {
  background: var(--sage-band);
  padding: 80px 20px;
}

.closing-inner {
  text-align: center;
  max-width: 680px;
}

.closing-subtitle {
  margin: 14px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 50ch;
}

/* FOOTER */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-name {
  font-size: 1.05rem;
}

.footer-note {
  font-size: 0.88rem;
  color: var(--subtle);
  padding-left: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--ink);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .steps-grid,
  .story-grid,
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-grid-reverse .story-copy,
  .story-grid-reverse .space-visual {
    order: initial;
  }

  .step-art {
    height: auto;
    margin-bottom: 14px;
  }

  .step-art img {
    max-height: 116px;
  }
}

@media (max-width: 680px) {
  .site-nav {
    display: none;
  }

  .nav-inner {
    min-height: 64px;
  }

  .hero-mascot {
    display: none;
  }

  .waitlist-form {
    padding: 8px;
    border-radius: 18px;
  }

  .waitlist-form input {
    padding: 10px 12px;
  }

  .waitlist-form .btn-primary {
    width: 100%;
  }

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

  .moment-user {
    margin-left: 12px;
  }

  .moment-ruddi {
    margin-right: 12px;
  }
}

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

  .hero-mascot {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
