/* FeedBook landing — tokens from feedbook-visual-language.md */

:root {
  --background: #ffffff;
  --surface: #f6f7f9;
  --surface-strong: #eef0f4;
  --ink: #2c2c30;
  --ink-secondary: #6b6b73;
  --ink-muted: #8a8a92;
  --brand: #7b5cf6;
  --brand-container: #ede7fe;
  --brand-hover: #6a4ce8;
  --sky: #5ba8e0;
  --sky-container: #d7ecf8;
  --gold: #e8b84a;
  --gold-container: #f8ebc7;
  --green: #7bc67f;
  --green-container: #dcefdd;
  --coral: #e8899a;
  --coral-container: #f8dde2;
  --error: #e05252;
  --on-brand: #ffffff;
  --shadow: 0 18px 50px rgba(44, 44, 48, 0.12);
  --shadow-soft: 0 8px 24px rgba(44, 44, 48, 0.08);
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --header-h: 72px;
  --max: 1120px;
  --font: Inter, "SF Pro Text", "SF Pro Display", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

.visually-hidden {
  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;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--brand);
  color: var(--on-brand);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(138, 138, 146, 0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.header-cta {
  text-decoration: none;
}

/* Buttons + form */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--brand-hover);
  box-shadow: 0 8px 20px rgba(123, 92, 246, 0.28);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.brand:focus-visible,
input:focus-visible,
.legal-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.btn-compact {
  min-height: 44px;
  padding: 0 18px;
}

.waitlist {
  display: grid;
  gap: 10px;
}

.waitlist-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--background);
  border: 1px solid rgba(138, 138, 146, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.waitlist-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 16px;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink);
}

.waitlist-row input::placeholder {
  color: var(--ink-muted);
}

.waitlist-row input[aria-invalid="true"] {
  color: var(--error);
}

.waitlist-hint,
.waitlist-status {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.waitlist-status[data-tone="error"] {
  color: var(--error);
}

.waitlist-status[data-tone="success"] {
  color: var(--brand);
}

.waitlist-status[data-tone="pending"] {
  color: var(--ink-secondary);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
  cursor: pointer;
}

.waitlist-consent input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.waitlist-consent-center {
  text-align: left;
  max-width: 36rem;
  margin-inline: auto;
}

.waitlist-hint a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.waitlist-hint a:hover {
  text-decoration: underline;
}

.waitlist-resend {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}

.text-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.status-page {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 72px;
}

.status-panel {
  width: min(100%, 36rem);
  text-align: center;
}

.status-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.03em;
}

.status-panel .lede {
  margin: 0 auto 28px;
  max-width: 32rem;
}

.status-panel .waitlist {
  text-align: left;
  margin-bottom: 24px;
}

.status-panel .btn {
  display: inline-flex;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 72px;
  align-items: center;
  padding: 48px 0 72px;
  min-height: calc(100svh - var(--header-h));
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.lede {
  margin: 20px 0 32px;
  max-width: 34rem;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.hero-copy {
  animation: rise 0.8s ease both;
}

.hero-phone-col {
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise 0.9s ease 0.12s both;
}

.hero-phone-col::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--brand-container);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  opacity: 0.9;
}

.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #1c1b22;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 44, 48, 0.18);
}

.phone-float {
  animation: float 6s ease-in-out infinite;
}

.island {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #111016;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  height: 100%;
  background: var(--background);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 4px;
  font-size: 11px;
  font-weight: 600;
}

.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-drink { --icon: url("../assets/icons/local_drink.svg"); }
.icon-diaper { --icon: url("../assets/icons/baby_changing_station.svg"); }
.icon-bath { --icon: url("../assets/icons/bathtub.svg"); }
.icon-child { --icon: url("../assets/icons/child_care.svg"); }
.icon-menu { --icon: url("../assets/icons/menu.svg"); }
.icon-add { --icon: url("../assets/icons/add.svg"); }
.icon-drop { --icon: url("../assets/icons/water_drop.svg"); }
.icon-chart { --icon: url("../assets/icons/bar_chart.svg"); }
.icon-bulb { --icon: url("../assets/icons/lightbulb.svg"); }
.icon-help { --icon: url("../assets/icons/help.svg"); }

