/* Paperlane site: "paper and ink". Warm paper ground, ink text, one accent
   from the brand tokens in aso-tokens.css. Hairlines instead of nested cards. */

:root {
  color-scheme: light dark;
  --paper:   #FAF6EF;
  --paper-2: #F3ECE0;
  --card:    #FFFDF8;
  --edge:    #E4DCCD;
  --ink:     #1A1714;
  --ink-2:   #5C554A;
  --ink-3:   #6E665A;
  --ledger:  #3E6B4F;
  --accent:  var(--brand-ink);
  --on-accent: var(--on-brand);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0F0D0A;
    --paper-2: #17140F;
    --card:    #17140F;
    --edge:    #2A251D;
    --ink:     #F2ECE1;
    --ink-2:   #B5AB9A;
    --ink-3:   #8B8272;
    --ledger:  #6FA882;
    --accent:  var(--brand-soft);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

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

header.nav {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--edge);
}
header.nav .brand {
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
header.nav .brand .mark { color: var(--accent); }
header.nav .navlink { font-size: 14px; font-weight: 600; }

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

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.015em; line-height: 1.14; }

h1 { font-size: clamp(31px, 6.4vw, 50px); font-weight: 700; }
h1 .accent { color: var(--accent); }

h2 { font-size: clamp(23px, 3.4vw, 31px); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }

p { max-width: var(--measure); }
p + p { margin-top: 14px; }

.eyebrow {
  display: block;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); margin-top: 18px; }
.meta { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

section { padding: 46px 0; border-top: 1px solid var(--edge); }
section:first-of-type { border-top: 0; }

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

.hero { padding: 44px 0 46px; border-top: 0; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
.hero-shot { justify-self: start; }
.hero-shot img { display: block; border: 1px solid var(--edge); border-radius: 18px; background: var(--card); }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 40px; }
  .hero-shot { justify-self: end; }
}

.cta-row { margin-top: 26px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.cta-row .meta { margin-top: 0; }
.aso-badge:hover { opacity: 0.9; }

.tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; padding: 0; list-style: none; }
.tags li {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--edge); background: var(--card);
  padding: 5px 11px; border-radius: 999px;
}

.rating { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.rating .stars { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }

/* ---------- screenshots ---------- */

.shots { display: grid; gap: 22px; margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
figure.shot { margin: 0; }
figure.shot img {
  display: block; width: 100%; max-width: 210px; height: auto;
  border: 1px solid var(--edge); border-radius: 18px;
  background: var(--card);
}
figure.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; max-width: 30ch; }

/* ---------- ledger rows ---------- */

.ledger { list-style: none; margin-top: 22px; padding: 0; border-top: 1px solid var(--edge); }
.ledger > li { padding: 16px 0; border-bottom: 1px solid var(--edge); }
.ledger .term { font-family: var(--serif); font-size: 18px; font-weight: 700; display: block; }
.ledger .detail { color: var(--ink-2); font-size: 16px; margin-top: 4px; max-width: var(--measure); }

@media (min-width: 760px) {
  .ledger > li { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .ledger .detail { margin-top: 0; }
}

.checklist { list-style: none; padding: 0; margin-top: 20px; max-width: var(--measure); }
.checklist li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--edge); }
.checklist li::before {
  content: "\2713"; position: absolute; left: 4px; top: 9px;
  color: var(--ledger); font-weight: 700;
}
.checklist.no li::before { content: "\2022"; color: var(--ink-3); left: 6px; }

ol.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: var(--measure); }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 18px 46px; border-left: 1px solid var(--edge); margin-left: 14px;
}
ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps li::before {
  content: counter(step);
  position: absolute; left: -14px; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--edge);
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
ol.steps li strong { display: block; font-family: var(--serif); font-size: 17px; }

/* ---------- comparison table ---------- */

.tablewrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--edge); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: var(--card); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--edge); vertical-align: top; }
thead th { font-family: var(--serif); font-size: 15px; background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td.win { color: var(--ledger); font-weight: 600; }

/* ---------- note ---------- */

.note {
  margin-top: 22px; padding: 18px 20px;
  border: 1px solid var(--edge); border-left: 3px solid var(--accent);
  border-radius: 4px; background: var(--card);
  font-size: 16px; color: var(--ink-2); max-width: var(--measure);
}
.note strong { color: var(--ink); }

/* ---------- price ---------- */

.plans { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--edge); border-radius: 14px; padding: 24px; background: var(--card); }
.plan .amount { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; }
.plan .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.plan ul { list-style: none; padding: 0; margin-top: 16px; }
.plan li { padding: 7px 0 7px 24px; position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--ledger); font-weight: 700; }

/* ---------- faq ---------- */

.faq details { border-bottom: 1px solid var(--edge); padding: 16px 0; max-width: var(--measure); }
.faq summary { font-family: var(--serif); font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }

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

.guides { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid var(--edge); }
.guides li { border-bottom: 1px solid var(--edge); padding: 14px 0; }
.guides a { font-family: var(--serif); font-size: 18px; font-weight: 700; text-decoration: none; }
.guides a:hover { text-decoration: underline; }
.guides .why { display: block; color: var(--ink-2); font-size: 15px; font-family: var(--sans); font-weight: 400; margin-top: 3px; max-width: var(--measure); }

.backhome { margin-top: 30px; font-size: 15px; }

footer {
  border-top: 1px solid var(--edge);
  padding: 34px 0 56px; margin-top: 10px;
  font-size: 14px; color: var(--ink-3);
}
footer .cols { display: grid; gap: 22px; }
@media (min-width: 700px) { footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
footer .ftitle { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; }
footer li { padding: 3px 0; }
footer a { color: var(--ink-2); }
footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--edge); }
footer .fine p { max-width: none; }

/* ---------- legal pages (privacy, terms) ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 40px 0 56px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
