/* Public marketing pages (home, how it works, pricing, FAQ). Colours come from tokens.css. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.page-hero { background: var(--charcoal); color: var(--on-dark); padding: 72px 0 64px; }
.page-hero .lede { color: var(--on-dark-dim); }
.page-hero h1 { max-width: 16em; }
.section { padding: 80px 0; }
.section-white { background: var(--paper); }
.section-head { max-width: 40em; margin-bottom: 36px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 850; margin: 0 0 14px; }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.narrow { max-width: 780px; }
.more { margin-top: 26px; color: var(--dim); }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.tile p { margin: 0; color: var(--dim); }
.tile-plain { box-shadow: none; background: var(--paper-2); }
.tile-plain p + p { margin-top: 16px; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--charcoal); color: var(--on-dark);
  font-size: .75rem; font-weight: 800; margin-bottom: 16px; }

/* example: notebook -> invoice */
.example { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.example-tag { position: absolute; top: -12px; left: 10px; z-index: 2; background: var(--highlight); color: var(--highlight-ink); font-size: .66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em; padding: 4px 10px; border-radius: var(--pill); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  font-family: var(--font); line-height: 1.4; }
.notebook { width: 100%; max-width: 400px; background: var(--note-paper); color: var(--note-pen); padding: 22px 24px 18px 44px; border-radius: 6px;
  transform: rotate(-1.5deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  background-image: linear-gradient(90deg, transparent 32px, var(--note-margin) 32px, var(--note-margin) 33px, transparent 33px),
    repeating-linear-gradient(transparent 0 29px, var(--note-rule) 29px 30px);
  font-family: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Neue", cursive; font-size: 1.02rem; line-height: 30px; }
.notebook p { margin: 0; }
.example-arrow { color: var(--on-dark-dim); font-size: 1.4rem; line-height: 1; }
.mini-invoice { width: 100%; max-width: 400px; background: #fff; color: #171717; border-radius: 12px; padding: 18px 20px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  font-size: .86rem; font-variant-numeric: tabular-nums; }
.mi-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #171717; padding-bottom: 8px; margin-bottom: 10px; }
.mi-top strong { letter-spacing: .12em; }
.mi-top span, .mi-due, .mi-to { color: #696560; }
.mi-to { margin-bottom: 8px; }
.mi-to strong { color: #171717; }
.mi-line, .mi-total { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #ece8e1; }
.mi-total { border-bottom: 0; font-weight: 800; font-size: 1rem; padding-top: 10px; }
.mi-due { font-size: .78rem; margin-top: 2px; }

/* 4-fact strip */
.strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-grid div { padding: 26px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.strip-grid div:first-child { border-left: 0; padding-left: 0; }
.strip-grid strong { font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 850; }
.strip-grid span { color: var(--dim); font-size: .9rem; }
@media (max-width: 800px) { .strip-grid { grid-template-columns: 1fr 1fr; } .strip-grid div { border-left: 0; padding-left: 0; } }

.steps-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .steps-3 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 16px; } }
.split-copy { font-size: 1.1rem; color: var(--dim); margin: 0; }
.who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.who .tile { box-shadow: none; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .two-up { grid-template-columns: 1fr; } }

/* prices */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .price-grid { grid-template-columns: 1fr; } }
.price { position: relative; display: flex; flex-direction: column; gap: 4px; }
.price-best { border: 2px solid var(--accent); }
.price-name { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.price-amt { font-size: 2.4rem; font-weight: 850; letter-spacing: -0.05em; }
.price-each { color: var(--dim); font-size: .88rem; }
.signup-nudge { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 22px; background: var(--paper);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.section-white .faq details { background: var(--paper-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--dim); }

/* how it works (long) */
.steps-long { display: flex; flex-direction: column; gap: 18px; }
.step-long { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 18px; }
.step-long h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.step-long p + p, .step-long ul + p { margin-top: 14px; }
.ticks { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--dim); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 600px) { .step-long { grid-template-columns: 1fr; } }

/* closing band */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band .actions { justify-content: center; }
.cta-band .lede { margin-left: auto; margin-right: auto; }

/* header page links + footer */
.site-nav .nav-page[aria-current="page"] { color: var(--accent); }
@media (max-width: 760px) { .site-nav .nav-page { display: none; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1.3fr 1fr; gap: 32px; padding-bottom: 24px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-mark { color: var(--on-dark); display: inline-block; margin-bottom: 8px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--on-dark-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--on-dark); }
.footer-head { color: var(--on-dark); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 4px; }
.site-footer .legal { border-top: 1px solid var(--on-dark-line); padding-top: 16px; font-size: .85rem; }

/* ---------- contrast: charcoal containers alternating with light ones (Jay, 2026-09-26) ---------- */
.tile { color: var(--ink); }
.section-dark { background: var(--charcoal); color: var(--on-dark); }
.section-dark .lede, .section-dark .more, .section-dark .split-copy { color: var(--on-dark-dim); }
.section-dark .signup-nudge { color: var(--ink); }
.tile-dark, .who-dark .tile { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.tile-dark p, .who-dark .tile p, .tile-dark .ticks li { color: var(--on-dark-dim); }
.tile-dark .ticks li strong { color: var(--on-dark); }
.tile-dark .num { background: var(--accent); }
.tile-plain { border: 1.5px solid rgba(23, 23, 23, .16); }
.who .tile { border: 1.5px solid rgba(23, 23, 23, .16); }
.who-dark .tile { border-color: var(--charcoal); }

/* ---------- hero animation: the notes write themselves, then the invoice builds (Jay, 2026-09-26) ----------
   One 10s loop. Every animated piece uses the same duration and its own delay, so they stay in step. */
@media (prefers-reduced-motion: no-preference) {
  .notebook p { animation: write 10s ease-out infinite both; }
  .notebook p:nth-child(1) { animation-delay: .2s; }
  .notebook p:nth-child(2) { animation-delay: .9s; }
  .notebook p:nth-child(3) { animation-delay: 1.6s; }
  .notebook p:nth-child(4) { animation-delay: 2.2s; }
  .example-arrow { animation: nudge 10s ease-in-out infinite both; animation-delay: 2.8s; }
  .mini-invoice { animation: lift 10s ease-out infinite both; animation-delay: 3.1s; }
  .mini-invoice > div { animation: rise 10s ease-out infinite both; }
  .mini-invoice > .mi-top { animation-delay: 3.3s; }
  .mini-invoice > .mi-to { animation-delay: 3.6s; }
  .mini-invoice > .mi-line:nth-of-type(3) { animation-delay: 3.9s; }
  .mini-invoice > .mi-line:nth-of-type(4) { animation-delay: 4.2s; }
  .mini-invoice > .mi-total { animation: rise 10s ease-out infinite both, land 10s ease-out infinite both; animation-delay: 4.6s, 4.6s; }
  .mini-invoice > .mi-due { animation-delay: 4.9s; }
}
/* pen writing left to right, holds, fades before the loop restarts */
@keyframes write {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  7%   { clip-path: inset(0 0 0 0); opacity: 1; }
  80%  { clip-path: inset(0 0 0 0); opacity: 1; }
  88%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .4; }
  3% { transform: translateY(6px); opacity: 1; }
  6% { transform: translateY(0); opacity: .4; }
}
@keyframes lift {
  0%   { opacity: 0; transform: translateY(10px); }
  4%   { opacity: 1; transform: translateY(0); }
  62%  { opacity: 1; transform: translateY(0); }
  70%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes rise {
  0%   { opacity: 0; transform: translateY(6px); }
  4%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 1; transform: translateY(0); }
  67%, 100% { opacity: 0; transform: translateY(0); }
}
/* the total lands with a brief highlight */
@keyframes land {
  0%, 3% { background: transparent; }
  6%     { background: var(--accent-soft); }
  14%, 100% { background: transparent; }
}
.mi-total { border-radius: 6px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }

/* ---------- guides (long-form reading) ---------- */
.reviewed { color: var(--on-dark-dim); font-size: .85rem; margin: 18px 0 0; }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.tldr { background: var(--charcoal); color: var(--on-dark) !important; padding: 20px 22px; border-radius: var(--radius-lg); }
.tldr strong { color: var(--on-dark); }
.checklist { counter-reset: item; list-style: none; padding-left: 0 !important; }
.checklist li { counter-increment: item; position: relative; padding: 12px 14px 12px 52px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li::before { content: counter(item); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.callout { background: var(--paper); border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 0 0 16px; color: var(--ink-2); }
.sources a { color: var(--accent); }

/* ---------- who it's for ---------- */
.audience { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.audience-flip > figure { order: -1; }
@media (max-width: 800px) { .audience { grid-template-columns: 1fr; gap: 24px; } .audience-flip > figure { order: 0; } }
.note-card { position: relative; margin: 0; background: var(--note-paper); color: var(--note-pen); padding: 28px 24px 22px 44px; border-radius: 6px; transform: rotate(-1deg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  background-image: linear-gradient(90deg, transparent 32px, var(--note-margin) 32px, var(--note-margin) 33px, transparent 33px),
    repeating-linear-gradient(transparent 0 29px, var(--note-rule) 29px 30px);
  font-family: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Neue", cursive; font-size: 1.05rem; line-height: 30px; }
.note-card p { margin: 0; }
.section-dark .ticks li { color: var(--on-dark-dim); }
.section-dark .note-card { border-color: transparent; }

/* ---------- comparison pages ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
table.compare { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 620px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
table.compare tbody th { width: 22%; font-weight: 800; }
table.compare .us { background: var(--charcoal); color: var(--on-dark); }
table.compare thead th.us { color: var(--on-dark); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
.free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.free-grid .tile p + p { margin-top: 10px; }
.free-grid .tile-dark { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 12px 24px; align-items: start; }
.free-grid .tile-dark p + p { margin-top: 0; }
@media (max-width: 800px) { .free-grid .tile-dark { grid-template-columns: 1fr; } }

.site-footer .legal a { color: var(--on-dark-dim); }
.site-footer .legal a:hover { color: var(--on-dark); }
.legal-draft { background: var(--amber-soft); color: var(--amber); font-weight: 800; padding: 12px 16px; border-radius: var(--radius); border-left: 3px solid var(--amber); margin: 0 0 24px; }

/* ---------- free with your account (2026-10-06) ---------- */
.free-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 0 36px; }
.free-cmp > div { border-radius: var(--radius-lg); padding: 22px 20px; text-align: center; }
.free-cmp .k { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.free-cmp .p { font-size: 2.6rem; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.free-cmp .s { font-size: .86rem; margin-top: 2px; }
.free-cmp .them { background: var(--paper-2); color: var(--dim); border: 1.5px solid rgba(23, 23, 23, .16); }
.free-cmp .them .p { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 4px; }
.free-cmp .us { background: var(--charcoal); color: var(--on-dark); }
.free-cmp .us .k, .free-cmp .us .p { color: var(--accent-on-dark, var(--accent)); }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .free-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .free-list { grid-template-columns: 1fr; } }
.free-list .tile { box-shadow: none; border: 1.5px solid rgba(23, 23, 23, .16); padding: 18px 20px; }
.free-list h3 { margin: 0 0 4px; font-size: 1.02rem; }
@media (max-width: 600px) { .free-cmp { gap: 10px; } .free-cmp > div { padding: 16px 10px; } .free-cmp .p { font-size: 1.8rem; } }
