/* Native Me — landing page styles
   Palette and typography mirror the iOS app: cream paper, ink, jade pen,
   vermilion red-pen accent, Iowan Old Style display serif. */

:root {
  --paper: #f6f1e4;
  --paper-deep: #efe7d3;
  --card: #fffdf7;
  --ink: #181511;
  --ink-soft: #5c554a;
  --ink-faint: #8a8172;
  --line: #e0d8c6;
  --pen: #1f604f;
  --pen-dark: #174a3d;
  --red: #d53a1d;
  --red-dark: #b02e14;
  --dark-paper: #181511;
  --dark-card: #241f19;
  --dark-text: #f2ead9;
  --radius: 20px;
  --radius-lg: 28px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --container: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pen); }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
}

.kicker--pen { color: var(--pen); }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38rem;
}

.muted { color: var(--ink-soft); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--red); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

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

.menu-button {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
}

.menu-button span {
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease;
}

.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1.1rem;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

@media (min-width: 54rem) {
  .nav-links { display: flex; }
  .menu-button { display: none; }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 750;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 26px rgb(213 58 29 / 0.24);
}

.button:hover { background: var(--red-dark); transform: translateY(-2px); }

.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.button--ghost:hover { background: var(--card); border-color: var(--ink-faint); }

.button--small { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.92rem; }

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

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}

.hero h1 em {
  font-style: italic;
  color: var(--pen);
}

.strike-line {
  position: relative;
  white-space: nowrap;
}

.strike-line .old { color: var(--ink-faint); }

.strike-line svg {
  position: absolute;
  left: 1.5%;
  bottom: 0.18em;
  width: 97%;
  height: 0.35em;
  overflow: visible;
  pointer-events: none;
}

.strike-line svg path {
  stroke: var(--red);
  stroke-width: 5.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.struck svg path {
  animation: penstrike 0.55s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}

@keyframes penstrike {
  to { stroke-dashoffset: 0; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.4rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-facts li::before {
  content: "✓";
  color: var(--pen);
  font-weight: 800;
  margin-right: 0.45rem;
}

/* ---------- phone frames ---------- */

.phone {
  width: min(19rem, 78vw);
  margin-inline: auto;
  border-radius: 2.6rem;
  border: 10px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 34px 70px rgb(24 21 17 / 0.28);
  overflow: hidden;
}

.phone img { width: 100%; height: auto; }

.phone--tilt { transform: rotate(2.2deg); }

.phone--small { width: min(15.5rem, 70vw); }

.phone-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

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

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section--deep { background: var(--paper-deep); }

.section--dark {
  background: var(--dark-paper);
  color: var(--dark-text);
}

.section--dark h2, .section--dark h3 { color: var(--dark-text); }
.section--dark .lede, .section--dark .muted { color: color-mix(in srgb, var(--dark-text) 72%, transparent); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- demo (Lesson Zero) ---------- */

.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 24px 60px rgb(24 21 17 / 0.08);
  max-width: 40rem;
}

.demo-prompt {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1.2rem;
}

.demo-options {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.demo-option {
  text-align: left;
  font: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.demo-option:hover { transform: translateY(-1px); border-color: var(--ink-faint); }

.demo-option.active { border-color: var(--pen); background: color-mix(in srgb, var(--pen) 7%, var(--paper)); }

.demo-option .phrase {
  font-family: var(--display);
  font-size: 1.3rem;
  display: block;
}

.demo-option .meta {
  display: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.45rem;
}

.demo-option.active .meta { display: block; }

.demo-tags {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.demo-tags span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--card);
}

.demo-note { color: var(--ink-faint); font-size: 0.9rem; margin: 0; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}

@media (min-width: 54rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.step { text-align: center; }

.step .phone { margin-bottom: 1.4rem; }

.step-label {
  counter-increment: step;
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.step-label::before { content: "0" counter(step) " — "; }

.step p { color: var(--ink-soft); max-width: 22rem; margin-inline: auto; }

/* ---------- split feature rows ---------- */

.feature-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 58rem) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature-grid.flip .feature-copy { order: 2; }
}

.feature-copy .lede { margin-bottom: 1rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
}

.section--dark .checklist { color: color-mix(in srgb, var(--dark-text) 75%, transparent); }

.checklist li::before {
  content: "✓";
  font-weight: 800;
  color: var(--pen);
  margin-right: 0.55rem;
}

.section--dark .checklist li::before { color: #7fbfa6; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  gap: 1.2rem;
  max-width: 62rem;
  margin-inline: auto;
}

@media (min-width: 54rem) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.plan {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.plan--featured {
  border-color: var(--pen);
  box-shadow: 0 22px 56px rgb(31 96 79 / 0.16);
}

.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: 1.4rem;
  background: var(--pen);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.plan h3 { margin-bottom: 0; }

.plan-price {
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
  margin: 0.35rem 0 0.15rem;
}

.plan-price small {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.plan-note { color: var(--ink-soft); font-size: 0.95rem; margin: 0; flex-grow: 1; }

.plan-trial { color: var(--pen); font-weight: 700; font-size: 0.92rem; margin: 0.3rem 0 0; }

.pricing-fineprint {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  max-width: 40rem;
  margin: 2rem auto 0;
}

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; margin-inline: auto; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--pen);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: 0 0 1.1rem; color: var(--ink-soft); padding: 0 0.2rem; }

/* ---------- final CTA ---------- */

.finale { text-align: center; }

.finale .button { margin-top: 1.6rem; }

.store-note { margin-top: 0.9rem; color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark-paper);
  color: color-mix(in srgb, var(--dark-text) 70%, transparent);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a { color: var(--dark-text); text-decoration: none; margin-right: 1.2rem; }
.site-footer a:hover { text-decoration: underline; }

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--dark-text);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .struck svg path { animation: none; stroke-dashoffset: 0; }
  .button, .demo-option { transition: none; }
}
