/* Buckshot's look, matching the app (Palette.swift): warm near-black with pale strings and Buckshot orange;
   in light mode warm cream paper with soft brown strings. */
:root {
  --page: #faf5ed; --bar: rgba(250, 245, 237, 0.72); --card: rgba(255, 255, 255, 0.78);
  --edge: rgba(0, 0, 0, 0.08); --text: #1f1712; --muted: #6e6158; --soft: rgba(0, 0, 0, 0.05);
  --accent: #e57a4f; --modal: #fffaf3; --accent-text: #b8532b; --pill: rgba(0, 0, 0, 0.06); --pill-hover: rgba(0, 0, 0, 0.1);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 24px rgba(60, 40, 20, 0.06);
  --clear: rgba(255, 255, 255, 0.72); --clear-edge: rgba(0, 0, 0, 0.08); --clear-hover: rgba(255, 255, 255, 0.95);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --modal: #1c1512;
    --page: #120d0b; --bar: rgba(18, 13, 11, 0.6); --card: rgba(255, 255, 255, 0.045);
    --edge: rgba(255, 255, 255, 0.07); --text: #f3ece6; --muted: #a8998f; --soft: rgba(255, 255, 255, 0.05);
    --accent-text: #f0905f; --pill: rgba(255, 255, 255, 0.08); --pill-hover: rgba(255, 255, 255, 0.13);
    --shadow: none;
    --clear: rgba(255, 255, 255, 0.13); --clear-edge: rgba(255, 255, 255, 0.16); --clear-hover: rgba(255, 255, 255, 0.2);
  }
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--page); min-height: 100vh;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
#strings { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code { font: 0.88em ui-monospace, "SF Mono", Menlo, monospace; background: var(--soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px max(16px, calc((100vw - 1040px) / 2));
  background: var(--bar); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; margin: -3px; }
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Pills, like the app's buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--pill); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 0; transition: background 150ms ease, filter 150ms ease, opacity 150ms ease;
}
.pill.clear {
  background: var(--clear); color: var(--text); box-shadow: inset 0 0 0 1px var(--clear-edge);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@media (hover: hover) {
  .pill:hover { background: var(--pill-hover); }
  .pill.clear:hover { background: var(--clear-hover); }
}
.pill.orange { background: var(--accent); color: #fff; }
@media (hover: hover) { .pill.orange:hover { background: var(--accent); filter: brightness(1.08); } }
.pill.big { padding: 13px 26px; font-size: 1.02rem; }
.pill.small { padding: 6px 13px; font-size: 0.85rem; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--edge); color: var(--muted); font-size: 0.85rem; font-weight: 600;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(229, 122, 79, 0.18); }

/* Homepage */
.hero {
  min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 72px;
}
.hero .badge { display: flex; flex-direction: column; align-items: center; }
.hero > * { position: relative; top: var(--lift, 0px); }   /* not transform: the fade-in animates that */
/* A still, soft orange light shaped exactly like the icon's rounded tile (824/1024 of the image, 185 corners),
   made with box-shadow so there's no filter and no blurred box. Decorative, so it doesn't animate. */
.hero .glow { position: relative; margin-bottom: 18px; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero .glow::before {
  content: ""; position: absolute; inset: 9.77%; border-radius: 22.45%; z-index: -1;
  box-shadow: 0 6px 34px 2px rgba(229, 122, 79, 0.30), 0 10px 80px 14px rgba(229, 122, 79, 0.12);
}
.hero .icon { display: block; width: 168px; height: 168px; }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  margin: 18px 0 18px; max-width: 14ch; animation: rise .7s .05s cubic-bezier(.2, .8, .2, 1) both;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34rem; margin: 0 0 30px; animation: rise .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; animation: rise .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
.hero .chip { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

section { max-width: 1040px; margin: 0 auto; padding: 56px 16px; }
.eyebrow { color: var(--accent-text); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; }
section > h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 28px; max-width: 22ch; }

.card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 18px; padding: 24px;
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s;
}
.grid .card:hover, .steps .card:hover { transform: translateY(-3px); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: rgba(229, 122, 79, 0.14); color: var(--accent-text); font-weight: 800;
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card.feature {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 14px; padding: 30px;
  border-color: rgba(229, 122, 79, 0.35);
  background: linear-gradient(135deg, rgba(229, 122, 79, 0.16), rgba(229, 122, 79, 0.03) 60%), var(--card);
}
.card.feature .ico { background: var(--accent); color: #fff; width: 48px; height: 48px; flex: none; }
.card.feature h3 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.card.feature p { font-size: 1.05rem; max-width: 60ch; }
.card.feature:hover { transform: translateY(-3px); }
.grid.features { margin-bottom: 14px; }
.grid.features .card.feature { flex-direction: column; gap: 16px; margin-bottom: 0; padding: 28px; }
.grid.features .card.feature h3 { font-size: 1.3rem; }
details.card { padding: 0; }
details summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "▾"; color: var(--muted); transition: transform .25s; }
details[open] summary::after { transform: rotate(180deg); }
details .body { padding: 0 24px 22px; }
.ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--soft); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; }
.google { max-width: 760px; margin: 0 auto; }
.google p { color: var(--text); margin: 0 0 12px; }
.google p:last-child { margin: 0; }

