/* ==========================================================================
   Binary Option Trading — Design System
   pocketoption-promocode.com
   Stage 1 foundation. All pages depend on this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Blues — the site reads navy-to-blue throughout */
  --navy-900: #0A1F44;
  --navy-800: #12305E;
  --blue-700: #1657C4;
  --blue-600: #1E6FE8;
  --blue-100: #E4EFFC;
  --blue-50:  #F5F9FF;

  /* Amber — CTAs ONLY. Never use for anything else. */
  --amber-500: #FFA724;
  --amber-600: #F08C00;

  /* Status */
  --green-500: #12A150;
  --green-50:  #E7F6ED;
  --red-500:   #D93025;
  --red-50:    #FDECEA;

  /* Neutrals */
  --grey-700: #41506B;
  --grey-400: #8A97AC;
  --grey-200: #E2E8F2;
  --white:    #FFFFFF;

  /* Spacing — 8px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-btn: 8px;
  --r-card: 12px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 2px 8px rgba(10, 31, 68, .06);
  --sh-2: 0 8px 24px rgba(10, 31, 68, .10);
  --sh-3: 0 16px 40px rgba(10, 31, 68, .14);

  /* Layout */
  --wrap: 1180px;
  --prose: 72ch;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Motion */
  --t-fast: 150ms ease;
  --t-base: 220ms cubic-bezier(.4, 0, .2, 1);

  /* Fixed header height, used for scroll offsets */
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--grey-700);
  background: var(--blue-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.22;
  margin: 0 0 var(--s-4);
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); margin-top: var(--s-8); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: var(--s-6); }
h4 { font-size: 1.0625rem; margin-top: var(--s-5); }

h2:first-child, h3:first-child, h4:first-child { margin-top: 0; }

p { margin: 0 0 var(--s-4); }

a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}
a:hover { color: var(--blue-700); }

strong { color: var(--navy-800); font-weight: 650; }

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }

code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--blue-100);
  color: var(--navy-800);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--grey-200);
  margin: var(--s-7) 0;
}

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r-btn) 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */

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

.prose { max-width: var(--prose); }

.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6); }
.section--tint { background: var(--blue-100); }
.section--white { background: var(--white); }
.section--dark { background: var(--navy-900); color: #C6D4EA; }
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark a { color: #9FC4FF; }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: var(--s-2);
}
.section--dark .eyebrow { color: #7FADF5; }

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--grey-700);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   Amber is reserved exclusively for primary calls to action.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--cta {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: var(--sh-1);
}
.btn--cta:hover {
  background: var(--amber-600);
  color: var(--navy-900);
  box-shadow: var(--sh-2);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--grey-200);
}
.btn--outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.btn--sm { padding: 9px var(--s-4); font-size: .9375rem; }
.btn--lg { padding: 17px var(--s-6); font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.btn-note {
  font-size: .8125rem;
  color: var(--grey-400);
  margin: var(--s-3) 0 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. HEADER + NAV
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--white);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--white); }
.logo svg { flex-shrink: 0; }
.logo span { white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-btn);
  color: var(--white);
  padding: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav-list li { margin: 0; }

.nav-list a {
  display: block;
  padding: var(--s-2) var(--s-3);
  color: #C6D4EA;
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--r-btn);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, .09); }
.nav-list a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .14); }

.header-cta { flex-shrink: 0; }

@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--sh-2);
    padding: var(--s-3) var(--s-5) var(--s-5);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    padding: var(--s-3) var(--s-2);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    font-size: 1rem;
  }
  .header-cta { display: none; }
  .site-nav .header-cta {
    display: flex;
    margin-top: var(--s-4);
  }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav .header-cta { display: none; }
}

/* --------------------------------------------------------------------------
   6. HERO
   The single place a gradient is used.
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--blue-700) 100%);
  color: #C6D4EA;
  padding-block: var(--s-8) var(--s-9);
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--white); margin-bottom: var(--s-4); }
.hero .lede { color: #C6D4EA; font-size: 1.1875rem; max-width: 54ch; }

.hero-grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-8); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
  font-size: .8125rem;
  color: #9FB3D1;
}

.updated-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   7. CODE CARD — featured promo code
   -------------------------------------------------------------------------- */

