/* Pebblemorph's site. Plain on purpose: what it does, what it costs, why it
   is safe. One thing shows instead of telling: the Downloads folder after
   Pebblemorph has been through it, file by file, with the weights.
   Nothing is loaded from elsewhere: system fonts, no scripts, no cookies. */

:root {
  --paper:   #eceff4;
  --surface: #ffffff;
  --rail:    #1d222b;
  --ink:     #10131a;
  --soft:    #565f6e;
  --line:    #d5dbe5;
  --green:   #2f6f5b;
  --amber:   #9a5c1c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #14171d;
    --surface: #1b1f27;
    --rail:    #0e1116;
    --ink:     #e7ebf2;
    --soft:    #a3acbb;
    --line:    #2c333e;
    --green:   #6bbfa1;
    --amber:   #d8a35f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand svg { flex: none; }
.top nav { display: flex; gap: 18px; font-size: 0.95rem; color: var(--soft); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* --------------------------------------------------------------- hero */
.hero { display: grid; gap: 44px; align-items: center;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); padding-top: 36px; padding-bottom: 64px; }
.hero h1 { font-size: 2.3rem; font-size: clamp(2.1rem, 4.4vw, 3.15rem); font-weight: 750; letter-spacing: -0.028em; margin: 0 0 18px; }
.lead { font-size: 1.13rem; color: var(--soft); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.btn { display: inline-block; padding: 13px 20px; border-radius: 8px; font-weight: 600; text-decoration: none;
       border: 2px solid var(--ink); }
.btn.main { background: var(--ink); color: var(--paper); }
.btn.main:hover { background: var(--green); border-color: var(--green); }
.btn.plain:hover { background: var(--surface); }
@media (prefers-color-scheme: dark) { .btn.main:hover { color: #0e1116; } }
.promise { color: var(--soft); font-size: 0.95rem; margin: 0; }

/* The Downloads folder after Pebblemorph: what arrived, what it became. */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
          font-size: 0.9rem; box-shadow: 0 16px 36px -26px rgba(16, 19, 26, 0.55); }
.ledger .bar { background: var(--rail); color: #e7ebf2; padding: 10px 16px; display: flex;
               justify-content: space-between; gap: 12px; font-size: 0.84rem; }
.ledger .bar span + span { color: #a3acbb; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-weight: 500; color: var(--soft); padding: 9px 16px 5px; font-size: 0.8rem; }
.ledger td { padding: 9px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger .name { overflow-wrap: break-word; }
.ledger .was { color: var(--soft); }
.ledger .less { color: var(--green); font-weight: 600; }
.ledger .kept { color: var(--amber); }
.ledger .why { display: block; color: var(--soft); font-size: 0.8rem; }
@media (prefers-reduced-motion: no-preference) {
  .ledger tbody .after { animation: arrive 0.45s ease-out both; }
  .ledger tbody tr:nth-child(2) .after { animation-delay: 0.2s; }
  .ledger tbody tr:nth-child(3) .after { animation-delay: 0.4s; }
  .ledger tbody tr:nth-child(4) .after { animation-delay: 0.6s; }
  .ledger tbody tr:nth-child(5) .after { animation-delay: 0.8s; }
}
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------- sections */
.block { padding: 60px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 1.75rem; margin: 0 0 10px; }
.block .intro { color: var(--soft); max-width: 62ch; margin-bottom: 28px; }

/* Prices: the two numbers are the biggest type after the headline. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.plan h3 { font-size: 1.1rem; margin: 0 0 12px; }
.price { margin: 0 0 6px; }
.price strong { white-space: nowrap; font-size: 3rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--soft); margin-left: 6px; }
.plan .what { color: var(--soft); min-height: 3.1em; margin-bottom: 18px; }
.plan .btn { width: 100%; text-align: center; }
.both { max-width: 760px; margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.both li { padding-left: 26px; position: relative; }
.both li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 6px;
                   border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Safety: six plain statements, two columns where there is room. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 920px; }
.facts div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts h3 { font-size: 1.05rem; margin: 0 0 6px; }
.facts p { color: var(--soft); margin: 0; }

.table { width: 100%; max-width: 920px; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 0.85rem; font-weight: 500; color: var(--soft); }
.table td:first-child { font-weight: 600; }
.table th:first-child { width: 36%; }
.table .soft { color: var(--soft); }
.table td.get { text-align: right; white-space: nowrap; font-weight: 400; }
.table.downloads td { vertical-align: middle; }
.table .get .btn { padding: 8px 16px; }
.table .soon { color: var(--soft); font-weight: 600; }
.soon-note { color: var(--ink); font-weight: 500; }
.note { color: var(--soft); font-size: 0.95rem; max-width: 70ch; margin-top: 18px; }

.faq { max-width: 760px; }
.faq div { border-top: 1px solid var(--line); padding: 16px 0; }
.faq h3 { font-size: 1.05rem; margin: 0 0 6px; }
.faq p { color: var(--soft); margin: 0; max-width: 64ch; }

.person { max-width: 64ch; font-size: 1.08rem; }

/* --------------------------------------------------------------- foot */
footer { border-top: 1px solid var(--line); padding: 30px 0 56px; color: var(--soft); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer p { margin: 0 0 4px; }

/* Legal pages */
.prose { padding-top: 20px; padding-bottom: 60px; }
.prose > * { max-width: 760px; }
.prose h1 { font-size: 2.1rem; margin: 6px 0 6px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.prose .updated { color: var(--soft); margin-bottom: 24px; }
code { font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 12px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav a.hide-small { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan .what { min-height: 0; }
  .ledger .num.before, .ledger th.before { display: none; }
  .ledger td, .ledger th { padding-left: 12px; padding-right: 12px; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table td { display: block; border: 0; padding: 2px 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--soft); font-weight: 400; }
  .table td.get { text-align: left; padding-top: 10px; }
  .block { padding: 48px 0; }
}