/* Legal and tester pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 24px; }
.doc > header { margin-bottom: 26px; }
.doc > header h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 6px; }
.doc > header p { color: var(--muted); margin: 0; }
.doc .card { padding: 28px 32px; }
.doc .card p { color: var(--text); margin: 0 0 14px; }
.doc .card h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 30px 0 8px; }
.doc .card > :first-child { margin-top: 0; }
.doc .card > :last-child { margin-bottom: 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }

.modal {
  width: min(460px, calc(100vw - 32px)); padding: 28px; border-radius: 22px; border: 1px solid var(--edge);
  background: var(--modal); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: scale(.95) translateY(6px);
  transition: opacity 180ms cubic-bezier(.165, .84, .44, 1), transform 180ms cubic-bezier(.165, .84, .44, 1),
              overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.modal[open] {
  opacity: 1; transform: none;
  transition-duration: 240ms;
}
@starting-style { .modal[open] { opacity: 0; transform: scale(.95) translateY(6px); } }
.modal::backdrop { background: rgba(10, 6, 4, 0); transition: background 240ms ease, overlay 240ms allow-discrete, display 240ms allow-discrete; }
.modal[open]::backdrop { background: rgba(10, 6, 4, 0.55); }
@starting-style { .modal[open]::backdrop { background: rgba(10, 6, 4, 0); } }
.modal .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.modal .head img { width: 54px; height: 54px; margin: -5px; }
.modal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0; }
.modal .tag { color: var(--accent-text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.modal p { margin: 0 0 12px; color: var(--muted); font-size: 0.97rem; }
.modal p strong { color: var(--text); }
.modal .agree {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; padding: 14px 16px; border-radius: 14px;
  background: var(--soft); cursor: pointer; font-weight: 600; user-select: none;
}
.modal .agree input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.modal .buttons { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal .pill { cursor: pointer; font-family: inherit; }
.modal .pill[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.modal .small { font-size: 0.85rem; margin: 16px 0 0; text-align: center; }

footer {
  position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px;
  color: var(--muted); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 6px 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .steps, .grid { grid-template-columns: 1fr; }
  .hero .icon { width: 128px; height: 128px; }
  .grid.three { grid-template-columns: 1fr; }
  .card.feature { flex-direction: column; gap: 0; }
  .doc .card { padding: 22px 20px; }
  .nav nav .hide-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Pricing (numbers come from api.buckshotapp.com/v1/config via pricing.js) */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.card.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.card.plan.best {
  border-color: rgba(229, 122, 79, 0.45);
  background: linear-gradient(160deg, rgba(229, 122, 79, 0.16), rgba(229, 122, 79, 0.03) 60%), var(--card);
}
.plan .flag {
  position: absolute; top: -11px; left: 20px; padding: 2px 10px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .per { color: var(--muted); font-size: 0.95rem; }
.plan .was { min-height: 1.4em; color: var(--muted); font-size: 0.9rem; }
.plan .was s { margin-right: 6px; }
.plan .was strong { color: var(--accent-text); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 18px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.plan li { padding: 3px 0 3px 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .pill { justify-content: center; }
.founder { text-align: center; margin: 22px 0 0; font-weight: 600; }
.founder strong { color: var(--accent-text); }
.fine { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 14px auto 0; max-width: 60ch; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* Checkout page */
.checkout { max-width: 560px; margin: 0 auto; padding: 56px 16px 24px; text-align: center; }
.checkout h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.03em; margin: 0 0 8px; }
.checkout .card { text-align: left; margin-top: 22px; }
.checkout .choices { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 18px 0 0; }
.checkout .pill { cursor: pointer; font-family: inherit; }
.checkout .pill.on { background: var(--accent); color: #fff; }
.checkout .status { color: var(--muted); margin-top: 16px; }
.checkout .pill[disabled] { opacity: 0.45; cursor: default; filter: none; }
