/* pruneposts.com — "The Editor's Desk", the same paper, ink and teal as the app. */

:root {
  --paper: #F5F1E8;
  --raised: #FBF9F4;
  --card: #FFFFFF;
  --rule: #DDD5C6;
  --rule-soft: #E7E0D3;
  --ink: #1D2530;
  --ink-2: #46505C;
  --ink-3: #5B6470;
  --teal: #145E59;
  --teal-hover: #0F4C48;
  --teal-tint: #E2ECE7;
  --on-teal: #F5F1E8;
  --high: #9A3A22;
  --high-tint: #F4E1D8;
  --med: #6E4709;
  --med-tint: #F3E6CC;
  --dark: #1D2530;
  --on-dark: #F5F1E8;
  --on-dark-2: #C9BFAD;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15191F;
    --raised: #1B2028;
    --card: #20262F;
    --rule: #333B46;
    --rule-soft: #2A313B;
    --ink: #EEE8DC;
    --ink-2: #C3BCAE;
    --ink-3: #A39C8E;
    --teal: #6CC1B6;
    --teal-hover: #8AD3C9;
    --teal-tint: #1F3532;
    --on-teal: #10201E;
    --high: #F0A48C;
    --high-tint: #3A2620;
    --med: #E3BE72;
    --med-tint: #352C1A;
    --dark: #0E1116;
    --on-dark: #EEE8DC;
    --on-dark-2: #A39C8E;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 50; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }

/* --- header & footer ---------------------------------------------------------------- */

.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--serif); font-size: 27px; letter-spacing: -0.01em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.site-foot { border-top: 1px solid var(--rule); margin-top: 96px; padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 20px; border-top: 1px solid var(--rule-soft); font-size: 13px; }
.site-foot h2 { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink-2); }
.site-foot p + p { margin-top: 10px; }

