/* Hunt Shape public home page (huntshape.com). Tokens and form controls come from /_gw/static/gw.css.
   The brand page stays dark even when the phone is in light mode (html.home beats gw.css's :root tokens). */
html.home { color-scheme: dark; --bg:#0a110c; --surface:#121e15; --surface-2:#18271b; --border:#213426;
  --border-strong:#2f4a36; --text:#e6efe7; --text-2:#bdd0c1; --muted:#8ea695; --accent:#2e7d46; --accent-hover:#2a7541;
  --accent-text:#6fc78a; --danger:#f2736a; --success:#5cb377; --ring:0 0 0 3px rgba(63,160,92,.35); }

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 560px at 50% -80px, rgba(46, 125, 70, .18), transparent 70%),
    var(--bg);
  min-width: 0;
}

.skip {
  position: absolute; left: 12px; top: 8px; z-index: 40;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 8px 12px; text-decoration: none;
  transform: translateY(-120%);
}
.skip:focus { transform: none; box-shadow: var(--ring); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: rgba(10, 17, 12, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 80px; height: auto; display: block; }
.header-apply {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; align-self: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
  border-radius: 999px; padding: 0 16px; height: 36px;
  box-shadow: var(--shadow-1);
}
.header-apply:hover { background: var(--accent-hover); color: #fff; }

/* ---- layout ---- */
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero, .features, .shots, .apply-sec, .site-footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* ---- hero ---- */
.hero { padding-top: 36px; padding-bottom: 28px; text-align: center; }
.hero h1 {
  font-size: clamp(28px, 7vw, 48px);
  line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 14px; text-align: center; font-weight: 750;
  max-width: 18ch; margin-left: auto; margin-right: auto;
}
.hero .lede {
  margin: 0 auto 24px; max-width: 38em;
  font-size: 17px; line-height: 1.45; color: var(--text-2);
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .bigbutton {
  display: inline-flex; width: auto; min-width: min(100%, 280px);
  text-decoration: none; padding: 15px 28px;
}
.signin {
  font-size: 14px; color: var(--muted); margin: 0;
}
.signin a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.signin a:hover, .signin a:focus { text-decoration: underline; }

/* ---- features ---- */
.features { padding-bottom: 12px; }
.feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 16px 14px;
  box-shadow: var(--shadow-1);
}
.feature h2 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* ---- screenshots ---- */
.shots { padding: 20px 0 8px; }
.shots .wrap { width: 100%; max-width: none; }
.shots h2.section-title,
.apply-sec h2.section-title {
  text-align: center; font-size: 22px; margin: 0 0 6px;
}
.section-kicker {
  text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px;
}
.phone-row {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 8px max(16px, env(safe-area-inset-left)) 20px;
  padding-right: max(16px, env(safe-area-inset-right));
  scrollbar-width: thin;
}
.phone {
  flex: 0 0 auto; width: 210px; margin: 0;
  scroll-snap-align: center;
}
.phone-bezel {
  position: relative;
  background: #0b0f0c;
  border: 3px solid #1a241c;
  box-shadow: 0 0 0 1px #3a4d3e, var(--shadow-2);
  border-radius: 28px;
  padding: 10px 8px 10px;
  overflow: hidden;
}
.phone-island {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 10px; border-radius: 999px;
  background: #0b0f0c; z-index: 2;
  box-shadow: 0 0 0 1px #1a241c;
}
.phone-screen {
  display: block; width: 100%; height: auto; aspect-ratio: 390 / 844;
  object-fit: cover; object-position: top center;
  border-radius: 18px; background: #121e15;
}
.phone figcaption {
  text-align: center; margin-top: 10px;
  font-size: 13px; font-weight: 650; color: var(--text-2);
}

/* ---- apply ---- */
.apply-sec { padding: 28px 16px 40px; scroll-margin-top: 88px; }
body.thanks-on .apply-sec { min-height: calc(100svh - 88px - 8.5rem); }
.thanks h3 { font-size: 22px; margin: 0 0 8px; }
@media (max-width: 719px) {
  #apply .card { padding: 20px 18px 16px; }
  #apply .field { margin-bottom: 12px; }
  #apply .choices { margin-bottom: 12px; }
}
.apply-sec .intro { text-align: center; max-width: 36em; margin: 0 auto 20px; color: var(--text-2); }
.apply-sec .card { margin: 0 auto; }
.apply-sec h2.section-title { font-size: 22px; }

/* Cloudflare Turnstile widget (only rendered when the site key + secret are set) */
#apply .cf-turnstile { margin: 4px 0 12px; min-height: 65px; }
#apply .msg:empty { display: none; }
#apply .closed { text-align: center; }
#apply .closed h3 { font-size: 20px; margin: 0 0 8px; }

.thanks { text-align: center; }
.thanks:focus { outline: none; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
.site-footer p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--accent-text); }

/* ---- desktop ---- */
@media (min-width: 720px) {
  .brand img { width: 112px; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .hero .lede { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature { padding: 18px 18px 16px; }
  /* six phones: 3 x 2 grid on tablets / small laptops, one row of six on wide screens */
  .shots .wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
  .phone-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center;
    gap: 28px 24px; padding-left: 0; padding-right: 0; overflow: visible; scroll-snap-type: none;
  }
  .phone { width: auto; }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .site-header { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
}
@media (min-width: 1200px) {
  .phone-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .phone-bezel { border-radius: 24px; padding: 9px 7px; }
  .phone-screen { border-radius: 15px; }
  .phone-island { width: 56px; height: 9px; top: 7px; }
}
