/* StepText marketing / landing styles. Loaded after styles.css, so it reuses
   the same design tokens (:root), fonts, and .btn-primary / .learn-span. */

.marketing {
  background: var(--bg);
}

.m-wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 max(18px, env(safe-area-inset-left));
}

/* --- nav ------------------------------------------------------------------- */

.m-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.m-nav .m-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.m-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-nav-links a:not(.btn-primary) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.m-nav-links a:not(.btn-primary):hover {
  color: var(--ink);
}

/* Mobile nav is just brand + the primary CTA; the text links (How it works,
   Pricing, Sign in) appear from 700px up. Returning users are redirected to
   /app, and Sign in also lives in the footer, so nothing is lost on phones. */
.m-nav-links a:not(.btn-primary) {
  display: none;
}

.m-nav .m-nav-cta {
  font-size: 0.95rem;
  padding: 0 14px;
}

a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

a.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

a.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

a.btn-ghost:hover {
  border-color: var(--accent);
}

/* --- hero ------------------------------------------------------------------ */

.hero {
  padding: 44px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.hero-sub {
  margin: 0 0 22px;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}

.demo-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-text {
  margin: 0;
  font-family: var(--font-read);
  font-size: 1.4rem;
  line-height: 1.7;
}

.demo-text .learn-span {
  cursor: default;
}

/* --- sections -------------------------------------------------------------- */

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section-sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1rem;
}

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}

.steps h3,
.features h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.steps p,
.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* features */
.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.feature .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* pricing */
.pricing {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.plan-tagline {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
}

.plan-price span {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-feats {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plan-feats li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.95rem;
}

.plan-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.plan .btn-primary,
.plan .btn-ghost {
  margin-top: auto;
  width: 100%;
}

.price-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* waitlist */
.waitlist {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.waitlist h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.waitlist p {
  margin: 0 0 14px;
  color: var(--muted);
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist input {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 0 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--ink);
}

.waitlist button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}

.waitlist-status {
  margin: 12px 0 0;
  color: var(--accent-strong);
  font-weight: 500;
}

.waitlist-status[hidden] {
  display: none;
}

/* faq */
.faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 18px;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* footer */
.m-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9rem;
}

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

.m-footer a {
  color: var(--muted);
}

/* --- responsive ------------------------------------------------------------ */

/* Small phones: stack the hero CTAs full-width for big, clean tap targets. */
@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta a {
    width: 100%;
  }
}

@media (min-width: 700px) {
  .m-nav-links a:not(.btn-primary) {
    display: inline-flex;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- blog / writing -------------------------------------------------------- */

.post-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.post {
  padding: 32px 0 8px;
}

.post-back {
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.post-back a {
  color: var(--muted);
  text-decoration: none;
}

.post-back a:hover {
  color: var(--ink);
}

.post-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.post-dek {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.5;
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-body {
  font-family: var(--font-read);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
}

.post-body p {
  margin: 0 0 1.1em;
}

.post-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.8em 0 0.6em;
}

.post-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: var(--accent);
}

.post-body strong {
  font-weight: 700;
}

.post-sources {
  margin: 0.6em 0 0;
  padding-left: 1.4em;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.post-sources li {
  margin: 0 0 0.5em;
}

.post-sources a {
  color: var(--accent-strong);
}

.post-cta {
  margin: 44px 0 8px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.post-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.post-cta p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* index */
.blog-index {
  border-top: 0;
}

.blog-index-head {
  max-width: 720px;
  margin: 0 auto;
}

.blog-index-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.post-list {
  list-style: none;
  margin: 28px auto 0;
  max-width: 720px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.post-list a {
  display: block;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.post-list a:hover {
  border-color: var(--accent);
}

.post-list h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.post-list-dek {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

/* language selector + topbar */
.post-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.post-topbar-end {
  justify-content: flex-end;
}

.post-topbar .post-back {
  margin: 0;
}

.lang-select {
  margin: 0;
  flex-shrink: 0;
}

.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 30px 7px 13px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 10px;
}

.lang-select select:hover {
  border-color: var(--accent);
}
