/* ============================================================
   Telco 2.0 letter campaign — personal research page
   Alphacomm palette (Sep 2024): AC Blue #0033CC · Dark Blue #041752
   Almost Black #232323 · Golden Yellow #E8CC00 · blue shades.
   Mobile-first: the letter is read at a desk, the link is typed on a phone.
   Fonts are self-hosted (no Google Fonts request from this page).
   ============================================================ */

@font-face { font-family: "Prime"; src: url("/assets/Prime-Regular.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/assets/RedHatText-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/assets/RedHatText-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/assets/RedHatText-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --font-display: "Prime", "Red Hat Text", system-ui, sans-serif;
  --font-body: "Red Hat Text", system-ui, -apple-system, sans-serif;
  --blue: #0033cc;
  --blue-2: #2c50c2;
  --blue-4: #99b2ff;
  --blue-5: #bbccff;
  --blue-6: #dae3ff;
  --navy: #041752;
  --ink: #232323;
  --gold: #e8cc00;
  --grey-1: #505050;
  --grey-2: #767676;
  --grey-4: #e5e5e5;
  --paper: #ffffff;
  --mist: #f4f6fc;
  --ok: #1a7a45;
  --ok-tint: #d5f2e1;
  --miss: #a3262a;
  --miss-tint: #fbe4e4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px -24px rgba(4, 23, 82, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* the hidden attribute must always win over component display rules
   (campaign 1 shipped an empty banner because of exactly this) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- preview bar ---------------- */
.preview-bar {
  background: var(--gold); color: var(--ink); font-size: 0.86rem; font-weight: 600;
  padding: 8px 16px; text-align: center;
}
.preview-bar ul { list-style: none; font-weight: 500; margin-top: 2px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-4);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.nav__brand img { height: 24px; width: auto; }
.nav__links { display: none; gap: 22px; }
.nav__links a { color: var(--grey-1); text-decoration: none; font-weight: 500; font-size: 0.93rem; }
.nav__links a:hover { color: var(--blue); }
@media (min-width: 820px) { .nav__links { display: flex; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body); padding: 15px 22px; border-radius: 999px; border: 0;
  cursor: pointer; text-decoration: none; transition: transform 0.15s var(--ease), background 0.15s;
  min-height: 48px; /* comfortable tap target */
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0029a8; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue-5); }
.btn--ghost:hover { background: var(--blue-6); }
.btn--sm { padding: 10px 16px; font-size: 0.9rem; min-height: 40px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------------- loading / not found ---------------- */
.state { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 16px; text-align: center; color: var(--grey-1); }
.state h1 { color: var(--navy); font-size: 1.8rem; }
.state p { max-width: 460px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--grey-4); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- sections ---------------- */
.section { padding: 56px 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark a:not(.btn) { color: var(--blue-4); }
@media (min-width: 820px) { .section { padding: 84px 0; } }

.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--gold); }
.section h2 { font-size: clamp(1.6rem, 5.4vw, 2.5rem); color: var(--navy); margin-bottom: 14px; }
.section--dark h2 { color: #fff; }
.section__sub { color: var(--grey-1); max-width: 700px; font-size: 1.04rem; }
.section--dark .section__sub { color: rgba(255, 255, 255, 0.78); }
.section__head { margin-bottom: 32px; }

/* ---------------- hero ---------------- */
.hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--mist), var(--paper)); }
@media (min-width: 820px) { .hero { padding: 72px 0 80px; } }
.hero__eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--grey-1); margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); color: var(--navy); max-width: 880px; }
.hero__finding {
  margin-top: 22px; max-width: 760px;
  border-left: 4px solid var(--blue); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px; font-size: 1.12rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow);
}
.hero__checked { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9rem; color: var(--grey-1); }
.hero__checked svg { color: var(--ok); }
.hero__figure {
  margin-top: 26px; display: grid; gap: 4px; max-width: 520px;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px;
}
.hero__figure b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.05; color: var(--gold); }
.hero__figure span { font-weight: 600; }
.hero__figure small { color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; }
.hero__cta { margin-top: 26px; }
.hero__from { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.9rem; color: var(--grey-1); }
.hero__from img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 560px) { .hero__cta .btn { width: 100%; } }

/* ---------------- finding: flow schematic ---------------- */
.block-title { font-size: 1.15rem; color: var(--navy); margin: 0 0 16px; font-family: var(--font-body); font-weight: 600; }
.flow { list-style: none; display: grid; gap: 10px; counter-reset: step; margin-bottom: 40px; }
.flow li {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--blue-5); border-radius: var(--radius-sm);
  padding: 12px 14px; font-weight: 500;
}
.flow li::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-6); color: var(--blue); font-size: 0.85rem; font-weight: 700;
}
.flow li.is-friction { border-color: var(--miss); background: var(--miss-tint); }
.flow li.is-friction::before { background: var(--miss); color: #fff; }
.flow__tag { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--miss); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
@media (min-width: 820px) {
  .flow { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 26px; }
  .flow li { flex-direction: column; align-items: flex-start; min-height: 112px; }
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; right: -20px; top: 50%; width: 14px; height: 14px;
    border-top: 2px solid var(--blue-4); border-right: 2px solid var(--blue-4); transform: translateY(-50%) rotate(45deg);
  }
  .flow__tag { margin-left: 0; margin-top: auto; }
}