/* --- buttons -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); color: var(--on-teal); }
.btn-quiet { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

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

.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.display { font: 400 clamp(44px, 6.4vw, 76px)/1.02 var(--serif); letter-spacing: -0.015em; }
.h2 { font: 400 clamp(34px, 4.2vw, 48px)/1.08 var(--serif); letter-spacing: -0.01em; }
.h3 { font: 600 19px/1.3 var(--sans); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }

section.band { padding: 88px 0 0; }
.band-head { max-width: 720px; margin-bottom: 40px; }
.band-head .h2 { margin-top: 10px; }
.band-head p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

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

.hero { padding: 72px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero .display { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { flex: none; color: var(--teal); }

/* The sample flagged post, drawn like the app's review card. */
.sample { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 1px 0 var(--rule-soft), 0 24px 48px -28px rgba(29, 37, 48, .28); overflow: hidden; }
.sample-post { padding: 22px 24px 20px; border-bottom: 1px solid var(--rule-soft); }
.sample-meta { display: flex; gap: 8px; font: 13px/1.4 var(--mono); color: var(--ink-3); }
.sample-text { margin-top: 10px; font-size: 18px; line-height: 1.5; }
.sample-note { padding: 18px 24px 22px; background: var(--raised); display: grid; gap: 10px; }
.note-cat { font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.note-text { font-size: 15px; color: var(--ink-2); }
.note-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 13px/1 var(--mono); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--sans); }
.chip-med { background: var(--med-tint); color: var(--med); }
.chip-high { background: var(--high-tint); color: var(--high); }
.sample-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.sample-actions span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; border: 1px solid var(--rule); font-weight: 600; font-size: 15px; }
.sample-actions .on { background: var(--high-tint); border-color: transparent; color: var(--high); }
.sample-caption { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

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

.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.compare thead th { font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--raised); }
.compare tbody th { font-weight: 600; width: 30%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .win { color: var(--teal); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.footnote { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 760px; }

/* --- steps, grids, cards ---------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 24px 28px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font: 600 15px/1 var(--mono); margin-bottom: 18px; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rules-grid section { border-top: 2px solid var(--ink); padding-top: 14px; }
.rules-grid h3 { font: 600 15px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.rules-grid ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 7px; font-size: 16px; color: var(--ink-2); }

.careful { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; list-style: none; padding: 0; }
.careful li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.careful svg { margin-top: 3px; color: var(--teal); }
.careful strong { display: block; font-weight: 600; }
.careful span { color: var(--ink-2); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 24px; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--ink-3); color: var(--ink); }
.card .h3 { margin-top: 10px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.card .more { display: inline-block; margin-top: 16px; color: var(--teal); font-weight: 600; font-size: 15px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
.price-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; }
.price-card .amount { font: 400 52px/1 var(--serif); margin-top: 12px; }
.price-card p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* --- FAQ ------------------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 760px; }
.faq details > div p + p { margin-top: 10px; }

/* --- closing call to action -------------------------------------------------------- */

.closing { margin-top: 96px; background: var(--dark); color: var(--on-dark); border-radius: 28px; padding: 64px 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.closing .h2 { color: var(--on-dark); }
.closing p { margin-top: 14px; color: var(--on-dark-2); font-size: 18px; }
.waitlist { display: grid; gap: 12px; }
.waitlist label { font-weight: 600; font-size: 15px; }
.waitlist .row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type=email] {
  flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid #46505C;
  background: #F5F1E8; color: #1D2530; font: 16px var(--sans);
}
.waitlist .btn-primary { min-height: 52px; background: #6CC1B6; color: #10201E; }
.waitlist .btn-primary:hover { background: #8AD3C9; color: #10201E; }
.closing .btn-quiet { min-height: 52px; color: var(--on-dark); border-color: var(--on-dark-2); }
.closing .btn-quiet:hover { color: var(--on-dark); border-color: var(--on-dark); }
.waitlist small { color: var(--on-dark-2); font-size: 13px; }

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

.crumbs { padding-top: 36px; font-size: 14px; color: var(--ink-3); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--ink-3); }
.article { padding-top: 28px; }
.article .display { font-size: clamp(40px, 5.6vw, 64px); margin-top: 14px; }
.byline { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.answer { margin-top: 32px; background: var(--teal-tint); border-radius: 18px; padding: 24px 26px; }
.answer h2 { font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.answer p { margin-top: 10px; font-size: 18px; line-height: 1.55; }
.prose { margin-top: 48px; }
.prose h2 { font: 400 clamp(30px, 3.4vw, 38px)/1.12 var(--serif); margin-top: 52px; }
.prose h3 { font: 600 19px/1.3 var(--sans); margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose code { font: 15px var(--mono); background: var(--raised); border: 1px solid var(--rule-soft); border-radius: 6px; padding: 1px 6px; }
.prose table { margin-top: 18px; }
.callout { margin-top: 40px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 26px; }
.callout .h3 { margin: 0; }
.callout p { margin-top: 10px; color: var(--ink-2); }
.callout .btn { margin-top: 18px; }
.sources { margin-top: 48px; font-size: 15px; color: var(--ink-3); }
.sources ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 6px; }

/* --- services, photos, plans ------------------------------------------------------------ */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 32px 30px; }
.service h3 { font: 400 clamp(32px, 3.4vw, 42px)/1.05 var(--serif); }
.service p { color: var(--ink-2); }
.service ul { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.service .btn { align-self: flex-start; margin-top: auto; }
.service-dark { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.service-dark p:not(.eyebrow), .service-dark ul { color: var(--on-dark-2); }
.service-dark .eyebrow { color: #6CC1B6; }
.service-dark .btn-primary { background: #6CC1B6; color: #10201E; }
.service-dark .btn-primary:hover { background: #8AD3C9; color: #10201E; }

.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.who-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--rule-soft); }
.who-grid figcaption { margin-top: 12px; font-weight: 600; font-size: 16px; }
.who-grid figcaption span { display: block; margin-top: 2px; font-weight: 400; font-size: 15px; color: var(--ink-2); }

.price-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.measure { max-width: 760px; }
.compare caption { caption-side: top; text-align: left; padding: 0 0 10px; font-size: 14px; color: var(--ink-3); }
.compare td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.compare.plans tbody th { width: 22%; }
.compare.wide-table { min-width: 980px; font-size: 15px; }
.compare.wide-table tbody th { width: auto; }
.compare td.src { font-size: 14px; }
.plans-wrap .table-scroll { margin-top: 18px; }
.tag { display: inline-block; margin-right: 8px; padding: 4px 10px; border-radius: 999px; background: var(--teal-tint); color: var(--teal); font: 600 12px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.article .cta-row { margin-top: 26px; }

/* Blocks reused inside guide prose keep their own spacing. */
.prose .rules-grid, .prose .steps, .prose figure, .prose .faq { margin-top: 20px; }
.prose .rules-grid h3, .prose .steps h3 { margin-top: 0; }
.prose .rules-grid ul { padding-left: 0; }
.prose ol.steps { padding-left: 0; }
.steps-list { grid-template-columns: 1fr; gap: 12px; }
.steps-list li { padding: 20px 22px; display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
.steps-list li::before { margin-bottom: 0; grid-row: 1 / span 2; }
.steps-list li p { margin-top: 4px; }
.prose, .sources, .footnote, .answer { overflow-wrap: break-word; }
.sources a, .compare td.src a { overflow-wrap: anywhere; }
.prose figure .sample { max-width: 560px; }

/* --- small screens --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .wrap, .closing { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .cards, .cards-4 { grid-template-columns: 1fr; }
  .who-grid, .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-head .wrap { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 12px; row-gap: 10px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  section.band { padding-top: 64px; }
  .careful, .pricing, .rules-grid { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .closing { padding: 40px 22px; border-radius: 22px; margin-top: 72px; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare { font-size: 15px; }
  .service { padding: 26px 22px; }
  .brand span { font-size: 24px; }
  .who-grid { gap: 14px; }
  .who-grid figcaption span { font-size: 14px; }
  /* Tables of plans read as one card per row on phones. */
  .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; width: auto; }
  .stack-sm thead { display: none; }
  .stack-sm tr { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  .stack-sm tr:last-child { border-bottom: 0; }
  .compare.stack-sm tbody th, .compare.plans.stack-sm tbody th { width: auto; padding: 0 16px 6px; border: 0; font-size: 17px; }
  .compare.stack-sm td { padding: 3px 16px; border: 0; }
  .stack-sm td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
  .stack-sm caption { display: block; padding: 14px 16px 0; }
}
@media (max-width: 400px) {
  .head-cta { padding: 0 14px; font-size: 14px; min-height: 38px; }
  .steps-list li { grid-template-columns: 1fr; }
  .steps-list li::before { grid-row: auto; margin-bottom: 12px; }
}
