/* Halfanvil site. Same architecture as the vertpilot site: palette in :root, then layout,
   sections, cards, legal pages, contact form. Dark only, system fonts, no webfonts. */
:root {
  --bg: #0E1116;      /* near-black blue-grey */
  --panel: #161B22;   /* surfaces */
  --muted: #9AA4B2;
  --text: #F3F4F6;
  --accent: #F5A524;  /* hot-iron amber */
  --accent2: #FF6B35; /* ember */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.container { width:min(1120px, 92%); margin:0 auto; }

.nav { position:sticky; top:0; backdrop-filter:saturate(120%) blur(8px); background:rgba(14,17,22,0.7); border-bottom:1px solid #222831; z-index:20; }
.nav-inner { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; font-weight:700; font-size:19px; letter-spacing:-.2px; }
.logo { width:30px; height:30px; display:block; }
.links a { color:var(--muted); text-decoration:none; margin:0 10px; }
.links a:hover { color:var(--text); }

.btn { display:inline-block; padding:12px 16px; border-radius:12px; background:#1c2128; color:var(--text); text-decoration:none; border:1px solid #2a313b; transition:.2s; font: inherit; cursor:pointer; }
.btn:hover { transform:translateY(-1px); border-color:#3a424e; }
.btn:disabled { opacity:.6; cursor:default; transform:none; }
.btn.primary { background:linear-gradient(135deg, var(--accent), var(--accent2)); color:#0E1116; border:none; font-weight:700; }
.btn.ghost { background:transparent; border:1px solid #2a313b; }

.hero { padding:88px 0 56px; background: radial-gradient(1200px 600px at 10% -10%, rgba(245,165,36,.14), transparent 60%), radial-gradient(1200px 600px at 90% -20%, rgba(255,107,53,.10), transparent 60%); }
.hero-grid { display:grid; grid-template-columns: 1.15fr 0.85fr; gap:28px; align-items:center; }
.hero-copy h1 { font-size: clamp(34px, 5.4vw, 56px); line-height:1.08; margin:0 0 14px; letter-spacing:-1px; }
.highlight { background:linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.sub { color:var(--muted); max-width: 52ch; }
.cta-row { display:flex; gap:12px; margin:22px 0 8px; flex-wrap:wrap; }
.hero-art { width: 300px; justify-self: center; }
.hero-art svg { width:100%; height:auto; display:block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

.features { padding:56px 0; background:linear-gradient(180deg, transparent, rgba(245,165,36,.05)); }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.grid-2 { display:grid; grid-template-columns: 1.1fr 0.9fr; gap:28px; align-items:start; }
.card { background: var(--panel); border: 1px solid #262c35; padding: 22px; border-radius: 16px; }
.card h3 { margin:0 0 8px; }
.card p, .bullets li { color: var(--muted); }

/* Highlight boxes, two accents, same construction as vertpilot's pretty-box */
.pretty-box { border: 2px solid var(--accent2); border-radius: 16px; padding: 22px; box-shadow: 0 8px 30px rgba(255,107,53,0.08); background: linear-gradient(135deg, var(--panel) 95%, rgba(255,107,53,0.1)); }
.pretty-box.amber-accent { border-color: var(--accent); box-shadow: 0 8px 30px rgba(245,165,36,0.08); background: linear-gradient(135deg, var(--panel) 95%, rgba(245,165,36,0.1)); }

.product { padding:56px 0; }
.product h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 8px; letter-spacing: -.5px; }
.bullets { display:grid; gap:10px; padding:0; margin:16px 0 0; }
.bullets li { list-style:none; background:var(--panel); border:1px solid #262c35; padding:14px; border-radius:12px; }
.bullets li strong { color: var(--text); }

.price-card .price { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 0; color: var(--text); }
.price-card .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .founding { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245,165,36,.4); background: rgba(245,165,36,.06); color: var(--text); }
.price-card .founding strong { color: var(--accent); }

.waitlist-section { padding:48px 0; background:linear-gradient(180deg, transparent, rgba(255,107,53,.05)); }

.faq { padding:48px 0 72px; }
details { background:var(--panel); border:1px solid #262c35; border-radius:12px; padding:14px 16px; margin:10px 0; }
summary { cursor:pointer; font-weight:600; }
details p { color: var(--muted); margin: 10px 0 2px; }

.footer { border-top:1px solid #1c2128; padding:20px 0; color:var(--muted); }
.foot-grid { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.brand-row { display:flex; align-items:center; gap:8px; }
.logo.small { width:22px; height:22px; }
.footer .legal a { color: var(--muted); text-decoration: none; margin-right: 14px; }
.footer .legal a:hover { color: var(--text); }
.trademark { margin: 10px auto 0; font-size: 12px; opacity: .8; }

.legal-page { padding:60px 0 80px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal-page h2 { font-size: 20px; margin-top: 28px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { padding-left: 18px; }

.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.fineprint { color: var(--muted); font-size: 13px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sub.center { max-width: 64ch; }
.step { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0E1116; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 22px; letter-spacing: -.5px; }

main a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245,165,36,.35); }
main a:hover { border-bottom-color: var(--accent); }
main a.btn { border-bottom: none; }

/* forms: contact and waitlist share one pattern */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-top: 22px; }
.contact-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid #2a313b; background: #0b0e12;
  color: var(--text); font: inherit; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(245,165,36,.5); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form select { font-size: 15px; appearance: auto; }
.contact-page > p { max-width: 70ch; }

@media (max-width: 880px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-art { width: 220px; order: -1; justify-self: start; }
  .links a:not(.keep) { display: none; }
}

/* join flow: the waitlist conversation (join.html) and the thanks page (thanks.html) */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.join-page { min-height: 100vh; display: flex; flex-direction: column; }
.join-main { flex: 1; padding: 40px 0 24px; }
.join-card { width: min(640px, 92%); margin: 0 auto; }
.progress-text { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.progress { height: 4px; background: #262c35; border-radius: 4px; overflow: hidden; margin: 0 0 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.join-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; animation: q-in .2s ease-out; }
@keyframes q-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.join-form legend { padding: 0; margin: 0 0 16px; width: 100%; }
.q-title { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; margin: 0; letter-spacing: -.3px; border-radius: 4px; }
.helper { color: var(--muted); margin: -6px 0 14px; }

.join-form .field { display: grid; gap: 6px; }
.join-form .field label { color: var(--muted); font-size: 14px; }
.join-form input[type=email], .join-form input[type=text], .join-form textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; width: 100%;
  border-radius: 10px; border: 1px solid #2a313b; background: #0b0e12; color: var(--text);
}
.join-form textarea { resize: vertical; }
.join-form [aria-invalid=true] { border-color: var(--accent2); }
.counter { font-size: 13px; color: var(--muted); justify-self: end; }
.counter.near { color: var(--accent); font-weight: 700; }
.other { margin-top: 12px; }

.options { display: grid; gap: 8px; }
.opt { display: block; position: relative; cursor: pointer; }
.opt input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.opt-box {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 44px 10px 12px;
  border: 2px solid #2a313b; border-radius: 12px; background: #1c2128; color: var(--text);
  position: relative; transition: border-color .15s, background-color .15s;
}
.opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 6px; border: 1px solid #3a424e;
  color: var(--muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.opt input:checked + .opt-box { border-color: var(--accent); background: rgba(245,165,36,.08); }
.opt input:checked + .opt-box .opt-key { background: var(--accent); border-color: var(--accent); color: #0E1116; }
.opt input:checked + .opt-box::after {
  content: "\2713"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 800; font-size: 18px; line-height: 1;
}
@media (hover: hover) { .opt:hover .opt-box { border-color: #3a424e; } .opt:hover input:checked + .opt-box { border-color: var(--accent); } }

.status { min-height: 1.6em; margin: 12px 0 0; color: var(--text); font-weight: 600; }
.status:empty { margin: 0; min-height: 0; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.btn.text { background: transparent; border: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 12px 10px; min-height: 44px; }
.btn.text:hover { color: var(--text); transform: none; }
.consent { margin: 18px 0 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* focus: amber ring everywhere, never removed */
.join-page a:focus-visible, .join-page .btn:focus-visible, .q-title:focus-visible,
.join-form input:focus-visible, .join-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.join-card .eyebrow { color: var(--accent); }
.join-card strong { color: var(--text); }
.thanks-title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.5px; }
.thanks-sub { font-size: 18px; margin: 24px 0 0; }
.thanks-links { margin: 22px 0 0; }
.join-foot { padding: 16px 0 28px; text-align: center; }
.join-foot a { color: var(--muted); margin: 0 10px; }
.join-foot a:hover { color: var(--text); }

@media (max-width: 600px) {
  .join-main { padding: 0 0 16px; }
  .join-card { width: 100%; }
  .join-card.card { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* product page (index.html): nav button, example report, who, about, focus and motion */
.links { display: flex; align-items: center; }
.btn.small { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.links a.btn.primary { color: #0E1116; margin-right: 0; }
.home .hero-copy h1 { font-size: clamp(32px, 4.6vw, 50px); }
.home .hero .fineprint { max-width: 56ch; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps h3 { font-size: 18px; line-height: 1.35; }
.note { margin: 22px 0 0; max-width: 70ch; }
section[id] { scroll-margin-top: 80px; }

.ex-card { max-width: 780px; }
.card.ex-card .eyebrow { margin-bottom: 12px; color: var(--accent); }
.card .ex-q { color: var(--text); font-weight: 700; margin: 0; }
.ex-meta { margin: 2px 0 12px; }
.ex-counts { width: 100%; border-collapse: collapse; }
.ex-counts th, .ex-counts td { text-align: left; padding: 8px 0; border-top: 1px solid #262c35; }
.ex-counts th { color: var(--text); font-weight: 600; width: 38%; padding-right: 12px; }
.ex-counts td { color: var(--muted); }
.ex-h { font-size: 16px; margin: 22px 0 10px; color: var(--text); }
.ex-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: src; }
.ex-sources li { counter-increment: src; background: #0b0e12; border: 1px solid #262c35; border-radius: 12px; padding: 12px 14px 12px 44px; position: relative; }
.ex-sources li::before { content: counter(src); position: absolute; left: 14px; top: 12px; color: var(--accent); font-weight: 800; }
.ex-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ex-name { color: var(--text); font-weight: 600; flex: 1 1 220px; }
.ex-read { color: var(--muted); font-size: 14px; }
.ex-on { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid #3a424e; white-space: nowrap; }
.ex-on.no { color: var(--accent2); border-color: rgba(255,107,53,.5); }
.ex-on.yes { color: var(--text); border-color: #3a424e; }
.ex-on.yes::before { content: "\2713 "; color: var(--accent); }
.card .ex-action { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.ex-fact { background: #0b0e12; border: 1px solid #262c35; border-radius: 12px; padding: 12px 14px; }
.card .ex-fact p:first-child { margin: 0; color: var(--text); }
.ex-fact strong { color: var(--text); }
.ex-src { color: var(--muted); }
.ex-compact .ex-top { margin: 12px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ex-notes { max-width: 780px; }

.grid-2.even { grid-template-columns: 1fr 1fr; }
.plain { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.faq-list details { max-width: 820px; }
.about { padding: 8px 0 40px; }
.about p { color: var(--muted); max-width: 70ch; margin: 0; }
.about strong { color: var(--text); }

a:focus-visible, summary:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 880px) {
  .grid-2.even { grid-template-columns: 1fr; }
  .ex-compact { order: 2; }
}
@media (max-width: 420px) {
  .links a { margin: 0 6px; }
  .brand { font-size: 17px; }
  .ex-card { padding: 16px; }
  .ex-sources li { padding-left: 36px; }
  .ex-sources li::before { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}
