/* ============================================================
   Alphacomm × Tony's — landing page
   Brand palette (Alphacomm colors, Sep 2024):
   AC Blue #0033CC · Almost Black #232323 · White #FFFFFF
   Golden Yellow #E8CC00 · Dark Blue #041752
   Blue shades #2C50C2 #5980F8 #99B2FF #BBCCFF #DAE3FF
   Accents (tints) #D5F2E1 #EEE5FF #CFE8F6 · Greys #505050…#E5E5E5
   ============================================================ */

/* Alphacomm's real brand fonts: Prime (display) + Red Hat Text (body) */
@font-face {
  font-family: "Prime";
  src: url("assets/Prime-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prime";
  src: url("assets/Prime-Regular.ttf") format("truetype");
  font-weight: 400 900; /* Prime ships one upright; let it cover the bold range */
  font-style: normal;
  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;
  --ac-blue: #0033cc;
  --ac-blue-2: #2c50c2;
  --ac-blue-3: #5980f8;
  --ac-blue-4: #99b2ff;
  --ac-blue-5: #bbccff;
  --ac-blue-6: #dae3ff;
  --dark-blue: #041752;
  --black: #232323;
  --gold: #e8cc00;
  --green-tint: #d5f2e1;
  --purple-tint: #eee5ff;
  --blue-tint: #cfe8f6;
  --grey-1: #505050;
  --grey-2: #8c8c8c;
  --grey-4: #e5e5e5;

  /* warm chocolate accents — the "playful" layer */
  --cream: #fbf6ee;
  --cocoa: #4a2c1a;
  --cocoa-mid: #7a4a2b;
  --milk: #d9433b;     /* Tony's milk wrapper red */
  --oat: #f3c14b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(4, 23, 82, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(4, 23, 82, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wrap { width: min(1140px, 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

em { font-style: normal; color: var(--ac-blue); font-weight: 600; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 35, 35, 0.07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; font-size: 1.05rem; }
.brand__logo { height: 26px; width: auto; display: block; }
.brand__x { color: var(--grey-2); font-weight: 500; }
.brand__tony {
  font-family: var(--font-display); font-weight: 700; color: var(--milk);
  transform: rotate(-3deg); font-size: 1.15rem;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-weight: 500; font-size: 0.93rem; color: var(--grey-1); transition: color 0.15s; }
.nav__links a:hover { color: var(--ac-blue); }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.97rem; font-family: inherit;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--ac-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0029a8; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(232, 204, 0, 0.9); }
.btn--choc { background: var(--cocoa); color: #fff; }
.btn--choc:hover { background: #3a2114; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(74, 44, 26, 0.95); }
.btn--ghost {
  background: transparent; color: var(--ac-blue);
  box-shadow: inset 0 0 0 1.5px var(--ac-blue-5);
}
.btn--ghost:hover { background: var(--ac-blue-6); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--lg { padding: 17px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link {
  background: none; border: 0; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--grey-1); cursor: pointer; padding: 6px 2px; transition: color 0.15s;
}
.link:hover { color: var(--ac-blue); }
.link--danger:hover { color: var(--milk); }

/* ============================ HERO ============================ */
.hero { position: relative; padding: clamp(54px, 9vw, 110px) 0 clamp(56px, 9vw, 120px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(820px 460px at 92% -10%, var(--blue-tint), transparent 60%),
    radial-gradient(680px 460px at -8% 10%, var(--purple-tint), transparent 55%),
    radial-gradient(560px 400px at 70% 130%, var(--green-tint), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }

/* big, prominent greeting — the prospect sees themselves first */
.hero__hi {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--ac-blue);
  margin-bottom: 14px; line-height: 1.1;
}
.hero__title { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 900; max-width: 18ch; }
.hero__title .hl { color: var(--ac-blue); position: relative; white-space: nowrap; }
.hero__title .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6%; height: 0.3em;
  background: var(--gold); z-index: -1; border-radius: 4px; transform: rotate(-1.2deg);
}
.hero__sub {
  margin: 22px 0 8px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--black); max-width: 30em;
}
.hero__sub strong { color: var(--ac-blue); }
.hero__lead {
  margin: 0 0 32px; font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--grey-1); max-width: 34em;
}
.hero__lead strong { color: var(--black); }
.hero__link { color: var(--ac-blue); font-weight: 700; white-space: nowrap; }
.hero__link:hover { text-decoration: underline; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================ SECTIONS ============================ */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--dark { background: var(--dark-blue); color: #fff; }
.section--book { background: linear-gradient(160deg, var(--ac-blue-6), var(--cream)); }

.section__head { max-width: 36em; margin-bottom: 44px; }
.eyebrow { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ac-blue); margin-bottom: 14px; }
.eyebrow--gold { color: var(--gold); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; }
.section__head--light h2 { color: #fff; }
.section__sub { margin-top: 16px; color: var(--grey-1); font-size: 1.08rem; }
.section--dark .section__sub { color: var(--ac-blue-5); }

/* ============================ SUBSCRIPTION ============================ */
/* foldout: collapsed by default, the CTA opens/closes it */
.sub-fold__toggle { margin-top: 24px; min-width: 300px; }
.sub-fold .sub { display: none; }
.sub-fold.is-open .sub { display: grid; animation: foldIn 0.35s var(--ease); }
@keyframes foldIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.sub { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 28px; align-items: start; margin-top: 8px; }
.sub__cards { display: grid; gap: 16px; }

.choc {
  position: relative; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: var(--radius); border: 2px solid var(--grey-4);
  background: #fff; font-family: inherit; transition: all 0.2s var(--ease);
}
.choc:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--ac-blue-5); }
.choc.is-active { border-color: var(--ac-blue); box-shadow: var(--shadow-sm); }
.choc__bar {
  width: 64px; height: 64px; border-radius: 12px; position: relative; overflow: hidden;
  background-size: 16px 16px; box-shadow: inset 0 0 0 3px rgba(0,0,0,0.08);
}
.choc--classic .choc__bar { background:
  repeating-linear-gradient(45deg, var(--milk) 0 8px, #c23a33 8px 16px); }
.choc--mix .choc__bar { background:
  repeating-linear-gradient(45deg, #d9433b 0 8px, #e8cc00 8px 16px, #2c50c2 16px 24px, #4a2c1a 24px 32px); }
.choc--caramel .choc__bar { background:
  repeating-linear-gradient(45deg, #c98a3b 0 8px, #b3742a 8px 16px); }
.choc--seasalt .choc__bar { background:
  repeating-linear-gradient(45deg, #6fb0cf 0 8px, #5798bb 8px 16px); }
.choc--pure .choc__bar { background:
  repeating-linear-gradient(45deg, #2a1810 0 8px, #3d2517 8px 16px); }
.choc__name { font-weight: 800; font-size: 1.1rem; grid-column: 2; }
.choc__desc { grid-column: 2; font-size: 0.9rem; color: var(--grey-1); }
.choc__pick {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  font-weight: 700; font-size: 0.85rem; color: var(--grey-2);
  padding: 7px 14px; border-radius: 999px; background: var(--grey-4); transition: all 0.2s;
}
.choc.is-active .choc__pick { background: var(--ac-blue); color: #fff; }

/* Subscription panel */
.sub__panel {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  position: sticky; top: 88px;
}
.panel__status { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.badge { font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge--active { background: var(--green-tint); color: #1a7a45; }
.badge--paused { background: var(--gold); color: var(--black); }
.badge--cancelled { background: #ffd9d6; color: #b3261e; }
.panel__label { font-size: 0.82rem; color: var(--grey-1); }
.panel__label code { font-weight: 700; color: var(--black); background: var(--grey-4); padding: 2px 7px; border-radius: 6px; }

.panel__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--grey-4); font-size: 0.95rem; }
.panel__row span { color: var(--grey-1); }
.panel__row b { font-weight: 700; }
.panel__actions { margin-top: 22px; display: grid; gap: 14px; }
.panel__minor { display: flex; align-items: center; justify-content: space-between; }

/* hand over to the right person */
.panel__transfer {
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--grey-4);
  display: grid; gap: 10px;
}
.panel__transfer-q { font-weight: 700; font-size: 1rem; }
.panel__transfer-sub { font-size: 0.86rem; color: var(--grey-1); margin-bottom: 2px; }
.panel__input {
  width: 100%; font-family: inherit; font-size: 0.92rem; padding: 11px 13px;
  border: 1.5px solid var(--grey-4); border-radius: 10px; color: var(--black);
}
.panel__input:focus { outline: none; border-color: var(--ac-blue); }

.panel__note { margin-top: 18px; font-size: 0.82rem; color: var(--grey-2); line-height: 1.5; }

/* ============================ CALCULATOR ============================ */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc__inputs {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px;
}
.field { margin-bottom: 22px; }
.field label {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 0.92rem; color: var(--ac-blue-5); margin-bottom: 10px;
}
.field output { font-weight: 800; font-size: 1.05rem; color: #fff; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.18); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 4px 10px -2px rgba(0,0,0,0.5), 0 0 0 4px rgba(232,204,0,0.22);
  transition: transform 0.12s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--gold);
}
.calc__disclaimer { font-size: 0.8rem; color: var(--ac-blue-4); margin-top: 6px; line-height: 1.5; }

.calc__outputs { display: grid; gap: 16px; }
.result {
  background: #fff; color: var(--black); border-radius: var(--radius); padding: 22px 24px;
  display: grid; gap: 4px;
}
.result--hero {
  background: linear-gradient(150deg, var(--ac-blue), var(--ac-blue-2)); color: #fff;
  padding: 30px 28px; box-shadow: 0 20px 50px -20px rgba(0, 51, 204, 0.7);
}
.result__label { font-size: 0.85rem; font-weight: 600; color: var(--grey-1); text-transform: uppercase; letter-spacing: 0.05em; }
.result--hero .result__label { color: var(--ac-blue-5); }
.result__value { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.result--hero .result__value { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.result__hint { font-size: 0.82rem; color: var(--grey-2); }
.result--hero .result__hint { color: var(--ac-blue-5); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* the advantage + showcase */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-bottom: 30px; }
.why__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__item {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 20px;
}
.why__item b { display: block; font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.why__item span { font-size: 0.9rem; color: var(--ac-blue-5); }
.why__showcase {
  background: linear-gradient(150deg, var(--gold), #cdb400); color: var(--black);
  border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
}
.why__showcase-lbl { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.why__stats { display: grid; gap: 8px; }
.why__stats span { font-size: 0.98rem; font-weight: 600; }
.why__stats b { font-weight: 900; font-size: 1.15rem; }
.why__stats i { font-style: normal; opacity: 0.7; font-weight: 500; }

/* fixed-assumptions card inside the calculator inputs */
.calc__assumptions {
  margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px;
}
.calc__assumptions-h { font-size: 0.86rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.calc__assumptions ul { list-style: none; display: grid; gap: 7px; margin-bottom: 12px; }
.calc__assumptions li { font-size: 0.92rem; color: var(--ac-blue-5); padding-left: 22px; position: relative; }
.calc__assumptions li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.calc__assumptions li b { color: #fff; font-weight: 800; }
.calc__assumptions-note { font-size: 0.78rem; color: var(--ac-blue-4); line-height: 1.5; }

/* ============================ HOOKS ============================ */
.hooks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hook {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--ac-blue); transition: transform 0.2s var(--ease);
}
.hook:nth-child(2) { border-top-color: var(--gold); }
.hook:nth-child(3) { border-top-color: var(--milk); }
.hook:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hook__num { font-weight: 900; font-size: 2rem; color: var(--grey-4); }
.hook h3 { font-size: 1.25rem; font-weight: 800; margin: 6px 0 10px; }
.hook p { color: var(--grey-1); font-size: 0.96rem; }

/* ============================ WHO WE ARE / LOGOS ============================ */
.logos__label { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--grey-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 26px; }
.logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 40px; align-items: center;
  padding: 8px 0;
}
.logos img {
  max-height: 40px; max-width: 150px; width: auto; margin: 0 auto; display: block;
  filter: grayscale(1); opacity: 0.65; transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}
.logos img:hover { filter: grayscale(0); opacity: 1; }
.certs {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--grey-4);
  color: var(--grey-1); font-size: 0.88rem;
}
.certs img { height: 44px; width: auto; }

/* ============================ EXPERTISE / WHY US ============================ */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.expertise-grid article {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px; transition: transform 0.2s var(--ease), background 0.2s;
}
.expertise-grid article:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); }
.exp__icon { font-size: 1.9rem; line-height: 1; }
.expertise-grid h3 { font-size: 1.22rem; font-weight: 800; color: #fff; margin: 12px 0 8px; }
.expertise-grid p { color: var(--ac-blue-5); font-size: 0.96rem; }
.expertise-grid p b { color: var(--gold); }
.expertise-grid em { color: #fff; }

/* ============================ BOOK ============================ */
.book { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.book__list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.book__list li { font-weight: 600; color: var(--grey-1); }
.book__cta { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; }
.book__fine { margin-top: 14px; font-size: 0.8rem; color: var(--grey-2); }

/* ============================ FOOTER ============================ */
.footer { background: var(--black); color: #fff; padding: 50px 0; }
.footer__inner { display: grid; gap: 14px; }
.brand--footer .brand__logo { height: 28px; filter: brightness(0) invert(1); }
.footer__note { color: var(--grey-2); max-width: 50em; font-size: 0.95rem; }
.footer__legal { color: var(--grey-1); font-size: 0.82rem; }

/* ============================ TOAST + CONFETTI ============================ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 140%);
  background: var(--black); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow); z-index: 100;
  transition: transform 0.4s var(--ease); display: flex; align-items: center; gap: 10px; max-width: 90vw;
}
.toast.is-show { transform: translate(-50%, 0); }
.toast.is-danger { background: var(--milk); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 880px) {
  .nav__links a:not(.btn) { display: none; }
  .sub { grid-template-columns: 1fr; }
  .sub__panel { position: static; }
  .calc { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .hooks { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
  .choc { grid-template-columns: 52px 1fr; }
  .choc__pick { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 4px; }
}