.code-card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--sh-3);
  padding: var(--s-6);
  text-align: center;
  border-top: 4px solid var(--amber-500);
}

.code-card__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin: 0 0 var(--s-3);
}

.code-card__code {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--navy-900);
  background: var(--blue-50);
  border: 2px dashed var(--blue-600);
  border-radius: var(--r-btn);
  padding: var(--s-4) var(--s-3);
  margin: 0 0 var(--s-4);
  word-break: break-all;
}

.code-card__terms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
  font-size: .875rem;
}
.code-card__terms li { margin: 0; }
.code-card__terms strong { display: block; color: var(--navy-900); font-size: 1.0625rem; }
.code-card__terms span { color: var(--grey-400); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* --------------------------------------------------------------------------
   8. COPY BUTTON
   -------------------------------------------------------------------------- */

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 11px var(--s-4);
  min-width: 108px;
  background: var(--blue-700);
  color: var(--white);
  border: 0;
  border-radius: var(--r-btn);
  font-size: .9375rem;
  font-weight: 650;
  transition: background var(--t-fast), transform var(--t-fast);
}
.copy-btn:hover { background: var(--blue-600); }
.copy-btn:active { transform: scale(.97); }

.copy-btn.is-copied { background: var(--green-500); }
.copy-btn .icon-check { display: none; }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: block; }

.copy-btn--lg { width: 100%; padding: 14px var(--s-5); font-size: 1rem; }

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card--link:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: var(--r-btn);
  margin-bottom: var(--s-4);
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  list-style: none;
  margin: 0;
  padding: var(--s-5) 0;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-size: .9375rem;
  font-weight: 550;
  color: var(--navy-800);
}
.trust-bar svg { color: var(--green-500); flex-shrink: 0; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--active { background: var(--green-50); color: #0B7A3B; }
.badge--top    { background: #FFF3DF; color: #94590A; }
.badge--info   { background: var(--blue-100); color: var(--blue-700); }

/* --------------------------------------------------------------------------
   10. TABLES
   Desktop: standard table. Mobile: stacked cards via data-label.
   -------------------------------------------------------------------------- */

.table-wrap {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  overflow: hidden;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

table.data th,
table.data td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: middle;
}

table.data thead th {
  background: var(--navy-900);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

table.data tbody tr { border-top: 1px solid var(--grey-200); }
table.data tbody tr:nth-child(even) { background: var(--blue-50); }
table.data tbody tr:hover { background: var(--blue-100); }

table.data .cell-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--navy-900);
}

table.data .cell-bonus {
  font-weight: 700;
  color: var(--blue-700);
  font-size: 1rem;
}

table.data tr.is-featured { background: #FFFBF3 !important; }
table.data tr.is-featured td { border-top: 2px solid var(--amber-500); }

.table-note {
  font-size: .8125rem;
  color: var(--grey-400);
  line-height: 1.6;
  margin: var(--s-3) 0 0;
}

/* Mobile: collapse to cards */
@media (max-width: 767px) {
  table.data thead { display: none; }
  table.data,
  table.data tbody,
  table.data tr,
  table.data td { display: block; width: 100%; }

  table.data tbody tr {
    border: 1px solid var(--grey-200);
    border-radius: var(--r-card);
    margin-bottom: var(--s-4);
    padding: var(--s-3) var(--s-4);
    background: var(--white) !important;
  }
  table.data tbody tr:last-child { margin-bottom: 0; }
  table.data tr.is-featured { border-color: var(--amber-500); border-width: 2px; }
  table.data tr.is-featured td { border-top: 0; }

  table.data td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--grey-200);
    text-align: right;
  }
  table.data td:last-child { border-bottom: 0; padding-bottom: 0; }

  table.data td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--grey-400);
    text-align: left;
  }

  table.data td[data-label=""]::before,
  table.data td.cell-action::before { content: none; }
  table.data td.cell-action { justify-content: stretch; padding-top: var(--s-3); }
  table.data td.cell-action .copy-btn { width: 100%; }

  .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
}

