/* Diagonal public site — industrial precision */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&display=swap');

:root {
  --ink: #0c0e12;
  --ink-soft: #2a2f38;
  --muted: #5c6570;
  --line: #c8ced6;
  --line-strong: #9aa3ae;
  --paper: #e6e9ed;
  --paper-deep: #d5dae1;
  --surface: #f7f8fa;
  --white: #ffffff;
  --signal: #e85d04;
  --signal-deep: #c24a00;
  --signal-soft: rgba(232, 93, 4, 0.12);
  --ok: #1a7a4c;
  --error: #c0392b;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1120px;
  --shadow: 0 1px 0 rgba(12, 14, 18, 0.06), 0 12px 40px rgba(12, 14, 18, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--paper);
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(12, 14, 18, 0.035) 48%, rgba(12, 14, 18, 0.035) 52%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(232, 93, 4, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-size: 28px 28px, 100% 100%, 100% 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 248, 250, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(12, 14, 18, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform: skewX(-18deg);
  transform-origin: left;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-portal {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.45rem 0.9rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-portal:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— buttons —— */
.btn,
.cta-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.4rem;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.25s var(--ease);
}

.btn:disabled,
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary,
.cta-button,
.button-primary {
  background: var(--signal);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover,
.cta-button:hover,
.button-primary:hover {
  background: var(--signal-deep);
  transform: translateY(-2px);
  box-shadow: 6px 10px 0 rgba(12, 14, 18, 0.12);
}

.btn-secondary,
.button-secondary,
.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover,
.button-secondary:hover,
.button-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— hero (landing) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 14, 18, 0.92) 0%, rgba(12, 14, 18, 0.55) 42%, rgba(12, 14, 18, 0.2) 100%),
    linear-gradient(160deg, #1a1f28 0%, #0c0e12 55%, #1c120c 100%);
  z-index: 0;
}

.hero-diagonal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-diagonal span {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.55), transparent);
  height: 2px;
  width: 140%;
  transform: rotate(-28deg);
  animation: slashDrift 14s linear infinite;
}

.hero-diagonal span:nth-child(1) { top: 18%; left: -20%; animation-delay: 0s; opacity: 0.7; }
.hero-diagonal span:nth-child(2) { top: 38%; left: -10%; width: 160%; height: 1px; animation-delay: -4s; opacity: 0.35; }
.hero-diagonal span:nth-child(3) { top: 62%; left: -30%; animation-delay: -8s; opacity: 0.5; }
.hero-diagonal span:nth-child(4) {
  top: 12%;
  right: 8%;
  left: auto;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: transparent;
  border: 1px solid rgba(247, 248, 250, 0.12);
  transform: rotate(35deg) skewX(-12deg);
  animation: framePulse 8s var(--ease) infinite;
}

.hero-diagonal span:nth-child(5) {
  bottom: 8%;
  right: 18%;
  left: auto;
  top: auto;
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  background: rgba(232, 93, 4, 0.08);
  border: none;
  transform: rotate(35deg) skewX(-12deg);
  animation: none;
}

@keyframes slashDrift {
  0% { transform: rotate(-28deg) translateX(-8%); }
  100% { transform: rotate(-28deg) translateX(8%); }
}

@keyframes framePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 640px;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1.75rem;
  padding-bottom: 0.14em; /* room so the strike sits under the g */
  animation: riseIn 0.9s var(--ease) both;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-brand::after {
  content: '';
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: 0.02em;
  width: auto;
  height: 0.1em;
  background: var(--signal);
  transform: skewX(-18deg);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 18ch;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero .subtitle {
  color: rgba(247, 248, 250, 0.72);
  font-size: 1.1rem;
  max-width: 38ch;
  margin-bottom: 2rem;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

.hero-cta .btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(247, 248, 250, 0.35);
  background: transparent;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-cta .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(247, 248, 250, 0.08);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— page heroes (inner) —— */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 48ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.75rem;
}

/* —— sections —— */
.section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(232, 93, 4, 0.07) 46%, rgba(232, 93, 4, 0.07) 54%, transparent 54%);
  background-size: 56px 56px;
  pointer-events: none;
}

.section-dark .section-head p,
.section-dark .muted {
  color: rgba(247, 248, 250, 0.65);
}

/* —— calculator —— */
.roi-calculator {
  padding: 5rem 0;
}

.calculator-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}

.calculator-rail {
  background: var(--ink);
  color: var(--white);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.calculator-rail::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -30%;
  width: 160%;
  height: 50%;
  background: var(--signal);
  opacity: 0.15;
  transform: skewY(-28deg);
}

.step-indicator {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.65rem;
  align-items: start;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.step-indicator.active,
.step-indicator.completed {
  opacity: 1;
}

.step-circle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid rgba(247, 248, 250, 0.35);
}

.step-indicator.active .step-circle {
  background: var(--signal);
  border-color: var(--signal);
}

.step-indicator.completed .step-circle {
  background: var(--ok);
  border-color: var(--ok);
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  padding-top: 0.3rem;
  letter-spacing: 0.02em;
}

.calculator-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
}

.calculator-content {
  flex: 1;
  min-height: 260px;
}

