/* ==========================================================================
   The current look for the pages still built on styles.css: the free AI check (English and Spanish) and
   its thank-you pages, Privacy, Terms and the old industry pages (/saas/, /b2b/). Loaded after their own
   stylesheets. It brings them onto the design of the rest of the site (assets/css/next.css): the same
   three typefaces, dark teal text on an off-white page, dark buttons, the aqua (#85CED1) field behind the
   check's first screen, white cards. Layout is untouched.
   ========================================================================== */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("Roboto"); size-adjust: 99%; ascent-override: 101%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Roboto"); size-adjust: 102%; ascent-override: 98.5%; descent-override: 28.9%; line-gap-override: 0%; }

:root {
  --font-serif: "Outfit", "Outfit Fallback", system-ui, sans-serif;
  --font-sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-code: var(--font-mono);

  --cream: #FBFBF8;
  --cream-2: #EFF5F4;
  --beige: #E4EFED;
  --paper: #FFFFFF;
  --chip: #EDF2F1;
  --ink: #0B2B2F;
  --ink-2: #1E4448;
  --muted: #52676A;

  /* The dark bands of the old pages become the deep teal of the platform block */
  --brown: #0D4A4F;
  --brown-2: #13646A;
  --brown-3: #1D7378;
  --sand: #DDF1F1;
  --sand-2: #A9D8D9;

  /* Lime marks what went well, as on the rest of the site */
  --lime: #DCF2BC;
  --lime-2: #CDEBA3;
  --lime-tint: #F1F9E4;
  --olive: #4A6800;
  --vis: #127A80;
  --vis-d: #85CED1;

  --line: rgba(11, 43, 47, .1);
  --line-2: rgba(11, 43, 47, .2);
  --dash: rgba(11, 43, 47, .2);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-card: 0 1px 2px rgba(11, 43, 47, .05), 0 22px 44px -24px rgba(11, 43, 47, .34);
  --shadow-float: 0 2px 4px rgba(11, 43, 47, .06), 0 30px 60px -24px rgba(11, 43, 47, .4);
}

body { background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline-color: #127A80; }

/* Headlines: Outfit, tight */
h1, h2, h3, .h1, .h2, .h3, .ac-hero__title, .ac-dialog__title, .ac-fields__title, .ac-score, .ac-state__title, .ac-thanks__h, .legal h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.04em;
}
.h1, .ac-hero__title { line-height: 1.04; }
.legal h2 { letter-spacing: -.03em; }

/* The logo, as in the nav of every other page */
.logo__word { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; letter-spacing: -.04em; }
.logo__word span { color: #127A80; }
.nav { background: rgba(251, 251, 248, .94); }

/* Buttons: navy, softly rounded */
.btn { border-radius: 12px; letter-spacing: 0; }
.btn--lg { border-radius: 16px; }
.btn--primary, .btn--dark { background: var(--ink); color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: #164249; }
.textlink { text-decoration-color: rgba(11, 43, 47, .3); }

/* Labels: small mono capitals, as in the product screens elsewhere */
.eyebrow, .ac-example__tag, .ac-preview__label, .ui__src, .ui__pill {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .06em;
}

/* Solid hairlines in place of dashed rules */
.ac-example, .ac-footer { border-top: 1px solid var(--line); }

/* ---------- The free check: its first screen sits on the gradient, the form on a white card ---------- */
.ac-hero {
  position: relative;
  margin: calc(var(--nav-h) + 4px) clamp(8px, 1.7vw, 24px) 0;
  padding: clamp(40px, 6vw, 84px) 0 clamp(44px, 6vw, 84px);
  border-radius: clamp(22px, 3.2vw, 44px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(58% 46% at 0% 0%, #5DBBC0 0%, rgba(93, 187, 192, 0) 100%),
    radial-gradient(50% 40% at 100% 4%, #A9DEDD 0%, rgba(169, 222, 221, 0) 100%),
    radial-gradient(44% 30% at 100% 84%, #F7D6C4 0%, rgba(247, 214, 196, 0) 100%),
    linear-gradient(180deg, #78C8CC 0%, #85CED1 34%, #A2DADA 60%, #CBEBE5 82%, #F4E9DA 100%);
}
.ac-hero__title, .ac-hero .lead { color: var(--ink); }
.ac-hero__lead { color: var(--ink-2); }
.ac-hero__badge { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .55); color: var(--ink); font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }
.ac-form { border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 43, 47, .05), 0 22px 44px -24px rgba(11, 43, 47, .4), 0 0 0 6px rgba(255, 255, 255, .5); }
.ac-form .field input { border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 0 0 4px #D6F0F0; }
.ac-form .field input:hover { box-shadow: 0 0 0 4px #C4E8E9, 0 14px 26px -12px rgba(11, 43, 47, .4); }
.ac-form .field input:focus { box-shadow: 0 0 0 4px #A9DCDD; }
.ac-form__note svg { color: #0B8F63; }
.ac-form__online, .ac-form__online .ac-linkbtn { color: var(--ink); }
.ac-hero .ac-form__online { width: fit-content; max-width: 100%; margin-inline: auto; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .55); }
.ac-fields .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px #D6F0F0; }
.card { border-radius: var(--r-lg); }

/* A lone link in the top bar sits on the right */
.ac-nav .nav__bar > .textlink { margin-left: auto; }

/* ---------- The old industry pages: their dark bands take the deep gradient of the platform block ---------- */
.band--dark {
  --dash-d: rgba(205, 236, 236, .22);
  background:
    radial-gradient(60% 46% at 4% 0%, #072226 0%, rgba(7, 34, 38, 0) 100%),
    radial-gradient(46% 36% at 100% 100%, rgba(133, 206, 209, .45) 0%, rgba(133, 206, 209, 0) 100%),
    linear-gradient(170deg, #082A2E 0%, #0D4A4F 52%, #17686E 100%);
}
.band--dark .band__bg { display: none; }
.ui__pill { background: var(--ink); }

/* No kickers above headlines, on these pages as on the rest of the site */
.ac-hero__badge, .eyebrow { display: none !important; }
/* The check's illustration sits on a sky photo: turn its blue towards the site's aqua */
.ac-page .media__bg { filter: hue-rotate(-24deg) saturate(.8) brightness(1.06); }
