/* ============================================================
   read30daily — Warm Sand (dark)
   All styling lives in this file. No inline styles.
   ============================================================ */

:root {
  /* Warm Sand — dark mode palette */
  --bg:            #14110D;
  --surface:       #211C16;
  --surface-2:     #2A231A;
  --border:        #332B20;
  --border-soft:   #28221A;
  --primary:       #D9A86C;
  --primary-hi:    #E8C896;
  --text:          #EDE7DD;
  --muted:         #A39684;
  --on-primary:    #221603;

  --maxw: 1120px;
  --radius:   14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Faint paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-hi); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-hi); }

.btn-ghost { background: transparent; color: var(--muted); padding: 12px 14px; }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--primary); }

/* Google sign-in button */
.btn-google { white-space: normal; gap: 10px; }
.g-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 5px;
  flex: none;
}
.g-mark svg { width: 16px; height: 16px; display: block; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.01em;
}
.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.brand-accent { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 52px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217,168,108,.16), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(217,168,108,.18);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
}
.title-em {
  display: block;
  color: var(--primary);
  font-style: italic;
}
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 30rem;
  margin: 16px 0 0;
}

/* ===== Signup form ===== */
.signup {
  display: flex;
  gap: 10px;
  margin: 28px 0 0;
  max-width: 30rem;
}
.signup-input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 18px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup-input::placeholder { color: #7c715f; }
.signup-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,168,108,.16);
}
.micro-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ===== Hero document picker ===== */
.doc-picker {
  margin: 22px 0 0;
  max-width: 30rem;
}
.doc-picker-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.doc-toggles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.doc-toggle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.doc-toggle:hover { border-color: var(--primary); }
.doc-toggle:active { transform: translateY(1px); }
.doc-toggle.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.doc-toggle-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
}
.doc-toggle-sub { font-size: 12px; color: var(--muted); }
.doc-picker + .signup { margin-top: 16px; }

/* ===== Hero visual: Kindle ===== */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kindle-stack {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-desc {
  margin: 26px auto 0;
  max-width: 320px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-desc:empty { display: none; }
.kindle {
  width: 300px;
  max-width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  transform: rotate(1.4deg);
}
.kindle-screen {
  background: #ECE6D8;
  color: #2c2419;
  border-radius: 8px;
  padding: 24px 22px 20px;
  min-height: 360px;
}
@keyframes bookSwap { from { opacity: .35; } to { opacity: 1; } }
.kindle-screen.is-swapping { animation: bookSwap .3s var(--ease); }
.screen-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a6a3a;
}
.screen-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.18;
  margin: 12px 0 6px;
  color: #241d12;
}
.screen-by {
  font-size: 12px;
  color: #7a6f5c;
  margin: 0 0 18px;
}
.screen-body { display: flex; flex-direction: column; gap: 9px; }
.screen-body .line {
  height: 7px;
  border-radius: 3px;
  background: #cbbfa6;
}
.screen-body .line.short { width: 62%; }
.screen-progress {
  margin-top: 22px;
  height: 5px;
  border-radius: 3px;
  background: #d4c8af;
  overflow: hidden;
}
.screen-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: #b98a4a;
}
.mail-card {
  position: absolute;
  left: -8px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.8);
}
.mail-icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(217,168,108,.16);
  color: var(--primary);
}
.mail-icon svg { width: 18px; height: 18px; }
.mail-text { display: flex; flex-direction: column; }
.mail-title { font-size: 13px; font-weight: 600; color: var(--text); }
.mail-sub { font-size: 12px; color: var(--muted); }

/* ===== Owl > phone creed ===== */
.creed {
  text-align: center;
  font-size: 26px;
  letter-spacing: .22em;
  color: var(--muted);
  margin: 100px 0 0;
}

/* ===== Problem / old way ===== */
/* ===== Sourcing note (between hero and problem) ===== */
.sourcing {
  text-align: center;
  padding: 0 0 6px;
}
.sourcing-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.sourcing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(217,168,108,.5);
  animation: sourcingPulse 2.2s var(--ease) infinite;
}
@keyframes sourcingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,168,108,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(217,168,108,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,168,108,0); }
}
@media (prefers-reduced-motion: reduce) {
  .sourcing-dot { animation: none; }
}

