/* IDA Partner Program landing, styled after idaoffice.org.
   Tokens, buttons, header and footer follow the live site (taken from FastIDP AAA/prototype/styles.css). */

@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Roboto"), local("Roboto Regular"), url("assets/fonts/Roboto-Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap;
  src: local("Roboto Medium"), url("assets/fonts/Roboto-Medium.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Roboto Bold"), url("assets/fonts/Roboto-Bold.woff2") format("woff2"); }

:root {
  --red: #e0162b;
  --red-hover: #ef2237;
  --red-active: #cd0a1e;
  --navy: #1d305e;
  --blue: #0052a5;
  --muted: #5d6d93;
  --page: #eaf0f6;
  --card: #f5f7fb;
  --hero: #f5f8fb;
  --white: #fff;
  --line: #d1d6e3;
  --line-strong: #c8d1e6;
  --focus: #006fe0;
  --tp: #00b67a;
  --radius: 8px;
  --radius-btn: 5px;
  --shadow: 0 2px 4px rgba(0, 82, 165, .05), 0 8px 24px rgba(29, 48, 94, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Roboto", Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; color: var(--navy); background: var(--page); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.red { color: var(--red); }
.center { text-align: center; }

/* ---------- Buttons (as on idaoffice.org) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 10px 24px; border-radius: var(--radius-btn); border: 0; cursor: pointer;
  font: 700 14px/20px "Roboto", Arial, sans-serif; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
}
.button--red { background: var(--red); color: var(--white); box-shadow: 0 2px 1px rgba(242, 68, 85, .21); }
.button--red:hover { background: var(--red-hover); color: var(--white); }
.button--red:active { background: var(--red-active); box-shadow: none; }
.button--ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.button--ghost:hover { background: var(--blue); color: var(--white); }
.button--lg { min-height: 48px; padding: 14px 32px; font-size: 15px; }
.button--block { width: 100%; }
.button[disabled] { background: #8d9ab9; box-shadow: none; cursor: wait; }
.link-arrow { font-weight: 500; color: var(--blue); text-decoration: none; }
.link-arrow:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 20; }
.header__top { background: var(--page); }
.header__top-row { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__caption { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; }
.header__caption-sub { color: var(--red); }
.header__contacts { display: flex; gap: 22px; font-size: 13px; }
.header__contacts a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; }
.header__contacts a:hover { color: var(--red); }
.header__contacts svg { width: 15px; height: 15px; color: var(--blue); }
.header__main { background: var(--white); box-shadow: 0 2px 4px rgba(0, 82, 165, .05); }
.header__main-row { height: 80px; display: flex; align-items: center; gap: 32px; }
.header__logo img { width: 40px; height: 40px; }
.header__nav { flex: 1; display: flex; justify-content: center; gap: 48px; }
.header__nav a { color: var(--blue); text-decoration: none; font-weight: 700; font-size: 15px; text-transform: uppercase; transition: color .3s ease-in-out; }
.header__nav a:hover { color: var(--red); }
.header__cta { min-width: 180px; }
section[id] { scroll-margin-top: 124px; }

/* ---------- Section titles (centred, 4px red underline) ---------- */
.section { padding: 64px 0; }
.section--tight { padding-top: 0; }
.section--white { background: var(--white); }
.section-head { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.title { font-size: 30px; line-height: 1.3; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.title::after { content: ""; display: block; width: 100px; height: 4px; background: var(--red); margin: 20px auto 0; }
.title--left { text-align: left; }
.title--left::after { margin-left: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); padding: 40px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.tp-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 32px; color: #191919; text-decoration: none; font-size: 15px; }
.tp-line:hover { color: #191919; }
.tp-line__count { text-decoration: underline; text-underline-offset: 2px; font-size: 14px; }
.tp-logo { font-weight: 700; color: #191919; display: inline-flex; align-items: center; gap: 2px; }
.tp-logo i { color: var(--tp); font-style: normal; font-size: 1.25em; line-height: 1; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars i { width: 18px; height: 18px; display: grid; place-items: center; background: var(--tp); color: #fff; font-style: normal; font-size: 13px; line-height: 1; }
.tp-stars i.half { background: linear-gradient(90deg, var(--tp) 50%, #dcdce6 50%); }
.tp-stars--lg i { width: 26px; height: 26px; font-size: 18px; }
.hero__title { margin: 0 0 24px; }
.hero__title span { display: block; }
.hero__pre { font-size: 24px; line-height: 1.35; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.hero__main { font-size: 40px; line-height: 1.25; font-weight: 700; color: var(--red); }
.hero__post { font-size: 24px; line-height: 1.35; font-weight: 700; color: var(--navy); margin-top: 14px; }
.hero__lead { font-size: 18px; max-width: 600px; margin-bottom: 28px; }
.hero__lead b { color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 500; font-size: 15px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 20px; height: 20px; color: var(--red); flex: 0 0 20px; }
.ticks--col { flex-direction: column; margin-bottom: 28px; }
.hero__visual { margin: 0; text-align: center; }
.hero__visual img { width: 100%; max-width: 560px; margin: 0 auto; }
.hero__visual figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Facts band ---------- */
.facts { background: var(--white); border-top: 1px solid #e3e9f2; border-bottom: 1px solid #e3e9f2; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-size: 36px; line-height: 1; color: var(--red); white-space: nowrap; }
.fact span { font-size: 14px; font-weight: 500; line-height: 1.35; }

/* ---------- Benefits (white cards, blue icons, like /agent/register/) ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px; }
.benefit__icon { width: 64px; height: 64px; color: var(--blue); margin-bottom: 22px; }
.benefit h3 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.benefit p { font-size: 15px; margin: 0; }

/* ---------- Cards with left titles ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 64px; }
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.product__text p { font-size: 17px; }
.product__img { width: 100%; border-radius: var(--radius); }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.case__img { width: 100%; height: 210px; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.case__body { padding: 8px 32px 30px; display: flex; flex-direction: column; flex: 1; }
.case__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.case__meta span:last-child { color: var(--muted); }
.case__num { font-size: 52px; line-height: 1; font-weight: 700; color: var(--navy); margin: 18px 0 14px; }
.case__num small { font-size: 20px; font-weight: 500; color: var(--red); }
.case__body > p:not(.case__num) { font-size: 15px; }
.case__body b { color: var(--navy); }
.case__body .link-arrow { margin-top: auto; padding-top: 6px; }
.source { font-size: 13px; color: var(--muted); margin: 24px 0 0; text-align: center; }

/* ---------- Steps (big red numbers, like "Requirements" on /agent/register/) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps__n { font-size: 56px; line-height: .9; font-weight: 700; color: var(--red); }
.steps h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.audience__text p { font-size: 17px; margin-bottom: 26px; }
.audience__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.audience__list li { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 20px; font-weight: 700; font-size: 16px; line-height: 1.35; }
.audience__list svg { width: 40px; height: 40px; flex: 0 0 40px; color: var(--blue); }

/* ---------- Reviews ---------- */
.tp-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; font-size: 18px; color: #191919; }
.tp-summary > b { font-size: 22px; color: var(--navy); }
.tp-summary .tp-logo { font-size: 20px; }
.reviews { columns: 3; column-gap: 20px; margin-bottom: 32px; }
.review { break-inside: avoid; display: block; background: var(--card); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 20px; }
.review header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review header b { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.review header small { display: block; color: var(--muted); font-size: 13px; }
.av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #1b2333; background: #d4f7d4; }
.av--lime { background: #e9f8c9; } .av--lav { background: #e8e6fb; } .av--peach { background: #fde5d4; }
.review__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.review__meta time { margin-left: auto; color: var(--muted); }
.verified { color: #2f7d32; }
.review h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.review p { font-size: 14px; margin: 0; color: #33405f; }

/* ---------- Apply ---------- */
.apply__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.apply__text { position: sticky; top: 148px; }
.apply__text > p { font-size: 17px; }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 20px; }
.contact-card p { font-weight: 700; margin-bottom: 10px; }
.contact-card a { display: flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; padding: 4px 0; }
.contact-card svg { width: 20px; height: 20px; color: var(--red); flex: 0 0 20px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 4px; padding: 14px 18px; font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; color: var(--navy); }
.notice p { margin: 0; }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; }
.form-card h2 { font-size: 28px; line-height: 1.3; text-align: center; margin-bottom: 6px; }
.form-card__sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.form-card label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-card input:not([type=checkbox]), .form-card select, .form-card textarea {
  display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 10px 14px; min-height: 42px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: var(--white);
  font: 400 15px/1.4 "Roboto", Arial, sans-serif; color: var(--navy);
}
.form-card ::placeholder { color: #8a97b5; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 111, 224, .15); }
.form-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; }
.form-card .check input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--red); }
.hp { position: absolute; left: -99999px; }
#formStatus { margin-top: 14px; font-size: 14px; }
#formStatus.ok { color: #11764a; }
#formStatus.error { color: var(--red); }
.form-card__note { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Footer (as on idaoffice.org) ---------- */
.footer { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.footer__bg { position: absolute; inset: 0; pointer-events: none; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; }
.footer__top, .footer__bottom { position: relative; }
.footer__top { padding: 44px 0 36px; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 28px; }
.footer__brand { display: flex; align-items: center; align-self: start; gap: 14px; }
.footer__brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 3px; }
.footer__brand p { margin: 0; font-size: 14px; line-height: 1.45; text-transform: uppercase; }
.footer__caption { position: relative; margin: 0 0 16px; padding-bottom: 12px; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.footer__caption::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; border-bottom: 2px solid var(--red); }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--white); text-decoration: none; transition: color .3s ease-in-out; }
.footer a:hover { color: #8fb8ff; }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__contact svg { width: 15px; height: 15px; color: var(--red); flex: 0 0 15px; }
.footer__bottom { background: rgba(0, 0, 0, .22); padding: 20px 0; }
.footer__bottom p { margin: 0; font-size: 12.5px; color: #c9d3ea; }
.footer__linkbtn { padding: 0; border: 0; background: none; color: var(--white); font: inherit; cursor: pointer; transition: color .3s ease-in-out; }
.footer__linkbtn:hover { color: #8fb8ff; }

/* ---------- Cookie banner (consent.js) ---------- */
.cookie {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; padding: 18px 24px;
  background: var(--white); border-top: 4px solid var(--red); border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(29, 48, 94, .24);
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.55; }
.cookie__actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie__actions .button { min-width: 124px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__nav { gap: 28px; }
  .header__nav a { font-size: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 2; }
  .card { padding: 40px; }
}
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__main-row { justify-content: space-between; height: 68px; }
  .hero__grid, .product, .audience, .apply__grid { grid-template-columns: 1fr; gap: 32px; }
  .apply__text { position: static; }
  .hero__visual img { max-width: 440px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .benefits { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  section[id] { scroll-margin-top: 112px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header__top-row { height: 36px; }
  .header__caption { font-size: 12px; }
  .header__caption-sub, .header__contacts a:first-child { display: none; }
  .header__main-row { height: 60px; gap: 12px; }
  .header__cta { min-width: 0; padding: 10px 14px; font-size: 13px; }
  .section { padding: 44px 0; }
  .section--tight { padding-top: 0; }
  .title { font-size: 24px; }
  .hero { padding: 28px 0 36px; }
  .tp-line { margin-bottom: 22px; font-size: 14px; }
  .hero__pre, .hero__post { font-size: 19px; }
  .hero__main { font-size: 30px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .button { width: 100%; }
  .ticks { flex-direction: column; }
  .fact { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 12px; }
  .fact b { font-size: 30px; }
  .fact span { font-size: 13px; }
  .card { padding: 28px 20px; }
  .cases { grid-template-columns: 1fr; }
  .case__img { height: 180px; }
  .case__body { padding: 6px 20px 24px; }
  .case__num { font-size: 44px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps__n { font-size: 44px; min-width: 40px; }
  .audience__list { grid-template-columns: 1fr; }
  .reviews { columns: 1; }
  .tp-summary { font-size: 16px; }
  .form-card { padding: 26px 18px; }
  .form-card h2 { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .cookie { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie__actions .button { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
