/* Your Paper Companion — shared stylesheet */
:root {
  --bg: rgb(255, 237, 204);
  --bg-card: rgb(255, 247, 232);
  --ink: #23302f;
  --ink-soft: #4a5857;
  --teal-dark: #0f5257;
  --teal: #167a80;
  --teal-light: #d4ebe8;
  --line: rgba(15, 82, 87, 0.18);
  --radius: 12px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

h1, h2, h3 {
  color: var(--teal-dark);
  font-family: var(--font-serif);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-dark); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--teal-dark);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center;
}
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-buy {
  background: var(--teal-dark); color: #fff; padding: 0.35rem 0.9rem; border-radius: 999px;
}
.site-nav .nav-buy:hover { background: var(--teal); color: #fff; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--teal-dark); color: #fff;
  padding: 0.9rem 1.8rem; border-radius: 999px; font-size: 1.1rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal); color: #fff; }
.btn-large { font-size: 1.25rem; padding: 1rem 2.2rem; }

/* Hero */
.hero { padding: 3rem 0 2.5rem; }
.hero .container {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
  color: var(--teal); font-weight: 700; margin-bottom: 0.5rem;
}
.hero .subhead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 1.5rem 0 0.75rem; }
.price { font-size: 2rem; font-weight: 800; color: var(--teal-dark); }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); display: block; }
.hero-note { font-size: 0.95rem; color: var(--ink-soft); }
.hero-image img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 82, 87, 0.15);
}
@media (min-width: 880px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero .container { grid-template-columns: 1fr 1.1fr; }
}

/* Sections */
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section-intro { color: var(--ink-soft); max-width: 46em; }
.section-alt { background: var(--bg-card); }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.section-alt .card { background: #fff; }
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--ink-soft); }

.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.list-yes, .list-no { list-style: none; padding: 0; margin: 0; }
.list-yes li, .list-no li { position: relative; padding-left: 1.9rem; margin-bottom: 0.75rem; }
.list-yes li::before, .list-no li::before {
  position: absolute; left: 0; top: 0.05em; font-weight: 800;
  width: 1.35rem; height: 1.35rem; border-radius: 50%; text-align: center; line-height: 1.35rem; font-size: 0.85rem;
}
.list-yes li::before { content: "\2713"; background: var(--teal-light); color: var(--teal-dark); }
.list-no li::before { content: "\2715"; background: #f3d9c9; color: #8a3b1c; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.35rem 1.25rem;
}
.section-alt .steps li { background: #fff; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--teal-dark); color: #fff;
  font-weight: 800; margin-bottom: 0.6rem;
}

/* FAQ */
.faq details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--teal-dark); list-style-position: outside;
}
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq details p { margin: 0; color: var(--ink-soft); }

.policy {
  background: var(--bg-card); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}
.policy p:last-child { margin-bottom: 0; }

.cta-band { text-align: center; padding: 3rem 0; border-top: 1px solid var(--line); }
.cta-band p { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--teal-dark); color: #e8f3f1; padding: 2rem 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer .footer-brand { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }

/* Article */
.article { padding: 2.5rem 0 3rem; }
.article header { margin-bottom: 1.5rem; }
.article .meta { color: var(--ink-soft); font-size: 0.95rem; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.5rem; }
.article ul, .article ol { padding-left: 1.4rem; margin: 0 0 1em; }
.article li { margin-bottom: 0.35rem; }
.article blockquote {
  margin: 1.25rem 0; padding: 0.9rem 1.2rem; background: var(--bg-card);
  border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article pre {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; overflow-x: auto; font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap;
}
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.92em; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-light); color: var(--teal-dark); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.article-cta {
  margin-top: 2.5rem; padding: 1.5rem; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.article-cta h2 { margin-top: 0; }