.problem { padding: 30px 0 70px; }
.problem-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.problem-list {
  list-style: none;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.7;
  text-align: left;
  display: inline-block;
}
.problem-list li { color: var(--muted); }
.problem-list .op { color: var(--primary); font-weight: 600; margin-right: 6px; }
.problem-total {
  color: var(--text) !important;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
  font-weight: 600;
}
.problem-turn {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  margin: 34px 0 14px;
}
.problem-code {
  display: inline-block;
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 15px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
}
.code-num { color: var(--primary-hi); }
.code-str { color: #9fb08a; }

/* ===== Section scaffolding ===== */
.section { padding: 80px 0; }
.eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}
.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 36rem;
  margin: 16px auto 0;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 18px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 8px;
}
.step-text { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(217,168,108,.14);
  color: var(--primary);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 7px;
}
.feature-text { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== Library: kinds of documents ===== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.library-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .25s var(--ease);
}
.library-col:hover { border-color: var(--primary); }
.library-col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.library-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.library-item-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}
.library-item-by { font-size: 13px; color: var(--muted); }

/* ===== Founder ===== */
.founder-inner { display: flex; justify-content: center; }
.founder-card {
  max-width: 760px;
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 44px 40px;
}
.founder-photo {
  flex: none;
  width: 220px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.founder-text-col { flex: 1; min-width: 0; }
.founder-hi {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 16px;
}
.founder-text { color: var(--muted); margin: 0 0 16px; font-size: 17px; }
.founder-sign {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  margin: 22px 0 0;
}

/* ===== Pricing ===== */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 22px;
  justify-content: center;
  margin-top: 52px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--primary);
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.plan-badge {
  position: absolute;
  top: -12px; left: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
}
.plan-price { margin: 0 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -.02em;
}
.plan-period { color: var(--muted); font-size: 15px; }
.plan-tag { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ===== Testimonials ===== */
.quote-grid {
  columns: 2;
  column-gap: 22px;
  margin-top: 52px;
}
.quote {
  break-inside: avoid;
  margin: 0 0 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
}
.quote blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.q-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8a5f2e);
}

/* ===== FAQ ===== */
.faq-inner { max-width: 760px; }
.faq-list { margin-top: 40px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 24px;
  font-weight: 400;
  transition: transform .25s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { margin: 0; color: var(--muted); font-size: 16px; }

/* ===== Final CTA ===== */
.cta { padding: 96px 0; }
.cta-inner {
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 600px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217,168,108,.18), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  position: relative;
}
.cta-sub { color: var(--muted); font-size: 18px; margin: 14px 0 0; position: relative; }
.signup-center { margin-left: auto; margin-right: auto; position: relative; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-tag {
  font-family: var(--font-display);
  color: var(--text);
  margin: 16px 0 6px;
}
.footer-copy { color: var(--muted); font-size: 14px; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 4px;
}
.footer-col a { color: var(--muted); font-size: 15px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--primary); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.steps .step:nth-child(2),
.feature-grid .feature-card:nth-child(2),
.plans .plan:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3),
.feature-grid .feature-card:nth-child(3),
.plans .plan:nth-child(3) { transition-delay: .16s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: .04s; }
.feature-grid .feature-card:nth-child(5) { transition-delay: .12s; }
.feature-grid .feature-card:nth-child(6) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps, .feature-grid, .plans, .library-grid { grid-template-columns: 1fr; }
  .quote-grid { columns: 1; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .site-header.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .hero { padding: 56px 0 60px; }
  .signup { flex-direction: column; }
  .signup-input, .signup .btn { width: 100%; }
  .section { padding: 60px 0; }
  .founder-card { padding: 32px 24px; flex-direction: column; align-items: center; text-align: center; }
}

/* ===== Sign-in page ===== */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}
.auth .brand { justify-content: center; margin-bottom: 26px; }
.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.auth-sub { color: var(--muted); margin: 0 0 24px; }
.auth-doc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 24px;
}
.auth-doc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--text);
}
.auth-fine { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.auth-back { margin: 18px 0 0; font-size: 14px; }
.auth-back a { color: var(--muted); transition: color .2s var(--ease); }
.auth-back a:hover { color: var(--primary); }

/* ===== Account / profile page ===== */
.account {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 2;
}
.account-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 6px;
}
.pause-form { margin-left: auto; }
.account-link { color: var(--primary); text-decoration: underline; }
.account-link:hover { text-decoration: none; }
.upgrade-cta { margin-left: auto; }
.upgrade-cta-icon { display: inline-flex; }
.upgrade-cta-icon svg { width: 16px; height: 16px; display: block; }

/* ===== Waitlist modal ===== */
.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin: 0 0 10px;
}
.modal-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.waitlist-form { display: flex; flex-direction: column; gap: 12px; }
.waitlist-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
}
.waitlist-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,168,108,.16);
}
.waitlist-msg { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.waitlist-msg.is-ok { color: var(--primary); }
.waitlist-msg.is-error { color: #e0897c; }
.account-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -.02em;
  margin: 0;
}
.account-sub { color: var(--muted); margin: 0 0 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 4px;
}
.card-note { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.notice {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  border: 1px solid var(--primary);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,168,108,.16);
}
.field-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.field-static {
  margin: 0;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}
.field-static #tzName { color: var(--text); font-weight: 600; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.plan-status { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan-status .card-note { margin: 0; }
.badge-pro {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}
.badge-free {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; gap: 0; }
}

