/* ==========================================================================
   Front Office Genie — Design System v2
   Navy & gold, warm paper surfaces. Drawn from the brand mark.
   Type: Fraunces (display) + Inter (text). Mobile-first.
   ========================================================================== */

/* Self-hosted variable fonts (no third-party requests) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-latin-full-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-standard-normal.woff2') format('woff2-variations');
}

:root {
  /* Surfaces */
  --paper:      #faf8f4;   /* page — warm off-white */
  --paper-deep: #f3efe7;   /* alternating sections */
  --card:       #ffffff;
  --ink-panel:  #122740;   /* dark navy panels / footer */
  --line:       rgba(18, 39, 64, 0.10);
  --line-strong:rgba(18, 39, 64, 0.20);

  /* Text */
  --ink:       #16283f;
  --ink-muted: #4a5a6e;
  --ink-soft:  #6e7d8f;
  --ink-inv:   #f4f6f9;    /* text on navy */
  --ink-inv-muted: #b7c4d4;

  /* Brand */
  --blue:      #33628f;    /* logo body blue, deepened for contrast */
  --blue-deep: #1e4569;
  --blue-soft: #e3ecf4;
  --blue-pale: #f0f5fa;
  --gold:      #a97f2e;    /* logo cuff gold, print-friendly */
  --gold-deep: #8a6725;
  --gold-soft: #f3e9d3;
  --gold-line: rgba(169, 127, 46, 0.35);

  /* Status */
  --success:   #2e7d4f;
  --success-deep: #24623e;
  --danger:    #b3452f;

  /* Layout */
  --radius:    12px;
  --radius-lg: 18px;
  --max-w:     1160px;
  --shadow-sm: 0 1px 2px rgba(18,39,64,.05), 0 2px 6px rgba(18,39,64,.05);
  --shadow:    0 12px 32px -18px rgba(18, 39, 64, 0.25);
  --shadow-lg: 0 30px 60px -30px rgba(18, 39, 64, 0.35);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--blue-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h4 { font-weight: 700; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p  { margin: 0 0 1em; color: var(--ink-muted); }
strong { color: var(--ink); }

::selection { background: var(--gold-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--max-w); padding: 0 24px; margin: 0 auto; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 45%, var(--gold) 100%);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 52px; width: auto; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
@media (max-width: 400px) { .brand-name { display: none; } }

.nav-links { display: none; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: .96rem;
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: none; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--paper-deep); }
@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin: 14px 24px; display: flex; text-align: center; }
.mobile-menu .btn + .btn { margin-top: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(30, 69, 105, 0.6);
}
.btn-primary:hover { background: #17385a; color: #fff; }

.btn-gold {
  background: linear-gradient(180deg, #b8904a 0%, var(--gold) 60%, #97701f 100%);
  color: #fff;
  border-color: rgba(122, 90, 27, .5);
  box-shadow: 0 10px 24px -12px rgba(138, 103, 37, 0.65);
  text-shadow: 0 1px 1px rgba(90, 64, 15, .35);
}
.btn-gold:hover { color: #fff; filter: brightness(1.05); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--gold-line); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--ink); }

.btn-inv { background: transparent; color: var(--ink-inv); border-color: rgba(244,246,249,.35); }
.btn-inv:hover { color: #fff; border-color: rgba(244,246,249,.7); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 9px; }
.btn-lg { padding: 17px 30px; font-size: 1.04rem; border-radius: 12px; }

/* ==========================================================================
   Eyebrow / section heads
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--gold);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(46, 125, 79, .18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }

section { padding: 84px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin: 0 0 44px; }
.section-head.centered { margin: 0 auto 44px; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }
.section-head h2 { margin-top: 14px; }
.section-head p { font-size: 1.08rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 85% 8%, rgba(51, 98, 143, 0.09), transparent 65%),
    radial-gradient(560px 380px at 4% 92%, rgba(169, 127, 46, 0.07), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero { padding: 104px 0 88px; }
  .hero-grid { grid-template-columns: 1.04fr .96fr; gap: 64px; }
}
.hero h1 { margin-top: 20px; }
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blue-deep);
}
.hero h1 .goldline {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 .goldline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .14em;
  background: var(--gold-soft);
  z-index: -1;
}
.hero .lede {
  font-size: 1.16rem;
  max-width: 560px;
  margin: 18px 0 30px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust {
  display: flex; gap: 10px 26px; flex-wrap: wrap;
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust .check {
  color: var(--success);
  font-weight: 800;
  margin-right: 7px;
}

/* --- Hero conversation card ------------------------------------------- */
.convo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  max-width: 460px;
  margin: 0 auto;
  overflow: hidden;
}
.convo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink-panel);
  color: var(--ink-inv);
}
.convo-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.convo-head .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(160deg, #79a9d1, #33628f);
  border: 2px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.convo-head .who strong { font-size: .92rem; display: block; line-height: 1.2; color: #fff; }
.convo-head .who span { font-size: .74rem; color: var(--ink-inv-muted); }
.convo-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #9fdcb6;
  white-space: nowrap;
}
.convo-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}
.convo-body { padding: 20px; display: grid; gap: 12px; background: linear-gradient(180deg, #fdfcfa, #f7f4ee); }
.msg {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in .5s ease forwards;
}
.msg.caller {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.msg.agent {
  justify-self: end;
  background: var(--blue-deep);
  color: #eef4fa;
  border-bottom-right-radius: 4px;
}
.msg .t { display: block; font-size: .68rem; opacity: .65; margin-top: 5px; }
.msg:nth-child(1) { animation-delay: .3s; }
.msg:nth-child(2) { animation-delay: 1.1s; }
.msg:nth-child(3) { animation-delay: 2s; }
.msg:nth-child(4) { animation-delay: 2.9s; }
@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }
.convo-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: .84rem;
  font-weight: 600;
  color: var(--success-deep);
  opacity: 0;
  animation: msg-in .5s ease 3.7s forwards;
}
.convo-foot .cal {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  color: var(--gold-deep);
  flex-shrink: 0;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-pale);
  border: 1px solid var(--line);
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.card.gold-icon .icon { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-deep); }
.card h3 { margin: 0 0 10px; }
.card p { margin: 0 0 16px; font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.card ul li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink-muted); }
.card ul li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; }

