/* ─────────────────────────────────────────────────────────────────
   Morning Edition — landing page
   Pure CSS, no framework. Mobile-first.
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg: #f6f1e7;
  --bg-elev: #fbf7ee;
  --ink: #1a2434;
  --ink-2: #3a4658;
  --muted: #6b7280;
  --line: #d8cfb9;
  --accent: #b85c38;
  --accent-deep: #8c3f1f;
  --shadow: 0 1px 0 rgba(26, 36, 52, 0.04), 0 12px 32px -16px rgba(26, 36, 52, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--bg); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 92, 56, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(26, 36, 52, 0.04), transparent 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Honeypot — off-screen, ignored by humans, filled by dumb bots */
.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.5vw + 0.5rem, 4.6rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.05rem; line-height: 1.3; }

em { font-style: italic; color: var(--ink); }

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 92, 56, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 92, 56, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(184, 92, 56, 0.05); }
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn--small { padding: 9px 16px; font-size: 0.88rem; }

.btn__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav__brand:hover { text-decoration: none; }

.nav__links {
  display: none;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }

@media (min-width: 720px) {
  .nav__links { display: inline-flex; }
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}
.hero__title {
  margin: 16px auto 24px;
  font-weight: 600;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.appstore {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.appstore__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  font-family: var(--sans);
  line-height: 1.1;
  box-shadow: var(--shadow);
}
.appstore__badge small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.appstore__badge strong { display: block; font-size: 1.05rem; font-weight: 600; }

/* ─── Waitlist form ──────────────────────────────────────────────── */
.waitlist {
  display: flex;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(26, 36, 52, 0.08), var(--shadow);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 12px 16px;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist .btn { padding: 12px 18px; font-size: 0.92rem; }
.waitlist--center { margin: 0 auto; }

.waitlist__note {
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.2em;
  margin: 0;
}
.waitlist__note.is-success { color: #2d7a4a; }
.waitlist__note.is-error   { color: #b53a3a; }

/* ─── Section heads ──────────────────────────────────────────────── */
.section-head {
  max-width: 720px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.section-head h2 { line-height: 1.08; }
.section-head p.eyebrow { margin-bottom: 12px; }

/* ─── Features ───────────────────────────────────────────────────── */
.features { padding: clamp(56px, 8vw, 96px) 0; }
.features__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .features__grid         { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .features__grid--four   { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .features__grid--four   { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 92, 56, 0.4);
}
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  margin-bottom: 20px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature p  { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.feature p em { color: var(--ink); font-weight: 500; }

/* ─── Pricing ────────────────────────────────────────────────────── */
.pricing { padding: clamp(56px, 8vw, 96px) 0; }
.section-head__sub {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 56ch;
}

/* Center the toggle — wrap in a centering parent so it works for any display mode */
.pricing__toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 40px;
}
.pricing__toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 0;
  position: relative;
  gap: 2px;
}
.pricing__toggle::before {
  /* sliding pill */
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pricing__toggle.is-annual::before { transform: translateX(100%); }
.pricing__toggle-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  padding: 10px 20px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing__toggle-btn.is-active { color: var(--bg); }
.pricing__save {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.pricing__toggle-btn:not(.is-active) .pricing__save { background: rgba(184, 92, 56, 0.15); color: var(--accent-deep); }

.pricing__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 820px) {
  .pricing__grid { grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
}

.plan {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan--pro {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(26, 36, 52, 0.4);
}
.plan--pro .plan__name { color: var(--bg); }
.plan--pro .plan__pitch { color: rgba(246, 241, 231, 0.7); }
.plan--pro .plan__amount { color: var(--bg); }
.plan--pro .plan__per { color: rgba(246, 241, 231, 0.6); }
.plan--pro .plan__billed { color: rgba(246, 241, 231, 0.55); }
.plan--pro .plan__features li { color: var(--bg); }
.plan--pro .plan__features li strong { color: var(--bg); font-weight: 600; }
.plan--pro .plan__check { color: var(--accent); background: rgba(184, 92, 56, 0.15); }
.plan--pro .plan__check--filled { color: #fff; background: var(--accent); }
.plan--pro .plan__note { color: rgba(246, 241, 231, 0.5); }
.plan--pro .btn--ghost { color: var(--bg); border-color: rgba(246, 241, 231, 0.3); background: transparent; }
.plan--pro .btn--ghost:hover { background: rgba(246, 241, 231, 0.1); border-color: rgba(246, 241, 231, 0.5); }

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(184, 92, 56, 0.4);
}

.plan__head { margin-bottom: 24px; }
.plan__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.plan__pitch {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0 0 18px;
  min-height: 2.8em;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.plan__amount {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan__per {
  font-size: 0.9rem;
  color: var(--muted);
}
.plan__billed {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.plan--pro .plan__features { border-top-color: rgba(246, 241, 231, 0.12); }
.plan__features li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.plan__features li strong { color: var(--ink); font-weight: 600; }
.plan__check {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(26, 36, 52, 0.08);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
.plan__check--filled {
  background: var(--accent);
  color: #fff;
}

.plan__cta { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.plan__note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

.pricing__fineprint {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 32px 0 0;
}
.pricing__fineprint a { color: var(--accent); }

/* ─── How it works ───────────────────────────────────────────────── */
.how { padding: clamp(56px, 8vw, 96px) 0; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: baseline;
}
@media (min-width: 720px) {
  .step { grid-template-columns: 100px 1fr 1.4fr; gap: 28px 40px; }
}
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--accent);
}
.step h3 { font-size: 1.4rem; }
.step p  { color: var(--ink-2); line-height: 1.55; }
.step p em { color: var(--ink); font-weight: 500; }

/* ─── Mockup ─────────────────────────────────────────────────────── */
.mockup { padding: clamp(56px, 8vw, 96px) 0; }
.mockup__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .mockup__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.mockup__device {
  position: relative;
  background: var(--ink);
  border-radius: 38px;
  padding: 14px;
  box-shadow:
    0 30px 60px -20px rgba(26, 36, 52, 0.4),
    0 0 0 1px rgba(26, 36, 52, 0.04);
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 9 / 19;
}
.mockup__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.mockup__screen {
  background: var(--bg);
  border-radius: 28px;
  height: 100%;
  padding: 36px 22px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mockup__masthead { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mockup__date { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.mockup__masthead h3 { font-size: 1.4rem; margin: 4px 0 6px; }
.mockup__lede { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
.mockup__lede em { color: var(--ink); font-weight: 500; }
.mockup__meta { font-size: 0.7rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.01em; }
.mockup__story { padding-top: 6px; }
.mockup__kicker {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}
.mockup__story h4 { font-size: 0.98rem; line-height: 1.25; margin-bottom: 4px; }
.mockup__story p  { font-size: 0.78rem; color: var(--ink-2); line-height: 1.4; }
.mockup__storymeta { font-size: 0.7rem !important; color: var(--muted) !important; margin-top: 4px; font-variant-numeric: tabular-nums; }

.mockup__caption h2 { line-height: 1.1; }
.mockup__caption p  { color: var(--ink-2); margin-top: 16px; max-width: 44ch; }

/* ─── Promise section ────────────────────────────────────────────── */
.promise {
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(180deg, transparent, rgba(184, 92, 56, 0.04));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.promise__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .promise__list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.promise__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.promise__item svg {
  width: 32px;
  height: 32px;
  padding: 5px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
}
.promise__item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.promise__item p  { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta { padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 3vw + 0.5rem, 2.8rem); margin-bottom: 12px; }
.cta p  { color: var(--ink-2); margin-bottom: 28px; }
.cta .waitlist__note { margin-top: 14px; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (min-width: 720px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.footer__links { display: inline-flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

/* ─── Reveal animation ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .eyebrow .dot { animation: none; }
}

/* ─── Print ──────────────────────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .nav, .footer, .cta, .waitlist, .appstore { display: none; }
}
