/* The shiftleft microsite: shared tokens and components.
 *
 * Values are Ishan's landing-page spec (Frugal brand guide, 2025): beige ground, two greens,
 * Aeonik Medium headings, Inter body. The home page, the thank-you page and the scorecard all
 * load this file, so the three read as one site.
 */

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-medium.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F2F0EA;
  --ink: #111111;
  --body: #2F2F2F;
  --muted: #666666;
  --green-dark: #014715;
  --green-bright: #00CE3E;
  --green-text: #0A7F2E;
  --green-tint: #D6F5DF;
  --card: #EEECE6;
  --card-border: #DAD6CC;
  --rule: #D5D4CE;
  --cream: #F2EADD;
  --grey: #7D7D7D;
  --error: #B42318;
  --white: #FFFFFF;

  --font-head: "Aeonik", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wrap: min(1200px, 100% - 48px);
  --section: clamp(64px, 6.67vw, 96px);
  --r-card: 16px;
  --r-row: 12px;
  --r-ctl: 8px;
  --shadow-card: 0 1px 2px rgba(17, 17, 17, .04), 0 16px 40px rgba(17, 17, 17, .06);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, .06), 0 18px 36px rgba(17, 17, 17, .14);
  --ring-focus: 0 0 0 3px rgba(0, 206, 62, .28);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--green-dark); }
a:hover { color: var(--green-text); }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.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;
}
.wrap { width: var(--wrap); margin: 0 auto; }

/* ───── type ───── */

.eyebrow {
  margin: 0;
  font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-text);
}
.h1, .h2, .h3 { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-wrap: balance; }
.h1 { font-size: clamp(36px, 1.6rem + 2.8vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.h2 { font-size: clamp(28px, 1.2rem + 1.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.h3 { font-size: clamp(24px, 1.1rem + 1vw, 30px); line-height: 1.2; letter-spacing: -0.015em; }
.accent { color: var(--green-dark); }
.lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.body { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.caption { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* ───── header / footer ───── */

.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 5; }
.site-header .wrap { height: 72px; display: flex; align-items: center; gap: 24px; }
.site-logo { display: block; flex: none; }
.site-logo img { display: block; height: 22px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-nav a:hover { color: var(--green-dark); }
.site-nav .arrow { transition: transform .2s var(--ease-out); }
.site-nav a:hover .arrow { transform: translateX(3px); }

.site-footer { background: var(--bg); }
.site-footer .wrap { padding: 48px 0 40px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer-top img { height: 22px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--green-dark); }
.footer-bottom {
  border-top: 1px solid var(--rule); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer-bottom span:last-child { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--green-dark); }

/* ───── buttons ───── */

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-hover: var(--body);
  height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-ctl);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px var(--font-body); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color .18s ease, transform .18s var(--ease-out), box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { cursor: progress; background: var(--body); }
.btn svg { flex: none; transition: transform .22s var(--ease-out); }
.btn:hover svg.nudge-r { transform: translateX(3px); }
.btn:hover svg.nudge-d { transform: translateY(3px); }
.btn--green { --btn-bg: var(--green-dark); --btn-hover: var(--green-text); height: 48px; padding: 0 22px; font-size: 15px; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-hover: var(--bg); }
.btn--block { width: 100%; }
.linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: 600 14px var(--font-body); color: var(--green-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--green-text); }

/* ───── check bullet, tags ───── */

.check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-bright);
  display: inline-flex; align-items: center; justify-content: center;
}
.tag {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.tag--ship { background: var(--green-tint); color: var(--green-dark); }
.tag--run { background: var(--green-bright); color: var(--ink); }
.tag--retire { background: var(--green-dark); color: var(--white); }
.num-circle {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-dark); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums;
}

/* ───── form card (Ishan's restyled HubSpot form) ───── */

.form-card {
  background: var(--white); border: 1px solid var(--card-border); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 24px; width: 100%;
}
.form-card .form-head { display: flex; flex-direction: column; gap: 8px; }
.form-card .form-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.form-card .form-sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.input {
  height: 48px; width: 100%; padding: 0 16px; border-radius: var(--r-ctl);
  background: var(--white); border: 1px solid var(--rule);
  font: 500 16px var(--font-body); color: var(--ink); outline: none;
  transition: border-color .15s ease, box-shadow .2s ease, background-color .15s ease;
}
.input::placeholder { color: #9A9993; }
.input:focus { border-color: var(--green-dark); box-shadow: var(--ring-focus); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(180, 35, 24, .14); }
.input:disabled { background: #F7F6F2; }
.field-error {
  margin: 0; display: flex; gap: 6px; align-items: center;
  font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--error);
}
.field-error[hidden] { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--green-dark); }
.consent span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent-error { margin: 0 0 0 26px; }
.form-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.shake { animation: shake .42s both; }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } .spinner { animation-duration: 2s; } }

/* ───── reveal-on-scroll (JS adds .js to <html>; without JS everything is simply shown) ───── */

.js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; } }
