:root {
  --bg: #efede9;
  --bg-soft: #f3f1ee;
  --card: #faf8f3;
  --ink: #21201d;
  --ink-muted: #756f65;
  --line: #d8cebf;
  --primary: #e6ad33;
  --primary-deep: #8e5a16;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Spline Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.4;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #efede9 0%, #ece8e2 100%);
  z-index: -2;
}

.seed-field {
  position: relative;
  height: 266px;
  margin-top: 0.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  pointer-events: none;
  z-index: 0;
}

.seed-field::before {
  content: '';
  position: absolute;
  inset: 8% 4% 14%;
  background-image: radial-gradient(
    rgba(232, 171, 48, 0.22) 0.7px,
    transparent 0.7px
  );
  background-size: 44px 44px;
  opacity: 0.12;
}

.seed-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.66;
  filter: drop-shadow(0 9px 20px rgba(117, 102, 75, 0.14));
}

.seed-item {
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.seed-item span {
  font-size: 0.79rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #9e9a92;
}

.seed-item-new {
  width: 112px;
  transform: translateY(0);
}

.seed-item-new .seed-art {
  transform: rotate(-10deg);
}

.seed-item-interval {
  width: 112px;
  transform: translateY(16px);
}

.seed-item-interval .seed-art {
  transform: rotate(100deg);
}

.seed-item-recall {
  width: 128px;
  transform: translateY(32px);
}

.seed-item-recall .seed-art {
  transform: rotate(-10deg);
}

.seed-item-mastery {
  width: 144px;
  transform: translateY(48px);
}

.seed-item-mastery .seed-art {
  transform: rotate(100deg);
}

.seed-speck {
  position: absolute;
  border-radius: 999px;
  display: block;
  opacity: 0.55;
}

.seed-speck-a {
  width: 12px;
  height: 12px;
  left: 21%;
  top: 5%;
  background: #d4b0a2;
}

.seed-speck-b {
  width: 11px;
  height: 11px;
  left: 63.5%;
  top: 49%;
  background: #e1c178;
}

.seed-speck-c {
  width: 22px;
  height: 22px;
  right: 16%;
  top: 79%;
  background: #c9cec6;
  filter: blur(0.4px);
}

.section-wrap,
.topbar {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  position: relative;
}

.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  border-top: 1px solid rgba(165, 158, 148, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #e4ac52);
  color: #2c2418;
  box-shadow: 0 10px 26px rgba(173, 115, 32, 0.2);
}

.button-primary:hover {
  filter: brightness(0.97);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  padding: 6rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  color: var(--primary-deep);
  background: rgba(212, 147, 47, 0.12);
  border: 1px solid rgba(142, 90, 22, 0.2);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6.2vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.hero-copy {
  width: min(680px, 100%);
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.wave-section,
.philosophy,
.pricing {
  margin-top: 4.5rem;
}

.wave-header h2,
.pricing-header h2,
.philosophy h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.wave-header p,
.pricing-header p {
  color: var(--ink-muted);
  max-width: 760px;
}

.wave-card {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 3rem;
  background: var(--bg-soft);
  padding: 1.35rem 2rem 2.3rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 30px rgba(97, 86, 66, 0.12);
}

.wave-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wave-graphic {
  display: block;
  width: min(900px, 100%);
  height: auto;
  margin: 1.45rem auto 0;
}

.wave-line {
  animation: waveDrift 3.6s ease-in-out infinite;
  transform-origin: center;
}

.wave-dot-shell {
  fill: #ebebe9;
}

.days-grid {
  margin: 0.45rem auto 0;
  display: grid;
  width: min(850px, 100%);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.days-grid span {
  text-align: center;
  font-size: clamp(0.9rem, 1.6vw, 2rem);
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a19f9a;
}

.wave-dots .dot-mon,
.wave-dots .dot-tue,
.wave-dots .dot-thu,
.wave-dots .dot-fri {
  fill: #e4aa2f;
}

.wave-dots .dot-wed,
.wave-dots .dot-sat {
  fill: #e7d7b9;
}

.wave-dots .dot-sun {
  fill: #c9805a;
}

.wave-dot {
  animation: dotFloat 3.2s ease-in-out infinite;
}

.wave-dots .dot-mon {
  animation-delay: 0s;
}

.wave-dots .dot-tue {
  animation-delay: 0.2s;
}

.wave-dots .dot-wed {
  animation-delay: 0.4s;
}

.wave-dots .dot-thu {
  animation-delay: 0.6s;
}

.wave-dots .dot-fri {
  animation-delay: 0.8s;
}

.wave-dots .dot-sat {
  animation-delay: 1s;
}

.wave-dots .dot-sun {
  animation-delay: 1.2s;
}

.wave-divider {
  width: min(850px, 100%);
  border-top: 2px solid var(--line);
  margin: 2.3rem auto 0;
}

.wave-quote {
  width: min(850px, 100%);
  margin: 2.15rem auto 0;
  text-align: center;
  color: #87837b;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 3.4rem);
  line-height: 1.22;
}

@keyframes waveDrift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes dotFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-line,
  .wave-dot {
    animation: none;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem;
  box-shadow: 0 10px 22px rgba(102, 90, 65, 0.1);
}

.feature-grid h3 {
  margin: 0;
  font-size: 1.04rem;
}

.feature-grid p {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
}

.pricing-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 14px 28px rgba(103, 90, 63, 0.12);
}

.price-card .button {
  margin-top: auto;
}

.price-card.featured {
  border: 2px solid #c4821d;
  box-shadow: 0 16px 34px rgba(136, 87, 21, 0.2);
}

.plan-badge {
  margin: 0;
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #4f4026;
  color: #f9e8ca;
  padding: 0.26rem 0.52rem;
  border-radius: 999px;
}

.plan-name,
.plan-tag,
.price {
  margin: 0;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.plan-tag {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.price {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 0.2rem;
}

.price-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.site-footer {
  margin-top: 5rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(95, 86, 70, 0.18);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--ink-muted);
}

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

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .wave-card {
    padding: 1.1rem 1.15rem 1.5rem;
    border-radius: 2.15rem;
  }

  .wave-brand {
    font-size: 1.7rem;
  }

  .wave-section,
  .philosophy,
  .pricing {
    margin-top: 3.2rem;
  }

  .seed-field {
    height: 228px;
    margin-top: 0;
    gap: 1.25rem;
  }

  .seed-item {
    width: 92px;
  }

  .seed-item span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .seed-item-new,
  .seed-item-interval,
  .seed-item-recall,
  .seed-item-mastery {
    transform: none;
  }

  .seed-item-recall {
    width: 102px;
  }

  .seed-item-mastery {
    width: 112px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 0.6rem;
    padding-top: 0.9rem;
  }

  .button {
    padding: 0.67rem 0.9rem;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 3.1rem;
    padding-bottom: 2.5rem;
  }

  .days-grid span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .wave-divider {
    margin-top: 1.4rem;
  }

  .wave-quote {
    margin-top: 1.35rem;
  }

  .seed-field {
    height: 220px;
    margin-bottom: 0.35rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-content: start;
    gap: 0.8rem 0.45rem;
  }

  .seed-item {
    width: 94px;
    margin-top: 0;
    transform: none;
  }

  .seed-item-new,
  .seed-item-interval,
  .seed-item-recall,
  .seed-item-mastery {
    margin-top: 0;
  }

  .seed-item span {
    font-size: 0.63rem;
    letter-spacing: 0.11em;
  }

  .seed-item-recall {
    width: 104px;
  }

  .seed-item-mastery {
    width: 112px;
  }

  .seed-speck-a,
  .seed-speck-b {
    display: none;
  }

  .seed-speck-c {
    width: 12px;
    height: 12px;
    right: 5%;
    top: 62%;
  }
}
