/* TapTales — the app's own Theme.swift, on the web: cream paper, warm ink, one orange. */
/* Nunito (SIL Open Font License), served from this site so a visit reaches no one else.
   Apple devices use SF Rounded instead, like the app. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #FFF7EC;
  --bg-deep: #FFEFD9;
  --card: #FFFFFF;
  --ink: #3B2A20;
  --ink-soft: #8B7566;
  --accent: #FF8A3D;
  --accent-ink: #C2560F;      /* orange dark enough for text links on cream */
  --line: #F1E2CC;
  --shadow: rgba(201, 168, 138, .35);
  --radius: 26px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 247, 236, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 6px var(--shadow); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 800 17px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(59, 42, 32, .12), 0 10px 24px -6px rgba(255, 138, 61, .6);
}
.btn-primary:hover { color: #fff; box-shadow: 0 1px 2px rgba(59, 42, 32, .12), 0 14px 30px -6px rgba(255, 138, 61, .7); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: 0 4px 12px var(--shadow); }
.btn-ghost:hover { color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- Hero ---- */
.hero { background: linear-gradient(var(--bg), var(--bg-deep)); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800;
  box-shadow: 0 3px 10px var(--shadow);
}
.eyebrow b { color: var(--accent); }
h1 {
  font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; font-weight: 900;
  letter-spacing: -.025em; margin: 20px 0 18px;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15px; font-weight: 700; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 7px; }

/* A phone around a real screenshot */
.phone {
  position: relative; width: 100%; max-width: 330px; margin: 0 auto;
  border-radius: 52px; padding: 11px; background: #2B1F18;
  box-shadow: 0 2px 4px rgba(59, 42, 32, .15), 0 30px 60px -20px rgba(120, 80, 50, .45);
}
.phone img { border-radius: 42px; width: 100%; aspect-ratio: 660 / 1434; object-fit: cover; background: var(--bg); }
.hero-visual { position: relative; }
.hero-visual .bubble {
  position: absolute; left: -36px; bottom: 16%;
  background: var(--card); border-radius: 20px; padding: 12px 16px; max-width: 220px;
  font-size: 15px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 8px 24px var(--shadow);
}
.hero-visual .bubble span { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 700; margin-bottom: 2px; }

/* ---- Sections ---- */
section { padding: 88px 0; }
.kicker { color: var(--accent); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; font-weight: 900; letter-spacing: -.025em; margin: 0 0 16px; }
.section-lede { color: var(--ink-soft); font-size: 19px; max-width: 36em; margin: 0 0 44px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 5px 12px var(--shadow); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 20px; color: #fff; margin-bottom: 16px;
}
.step:nth-child(1) .num { background: #F4B740; }
.step:nth-child(2) .num { background: #6BA8E5; }
.step:nth-child(3) .num { background: #EE6F8E; }
.step h3, .feature h3 { font-size: 21px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.25; }
.step p, .feature p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Split rows: text beside a phone */
.band { background: linear-gradient(var(--bg-deep), var(--bg)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip .split-text { order: 2; }
.split .phone { max-width: 300px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; font-size: 17px; color: var(--ink-soft); }
.points li b { color: var(--ink); }
.points .dot { flex: none; width: 26px; height: 26px; border-radius: 9px; background: #FFE3CC; color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 14px; margin-top: 1px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature .emoji { font-size: 34px; line-height: 1; margin-bottom: 14px; }

/* Classics shelf */
.classics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.classics li { background: var(--card); border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 15px; box-shadow: 0 3px 8px var(--shadow); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; font-weight: 900; margin: 0; }
.plan .price { font-size: 44px; font-weight: 900; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 17px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.plan .note { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 16.5px; line-height: 1.45; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 900; flex: none; }
.plan.pro { outline: 3px solid var(--accent); position: relative; }
.plan .tag { position: absolute; top: -13px; right: 24px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.fineprint { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 24px auto 0; max-width: 40em; }

/* Dark CTA band */
.cta-band { background: var(--ink); color: #FFF7EC; text-align: center; padding: 88px 0; }
.cta-band h2 { color: #FFF7EC; }
.cta-band p { color: #D8C6B6; font-size: 19px; margin: 0 auto 30px; max-width: 30em; }
.cta-band img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* Footer */
footer { padding: 40px 0 56px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
footer a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); }

/* ---- Document pages (privacy, terms, support) ---- */
.doc { background: linear-gradient(var(--bg), var(--bg-deep) 420px, var(--bg) 900px); padding: 48px 0 72px; }
.doc .card { max-width: 760px; margin: 0 auto; padding: 44px 48px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.doc .meta { color: var(--ink-soft); font-size: 15px; font-weight: 700; margin: 0 0 28px; }
.doc h2 { font-size: 23px; letter-spacing: -.01em; margin: 38px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin: .7em 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .5em 0; }
.doc li::marker { color: var(--accent); }
.doc .summary { background: var(--bg); border-radius: 18px; padding: 18px 22px; margin: 0 0 8px; }
.doc .summary p { margin: 0; }
.faq h2 { font-size: 20px; margin-top: 30px; }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-visual { margin-top: 12px; }
  .hero-visual .bubble { left: 0; }
  .split.flip .split-text { order: 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .split + .split { margin-top: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav-links a.hide-sm { display: none; }
  .nav .wrap { gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 15px; }
  section, .cta-band { padding: 64px 0; }
  .lede { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .doc { padding: 24px 0 48px; }
  .doc .card { padding: 28px 20px; border-radius: 22px; }
  .card { padding: 24px; }
  footer nav { margin-left: 0; }
}
