/* www.fortello.ai — the public marketing page.
 *
 * Hand-written CSS on purpose. This directory has no build step and no framework, so what is
 * in this file is exactly what a browser receives. See site/_headers for why that matters.
 *
 * Brand: navy #1B2B5E, green #2ECC71, Inter. Same values the portal uses. */

:root {
  --navy: #1b2b5e;
  --navy-deep: #131f45;
  --navy-soft: #2a3d78;
  --green: #2ecc71;
  --green-deep: #1fa95a;

  --ink: #16203d;
  --ink-soft: #4a5578;
  --ink-faint: #737d9c;

  --paper: #ffffff;
  --paper-tint: #f4f6fb;
  --rule: #e2e7f2;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --band-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;

  --sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--navy-deep);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  background: var(--navy);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.15rem;
}

.masthead-logo {
  width: clamp(140px, 22vw, 190px);
  height: auto;
}

.masthead-contact {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 2px solid rgba(46, 204, 113, 0.55);
  padding-bottom: 2px;
}

.masthead-contact:hover {
  border-bottom-color: var(--green);
}

/* -------------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(46, 204, 113, 0.22) 0%, rgba(46, 204, 113, 0) 55%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ffffff;
  border-bottom: 4px solid var(--green);
}

.hero-inner {
  padding-block: clamp(3.75rem, 11vw, 8rem);
  max-width: 62rem;
}

.hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-lede {
  margin-top: 1.35rem;
  font-size: clamp(1.2rem, 1.02rem + 0.85vw, 1.75rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
}

.hero-sub {
  margin-top: 0.6rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.7);
}

/* Quiet on purpose. This is a mark, not a claim competing with the call to action above it:
   small, faint against the navy, and set below the button so it reads as a footnote to the
   hero rather than a badge. Letter-spaced to match the eyebrow so the two frame the block. */
.hero-patent {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------------ button */

.button {
  display: inline-block;
  margin-top: 2.25rem;
  background: var(--green);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(46, 204, 113, 0.9);
}

.button:hover {
  background: var(--green-deep);
  color: #ffffff;
}

.button-lg {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  padding: 1.05rem 2.25rem;
}

/* ------------------------------------------------------------------- bands */

.band {
  padding-block: var(--band-y);
}

.band-light {
  background: var(--paper);
}

.band-tint {
  background: var(--paper-tint);
  border-block: 1px solid var(--rule);
}

.band-navy {
  background: var(--navy);
  color: #ffffff;
}

.band-navy h2,
.band-navy h3 {
  color: #ffffff;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.eyebrow-on-navy {
  color: var(--green);
}

.eyebrow-sub {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--ink-faint);
}

.band h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem);
  max-width: 22ch;
}

.section-sub {
  margin-top: 0.9rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.section-sub-on-navy {
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------- the Fortello Difference */

.difference-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.difference-body p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-soft);
}

.pull-quote {
  margin: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 4px solid var(--green);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.advantage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
}

.advantage li {
  border-top: 2px solid var(--rule);
  padding-top: 1.1rem;
}

.numeral {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}

.numbered-label {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
}

/* -------------------------------------------------------------- industries */

/* Four named groups of four, which is Ashley's structure from the revised deck rather than a
   layout decision made here. Sixteen flat pills was the previous version: it worked on a
   desktop and stacked into fifteen rows on a phone, and it lost the grouping she uses to make
   the list scannable. auto-fit rather than a fixed four columns so the row breaks 4 / 2 / 1
   on its own as the viewport narrows -- with a fixed count the last column collapses first
   and the groups stop reading as equals. */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.sector-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sector-list li {
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0313rem);
  color: var(--ink);
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.45;
}

/* A green marker rather than a list bullet: the bullet cannot be coloured independently of
   the text, and these need to read as a set without the text going green. */
.sector-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--green);
}

.sectors-closer {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

/* ----------------------------------------------------- where it supports it */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.col-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tiles {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.tiles li {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.tiles-accent li {
  border-left-color: var(--green);
}

/* ---------------------------------------------------- compliance-first band */

/* Four columns stated explicitly rather than `auto-fit, minmax(...)`. Auto-fit computes
 * against the container's real content width (1120px minus the gutter, so 1024px at desktop)
 * and produced a 3 + 1 orphan row, which reads as a mistake. Four short peer items should
 * break 4 / 2 / 1, and those are the widths where they stop fitting. */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.pillars li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.pillars h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}

.pillars p {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
}

.closer {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.closer-on-navy {
  color: #ffffff;
}

/* ------------------------------------------------------------ why it matters */

.challenge {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.challenge-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

.outcomes li {
  border-top: 2px solid var(--rule);
  padding-top: 1.2rem;
}

.outcomes h3 {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}

.outcomes p {
  margin-top: 0.55rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- CTA */

.band-cta {
  background:
    radial-gradient(100% 140% at 85% 0%, rgba(46, 204, 113, 0.24) 0%, rgba(46, 204, 113, 0) 60%),
    var(--navy-deep);
  color: #ffffff;
}

.cta-inner {
  max-width: 54rem;
}

.cta-line {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 26ch;
}

/* ------------------------------------------------------------------- footer */

.footer {
  background: #0e1735;
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
}

.footer-logo {
  width: clamp(150px, 24vw, 200px);
}

.footer-tagline {
  margin-top: 1.35rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-sub {
  margin-top: 0.3rem;
}

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover {
  color: var(--green);
}

/* ------------------------------------------------------------------ narrow */

@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .difference-body,
  .two-col,
  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .advantage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .advantage li {
    padding-block: 1rem;
  }

  .pull-quote {
    padding-block: 0.75rem;
  }
}

@media (max-width: 560px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .masthead-inner {
    padding-block: 0.9rem;
  }

  .band h2,
  .hero-lede,
  .cta-line {
    max-width: none;
  }

  .button {
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
