/* Fommec — AL Form webinar landing page
   Palette derived from the Fommec logo (#D98C00) and the JSPM deck.
   Contrast rules baked in:
     - white on #D98C00 = 2.56:1 -> FAILS AA, so CTA labels are ink on amber
     - #D98C00 text on white = 2.56:1 -> FAILS AA, so amber text uses --brand-ink (5.7:1)
*/

:root {
  --brand:      #D98C00;
  --brand-dark: #B87500;
  --brand-ink:  #8F5B00;
  --brand-wash: #FDF6E8;

  --ink:    #141F30;
  --slate:  #434E5C;
  --muted:  #6E7883;
  --mist:   #F4F6F8;
  --line:   #E1E6EA;
  --white:  #FFFFFF;

  --success: #2D7D5A;
  --error:   #B3261E;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 31, 48, .06), 0 12px 32px rgba(20, 31, 48, .10);
  --wrap: 1200px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */

.topbar { border-bottom: 1px solid var(--line); background: var(--white); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px; flex-wrap: wrap;
}
.logo { width: 168px; height: auto; }
.logo--sm { width: 132px; }

.topbar__tag {
  font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: var(--brand-wash); border: 1px solid #F0DCB4;
  padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 140, 0, .22);
}

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

.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(217, 140, 0, .10), transparent 62%),
    linear-gradient(180deg, var(--mist), var(--white) 62%);
  padding-block: 44px 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 14px;
}

h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  margin-bottom: 18px;
}
.hl {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, rgba(217, 140, 0, .30) 62%);
  padding-inline: 2px;
}

.lede { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--slate); max-width: 62ch; }

/* date / time strip */
.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 28px;
}
.meta__item { background: var(--white); padding: 14px 16px; display: grid; gap: 3px; }
.meta__k {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.meta__v { font-size: 15.5px; font-weight: 700; color: var(--ink); }

.sect {
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.sect--center { text-align: center; border-bottom: 0; }

/* checklist */
.ticks {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
}
.ticks li {
  position: relative; padding-left: 30px; font-size: 15.5px; color: var(--slate);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 5.7a1 1 0 0 1 0 1.4l-9.6 9.6a1 1 0 0 1-1.4 0l-4.6-4.6a1 1 0 1 1 1.4-1.4l3.9 3.9 8.9-8.9a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 5.7a1 1 0 0 1 0 1.4l-9.6 9.6a1 1 0 0 1-1.4 0l-4.6-4.6a1 1 0 1 1 1.4-1.4l3.9 3.9 8.9-8.9a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pills { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- industry expert card ---------- */

.expert {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin: 0 0 28px;
}
.expert__photo {
  width: 124px; height: 124px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  /* The source is a cut-out with transparency: contain keeps the whole subject in
     frame (cover clipped it), and the wash fills the space the alpha leaves. */
  object-fit: contain;
  background: var(--brand-wash);
  border: 2px solid var(--brand); display: block;
}
.expert__name { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.expert__role { margin: 2px 0 8px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.expert__bio { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--slate); }

@media (max-width: 480px) {
  .expert { flex-direction: column; text-align: center; }
}

.host { font-size: 14.5px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- form card ---------- */

.formcol { position: sticky; top: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
}

.card__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.card__sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.card__sub strong { color: var(--brand-ink); }

.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.req { color: var(--brand-ink); }

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236E7883'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 36px; }

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 140, 0, .30);
}

input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; font-weight: 400; color: var(--slate);
  margin-block: 12px; cursor: pointer;
}
.check input {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none;
  accent-color: var(--brand); cursor: pointer;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { margin-block: 14px; min-height: 0; }

.btn {
  display: block; width: 100%;
  font: inherit; font-size: 17px; font-weight: 800;
  color: var(--ink);                 /* ink on amber = 6.83:1 */
  background: var(--brand);
  border: 0; border-radius: var(--radius-sm);
  padding: 15px 20px; min-height: 52px;
  cursor: pointer;
  transition: background .15s, transform .05s;
  text-align: center; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn--ghost {
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink); margin-top: 4px;
}
.btn--ghost:hover { background: var(--mist); }

.err { color: var(--error); font-size: 13px; margin-top: 5px; min-height: 0; }
.err:empty { display: none; }
.err--form { margin-top: 12px; text-align: center; font-weight: 600; }

.finep { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 14px; }

/* success panel */
.card--done { text-align: center; border-top-color: var(--success); }
.done__mark {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--success); color: var(--white);
  font-size: 28px; line-height: 54px; font-weight: 700;
}
.done__meta { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0; text-align: left; }
.done__meta > div { background: var(--white); padding: 11px 14px; display: flex; justify-content: space-between; gap: 12px; }
.done__meta dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.done__meta dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* ---------- faq ---------- */

.faq { padding-block: 56px 64px; border-top: 1px solid var(--line); background: var(--white); }
.faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.faq__item { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.faq__item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq__item p { font-size: 14.5px; }

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

.foot { background: var(--ink); color: #AAB4BC; padding-block: 36px; }
.foot__inner { display: grid; gap: 12px; justify-items: center; text-align: center; }
.foot p { font-size: 14px; }
.foot__fine { font-size: 12.5px; color: #828C96; max-width: 62ch; }
.foot .logo { filter: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .formcol { position: static; order: -1; }   /* form first on mobile: QR traffic arrives with intent */
  .ticks { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-block: 28px 40px; }
  .card { padding: 22px 18px 20px; }
  .row { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
}

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

/* ---------- dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ink:   #F2F5F8;
    --slate: #C3CAD2;
    --muted: #8F9AA5;
    --line:  #2A3444;
    --mist:  #161E2B;
    --white: #0F1620;
    --brand-ink:  #F0A828;   /* light amber for text on dark = 7.4:1 */
    --brand-wash: #241B0A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
  body { background: #0B111A; }
  /* --line at 1.45:1 vs the card is fine for hairline dividers but leaves form
     fields invisible — inputs get a stronger border (≥3:1 vs #0F1620). */
  input[type="text"], input[type="email"], input[type="tel"], select {
    border-color: #57647A;
  }
  .hero {
    background:
      radial-gradient(900px 420px at 88% -10%, rgba(217, 140, 0, .12), transparent 62%),
      linear-gradient(180deg, var(--mist), #0B111A 62%);
  }
  .topbar, .faq, .card, .meta__item, .done__meta > div, .pills li { background: var(--white); }
  .topbar { border-bottom-color: var(--line); }
  .topbar__tag { border-color: #4A3A18; }
  .btn { color: #141F30; }              /* keep ink label on amber in dark too */
  .btn--ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
  .foot { background: #070C13; }
  .hl { background: linear-gradient(180deg, transparent 62%, rgba(217, 140, 0, .34) 62%); }
  select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238F9AA5'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); }
}
