/* Laivy Group — shared styles */
:root {
  --navy: #0A1128;
  --navy-2: #0E1733;
  --navy-3: #131E40;
  --ivy: #1B4332;
  --ivy-2: #22533F;
  --ivy-light: #9CCFB4;
  --white: #FFFFFF;
  --text: #E9ECF3;
  --muted: #A3ABC0;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 14px; line-height: 1.1; }
.wordmark .wm-text { display: flex; flex-direction: column; }
.wordmark .mark {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; color: var(--white);
  background: linear-gradient(145deg, var(--ivy-2), var(--navy-3));
  border: 1px solid rgba(156, 207, 180, 0.55); border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(156, 207, 180, 0.08);
}
footer .wordmark .mark { width: 56px; height: 56px; font-size: 36px; }
.wordmark b { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: 0.015em; color: var(--white); }
.wordmark b em { font-style: italic; font-weight: 500; color: var(--ivy-light); text-shadow: 0 0 22px rgba(156, 207, 180, 0.35); }
footer .wordmark b { font-size: 44px; }
.wordmark small { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); letter-spacing: 0.01em; transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav .btn { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ivy); color: var(--white);
  border: 1px solid rgba(156, 207, 180, 0.35);
  padding: 15px 26px; font: 500 15px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border-radius: 2px;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--ivy-2); border-color: rgba(156, 207, 180, 0.6); }