.step-content {
  display: none;
  animation: fadeStep 0.4s var(--ease);
}

.step-content.active {
  display: block;
}

@keyframes fadeStep {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label,
.label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.input-group input,
.input-group select,
.input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.input-helper,
.help {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.calculator-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.results-container {
  border: 1.5px solid var(--ink);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(135deg, var(--signal-soft), transparent 55%),
    var(--white);
}

.results-header {
  margin-bottom: 1.5rem;
}

.results-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.results-header .main-result {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  color: var(--signal);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.results-header .with-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.result-item {
  border-top: 2px solid var(--ink);
  padding-top: 0.75rem;
}

.result-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.cta-section {
  border: 1px dashed var(--line-strong);
  padding: 1.35rem;
  background: var(--paper);
}

.cta-section h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.cta-section p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cta-section .cta-button {
  margin-top: 0.75rem;
}

/* —— benefits —— */
.benefits-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(247, 248, 250, 0.18);
}

.benefit-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid rgba(247, 248, 250, 0.18);
  transition: background 0.25s ease;
}

.benefit-row:hover {
  background: rgba(247, 248, 250, 0.04);
}

.benefit-idx {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal);
  padding-top: 0.2rem;
}

.benefit-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.benefit-row p {
  color: rgba(247, 248, 250, 0.62);
  max-width: 58ch;
  font-size: 0.98rem;
}

/* —— feature callout —— */
.feature-callout {
  padding: 4.5rem 0;
}

.feature-callout-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-callout-panel::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 220px;
  height: 220px;
  background: var(--signal);
  opacity: 0.1;
  transform: rotate(35deg) skewX(-12deg);
  pointer-events: none;
}

.feature-callout .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--signal);
  padding: 0.35rem 0.65rem;
  margin-bottom: 1rem;
}

.feature-callout h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.feature-callout .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 1.25rem;
}

.feature-callout-points {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.feature-callout-points li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.feature-callout-points li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  background: var(--signal);
  transform: skewX(-18deg);
}

@media (max-width: 768px) {
  .feature-callout-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* —— stats —— */
.stats {
  padding: 4.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 2px solid var(--ink);
  padding-top: 2rem;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.04em;
  color: var(--signal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 14ch;
}

/* —— support / privacy —— */
.support-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.info-block {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  position: relative;
}

.info-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform: skewX(-18deg);
  transform-origin: left;
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}

.info-block p,
.info-block li {
  color: var(--muted);
  font-size: 0.95rem;
}

.info-block ul {
  padding-left: 1.1rem;
}

.info-block li {
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--ink);
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 0.65rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(12, 14, 18, 0.03);
}

.faq-question .faq-icon {
  font-family: var(--font-mono);
  color: var(--signal);
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.98rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeStep 0.3s var(--ease);
}

.contact-panel {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem;
  margin: 2.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-panel::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: var(--signal);
  opacity: 0.15;
  transform: rotate(35deg) skewX(-12deg);
}

.contact-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.contact-panel p {
  color: rgba(247, 248, 250, 0.65);
  margin-bottom: 1rem;
  max-width: 42ch;
  position: relative;
  z-index: 1;
}

.contact-email {
  position: relative;
  z-index: 1;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.privacy-content {
  max-width: 720px;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.privacy-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.privacy-card h4 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.65rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.privacy-card ul {
  padding-left: 1.15rem;
  margin-bottom: 0.85rem;
}

.privacy-card li {
  margin-bottom: 0.45rem;
}

.highlight {
  background: var(--signal-soft);
  border-left: 3px solid var(--signal);
  padding: 1rem 1.15rem;
  margin: 1.15rem 0;
}

.highlight p {
  margin-bottom: 0 !important;
  color: var(--ink-soft) !important;
}

.last-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
}

/* —— portal —— */
.portal-main {
  padding: calc(var(--header-h) + 3.5rem) 0 4rem;
}

.portal-center {
  max-width: 460px;
  margin: 0 auto;
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.portal-card + .portal-card {
  margin-top: 1.25rem;
}

.portal-card .title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.portal-card .subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.portal-card .button {
  width: 100%;
  margin-top: 0.35rem;
}

.portal-card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.codebox {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.error,
.text-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.hidden {
  display: none !important;
}

.field-gap {
  height: 0.85rem;
}

/* —— footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(247, 248, 250, 0.55);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  border-top: 3px solid var(--signal);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: rgba(247, 248, 250, 0.55);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--signal);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 248, 250, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.footer-bottom a {
  color: var(--signal);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-simple .footer-bottom {
  border: none;
  padding: 0;
  justify-content: center;
  text-align: center;
}

/* —— responsive —— */
@media (max-width: 900px) {
  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .calculator-rail {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.15rem;
  }

  .step-indicator {
    flex: 1;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.4rem;
  }

  .step-label {
    font-size: 0.7rem;
    padding-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    align-items: center;
    padding-bottom: 3.5rem;
  }

  .hero-brand {
    /* keep "Diagonal" inside the viewport — 18vw was clipping the last letters */
    font-size: clamp(2.35rem, 11.5vw, 3.25rem);
  }

  .calculator-body {
    padding: 1.35rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .benefit-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
  }

  .contact-panel {
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
