/*
 * Marketing site styles: the Honeypaw look, matching the app's in-admin "Summit" theme.
 * Ink text on cream, honey for fills and accents (never small text on white), "game tile" cards and pill buttons
 * with a 2px ink border and a hard offset shadow. Headings: Bricolage Grotesque (Google Fonts, the only external
 * asset). Body: Inter if installed, else the system font.
 */
:root {
  --ink: #1b1f3b;
  --ink-soft: #2c3156;
  --honey: #ffe58a;       /* backgrounds and fills */
  --honey-deep: #f5b700;  /* accents, icons, borders */
  --honey-dark: #e0a100;  /* accents only: too light for text on white */
  --cream: #fff7d6;
  --cream-soft: #fffaf0;
  --white: #ffffff;
  --text: #1b1f3b;        /* 15.9:1 on white */
  --muted: #474c68;       /* 8.4:1 on white, 7.8:1 on --cream */
  --link: #7a4d00;        /* 7.3:1 on white, 6.8:1 on --cream */
  --green: #0f7a55;       /* 5.3:1 on white */
  --line: #e6dcb8;
  --radius: 16px;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); text-decoration-color: var(--honey-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); letter-spacing: -0.025em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3.8vw, 2rem); letter-spacing: -0.015em; margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.4em; }
code { font-size: 0.88em; background: var(--cream); border: 1px solid var(--line); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 10; border: var(--border); border-radius: 8px; }
.skip-link:focus { left: 8px; }

.draft-banner {
  background: repeating-linear-gradient(-45deg, var(--honey), var(--honey) 14px, #fff0b3 14px, #fff0b3 28px);
  color: var(--ink);
  border-bottom: var(--border);
  padding: 10px 16px;
  font-size: 0.95rem;
  text-align: center;
}
mark.todo { background: var(--honey); color: var(--ink); padding: 0 4px; border-radius: 4px; outline: 1px dashed var(--ink); font-size: 0.92em; }

/* header */
.site-header { border-bottom: var(--border); background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 34px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-nav .nav-link { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 2px; }
.site-nav .nav-link:hover { text-decoration: underline; text-decoration-color: var(--honey-dark); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--honey-deep); text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* buttons: pills with an offset shadow that press in */
.button {
  display: inline-block;
  background: var(--honey);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.1s ease;
}
.button:hover { color: var(--ink); background: #ffdc5c; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button-small { padding: 5px 16px; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--ink); }
.button-secondary { background: var(--white); }
.button-secondary:hover { background: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover, .button:active { transform: none; } }

/* sections */
.section { padding: 56px 0; }
.section-tint { background: var(--cream); border-top: var(--border); border-bottom: var(--border); }
.section-tint + .section-tint { border-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  background: var(--honey);
  border: var(--border);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--cream), var(--cream-soft)); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-frame { justify-self: center; width: 100%; max-width: 480px; padding-right: 6px; }
.hero-art { display: block; width: 100%; border: var(--border); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 0 6px 6px 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 0.6em; }
.card .num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--honey); border: var(--border); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1rem; margin-bottom: 10px;
}
.steps { margin: 0.6em 0 0; padding-left: 1.1em; color: var(--muted); font-size: 0.97rem; }
.steps li { margin: 0.3em 0; }
.steps li::marker { color: var(--honey-dark); }
.steps strong { color: var(--ink); }

.callout { background: var(--honey); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-right: 6px; }
.callout h2 { margin-bottom: 0.3em; }
.callout p { margin: 0; font-size: 1.1rem; max-width: 62ch; }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; vertical-align: middle; white-space: nowrap; font-family: var(--font); letter-spacing: 0; }
.badge-soon { background: var(--white); color: var(--ink); border: 1.5px dashed var(--ink); }
.badge-plan { background: var(--honey); color: var(--ink); border: 1.5px solid var(--ink); }

.facts { display: grid; gap: 12px; padding: 0 6px 0 0; margin: 0 0 20px; list-style: none; }
.facts li { background: var(--white); border: var(--border); border-left: 8px solid var(--honey-deep); border-radius: 12px; padding: 14px 16px; }
.facts strong { color: var(--ink); }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; padding-right: 6px; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; background: var(--white); display: flex; flex-direction: column; }
.plan-featured { background: var(--cream); }
.plan h3 { font-size: 1.4rem; }
.price { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.price small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0; margin: 16px 0 0; list-style: none; }
.plan li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.note { color: var(--muted); font-size: 0.95rem; }

/* tables (markdown and pricing) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; border: var(--border); border-radius: 12px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--white); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--honey); color: var(--ink); border-bottom: var(--border); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.compare td { text-align: center; white-space: nowrap; }
.compare thead th:not(:first-child) { text-align: center; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }

/* long-form text (legal pages) */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 56px; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.prose h2 { margin-top: 2em; padding-top: 0.6em; border-top: 2px dashed var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose li { margin: 0.35em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; border: var(--border); border-left: 8px solid var(--honey-deep); border-radius: 12px; background: var(--cream); }
.prose table { min-width: 520px; }

/* faq */
.faq dt { font-weight: 700; color: var(--ink); margin-top: 20px; }
.faq dd { margin: 4px 0 0; color: var(--muted); max-width: 75ch; }

/* footer */
.site-footer { background: var(--ink); color: #e9e6d6; padding: 40px 0; font-size: 0.95rem; border-top: 6px solid var(--honey-deep); }
.site-footer a { color: var(--honey); }
.site-footer a:hover { color: var(--white); }
.footer-brand { margin: 0 0 12px; font-family: var(--display); }
.footer-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { overflow-wrap: anywhere; }
.footer-note { margin: 0; color: #c9c7ba; font-size: 0.85rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare { min-width: 680px; }
.compare tbody th { min-width: 220px; }

/* install button before the App Store listing exists (build.mjs unlisted()) */
.button-soon, .button-soon:hover, .button-soon:active { background: var(--cream); cursor: default; transform: none; box-shadow: var(--shadow); }
.button-small.button-soon { box-shadow: 3px 3px 0 var(--ink); }
.footer-legal { margin: 12px 0 0; color: #c9c7ba; font-size: 0.85rem; }