/* Comparison table — first column is a row header */
table.compare th[scope="row"] {
  background: var(--blue-50);
  color: var(--navy-900);
  font-weight: 650;
  font-size: .9375rem;
  width: 34%;
}
@media (max-width: 767px) {
  table.compare th[scope="row"] {
    display: block;
    width: 100%;
    border-radius: var(--r-sm);
    margin-bottom: var(--s-2);
  }
}

/* --------------------------------------------------------------------------
   11. STEPS TIMELINE
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps > li {
  position: relative;
  counter-increment: step;
  padding-left: 60px;
  padding-bottom: var(--s-6);
  margin: 0;
}
.steps > li:last-child { padding-bottom: 0; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  background: var(--grey-200);
}
.steps > li:last-child::after { display: none; }

.steps h3 { margin: 6px 0 var(--s-2); font-size: 1.125rem; }
.steps p:last-child { margin-bottom: 0; }

.step-figure {
  margin: var(--s-4) 0 0;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
}
.step-figure img { width: 100%; }
.step-figure figcaption {
  padding: var(--s-2) var(--s-4);
  font-size: .8125rem;
  color: var(--grey-400);
  background: var(--blue-50);
  border-top: 1px solid var(--grey-200);
}

/* --------------------------------------------------------------------------
   12. FAQ ACCORDION — native details/summary
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--grey-200); }

.faq details {
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--navy-900);
  list-style: none;
  transition: background var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { background: var(--blue-50); }

.faq summary .chev {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-700);
  transition: transform var(--t-base);
}
.faq details[open] summary .chev { transform: rotate(180deg); }

.faq .faq-body {
  padding: 0 var(--s-5) var(--s-5);
  max-width: var(--prose);
}
.faq .faq-body > :last-child { margin-bottom: 0; }

.faq details:first-of-type { border-radius: var(--r-card) var(--r-card) 0 0; }
.faq details:last-of-type { border-radius: 0 0 var(--r-card) var(--r-card); }

/* --------------------------------------------------------------------------
   13. PROS / CONS
   -------------------------------------------------------------------------- */

.proscons { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .proscons { grid-template-columns: 1fr 1fr; } }

.proscons__col {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
}
.proscons__col h3 {
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--grey-200);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.proscons__col ul { list-style: none; margin: 0; padding: 0; }
.proscons__col li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--s-3);
  font-size: .9375rem;
}
.proscons__col li:last-child { margin-bottom: 0; }
.proscons__col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.proscons--pros li::before { content: "+"; color: var(--green-500); font-size: 1.15rem; line-height: 1.5; }
.proscons--cons li::before { content: "\2212"; color: var(--red-500); font-size: 1.15rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   14. BONUS CALCULATOR — signature interactive element
   -------------------------------------------------------------------------- */

.calc {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.calc__head {
  background: var(--navy-900);
  color: var(--white);
  padding: var(--s-5);
}
.calc__head h3 { color: var(--white); margin: 0 0 var(--s-1); font-size: 1.1875rem; }
.calc__head p { margin: 0; font-size: .875rem; color: #9FB3D1; }

.calc__body { padding: var(--s-5); }

.calc__controls { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .calc__controls { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px var(--s-3);
  font: inherit;
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-btn);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(30, 111, 232, .18);
}

.field__hint { font-size: .75rem; color: var(--grey-400); margin: 5px 0 0; }

.calc__results {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--grey-200);
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 640px) { .calc__results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .calc__results { grid-template-columns: repeat(4, 1fr); } }

.result {
  background: var(--blue-50);
  border-radius: var(--r-btn);
  padding: var(--s-4);
  text-align: center;
}
.result__label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 4px;
}
.result__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.result--highlight { background: #FFF3DF; }
.result--highlight .result__value { color: #94590A; }

.calc__readout {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--blue-100);
  border-radius: var(--r-btn);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--navy-800);
}
.calc__readout p { margin: 0; }
.calc__readout strong { color: var(--navy-900); }

/* --------------------------------------------------------------------------
   15. NOTICES — risk, disclosure, callouts
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-btn);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: var(--s-5);
}
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: var(--s-2); }

.notice--risk {
  background: var(--red-50);
  color: #8A1F17;
  border-left: 3px solid var(--red-500);
}
.notice--risk svg { color: var(--red-500); }

.notice--info {
  background: var(--blue-100);
  color: var(--navy-800);
  border-left: 3px solid var(--blue-600);
}
.notice--info svg { color: var(--blue-600); }

.notice--disclosure {
  background: var(--white);
  color: var(--grey-700);
  border: 1px solid var(--grey-200);
  font-size: .8125rem;
}
.notice--disclosure svg { color: var(--grey-400); }

/* Compact inline risk line, used under CTAs */
.risk-line {
  font-size: .75rem;
  line-height: 1.55;
  color: var(--grey-400);
  margin: var(--s-3) 0 0;
  max-width: 52ch;
}
.hero .risk-line { color: #8FA5C4; }

/* --------------------------------------------------------------------------
   16. AUTHOR BOX
   -------------------------------------------------------------------------- */

.author {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  padding: var(--s-5);
  margin-block: var(--s-7);
}

.author__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.author__name { font-weight: 700; color: var(--navy-900); margin: 0 0 2px; }
.author__role { font-size: .8125rem; color: var(--grey-400); margin: 0 0 var(--s-3); }
.author__bio { font-size: .875rem; margin: 0; }
.author__meta {
  font-size: .75rem;
  color: var(--grey-400);
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--grey-200);
}

/* --------------------------------------------------------------------------
   17. BREADCRUMBS
   -------------------------------------------------------------------------- */

.crumbs {
  padding-block: var(--s-4);
  font-size: .8125rem;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--grey-400); }