.btn.small { padding: 11px 18px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--white); background: transparent; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivy-light); font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ivy-light); opacity: .7; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--white); letter-spacing: -0.005em; }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
h3 { font-size: 26px; line-height: 1.2; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
p + p { margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.section-head h2 { margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Hero */
.hero { padding: 140px 0 120px; border-top: 0; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% 40%; height: 720px;
  background: radial-gradient(closest-side, rgba(27, 67, 50, 0.55), rgba(27, 67, 50, 0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin: 28px 0 28px; max-width: 900px; }
.hero h1 em { font-style: italic; color: var(--ivy-light); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.assurances {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.assurances div { padding: 24px 24px 24px 0; font-size: 14px; color: var(--muted); }
.assurances div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.assurances b { display: block; color: var(--white); font-weight: 500; font-size: 15px; margin-bottom: 4px; }

/* Method cards */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method article { background: var(--navy); padding: 44px 36px 48px; }
.method .num { font-family: var(--serif); font-size: 15px; color: var(--ivy-light); letter-spacing: .1em; }
.method h3 { margin: 18px 0 14px; }
.method p { color: var(--muted); font-size: 15.5px; }
.method ul { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.method li { font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: s; }
.steps div { border-top: 1px solid var(--line-strong); padding-top: 28px; }
.steps div::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-size: 44px; color: var(--ivy-light); line-height: 1; margin-bottom: 20px; }
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Calculator teaser */
.teaser { background: var(--navy-2); }
.teaser-box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.figure { border: 1px solid var(--line); background: var(--navy); padding: 40px; }
.figure .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.figure .big { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); color: var(--white); line-height: 1.1; margin: 10px 0 6px; }
.figure .sub { color: var(--muted); font-size: 14px; }
.figure .rows { margin-top: 28px; border-top: 1px solid var(--line); }
.figure .rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.figure .rows span:last-child { color: var(--white); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles div { padding: 32px 40px 32px 0; border-bottom: 1px solid var(--line); }
.principles div:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.principles h3 { font-size: 22px; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 15px; }

/* Pilot form */
.pilot { background: linear-gradient(180deg, var(--navy) 0%, #0B1A24 100%); }
.pilot-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; }
.pilot-grid .terms { list-style: none; margin-top: 32px; }
.pilot-grid .terms li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; color: var(--text); font-size: 15px; }
.pilot-grid .terms li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 1px; background: var(--ivy-light); }
form.card { background: var(--navy-2); border: 1px solid var(--line); padding: 40px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
input, select, textarea {
  width: 100%; background: var(--navy); color: var(--white);
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 13px 14px; font: 15px var(--sans); outline: none; transition: border-color .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--ivy-light); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 26px; }
.consent input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--ivy); }
.consent a { color: var(--white); }
form.card .btn { width: 100%; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.book-call { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.book-call p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.form-done { display: none; text-align: center; padding: 40px 10px; }
.form-done h3 { margin-bottom: 10px; }
.form-done p { color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative; font-family: var(--serif); font-size: 23px; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--ivy-light); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 28px 0; font-size: 15.5px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 48px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }

/* ---------- Calculator page ---------- */
.calc-hero { padding: 110px 0 64px; border-top: 0; }
.calc-hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 24px 0 20px; max-width: 820px; }
.calc { padding-top: 0; border-top: 0; }
.calc-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); }
.calc-inputs { padding: 44px; background: var(--navy-2); }
.calc-out { padding: 44px; background: var(--navy); border-left: 1px solid var(--line); position: sticky; top: 96px; align-self: start; }
.calc-inputs h3, .calc-out h3 { font-size: 22px; margin-bottom: 26px; }
.range-row { margin-bottom: 30px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.range-head label { margin: 0; font-size: 14px; letter-spacing: 0; color: var(--text); }
.range-head { gap: 16px; }
.range-head output { font-family: var(--serif); font-size: 24px; color: var(--white); white-space: nowrap; }
.big, .range-head output, .steps div::before, .method .num { font-variant-numeric: lining-nums tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; padding: 0; border: 0; height: 2px; background: var(--line-strong); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--ivy); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 4px solid var(--ivy); cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.checks { border-top: 1px solid var(--line); margin-top: 6px; }
.check { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.check span small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.toggle { position: relative; width: 44px; height: 24px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 12px; background: var(--navy-3); border: 1px solid var(--line-strong); transition: background .2s; pointer-events: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.toggle input:checked + i { background: var(--ivy); border-color: rgba(156,207,180,.5); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--white); }
.toggle input:focus-visible + i { outline: 2px solid var(--ivy-light); outline-offset: 2px; }
.calc-out .big { font-family: var(--serif); font-size: clamp(46px, 5.4vw, 68px); color: var(--white); line-height: 1.05; margin: 8px 0 4px; }
.calc-out .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.calc-out .annual { color: var(--ivy-light); font-size: 15px; }
.calc-out .rows { margin: 30px 0; border-top: 1px solid var(--line); }
.calc-out .rows div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.calc-out .rows span:last-child { color: var(--white); font-variant-numeric: tabular-nums; }
.calc-out .btn { width: 100%; }
.method-note { margin-top: 40px; color: var(--muted); font-size: 14px; max-width: 820px; }
.method-note b { color: var(--text); font-weight: 500; }

/* ---------- Legal page ---------- */
.legal { padding: 100px 0 120px; border-top: 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin: 22px 0 12px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 20px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--white); }
.legal .todo { color: #F2C98A; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head, .teaser-box, .pilot-grid, .calc-grid { grid-template-columns: 1fr; gap: 40px; }
  .calc-grid { gap: 0; }
  .calc-out { position: static; border-left: 0; border-top: 1px solid var(--line); }
  .method, .steps { grid-template-columns: 1fr; }
  .steps { gap: 36px; }
  .assurances { grid-template-columns: 1fr 1fr; }
  .assurances div:nth-child(3) { padding-left: 0; border-left: 0; }
  .assurances div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .principles div, .principles div:nth-child(even) { padding: 26px 0; border-left: 0; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero { padding: 88px 0 72px; }
  .site-header .wrap { height: 66px; }
  .wordmark b { font-size: 27px; }
  .wordmark .mark { width: 36px; height: 36px; font-size: 23px; }
  footer .wordmark b { font-size: 34px; }
  footer .wordmark .mark { width: 46px; height: 46px; font-size: 29px; }
  .wordmark small { display: none; }
  .lead { font-size: 17px; }
  .hero .actions .btn { width: 100%; }
  .assurances { grid-template-columns: 1fr; margin-top: 64px; }
  .assurances div, .assurances div + div { padding: 18px 0; border-left: 0; }
  .assurances div + div { border-top: 1px solid var(--line); }
  .method article { padding: 34px 24px 36px; }
  form.card, .calc-inputs, .calc-out, .figure { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .faq summary { font-size: 20px; }
}
