/* StoryDraft marketing home. Tokens, Manrope, wordmark, buttons, eyebrow, lede and the
   hero illustration come from styles.css + brand.css; this file adds page layout only. */
:root {
  --ink-muted: #a9abad;
  --ink-accent: #f6bedf;
}

* {
  box-sizing: border-box;
}

body.home {
  margin: 0;
  background: #fff;
  overflow-x: clip;
}

body.home main {
  max-width: none;
  padding: 0;
  margin: 0;
}

.wrap {
  max-width: 1184px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- Header ---- */
.home-nav {
  gap: 26px;
}

.home-nav-link {
  color: var(--ink);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-signin {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.header-signin:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---- Hero ---- */
.hero {
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr);
  gap: 28px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero .lede {
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.button-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.button-light:hover:not(:disabled) {
  background: var(--wash);
  border-color: var(--wash);
}

.text-link {
  color: var(--ink);
  font-weight: 750;
  font-size: 13px;
  text-underline-offset: 5px;
}

/* ---- Sections ---- */
.section {
  padding: 92px 0;
}

.section-wash {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section + .section-wash,
.section-wash + .section-wash {
  border-top: 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

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

.section-intro-center .eyebrow {
  justify-content: center;
}

.section-intro h2,
.home-cta h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0;
}

.section-link {
  margin-top: 30px;
}

/* ---- How it works ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  border: 1px solid var(--accent-border);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.steps p,
.benefit-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

/* ---- What you get ---- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
}

.benefit-grid h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 12px 0 10px;
}

/* ---- Pricing ---- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -12px 0 34px;
}

.billing-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.billing-label.is-active {
  color: var(--ink);
  font-weight: 750;
}

.billing-switch {
  position: relative;
  width: 48px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.billing-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.18s;
}

.billing-switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent-border);
}

.billing-switch[aria-checked="true"]::after {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.plan-card-featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 16px 36px #22232b10;
}

.plan-name {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}

.plan-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 22px;
  min-height: 2.6em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.plan-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-period {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  padding: 7px 0;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-strong);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-button {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  max-width: 680px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pricing-note a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---- Boundaries ---- */
.boundary-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 64px;
}

.boundary-panel .section-intro {
  margin-bottom: 40px;
}

.boundary-panel .eyebrow {
  color: var(--ink-accent);
}

.boundary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 48px;
}

.boundary-list li {
  min-width: 0;
}

.boundary-list h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #fff;
}

.boundary-list p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.boundary-list a {
  color: var(--ink-accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---- Final CTA ---- */
.home-cta {
  background: var(--accent);
  color: var(--ink);
  padding: 100px 0;
}

.home-cta .eyebrow {
  color: var(--ink);
}

.home-cta .eyebrow > span {
  background: var(--ink);
  border-color: var(--ink);
}

.home-cta h2 {
  font-size: clamp(38px, 6vw, 78px);
  letter-spacing: -0.05em;
}

.home-cta .hero-actions {
  margin-top: 40px;
  gap: 26px;
}

.cta-text-link {
  color: var(--ink);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #fff;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}

.site-footer .brand {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
}

.site-footer p {
  color: var(--ink-muted);
  font-size: 13px;
  margin: 8px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 720px;
  border-top: 1px solid #33353a;
  padding-top: 20px;
}

.footer-note a {
  color: var(--ink-accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 12px;
  }

  .draft-illustration {
    transform: scale(0.92);
    transform-origin: center right;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin: 0 auto;
  }

  .boundary-panel {
    padding: 44px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-nav {
    gap: 14px;
  }

  .home-nav-link {
    display: none;
  }

  .header-auth {
    gap: 14px;
  }

  .header-signin {
    font-size: 12px;
  }

  .hero-grid {
    display: block;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-copy {
    max-width: 550px;
  }

  .hero-grid .draft-illustration {
    display: block;
    width: 340px;
    max-width: 100%;
    height: 300px;
    margin: 36px auto 0;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .steps,
  .benefit-grid,
  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li,
  .benefit-grid article {
    padding: 22px;
  }

  .plan-card {
    padding: 24px 20px 22px;
  }

  .boundary-panel {
    padding: 30px 22px;
  }

  .home-cta {
    padding: 70px 0;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .header-signin {
    font-size: 11px;
  }

  .hero-actions .button-large {
    width: 100%;
  }

  .hero-grid .draft-illustration {
    transform: scale(0.82);
    height: 270px;
  }

  .plan-amount {
    font-size: 36px;
  }

  .billing-toggle {
    margin-top: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .billing-switch,
  .billing-switch::after {
    transition: none;
  }
}
