/* FT Consultants
   Layout: a clean "spec sheet" site. Deep process-teal for trust and hygiene, wheat gold for the food itself,
   cool stainless off-white for the ground. Sora for headings, Source Sans 3 for reading, Plex Mono for labels and data. */
:root {
  --teal: #0F4C45;        /* primary: clean room, QA, trust */
  --teal-ink: #0B3A35;
  --grain: #E0A93B;       /* accent: wheat, the product */
  --grain-ink: #8A5D0B;   /* readable gold for text on light */
  --paper: #F5F7F4;       /* stainless off-white ground */
  --surface: #FFFFFF;
  --tint: #E9EFEB;
  --ink: #14211D;
  --muted: #5D6B66;
  --line: #D6DFDA;
  --on-teal: #F5F7F4;
  --danger: #B42318;
  --ok: #1E7A4F;

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 12px;
  --maxw: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #3FA392; --teal-ink: #7FD1C2; --grain: #E8B654; --grain-ink: #E8B654;
    --paper: #0E1513; --surface: #141D1A; --tint: #18231F; --ink: #E8EEEA; --muted: #9AA8A2;
    --line: #26332E; --on-teal: #0E1513; --danger: #F97066; --ok: #4FC08D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal: #3FA392; --teal-ink: #7FD1C2; --grain: #E8B654; --grain-ink: #E8B654;
  --paper: #0E1513; --surface: #141D1A; --tint: #18231F; --ink: #E8EEEA; --muted: #9AA8A2;
  --line: #26332E; --on-teal: #0E1513; --danger: #F97066; --ok: #4FC08D; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--grain); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow, .label {
  font: 500 0.75rem/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grain-ink);
}
.label { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--f-mono); font-size: 0.85rem; color: var(--muted); }
.note { font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 1rem/1 var(--f-display); letter-spacing: -0.01em; text-decoration: none;
  padding: 0.95em 1.4em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: .7em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1.1em 1.4em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.m-tile { fill: #0F4C45; } .m-bar { fill: #F5F7F4; } .m-grain { fill: #E0A93B; }
.brand-text { font: 400 1.2rem/1 var(--f-display); letter-spacing: -0.02em; }
.brand-text b { font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .header-inner .btn { margin-left: auto; } }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 68%, color-mix(in srgb, var(--grain) 45%, transparent) 68%); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.next-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  display: grid; gap: 16px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(15, 76, 69, .35);
}
.next-card h2 { font-size: 1.5rem; }
.spec { display: grid; gap: 0; margin: 0; }
.spec > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.spec dt { font: 500 .75rem/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price { font: 700 2rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.list-price, s[data-list-price] { color: var(--muted); }
.tag { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, var(--grain) 22%, transparent); color: var(--grain-ink); }

.flow-band { margin-top: clamp(40px, 6vw, 72px); background: var(--teal); color: var(--on-teal); padding-block: 22px; }
.flow-title { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.flow-title span { opacity: .75; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.flow li { font: 500 .9rem/1 var(--f-body); display: inline-flex; align-items: center; white-space: nowrap; }
.flow li:not(:last-child)::after { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .45; margin: 0 8px; }
.flow li.ccp { color: var(--grain); font-weight: 600; }
.flow small { font: 600 .62rem/1 var(--f-mono); letter-spacing: .08em; border: 1px solid currentColor; border-radius: 4px; padding: 3px 4px; margin-left: 6px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--tint); }
.section-dark { background: #0B3A35; color: #EAF2EE; }
.section-dark .eyebrow { color: var(--grain); }
.section-dark .section-lede { color: #B9CEC6; }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.sub { margin: 32px 0 14px; font-size: 1rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Gap table */
.gap-table { border-top: 2px solid var(--ink); }
.gap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.gap-row span:first-child { color: var(--muted); }
.gap-row span:last-child { font-weight: 600; font-size: 1.08rem; }
.gap-headrow span { font: 500 .75rem/1.4 var(--f-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; }
.gap-headrow span:last-child { color: var(--grain-ink) !important; }
@media (max-width: 640px) { .gap-row { grid-template-columns: 1fr; gap: 4px; } .gap-headrow { display: none; } .gap-row span:first-child::before { content: "Classroom · "; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; } }

/* Webinar */
.webinar-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.webinar-grid > div { display: grid; gap: 14px; }
.webinar-grid .sub { margin-bottom: 0; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda li { display: grid; grid-template-columns: 3.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.agenda .t { font: 500 .9rem/1.6 var(--f-mono); color: var(--teal); font-variant-numeric: tabular-nums; }
.agenda b { font-family: var(--f-display); font-weight: 600; }
.agenda p { color: var(--muted); font-size: .98rem; margin-top: 2px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: sticky; top: 90px; }
.facts .sub { margin-top: 24px; }
.spec-lg dd { font-size: 1.02rem; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--teal); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: "Step " counter(s); font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grain-ink); }
.steps b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Sectors */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.sectors li { background: #0B3A35; padding: 22px 20px; display: grid; gap: 10px; align-content: start; min-height: 132px; }
.sectors .no { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; color: #8FB3A9; }
.sectors .name { font: 600 1.05rem/1.3 var(--f-display); color: #F2F6F3; }
.sectors .state { font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; justify-self: start; padding: 5px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.22); color: #B9CEC6; }
.sectors li.live { background: #E0A93B !important; }
.sectors li.live .no, .sectors li.live .name { color: #1C1606; }
.sectors li.live .state { background: #1C1606; color: #E0A93B; border-color: #1C1606; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sectors li { min-height: 112px; padding: 16px; } }

/* Trainer */
.trainer { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center; max-width: 900px; }
.trainer > div { display: grid; gap: 12px; }
.avatar { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--teal); font: 600 2.6rem/1 var(--f-display); border: 1px solid var(--line); }
.role { font: 500 .85rem/1.5 var(--f-mono); color: var(--muted); }
@media (max-width: 600px) { .trainer { grid-template-columns: 1fr; gap: 20px; } .avatar { width: 96px; height: 96px; font-size: 1.6rem; } }

/* Registration */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.reg-main { display: grid; gap: 14px; min-width: 0; }
.demo-banner { font: 500 .85rem/1.5 var(--f-mono); background: color-mix(in srgb, var(--grain) 18%, transparent); color: var(--grain-ink); padding: 10px 14px; border-radius: 8px; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; margin-top: 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: span 2; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field i { color: var(--danger); font-style: normal; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent); }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--tint); font-family: var(--f-mono); font-size: .9rem; color: var(--muted); }
.prefix input { border-radius: 0 10px 10px 0; }
.invalid input, .invalid select, .invalid .prefix span, input.invalid { border-color: var(--danger) !important; }
.field .err { color: var(--danger); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; cursor: pointer; user-select: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal-ink); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--grain); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.form-error { color: var(--danger); font-weight: 600; }
.secure { text-align: center; font-size: .85rem; color: var(--muted); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 12px; position: sticky; top: 90px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.sum-line.total { font: 700 1.25rem/1.2 var(--f-display); border-top: 2px solid var(--ink); }

.result { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 28px; display: grid; gap: 12px; justify-items: center; text-align: center; margin-top: 10px; }
.result-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 1.6rem/1 var(--f-display); }
.result.ok .result-icon { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.result.fail .result-icon { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.result.wait .result-icon { background: var(--tint); color: var(--teal); }

@media (max-width: 900px) {
  .hero-grid, .webinar-grid, .reg-grid { grid-template-columns: 1fr; }
  .facts, .summary { position: static; }
  .summary { order: -1; }
}

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.08rem/1.4 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-top: 10px; max-width: 42em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 24px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-grid > div { display: grid; gap: 10px; align-content: start; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--teal); }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