.app-header {
  margin: 0 0 8px;
  padding: 10px 16px 12px;
  background: var(--brand-container);
  border-radius: 0 0 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-menu {
  color: var(--ink);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: white;
}

.avatar .icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

.baby-name {
  font-size: 13px;
  font-weight: 700;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 6px;
  padding: 0 10px;
}

.mode-tab {
  height: 40px;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.mode-tab.is-active {
  background: var(--brand-container);
  color: var(--brand);
}

.circles {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 8px 8px;
}

.circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.circle-lg {
  width: 76px;
  height: 76px;
}

.circle-date {
  background: var(--sky-container);
}

.circle strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.circle-lg strong {
  font-size: 11px;
  line-height: 1.15;
  max-width: 64px;
}

.circle span {
  font-size: 9px;
  color: var(--ink-secondary);
}

.timeline {
  flex: 1;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 12px 18px 8px;
  position: relative;
  min-height: 0;
}

.tl-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  position: relative;
}

.tl-row:not(:last-child) {
  padding-bottom: 18px;
}

.tl-row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: rgba(123, 92, 246, 0.25);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
  z-index: 1;
}

.tl-time {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.tl-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-secondary);
}

.empty-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 16px 64px;
  min-height: 0;
  overflow: hidden;
}

.empty-feed img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 0 0 32px 32px;
}

.empty-title {
  margin: 16px 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty-sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.fab {
  position: absolute;
  right: 14px;
  bottom: 58px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(123, 92, 246, 0.35);
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px 10px;
  background: var(--background);
  border-top: 1px solid rgba(138, 138, 146, 0.12);
}

.app-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--ink-muted);
}

.app-nav .is-active {
  color: var(--brand);
}

.app-nav .is-active .nav-pill {
  background: var(--brand-container);
}

.nav-pill .icon {
  width: 16px;
  height: 16px;
}

.nav-pill {
  width: 42px;
  height: 22px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.app-topbar {
  padding: 28px 16px 8px;
  font-size: 17px;
  font-weight: 700;
}

.stat-kicker {
  padding: 0 16px;
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 600;
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
}

.stat-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
}

.stat-card small {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 500;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: 8px 16px 0;
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--brand-container);
  display: block;
}

.bars i.on {
  background: var(--brand);
}

.tip-card {
  margin: 8px 12px;
  border-radius: 16px;
  padding: 14px 14px 16px;
  color: var(--ink);
  min-height: 78px;
}

.tip-card .tip-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tip-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.tip-purple { background: var(--brand); color: white; }
.tip-gold { background: var(--gold); }
.tip-green { background: var(--green); }

.phone-sm {
  width: 220px;
  transform: scale(0.92);
}

/* Benefits */

.benefits {
  padding: 24px 0 80px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(138, 138, 146, 0.12);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-container);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.benefit h2 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* Showcase */

.showcase {
  padding: 24px 0 96px;
}

.section-head {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-secondary);
}

.showcase-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 560px;
}

.stage-phone {
  position: relative;
}

.stage-phone.is-left {
  transform: translate(40px, 36px) rotate(-8deg) scale(0.86);
  z-index: 1;
}

.stage-phone.is-right {
  transform: translate(-40px, 36px) rotate(8deg) scale(0.86);
  z-index: 1;
}

.stage-phone.is-center {
  z-index: 2;
}

/* CTA */

.final-cta {
  padding: 0 0 96px;
}

.cta-panel {
  background: var(--brand-container);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.cta-panel .lede {
  margin: 0 auto 28px;
  max-width: 32rem;
}

.cta-panel .waitlist {
  max-width: 520px;
  margin: 0 auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(138, 138, 146, 0.14);
  padding: 32px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer-meta {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.legal-nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.legal-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
}

/* Legal pages */

.legal {
  padding: 64px 0 96px;
  max-width: 680px;
}

.legal h1 {
  margin: 0 0 16px;
  font-size: 36px;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding: 32px 0 56px;
  }

  .hero-phone-col {
    order: 2;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .showcase-stage {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .stage-phone.is-left,
  .stage-phone.is-right,
  .stage-phone.is-center {
    position: static;
    transform: none;
  }

  .stage-phone.is-left,
  .stage-phone.is-right {
    display: none;
  }

  .cta-panel {
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .waitlist-row {
    flex-direction: column;
    border-radius: 24px;
    padding: 10px;
  }

  .waitlist-row .btn {
    width: 100%;
  }

  .phone {
    width: min(280px, 82vw);
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-phone-col,
  .phone-float,
  [data-reveal] {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