/* ===== Kindle setup onboarding (profile) ===== */
.onboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.onboard-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.onboard-body { flex: 1; min-width: 0; }
.onboard-img {
  flex: none;
  width: 220px;
  max-width: 42%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.onboard-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}
.onboard-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
}
.onboard-text { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.onboard-text strong { color: var(--text); font-weight: 600; }
.onboard-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s var(--ease);
}
.onboard-text a:hover { color: var(--primary-hi); }
.onboard-text code {
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  font-size: 12.5px;
  color: var(--primary-hi);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .onboard-step { flex-direction: column; align-items: stretch; }
  .onboard-img { width: 100%; max-width: 100%; }
}

/* ===== Free read: dark card with book poking out the top ===== */
.free-wrap {
  position: relative;
  margin: 54px 0 54px;
}
.free-book {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 140px;
  height: 210px;          /* ~2:3 book proportion */
  transform: translateY(-50%) rotate(6deg);
  transform-origin: center;
  background: #ECE6D8;
  color: #2c2419;
  border-radius: 8px;
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .8);
  padding: 16px;
  overflow: hidden;
  z-index: 2;            /* in front of the card */
}
.free-book-tag {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8a6a3a;
  margin-bottom: 7px;
}
.free-book-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.22;
  color: #241d12;
  margin: 0 0 5px;
}
.free-book-by { font-size: 10px; line-height: 1.3; color: #7a6f5c; margin: 0 0 12px; }
.free-book-lines { display: flex; flex-direction: column; gap: 7px; }
.free-book-lines span { height: 5px; border-radius: 3px; background: #cbbfa6; }
.free-book-lines span.short { width: 58%; }
.free-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 92px;
}
.free-card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin: 0;
}
.free-card-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 56%; }

/* keep the send button above the overflowing book */
.free-card-actions { margin-top: 16px; position: relative; z-index: 3; }
/* ─────────────────────────────────────────────────────────────────────────
   Added: admin pool table (admin.php) + profile spotlight empty state
   ───────────────────────────────────────────────────────────────────────── */

/* admin.php — the pool listing table and its row actions */
.pool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pool-table th,
.pool-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.pool-table th {
  color: var(--muted);
  font-weight: 500;
}
.pool-table td {
  color: var(--text);
}
.pool-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.inline-form {
  display: inline;
  margin: 0;
}

/* profile.php — greyed placeholder when no read has been sent yet */
.free-wrap--empty {
  opacity: .6;
}
.free-wrap--empty .free-book {
  filter: grayscale(1);
}

/* profile.php — Pro "recently sent" strip: quiet, text-only, no book graphic */
.recent { margin: -20px 0 36px; padding: 0 4px; }
.recent-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.recent-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.recent-entry:last-child { border-bottom: 0; }
.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.recent-actions { margin-top: 10px; }
.recent-actions .btn { font-size: 13px; padding: 8px 12px; }
.recent-title { color: var(--text); font-size: 14px; }
.recent-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; flex: none; }

/* profile.php — small date + series continuation buttons on the spotlight card */
.free-card-date {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.free-card-actions--series {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* spotlight card only: the floating .free-book overlaps the right side, so a
   wrapping row pushes the 3rd toggle under the book. Stack them in a column,
   left-aligned, to stay clear of it. (Recent strip keeps the row — no book.) */
.free-card-actions.free-card-actions--series {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
}
.free-card-actions--series .inline-form { margin: 0; }

/* toggle buttons: off = outlined, on = filled gold */
.btn-toggle {
  font-size: 14px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-toggle:hover { border-color: var(--primary); color: var(--primary-hi); }
.btn-toggle.is-on {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.btn-toggle.is-on:hover {
  background: var(--primary-hi);
  border-color: var(--primary-hi);
  color: var(--on-primary);
}

/* reserve a constant single line for the toggle status so on/off doesn't shift layout */
.free-card-status {
  min-height: 1.25em;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* profile.php — collapsible "Set up Kindle delivery" (Pro: collapsed at bottom) */
.setup summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.setup summary::-webkit-details-marker { display: none; }
.setup summary::after {
  content: "+";
  color: var(--primary);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s var(--ease);
}
.setup[open] summary::after { transform: rotate(45deg); }
.setup .setup-body { margin-top: 20px; }


/* profile.php — Chaos mode checkbox row (override .field input width:100%) */
.field-check .check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 6px;
}
.field-check input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}