/*
Theme Name: Packworthy
Theme URI: https://packworthy.app/blog/
Author: Packworthy
Author URI: https://packworthy.app
Description: Classic theme for the Packworthy blog. Reuses the static marketing site's design system (static/css/site.css is the source this file was seeded from) so /blog/ matches the rest of packworthy.app.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: packworthy
*/

:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-deep: #e7dfcf;
  --card: #fffdf8;
  --ink: #1c1915;
  --ink-soft: #3a342c;
  --line: #d8cfbf;
  --pine: #1f4a3e;
  --pine-deep: #14352c;
  --tag: #f3d48a;
  --tag-ink: #3a2a08;
  --soon: #6f2c22;
  --soon-bg: #f8efe6;
  --max: 70rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(31, 74, 62, 0.05) 1px, transparent 0) 0 0 / 18px 18px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--pine-deep); }

a:hover { color: var(--soon); }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  z-index: 20;
}

.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 0.7rem 0;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}

.brand:hover { color: var(--pine); }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

@media (max-width: 768px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    position: relative;
  }

  .nav-toggle { display: inline-flex; align-items: center; }

  .nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 1rem 0.85rem;
    background: rgba(244, 239, 228, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }

  .nav > a { padding: 0.55rem 0.2rem; }
}

.nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}

.nav > a[aria-current="page"] {
  background: var(--pine);
  color: #f7f3ea;
}

.nav-cta {
  background: var(--tag);
  color: var(--tag-ink) !important;
  font-weight: 700;
}

main > .wrap .wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.hero {
  display: block;
  padding: 2.2rem 0 1rem;
}

.hero h1,
.page-head h1,
.final-cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: none;
}

.lede,
.page-head .lede {
  font-size: 1.15rem;
  max-width: none;
  color: var(--ink-soft);
}

.tag {
  align-self: end;
  justify-self: start;
  width: min(100%, 16rem);
  min-height: 11rem;
  padding: 1.3rem 1.2rem 1.2rem;
  background: var(--tag);
  color: var(--tag-ink);
  border-radius: 1.1rem 1.1rem 1.1rem 0.4rem;
  box-shadow: 0 10px 0 rgba(31, 74, 62, 0.12);
  position: relative;
}

.tag-hole {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--pine);
  margin-bottom: 1.4rem;
}

.tag p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

@media (min-width: 900px) {
  .hero { padding-top: 3.5rem; }
}

.store-status {
  margin: 1rem 0 0.4rem;
  font-weight: 700;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.store-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 0.7rem;
  background: transparent;
  line-height: 1.15;
}

.store-name { font-weight: 700; }

.store-when {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soon);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--pine);
  color: #f7f3ea;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--pine);
}