/* Numbered feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; } }
.feature-num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: .06em;
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); padding: 26px 18px; text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.05;
}
.stat .lbl { color: var(--ink-soft); font-size: .86rem; margin-top: 8px; line-height: 1.4; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  position: relative;
  counter-increment: step;
  box-shadow: var(--shadow-sm);
}
.step::before {
  content: "0" counter(step);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-deep);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.2rem; }
.step p { margin: 0; font-size: .96rem; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: stretch; }
@media (min-width: 880px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-grid.duo { max-width: 830px; margin: 0 auto; }
@media (min-width: 720px) { .pricing-grid.duo { grid-template-columns: repeat(2, 1fr); } }

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--gold-line);
  border-width: 1.5px;
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--gold), #caa64f);
}
.price-card .tag {
  position: absolute;
  top: -13px; left: 26px;
  background: var(--gold);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.35rem; }
.price { display: flex; align-items: baseline; gap: 7px; margin: 16px 0 4px; }
.price .amount {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.price .from { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.price .per { color: var(--ink-muted); font-size: .95rem; }
.price-note { font-size: .88rem; font-weight: 600; color: var(--gold-deep); margin: 6px 0 0; }
.price-card ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 11px; flex: 1; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-muted); }
.price-card ul li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.compare thead th {
  color: var(--ink);
  font-weight: 700;
  background: var(--paper-deep);
  font-size: .9rem;
}
.compare thead th:nth-child(2) { background: var(--ink-panel); color: #fff; }
.compare tbody td:nth-child(2) { background: var(--blue-pale); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.compare td.yes { color: var(--success-deep); font-weight: 700; }
.compare td.no  { color: var(--danger); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--gold-line); }
.faq summary {
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: .97rem; }

/* ==========================================================================
   CTA banner (navy)
   ========================================================================== */
