/* Pocket Scriptorium website. Tokens from the design canvas; layout tightened
   into a centred 1160px column with a compact vertical rhythm. */
:root {
  --paper: #f3ede1; --card: #fbf7ef; --ink: #1f1c17; --ink-soft: #3b362e; --muted: #5e574b;
  --rule: #e3d9c6; --line: #d6ccb8; --band: #eae2d2; --accent: #8c2f25; --accent-hover: #6e231b;
  --night: #16140f; --night-2: #1f1c17; --night-text: #ede4d3; --night-soft: #c9bfa9; --night-dim: #8f8672; --night-accent: #e3a08f;
  --display: 'Cormorant Garamond', Georgia, serif; --reading: 'Literata', Georgia, serif; --ui: 'Instrument Sans', system-ui, sans-serif;
  --max: 1160px; --pad: 32px; --section: 88px; --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
p, h1, h2, h3, ul { margin: 0; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 48px; line-height: 1.02; letter-spacing: -.005em; }
.lede { font-family: var(--reading); font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
.btn { min-height: 48px; padding: 0 22px; border-radius: 24px; background: var(--accent); color: #fbf7ef; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: #fbf7ef; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(243, 237, 225, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav .container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { color: #fbf7ef; min-height: 42px; padding: 0 18px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: 76px; line-height: .96; letter-spacing: -.01em; }
.hero .lede { max-width: 30em; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store { min-height: 54px; padding: 0 20px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; display: inline-flex; flex-direction: column; justify-content: center; }
.store:hover { background: #000; color: var(--paper); }
.store small { font-size: 11px; opacity: .8; } .store strong { font-size: 17px; }
.store[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.note { font-size: 14px; color: var(--muted); }
.facts { display: flex; gap: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.facts strong { display: block; font-family: var(--display); font-size: 28px; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.hero-art { position: relative; }
.hero-art .photo { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(31, 28, 23, .22); aspect-ratio: 5 / 4; }
.hero-art .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .device { position: absolute; left: -44px; bottom: -40px; width: 38%; max-width: 210px; border-radius: 28px; border: 7px solid var(--ink); background: var(--ink); box-shadow: 0 20px 44px rgba(31, 28, 23, .35); overflow: hidden; }
.hero-art .device img { border-radius: 21px; }

/* Steps */
.steps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.steps-head p { max-width: 26em; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 24px 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.step .num { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
/* The card crops the bottom of the screen; the image keeps its own proportions (no stretch to the card height). */
.step .shot { margin-top: auto; padding-top: 14px; height: 264px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.step .shot img { width: 72%; height: auto; border-radius: 22px 22px 0 0; border: 6px solid var(--ink); border-bottom: 0; box-shadow: 0 -4px 24px rgba(31, 28, 23, .12); }

/* Listening */
.listen { background: var(--night); color: var(--night-text); }
.listen .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.listen .lbl { color: var(--night-accent); }
.listen .copy { display: flex; flex-direction: column; gap: 20px; }
.listen .lede { color: var(--night-soft); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; list-style: none; padding: 0; font-size: 15px; }
.points li { border-top: 1px solid #3e382e; padding: 14px 0; display: flex; gap: 10px; }
.points svg { flex: none; color: var(--night-accent); margin-top: 2px; }
.listen-art { position: relative; }
.listen-art .photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.listen-art .photo img { width: 100%; height: 100%; object-fit: cover; }
.listen-art .caption { position: absolute; right: -20px; bottom: 28px; max-width: 290px; background: rgba(22, 20, 15, .92); border: 1px solid #3e382e; border-radius: 16px; padding: 16px 18px; font-family: var(--reading); font-size: 16px; line-height: 1.55; color: #8f8672; }
.listen-art .caption .now { color: var(--night-text); background: #3a2621; border-radius: 4px; padding: 1px 3px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.feature { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.feature svg { color: var(--accent); }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.05; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Pricing */
.pricing { background: var(--band); }
.pricing .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.pricing .intro { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.pricing .intro p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.price-card { background: var(--card); border-radius: var(--radius); padding: 8px 24px; }
.tier { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tier:last-child { border-bottom: 0; }
.tier h3 { font-family: var(--display); font-weight: 600; font-size: 24px; }
.tier .meta { grid-column: 1; font-size: 14px; color: var(--muted); }
.tier .cost { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-weight: 600; font-size: 34px; }
.tier .cost span { font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.plan { border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.plan.dark { background: var(--ink); color: var(--paper); }
.plan.line { border: 1px solid var(--ink); }
.plan h3 { font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.plan h3 span { font-family: var(--display); font-size: 26px; white-space: nowrap; }
.plan p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan.dark p { color: var(--night-soft); }

/* FAQ */
.faq .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* Closing call to action */
.cta { padding: 0 0 var(--section); }
.cta-card { position: relative; border-radius: 28px; overflow: hidden; background: var(--accent); color: #fbf7ef; min-height: 320px; display: flex; align-items: center; }
.cta-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.cta-card .copy { position: relative; padding: 48px 56px; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.cta-card h2 { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1; }
.cta-card p { font-size: 17px; line-height: 1.55; color: #f4dcd3; }
.cta-card .store { background: #fbf7ef; color: var(--ink); align-self: flex-start; }
.cta-card .store:hover { background: #fff; color: var(--ink); }

/* Footer */
.footer { background: var(--night-2); color: var(--night-soft); font-size: 14px; }
.footer .container { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.footer .brand { color: var(--paper); font-size: 22px; }
.footer .legal-id { margin-top: 10px; line-height: 1.6; color: var(--night-dim); }
.footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: flex-end; }
.footer a { color: var(--night-text); min-height: 44px; display: inline-flex; align-items: center; }

/* Documents: terms, privacy, account deletion */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.doc .draft { background: #f4dcd3; color: var(--accent-hover); border-radius: 12px; padding: 14px 18px; font-size: 14px; font-weight: 600; margin-bottom: 28px; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1; margin-bottom: 18px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.doc p { margin: 12px 0; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 600; }
.placeholder { background: #f6e3a8; border-radius: 3px; padding: 0 3px; }
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 420px; }
.form label { font-weight: 600; font-size: 14px; }
.form input { min-height: 48px; padding: 0 14px; border: 1px solid #cfc3ac; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.form button { min-height: 50px; border: 0; border-radius: 25px; background: var(--accent); color: #fbf7ef; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 6px; }
.flash { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; margin-top: 20px; }
.error { color: var(--accent); font-size: 14px; }
.doc .roadmap-list { list-style: none; padding: 0; margin: 12px 0 0; }
.roadmap-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.roadmap-item h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; }
.doc .roadmap-item p { margin: 6px 0 0; font-size: 16px; }
.roadmap-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.badge { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: var(--band); color: var(--ink-soft); white-space: nowrap; }
.badge-in_progress { background: var(--accent); color: #fbf7ef; }
.badge-done { background: var(--ink); color: var(--paper); }
.badge-declined { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.votes { font-weight: 600; font-size: 15px; color: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* Tablet */
@media (max-width: 1080px) {
  .hero h1 { font-size: 60px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .hero-art .device { left: -20px; }
  .listen-art .caption { right: 12px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --pad: 20px; --section: 56px; }
  .nav .container { min-height: 60px; }
  .brand { font-size: 20px; } .brand img { width: 26px; height: 26px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 32px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 48px; }
  .lede { font-size: 17px; }
  .facts { gap: 20px; } .facts strong { font-size: 24px; }
  .hero-art .device { left: 12px; bottom: -28px; width: 34%; border-width: 5px; border-radius: 20px; }
  .h2 { font-size: 36px; }
  .steps-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step .shot { height: 180px; }
  .step .shot img { width: 52%; }
  .listen .container, .pricing .container, .faq .container { grid-template-columns: 1fr; gap: 32px; }
  .points { grid-template-columns: 1fr; }
  .listen-art .caption { position: static; max-width: none; margin-top: 12px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .pricing .intro { position: static; }
  .plans { grid-template-columns: 1fr; }
  .cta-card { min-height: 0; }
  .cta-card img { opacity: .35; object-position: 90% 50%; }
  .cta-card .copy { padding: 36px 24px; }
  .cta-card h2 { font-size: 38px; }
  .footer .container { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .doc h1 { font-size: 40px; }
  .roadmap-item { flex-direction: column; gap: 10px; }
  .roadmap-meta { flex-direction: row; align-items: center; }
}
