:root {
  --navy: #0f2b48;
  --navy-mid: #1e3a8a;
  --teal: #00a896;
  --cyan: #00b4d8;
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 43, 72, 0.08);
  --serif: "Outfit", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
}

.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  z-index: 70;
  pointer-events: none;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 0 L16 8 L8 16 L0 8 Z' fill='none' stroke='%2300A896' stroke-width='1.35'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center top;
}

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

a { color: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--white);
  padding: 0.4rem 0.7rem;
  z-index: 10000;
}
.skip:focus { top: 0.5rem; }

.topbar {
  background: var(--navy);
  color: #dbe7f3;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}
.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: flex-end;
}
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--cyan); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}
.header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 58px; height: auto; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  color: var(--teal);
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--navy);
}
.nav-links a:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-family: inherit;
  font-weight: 750;
  font-size: 0.92rem;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #008f80; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #163a5e; }
.btn-line {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-line:hover { border-color: #fff; }
.btn-alert {
  background: #b42318;
  color: #fff;
}
.btn-alert:hover { background: #8f1c14; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(0, 180, 216, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #143556 55%, var(--navy-mid) 140%);
  color: #fff;
  padding: 4.2rem 0 3.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}
.kicker {
  display: inline-block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.lede {
  margin: 0 0 1.4rem;
  color: #d5e4f2;
  font-size: 1.05rem;
  max-width: 42rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.badges li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 1.4rem;
}
.hero-panel svg { width: 100%; height: auto; }
.hero-panel p {
  margin: 0.8rem 0 0;
  color: #d5e4f2;
  font-size: 0.92rem;
}

.section { padding: 4.2rem 0; }
.emergency {
  background: #fff7f5;
  border-block: 1px solid #f3c7c2;
  padding: 3.2rem 0;
}
.kicker-ink { color: #b42318; }
.cases {
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.cases li {
  background: var(--white);
  border: 1px solid #f3c7c2;
  border-left: 4px solid #b42318;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--navy);
  font-weight: 650;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.plan h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.plan p { margin: 0; color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan-mid { border-color: var(--teal); box-shadow: 0 18px 40px rgba(0, 168, 150, 0.12); }
.price { color: var(--navy); font-size: 0.95rem; }
.price strong { font-size: 1.7rem; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-weight: 600; }
fieldset.field {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
legend {
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
  padding: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  margin: 0.25rem 0;
  color: var(--ink);
}
.choice input { width: auto; }
.light {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
}
.light span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.result.tone-ok { background: #14532d; }
.result.tone-warn { background: #78350f; }
.result.tone-bad { background: #7f1d1d; }
.result.tone-pending { background: var(--navy); }
.tone-ok .light span:nth-child(3) { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
.tone-warn .light span:nth-child(2) { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2); }
.tone-bad .light span:nth-child(1) { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.22); }
.diag-cta { margin-top: 1rem; }
.footer-brand .brand-name { color: var(--teal); }
.footer-brand .brand-sub { color: var(--navy); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--navy);
}
.section-lead { margin: 0 0 1.6rem; color: var(--muted); max-width: 40rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0.35rem 0 0.45rem; color: var(--navy); font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.index {
  font-family: var(--serif);
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}
.calc-layout, .quote-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}
label { display: block; font-weight: 750; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--navy); }
.field { margin-bottom: 0.95rem; }
select, input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
}
select:focus, input:focus {
  outline: 2px solid rgba(0, 168, 150, 0.35);
  border-color: var(--teal);
}
.result {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
}
.result h3 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.35rem; }
.metric { margin: 0 0 0.75rem; }
.metric > span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
}
.metric strong,
#calc-base {
  display: block;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: #fff;
}
.calendar {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.calendar li { margin: 0.2rem 0; }
.note { color: #c9d8e8; font-size: 0.92rem; margin: 0.6rem 0 0; }

.quote-preview {
  white-space: pre-wrap;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--navy);
  min-height: 9rem;
}
.form-actions { margin-top: 0.4rem; }
.fine {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
}
.avatar {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy), var(--navy-mid));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}
.profile h2 { margin-bottom: 0.35rem; }
.profile p { margin: 0.35rem 0; color: var(--muted); }

.footer {
  background: var(--navy);
  color: #d5e4f2;
  padding: 2.4rem 0 5.5rem;
}
.footer a { color: #fff; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  background: #fff;
  color: var(--navy);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.footer-brand p { color: var(--muted); }
.footer p { margin: 0.25rem 0; }
.footer-meta {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.float-wa {
  position: fixed;
  left: 1.35rem;
  bottom: 0.75rem;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 43, 72, 0.2);
}
.float-wa:hover { background: #0b6e63; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0.35rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .btn { width: 100%; }
  .hero-grid, .cards, .calc-layout, .quote-layout, .profile, .plans {
    grid-template-columns: 1fr;
  }
  .topbar-links { justify-content: flex-start; }
  .avatar { width: 96px; height: 96px; font-size: 1.6rem; }
  .topbar-inner { flex-direction: column; gap: 0.15rem; }
}