.cta-banner {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(121, 169, 209, .18), transparent 60%),
    radial-gradient(500px 300px at 8% 95%, rgba(169, 127, 46, .22), transparent 55%),
    var(--ink-panel);
  border-radius: var(--radius-lg);
  padding: 60px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.cta-banner .eyebrow { color: #d9bd7d; justify-content: center; }
.cta-banner .eyebrow::before { display: none; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--ink-inv-muted); max-width: 600px; margin: 12px auto 30px; font-size: 1.07rem; }
.cta-banner .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field label { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 98, 143, .15);
}
.field textarea { resize: vertical; min-height: 128px; }
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.form-note { color: var(--ink-soft); font-size: .84rem; margin-top: 14px; text-align: center; }
.form-alert {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 500;
}
.form-alert.ok { background: #e8f3ec; border: 1px solid rgba(46,125,79,.35); color: var(--success-deep); }
.form-alert.err { background: #f9ece8; border: 1px solid rgba(179,69,47,.35); color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 8px 0 0; }
.consent-invalid { outline: 2px solid var(--danger); outline-offset: 6px; }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc-wrap {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 820px) { .calc-wrap { grid-template-columns: 5fr 6fr; gap: 28px; } }
.calc-inputs {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
  gap: 30px;
}
.calc-group .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calc-group label { font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.calc-group label svg { color: var(--blue-deep); flex-shrink: 0; }
.calc-badge {
  background: var(--blue-pale);
  color: var(--blue-deep);
  padding: 4px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.calc-slider { width: 100%; accent-color: var(--blue-deep); cursor: pointer; height: 6px; }
.calc-range { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-soft); margin-top: 7px; font-weight: 500; }
.calc-help { font-size: .84rem; color: var(--ink-soft); margin: 8px 0 0; }
.calc-money { position: relative; }
.calc-money > span {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 600;
}
.calc-money input {
  width: 100%;
  padding: 12px 14px 12px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.calc-money input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,98,143,.15); }
.calc-result {
  background:
    radial-gradient(400px 260px at 85% 0%, rgba(121, 169, 209, .15), transparent 60%),
    var(--ink-panel);
  border-radius: var(--radius-lg);
  padding: 44px 30px 34px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.calc-result h3 { color: var(--ink-inv-muted); font-family: var(--font-sans); font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.calc-big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 600;
  color: #e9c46a;
  line-height: 1.05;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.calc-sub { color: var(--ink-inv-muted); font-size: .95rem; margin: 0 0 30px; }
.calc-minor {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
}
.calc-minor .box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 15px; }
.calc-minor .lbl { font-size: .8rem; color: var(--ink-inv-muted); margin: 0 0 4px; }
.calc-minor .val { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 72px;
  background: var(--ink-panel);
  color: var(--ink-inv-muted);
  padding: 60px 0 26px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  margin-top: -60px;
  margin-bottom: 57px;
  background: linear-gradient(90deg, var(--gold), var(--blue) 55%, var(--blue-deep) 100%);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .brand img { height: 64px; }
.site-footer .brand-name { color: #fff; }
.site-footer p { color: var(--ink-inv-muted); font-size: .95rem; }
.footer-grid h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-grid a { color: var(--ink-inv-muted); font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: rgba(183, 196, 212, .75);
  font-size: .85rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* Reveal-on-scroll: only hides content when JS is running (html.js set by script.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--blue-deep); color: #fff;
  padding: 9px 16px; border-radius: 8px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ==========================================================================
   Mobile
   ========================================================================== */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1rem; }
  .nav { padding: 8px 0; }
  .brand img { height: 44px; }
  .hero { padding: 52px 0 40px; }
  .hero .lede { font-size: 1.04rem; margin: 14px 0 24px; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 8px; font-size: .88rem; }
  .btn { min-height: 48px; }
  .btn-lg { padding: 15px 20px; font-size: 1rem; }
  .card { padding: 24px 20px; }
  .stat { padding: 20px 12px; }
  .stat .num { font-size: 1.7rem; }
  .price-card { padding: 28px 22px; }
  .price .amount { font-size: 2.5rem; }
  .cta-banner { padding: 44px 22px; }
  .faq summary { padding: 16px 18px; font-size: .98rem; }
  .faq details p { padding: 0 18px 18px; }
  .form-card { padding: 26px 20px; }
  .site-footer { padding: 48px 0 22px; margin-top: 48px; }
  .site-footer::before { margin-top: -48px; margin-bottom: 45px; }
  .convo-card { max-width: 100%; }
  .calc-inputs { padding: 24px 20px; gap: 24px; }
  .calc-result { padding: 34px 20px 26px; }
  .feature-row { padding: 28px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  section { padding: 44px 0; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 5.6vw, 2rem); }
  .cta-banner h2 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .msg, .convo-foot { opacity: 1; transform: none; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