/* ---------------- finding: checklist ---------------- */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
  background: #fff; border: 1px solid var(--grey-4); border-radius: var(--radius-sm); padding: 14px;
}
.check__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; grid-row: span 2; }
.check__icon svg { width: 18px; height: 18px; }
.is-present .check__icon { background: var(--ok-tint); color: var(--ok); }
.is-missing .check__icon { background: var(--miss-tint); color: var(--miss); }
.check__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.check__label { font-weight: 600; }
.pill { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.is-present .pill { background: var(--ok-tint); color: var(--ok); }
.is-missing .pill { background: var(--miss-tint); color: var(--miss); }
.check__src { font-size: 0.84rem; color: var(--grey-2); overflow-wrap: anywhere; }
.check__src a { color: var(--grey-1); }

.changed { margin-top: 22px; }
.linkbtn { background: none; border: 0; padding: 6px 0; font: 600 0.95rem var(--font-body); color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mini-form { display: grid; gap: 10px; margin-top: 10px; max-width: 520px; }
.mini-form textarea, .mini-form input {
  width: 100%; font: 1rem var(--font-body); padding: 12px 14px; border: 1.5px solid var(--grey-4); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.mini-form textarea:focus, .mini-form input:focus { outline: 2px solid var(--blue-4); border-color: var(--blue); }
.mini-form textarea { min-height: 90px; resize: vertical; }
.note-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; margin-top: 10px; }
.note-err { color: var(--miss); font-size: 0.9rem; font-weight: 600; }

/* ---------------- calculator ---------------- */
.calc { display: grid; gap: 22px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; } }
.calc__panel { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 20px; }
.field + .field { margin-top: 22px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field output { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); white-space: nowrap; }
.basis { display: inline-block; margin-top: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-4); }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 32px; }
.assume { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.assume p { font-weight: 600; margin-bottom: 8px; }
.assume ul { list-style: none; display: grid; gap: 6px; }
.assume li { display: flex; gap: 8px; align-items: flex-start; color: rgba(255, 255, 255, 0.85); }
.assume li svg { color: var(--gold); margin-top: 3px; }
.assume small { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.65); font-size: 0.86rem; }
.result-main { background: var(--gold); color: var(--ink); border-radius: var(--radius); padding: 20px 22px; }
.result-main span { font-weight: 600; font-size: 0.95rem; }
.result-main b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.1; margin: 4px 0; }
.result-main small { font-size: 0.86rem; color: #3a3a3a; }
.result-grid { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
.result-sm { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-sm); padding: 14px; }
.result-sm span { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
.result-sm b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.result-sm .unit { display: block; font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
.result-main .result-main__share { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.result-year1 { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.88); font-size: 0.93rem; }
.hero__figure .hero__amount { font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.calc__cta { margin-top: 16px; }

/* ---------------- who has solved this ---------------- */
.logos-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 14px; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; align-items: center; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(8, 1fr); } }
/* logos are pre-cleaned (trimmed, one grey) — no filters needed, just one box size */
.logos img { width: 100%; max-width: 132px; height: 38px; object-fit: contain; margin: 0 auto; }
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; color: var(--grey-1); font-size: 0.92rem; }
.certs img { height: 38px; width: auto; }
.cards { display: grid; gap: 12px; margin-top: 34px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--grey-4); border-radius: var(--radius); padding: 18px; }
.card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-6); color: var(--blue); margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.card p { color: var(--grey-1); font-size: 0.95rem; }

/* ---------------- gaps ---------------- */
.gaps { display: grid; gap: 12px; }
@media (min-width: 900px) { .gaps { grid-template-columns: 1.3fr 1fr 1fr; } }
.gap { background: #fff; border: 1px solid var(--grey-4); border-radius: var(--radius); padding: 20px; }
.gap.is-applies { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.gap__tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; background: var(--grey-4); color: var(--grey-1); }
.gap.is-applies .gap__tag { background: var(--blue); color: #fff; }
.gap h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.gap p { color: var(--grey-1); font-size: 0.95rem; }

/* ---------------- talk ---------------- */
.talk { display: grid; gap: 28px; }
@media (min-width: 900px) { .talk { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; } }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--gold); margin-top: 2px; }
.person { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.person__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.person__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blue-6); }
.person__initials { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-display); font-size: 1.6rem; }
.person__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.15; }
.person__role { color: var(--grey-1); font-size: 0.92rem; }
.person__or { margin-top: 16px; font-size: 0.92rem; color: var(--grey-1); }
.person__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.person__phone svg { color: var(--blue); }
.person__lines { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.person__wa { margin-top: 6px; font-size: 0.92rem; font-weight: 700; color: #1a7a45; background: var(--ok-tint, #d5f2e1); padding: 6px 12px; border-radius: 999px; text-decoration: none; }

/* ---------------- handover + privacy ---------------- */
.handover { max-width: 620px; }
.handover h2 { font-size: 1.5rem; }
.privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--grey-4); color: var(--grey-2); font-size: 0.88rem; max-width: 720px; }
.privacy svg { color: var(--grey-2); margin-top: 2px; }

/* ---------------- footer ---------------- */
.footer { background: var(--mist); border-top: 1px solid var(--grey-4); padding: 28px 0 36px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.footer__inner img { height: 22px; width: auto; }
.footer__tag { color: var(--grey-1); font-size: 0.9rem; }
.footer__link { font-weight: 600; font-size: 0.9rem; }

/* ---------------- Calendly modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(4, 23, 82, 0.6); }
.modal.is-open { display: flex; }
.modal__card { position: relative; width: 100%; max-width: 720px; height: min(88vh, 760px); background: #fff; border-radius: var(--radius); overflow: hidden; }
.modal__card iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.modal__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--grey-1); font-weight: 600; }
.modal.is-loaded .modal__loading { display: none; }
body.is-locked { overflow: hidden; }

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