.crumbs a { color: var(--grey-400); text-decoration: none; }
.crumbs a:hover { color: var(--blue-600); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--navy-800); font-weight: 550; }

/* --------------------------------------------------------------------------
   18. RELATED LINKS
   -------------------------------------------------------------------------- */

.related { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }

.related a {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-card);
  padding: var(--s-4);
  text-decoration: none;
  color: var(--navy-900);
  font-weight: 650;
  font-size: .9375rem;
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.related a:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  border-color: var(--blue-600);
  color: var(--blue-700);
}
.related span {
  display: block;
  font-weight: 400;
  font-size: .8125rem;
  color: var(--grey-400);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   19. STICKY MOBILE CTA
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -4px 20px rgba(10, 31, 68, .28);
  transform: translateY(110%);
  transition: transform var(--t-base);
}
.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta__text {
  flex: 1;
  min-width: 0;
  font-size: .8125rem;
  line-height: 1.35;
  color: #C6D4EA;
}
.sticky-cta__text strong {
  display: block;
  color: var(--white);
  font-size: .9375rem;
  font-family: var(--mono);
  letter-spacing: .08em;
}

.sticky-cta .btn { flex-shrink: 0; padding: 11px var(--s-4); font-size: .9375rem; }

.sticky-cta__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: #8FA5C4;
  padding: 0;
}
.sticky-cta__close:hover { color: var(--white); background: rgba(255, 255, 255, .1); }

@media (max-width: 899px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: #9FB3D1;
  padding-block: var(--s-8) var(--s-5);
  font-size: .875rem;
}

.footer-grid {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand .logo { margin-bottom: var(--s-3); }
.footer-brand p { font-size: .8125rem; line-height: 1.65; max-width: 38ch; }

.site-footer h4 {
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s-2); }
.footer-links a { color: #9FB3D1; text-decoration: none; font-size: .875rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.footer-legal { padding-top: var(--s-5); }
.footer-legal p {
  font-size: .75rem;
  line-height: 1.7;
  color: #7F93B2;
  margin-bottom: var(--s-3);
}
.footer-legal strong { color: #C6D4EA; }

.footer-flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.footer-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .04em;
  color: #C6D4EA;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .75rem;
  color: #7F93B2;
}

/* --------------------------------------------------------------------------
   21. 404
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-9);
}
.error-page__code {
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-100);
  margin: 0 0 var(--s-3);
  letter-spacing: -.04em;
}

/* --------------------------------------------------------------------------
   22. MOTION PREFERENCES
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card--link:hover, .related a:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   23. PRINT
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .sticky-cta, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .table-wrap { box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