.btn:hover { background: var(--pine-deep); color: #f7f3ea; }

.btn-secondary {
  background: transparent;
  color: var(--pine-deep);
}

.btn-secondary:hover { background: var(--pine); color: #f7f3ea; }

.micro { margin: 0.15rem 0; color: var(--ink-soft); }

.section { padding: 1.2rem 0; }

.section h2,
.prose h2,
.steps h2,
.split h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.benefits {
  display: grid;
  gap: 0.9rem;
}

.benefit,
.panel,
.soon,
.waitlist-band,
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.benefit,
.panel { padding: 1.15rem 1.15rem 1.25rem; }

.benefit h2,
.benefit h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

.section ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

.section li { margin: 0.45rem 0; }

.section li::marker { color: var(--pine); }

/* Clears the sticky header (about 4.2rem). Phones override this below 700px. */
#plans,
#who-its-for,
#kids,
#how-it-works,
#waitlist,
[id] {
  scroll-margin-top: 5rem;
}

.benefit p:last-child,
.panel p:last-child { margin-bottom: 0; }

@media (min-width: 800px) {
  .benefits { grid-template-columns: 1fr 1fr; }
}

.soon {
  margin: 0.8rem 0;
  padding: 0.85rem 0.95rem 0.95rem;
  background: var(--soon-bg);
  border: 1px solid #e2c7bc;
  border-left: 5px solid var(--soon);
  border-radius: 0.8rem;
}

.soon-flag {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--soon);
  color: #fffaf6;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

li.soon { display: list-item; }

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 800px) {
  .steps ol { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem;
  margin: 0;
}

.steps h3,
.prose h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

.step-no {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.1rem 0.45rem;
  background: var(--tag);
  color: var(--tag-ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  border-radius: 0.35rem;
}

.split {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.faq details { padding: 0.2rem 1rem; margin: 0 0 0.55rem; }

.faq summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.faq details p { margin-top: 0; }

.final-cta {
  margin: 1.5rem 0;
  padding: 1.5rem 1.2rem;
  border-radius: 1.3rem;
  background: var(--pine);
  color: #f7f3ea;
}

.final-cta h2 { color: #f7f3ea; font-size: clamp(2rem, 4vw, 3rem); }

.final-cta .btn { background: var(--tag); color: var(--tag-ink); border-color: var(--tag); }

.final-cta .btn:hover { background: #fff4d2; color: var(--tag-ink); }

.page-head { padding: 2rem 0 0.4rem; }

/* The beta intro heading is visually hidden, so the section padding would
   leave a blank band above the first paragraph. */
.page-head:has(+ .beta-lead) .lede { margin-bottom: 0; }

.beta-lead { padding-top: 0; }

.beta-lead > .visually-hidden + p { margin-top: 0.75rem; }

.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: none; }

.prose { padding-bottom: 1rem; }

.prose h2 { margin-top: 1.8rem; }

.prose ul,
.prose ol { padding-left: 1.2rem; }

.prose li { margin: 0.35rem 0; }

.prose li::marker { color: var(--pine); }

.table-wrap { overflow-x: auto; margin: 0.6rem 0 1rem; }

table {
  width: 100%;
  min-width: 18rem;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th { background: var(--paper-deep); }

tr:last-child td { border-bottom: 0; }

.waitlist-band {
  width: 100%;
  max-width: none;
  margin: 1rem 0 1.4rem;
  padding: 1.2rem 1.2rem 1.3rem;
}

.waitlist .fine {
  margin: 0.35rem 0 0;
  font-weight: 400;
}

.waitlist-row {
  display: grid;
  gap: 0.75rem;
}

.waitlist .field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.waitlist-band h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 0.3rem;
}

form.waitlist {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

@media (min-width: 700px) {
  .waitlist-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .stub,
  .form-status { grid-column: 1 / -1; }
}

form.waitlist button { justify-self: start; }

label { font-weight: 700; }

input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--pine);
  background: var(--pine);
  color: #f7f3ea;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: var(--pine-deep); }

.stub,
.form-status { margin: 0.2rem 0 0; color: var(--ink-soft); }

.form-status:focus { outline: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2.4rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer a { color: var(--ink); }

.affiliation {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[hidden] { display: none !important; }

.guide-kicker {
  margin: 0 0 0.35rem;
  color: var(--pine);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .card-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.05rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.guide-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.guide-card p:last-child { margin: 0; color: var(--ink-soft); }

.guide-card:hover { border-color: var(--pine); }

.billing {
  display: inline-flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.billing button {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.billing button[aria-pressed="true"] {
  background: var(--pine);
  color: #f7f3ea;
  border-color: var(--pine);
}

.plan-grid {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 980px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.plan ul { margin: 0.2rem 0 0.6rem; padding-left: 1.1rem; }

.plan .btn { margin-top: auto; }

.plan-popular { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }

.plan-flag {
  align-self: flex-start;
  margin: 0;
  padding: 0.1rem 0.5rem;
  background: var(--tag);
  color: var(--tag-ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.price .unit,
.alt-price { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }

.alt-price { margin: 0; }

.nudge {
  margin: 0.2rem 0 0.4rem;
  padding: 0.55rem 0.7rem;
  background: var(--paper-deep);
  border-radius: 0.7rem;
  font-size: 0.95rem;
}

.footnote { color: var(--ink-soft); }

.mid-cta {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--pine);
  border-radius: 1rem;
}

.printable-checklist { margin: 1rem 0 1.4rem; }

.checklist {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.35rem 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.checklist .box {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.28rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.15rem;
  background: #fff;
}

.checklist li.checked .box {
  background:
    linear-gradient(var(--pine), var(--pine)) center / 0.55rem 2px no-repeat,
    linear-gradient(var(--pine), var(--pine)) center / 2px 0.55rem no-repeat,
    #fff;
}

.gated-body.is-gated {
  max-height: 8.5rem;
  overflow: hidden;
  position: relative;
}

.gated-body.is-gated::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.5rem;
  background: linear-gradient(to bottom, rgba(244, 239, 228, 0), var(--paper));
  pointer-events: none;
}

.gate-card {
  margin: 0.4rem 0 1rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--pine);
  border-radius: 1.1rem;
}

.gate-card h2 {
  margin-top: 0;
  font-family: var(--serif);
}

.gate-card form,
.gate-or { margin: 0.6rem 0; }

.fine { color: var(--ink-soft); font-size: 0.95rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: 7.5rem;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(28, 25, 21, 0.2);
}

.cookie-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner p { margin: 0; }

@media (max-width: 768px) {
  body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 25vh;
  }

  .cookie-banner {
    align-items: center;
    max-height: 25vh;
    overflow: auto;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.75rem;
  }

  .cookie-copy {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .cookie-title { font-size: 0.75rem; }

  .cookie-banner .cookie-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .cookie-banner .cookie-actions button {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.72rem;
  }
}

.cookie-banner a { color: var(--tag); }

.cookie-banner .cookie-actions { flex-wrap: nowrap; }

.cookie-banner .cookie-actions button { flex: 0 0 auto; }

.cookie-title { margin: 0; font-weight: 700; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  flex: 1 1 8.5rem;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cookie-panel {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(28, 25, 21, 0.45);
}

.cookie-panel-card {
  width: min(36rem, 100%);
  max-height: min(36rem, calc(100vh - 1.5rem));
  overflow: auto;
  padding: 1rem 1.1rem 1.2rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 1rem;
}

.cookie-cats {
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  list-style: none;
}

.cookie-cats li { margin: 0.45rem 0; }

.cookie-cats label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 650;
}

.cookie-cats span {
  display: block;
  color: var(--ink-soft);
  font-weight: 400;
}

.gpc-toast {
  position: fixed;
  z-index: 35;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 9rem;
  max-width: 36rem;
  margin-inline: auto;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 1rem;
}

.gpc-toast p { margin: 0 0 0.6rem; }

.placeholder {
  padding: 0 0.2em;
  background: var(--tag);
  color: var(--tag-ink);
  border-radius: 0.2em;
}

.one-time,
.renewal {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.coming-soon {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.7rem;
  background: var(--soon-bg);
  border-left: 4px solid var(--soon);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.beta-form,
.feedback-form {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  max-width: none;
}

.feedback-form fieldset,
.beta-form fieldset,
.choices {
  margin: 0.8rem 0 0.2rem;
  padding: 0;
  border: 0;
}

.feedback-form legend,
.beta-form legend {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.group-label {
  margin: 0.7rem 0 0.15rem;
  font-weight: 700;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  margin: 0.35rem 0;
  padding: 0.45rem 0.75rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 0.8rem;
  font-weight: 650;
}

.choice input { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }

.subfield {
  display: grid;
  gap: 0.3rem;
  margin: 0.4rem 0 0.6rem;
}

.optional { font-weight: 400; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea { min-height: 5rem; resize: vertical; }

.install-steps { padding-left: 1.2rem; }

.install-steps li { margin: 0.4rem 0; }

.note {
  padding: 0.7rem 0.85rem;
  background: var(--tag);
  border-radius: 0.7rem;
}

button:disabled { opacity: 0.72; cursor: default; }

.apk-button { margin: 0.8rem 0; }

.legal h2 { margin-top: 1.6rem; }

@media (max-width: 699px) {
  html { scroll-padding-top: 0; }

  #plans,
  #who-its-for,
  #kids,
  #how-it-works,
  #waitlist,
  [id] { scroll-margin-top: 1rem; }

  .site-header { position: static; }

  .site-header .wrap {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0.28rem 0;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 0.92rem;
    margin-right: 0.15rem;
  }

  .nav-toggle { display: none; }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .nav > a {
    min-height: 32px;
    padding: 0.05rem 0.28rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 25vh;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    max-height: 25vh;
    overflow: hidden;
    left: 0.5rem;
    right: 0.5rem;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
  }

  .cookie-copy {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .cookie-banner .cookie-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .cookie-banner .cookie-actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.25rem;
    padding: 0.2rem 0.25rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

@media (max-width: 399px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 32px;
    padding: 0.2rem 0.65rem;
    font-size: 0.85rem;
  }

  .nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    padding: 0.35rem 1rem 0.85rem;
    background: rgba(244, 239, 228, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }

  .nav > a {
    min-height: 40px;
    padding: 0.45rem 0.2rem;
    font-size: 1rem;
  }
}

@media print {
  .site-header,
  .waitlist-band,
  .store-placeholder,
  .cta-row,
  .skip,
  .cookie-banner,
  .cookie-panel,
  .gpc-toast,
  .mid-cta,
  .gate-wall,
  .nav { display: none !important; }
  body { background: #fff; }
  .benefit,
  .panel,
  .soon,
  .steps li,
  .final-cta,
  .checklist li { break-inside: avoid; }
  .gated-body,
  .gated-body.is-gated {
    max-height: none !important;
    overflow: visible !important;
  }
  .gated-body.is-gated::after { content: none !important; }
  .printable-checklist { break-before: page; }
  .checklist .box {
    border: 1.5pt solid #000;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .checklist li.checked .box::after {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.25rem;
    margin: 0.2rem auto 0;
    border-left: 1.5pt solid #000;
    border-bottom: 1.5pt solid #000;
    transform: rotate(-45deg);
  }
  a { text-decoration: underline; }
}

/* ---- WordPress-specific additions (not in the static site CSS) ---- */

/* Keep the sticky header below the WP admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Post meta line on single posts and cards. */
.post-meta {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Blog home / archive pagination. */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 2rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--pine);
  border-color: var(--pine);
  color: #f7f3ea;
  font-weight: 700;
}

/* WordPress content niceties the static site never needed. */
.wp-block-image img,
.prose img { border-radius: 0.8rem; }

.alignwide,
.alignfull { max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--ink-soft); font-size: 0.9rem; }

blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--pine);
  border-radius: 0.8rem;
}

blockquote p:last-child { margin-bottom: 0; }

/* Screen-reader-only text (WP core class name). */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Post-to-post navigation on single posts. */
.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  margin: 1.5rem 0 2rem;
}

