/* Linux Papa — "Veillée" design system
   Palette provenance: nuit/abysse sampled from the hero footage's sky, lagune is the screen-glow teal,
   corail is the warm lamp light in the footage. If the hero video is replaced, re-check contrast of
   .hero text against the new scrim first. */

:root {
  --nuit: #061218;
  --abysse: #0b2229;
  --lagune: #2fb5a8;
  --lagune-hi: #63d8cb;
  --corail: #ff8f7a;
  --brume: #e4f0ee;
  --brume-2: #a9c2bf;
  --ink-on-lagune: #04161a;

  --glass-bg: rgba(228, 240, 238, 0.07);
  --glass-bg-strong: rgba(11, 34, 41, 0.9);
  --glass-line: rgba(228, 240, 238, 0.15);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail: 304px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; color-scheme: dark; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--nuit) 0%, #08202a 38%, var(--nuit) 70%, #07161c 100%);
  color: var(--brume);
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  caret-color: var(--lagune);
  scrollbar-color: #2a5560 var(--nuit);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lagune); color: var(--ink-on-lagune); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--nuit); }
::-webkit-scrollbar-thumb { background: #2a5560; border-radius: 8px; border: 2px solid var(--nuit); }

:focus-visible { outline: 2px solid var(--lagune-hi); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lagune); color: var(--ink-on-lagune);
  padding: 0.7rem 1.1rem; border-radius: 999px; font-family: var(--f-display); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- glass: one material, reused ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* ---------- buttons ---------- */
.btn {
  --pad: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 var(--pad); border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.btn-primary {
  background: var(--lagune); color: var(--ink-on-lagune);
  box-shadow: 0 8px 22px rgba(47, 181, 168, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background: var(--lagune-hi); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47, 181, 168, 0.34), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--brume); }
.btn-ghost:hover { background: rgba(228, 240, 238, 0.14); transform: translateY(-2px); }
.btn-rail { color: var(--lagune-hi); width: 100%; border-color: rgba(99, 216, 203, 0.4); }
.btn-rail:hover { background: rgba(47, 181, 168, 0.2); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- rail (sidebar nav; becomes a drawer below 1024px) ---------- */
.rail {
  position: fixed; z-index: 60; top: 16px; left: 16px; bottom: 16px; width: calc(var(--rail) - 32px);
  display: flex; flex-direction: column; padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 28px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; padding: 0.25rem 0.5rem 1.25rem; }
.brand-mark { flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name small { display: block; margin-top: 0.3rem; font-weight: 400; font-size: 0.78rem; letter-spacing: 0; color: var(--brume-2); }
.rail nav { flex: 1; overflow-y: auto; padding: 0.25rem 0; }
.rail-links a {
  display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0 0.85rem;
  font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em;
  color: var(--brume-2); text-decoration: none; border-radius: 14px;
  transition: color 0.2s, background-color 0.25s;
}
.rail-links a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35;
  transition: transform 0.35s var(--ease), background-color 0.25s, opacity 0.25s;
}
.rail-links a:hover { color: var(--brume); background: rgba(228, 240, 238, 0.07); }
.rail-links a[aria-current="true"], .rail-links a[aria-current="page"] { color: var(--brume); background: rgba(47, 181, 168, 0.16); }
.rail-links a[aria-current="true"]::before, .rail-links a[aria-current="page"]::before { background: var(--lagune-hi); opacity: 1; transform: scale(1.5); }
.rail-foot { padding-top: 1rem; border-top: 1px solid var(--glass-line); display: grid; gap: 0.85rem; }
.rail-foot p { font-size: 0.9rem; line-height: 1.45; color: var(--brume-2); padding: 0 0.35rem; }

.topbar {
  position: fixed; z-index: 55; top: 10px; left: 10px; right: 10px; height: 3.5rem;
  display: none; align-items: center; justify-content: space-between; padding: 0 0.6rem 0 1rem; border-radius: 999px;
}
.topbar .brand { padding: 0; }
.menu-btn {
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; cursor: pointer;
  background: rgba(228, 240, 238, 0.1); border: 1px solid var(--glass-line); color: var(--brume);
  font-family: var(--f-display); font-weight: 600; font-size: 0.98rem;
}
.rail-close { display: none; }
.scrim {
  position: fixed; inset: 0; z-index: 58; background: rgba(3, 9, 12, 0.6); opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}

@media (max-width: 1023.98px) {
  .topbar { display: flex; }
  .rail {
    top: 0; left: 0; bottom: 0; width: min(88vw, 340px); border-radius: 0 28px 28px 0; z-index: 70;
    background: var(--glass-bg-strong);
    transform: translateX(-104%); visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  body[data-menu="open"] .rail { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
  body[data-menu="open"] .scrim { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
  body[data-menu="open"] { overflow: hidden; }
  .rail-close { display: inline-flex; position: absolute; top: 1rem; right: 1rem; }
  .rail-links a { min-height: 3rem; }
}

main, .site-footer { padding-left: var(--rail); }
@media (max-width: 1023.98px) { main, .site-footer { padding-left: 0; } }

/* ---------- hero (centred over footage) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 6rem var(--gutter) 5rem; text-align: center; background: linear-gradient(160deg, #0a2a33, #061218 60%);
  margin-left: calc(var(--rail) * -1); padding-left: calc(var(--rail) + var(--gutter));
}
@media (max-width: 1023.98px) { .hero { margin-left: 0; padding-left: var(--gutter); } }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-video.ready { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 18, 24, 0.6) 0%, rgba(6, 18, 24, 0.42) 38%, rgba(6, 18, 24, 0.66) 78%, var(--nuit) 100%);
}
.hero-inner { max-width: 52rem; }
.hero h1 {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.45rem, 6.1vw, 5.25rem); text-wrap: balance;
  text-shadow: 0 2px 30px rgba(3, 9, 12, 0.5);
}
.hero h1 .ln { display: block; }
.hero .sub {
  margin: 1.75rem auto 0; max-width: 36rem; font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--brume);
  text-shadow: 0 1px 18px rgba(3, 9, 12, 0.6);
}
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
.hero .micro { margin-top: 1.1rem; font-size: 0.98rem; color: var(--brume-2); }

/* entrance: pure CSS, so a JS failure can never leave a blank hero */
@keyframes rise { from { opacity: 0; filter: blur(12px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.js .rise { opacity: 0; animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms + 250ms); }
.js .hw { display: inline-block; opacity: 0; animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * 1ms + 150ms); }

/* ---------- sections ---------- */
.sec { padding: clamp(4.5rem, 9vw, 8.5rem) var(--gutter); }
.wrap { max-width: 70rem; margin: 0 auto; }
.sec h2 {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2rem, 4.2vw, 3.4rem); text-wrap: balance; max-width: 18ch;
}
.lede { margin-top: 1.25rem; max-width: 38rem; color: var(--brume-2); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* manifeste */
.manifeste p.big {
  font-family: var(--f-body); font-weight: 400; letter-spacing: -0.015em; line-height: 1.25;
  font-size: clamp(1.75rem, 3.5vw, 2.9rem); max-width: 30em; text-wrap: pretty;
}
.mw { opacity: 0.2; transition: opacity 0.5s var(--ease); }
.mw.on { opacity: 1; }
.no-motion .mw { opacity: 1; }
.term {
  margin-top: 2.75rem; max-width: 38rem; border-radius: 18px; overflow: hidden;
  font-family: var(--f-mono); font-size: 0.95rem; line-height: 1.7;
}
.term-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--glass-line); color: var(--brume-2); font-size: 0.82rem; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(228, 240, 238, 0.22); }
.term pre { margin: 0; padding: 1.1rem 1.25rem 1.3rem; overflow-x: auto; white-space: pre; font: inherit; }
.term .p { color: var(--lagune-hi); user-select: none; }
.term .c { color: var(--brume-2); }
.term .cur { display: inline-block; width: 0.6ch; height: 1.1em; vertical-align: -0.2em; background: var(--lagune-hi); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* rubriques: bento with unequal tiles */
.rubriques { position: relative; isolation: isolate; }
.rubriques::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 22%; height: 60%;
  background: linear-gradient(112deg, transparent 0%, rgba(47, 181, 168, 0.3) 30%, rgba(255, 143, 122, 0.16) 62%, transparent 85%);
  filter: blur(40px); transform: skewY(-6deg); pointer-events: none;
}
.bento { margin-top: 3.25rem; display: grid; gap: 1.1rem; grid-template-columns: repeat(12, 1fr); }
.tile { border-radius: 26px; padding: clamp(1.4rem, 2.6vw, 2.25rem); transition: transform 0.5s var(--ease), border-color 0.3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(99, 216, 203, 0.45); }
.tile h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: 1.55rem; margin-top: 1.25rem; }
.tile p { margin-top: 0.7rem; color: var(--brume-2); font-size: 1.08rem; max-width: 34rem; }
.tile svg { width: 2rem; height: 2rem; color: var(--lagune-hi); }
.t-a { grid-column: 1 / 8; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: 25rem; }
.t-a h3 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.t-a p { font-size: 1.2rem; }
.t-b { grid-column: 8 / 13; }
.t-c { grid-column: 8 / 13; }
.t-d { grid-column: 1 / 13; display: grid; grid-template-columns: auto 1fr; column-gap: 1.75rem; align-items: center; }
.t-d h3 { margin-top: 0; }
.t-d .txt { display: block; }
@media (max-width: 859.98px) {
  .t-a, .t-b, .t-c, .t-d { grid-column: 1 / -1; grid-row: auto; }
  .t-a { min-height: 0; }
  .t-d { grid-template-columns: 1fr; }
  .t-d svg { margin-bottom: 1rem; }
}

/* méthode: sequence is real, so numbers are earned */
.steps { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
.step {
  position: sticky; top: calc(5.5rem + var(--i) * 1.3rem); border-radius: 28px; min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.75rem); display: grid; grid-template-columns: minmax(4.5rem, 8rem) 1fr; gap: 1.5rem;
  background: var(--glass-bg-strong);
}
.step .n { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--lagune); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.step p { margin-top: 0.8rem; color: var(--brume-2); max-width: 34rem; }
@media (max-width: 1023.98px) { .step { top: calc(4.75rem + var(--i) * 1rem); } }
@media (max-width: 559.98px) { .step { grid-template-columns: 1fr; gap: 0.5rem; min-height: 13rem; } }

/* faq */
.faq-grid { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; max-width: 52rem; }
details.q { border-radius: 20px; padding: 0 1.5rem; transition: border-color 0.3s; }
details.q[open] { border-color: rgba(99, 216, 203, 0.4); }
details.q summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem; padding: 0.9rem 0; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--glass-line);
  background:
    linear-gradient(var(--lagune-hi), var(--lagune-hi)) center / 0.8rem 1.5px no-repeat,
    linear-gradient(var(--lagune-hi), var(--lagune-hi)) center / 1.5px 0.8rem no-repeat;
  transition: transform 0.4s var(--ease);
}
details.q[open] summary::after { transform: rotate(135deg); }
details.q .a { padding: 0 0 1.4rem; color: var(--brume-2); max-width: 40rem; }
.faq-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.faq-cta p { color: var(--brume-2); }

/* contact */
.contact-grid { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.mail-big {
  display: inline-block; margin-top: 1.5rem; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.1; overflow-wrap: anywhere; text-decoration-color: var(--lagune); text-decoration-thickness: 2px;
  text-underline-offset: 0.2em; transition: color 0.2s;
}
.mail-big:hover { color: var(--lagune-hi); }
.addr { border-radius: 26px; padding: clamp(1.4rem, 2.6vw, 2.25rem); display: grid; gap: 1.1rem; align-content: start; }
.addr dt { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--brume-2); }
.addr dd { font-size: 1.15rem; line-height: 1.5; }
.addr a { color: var(--lagune-hi); }
.placeholder { color: var(--corail); font-style: italic; }
@media (max-width: 859.98px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer: newsletter */
.site-footer { position: relative; padding-top: 0; padding-bottom: 2rem; }
.letter { margin: 0 var(--gutter); padding: clamp(2rem, 5vw, 4.5rem); border-radius: 36px; display: grid; gap: 2rem 4rem; grid-template-columns: 1.1fr 1fr; align-items: end;
  background: linear-gradient(135deg, rgba(47, 181, 168, 0.22), rgba(11, 34, 41, 0.6) 55%, rgba(255, 143, 122, 0.14)); }
.letter h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2rem, 4.6vw, 4rem); text-wrap: balance; }
.letter .promise { margin-top: 1rem; color: var(--brume); max-width: 30rem; }
.letter form { display: grid; gap: 0.7rem; }
.letter label { font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.field { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.field input {
  flex: 1 1 14rem; min-height: 3.4rem; padding: 0 1.25rem; border-radius: 999px; font: inherit; font-size: 1.05rem;
  background: rgba(3, 9, 12, 0.55); color: var(--brume); border: 1px solid rgba(228, 240, 238, 0.28);
}
.field input::placeholder { color: #8fa9a6; }
.field input[aria-invalid="true"] { border-color: var(--corail); }
.form-msg { min-height: 1.5rem; font-size: 1rem; color: var(--brume); }
.form-msg.err { color: #ffb3a4; }
.fine { font-size: 0.95rem; color: var(--brume-2); }
.foot-grid { margin: 4rem var(--gutter) 0; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-grid h3 { font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin-bottom: 0.8rem; }
.foot-grid li a, .foot-grid p, .foot-grid address { color: var(--brume-2); font-size: 1.02rem; font-style: normal; line-height: 1.7; }
.foot-grid li a { display: inline-block; padding: 0.2rem 0; text-decoration: none; }
.foot-grid li a:hover, .foot-grid a:hover { color: var(--brume); text-decoration: underline; }
.legal { margin: 3rem var(--gutter) 0; padding-top: 1.5rem; border-top: 1px solid var(--glass-line); color: var(--brume-2); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 859.98px) {
  .letter { grid-template-columns: 1fr; border-radius: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 7rem var(--gutter) 4rem; }
.lost-inner { max-width: 44rem; }
.lost .code { font-family: var(--f-display); font-weight: 300; font-size: clamp(6rem, 20vw, 14rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--lagune); }
.lost h1 { margin-top: 1.5rem; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.lost p.lead { margin-top: 1rem; color: var(--brume-2); max-width: 34rem; }
.lost .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.lost .term { margin-top: 2rem; }
.lost .more { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.lost .more a { color: var(--lagune-hi); }

/* reduced motion: stop everything non-essential, keep content visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .hw { animation: none; opacity: 1; filter: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mw { opacity: 1; transition: none; }
  .hero-video { transition: none; }
  .term .cur { animation: none; }
  .tile, .btn, .btn .arr { transition: none; }
}

/* polish pass */
.hero .btn-ghost { background: rgba(6, 18, 24, 0.55); border-color: rgba(228, 240, 238, 0.3); }
.hero .micro { text-shadow: 0 1px 14px rgba(3, 9, 12, 0.8); color: var(--brume); }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.rail-links { display: grid; gap: 0.15rem; }
.lost { grid-template-columns: minmax(0, 1fr); }
.lost-inner { min-width: 0; width: 100%; max-width: 44rem; justify-self: start; }
.term { min-width: 0; max-width: 100%; }

/* tarifs */
.plans { margin-top: 3rem; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.plan { border-radius: 26px; padding: clamp(1.4rem, 2.4vw, 2.1rem); display: flex; flex-direction: column; }
.plan h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.4rem; line-height: 1.15; }
.plan .price { margin-top: 1.25rem; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price .per, .plan .price .from { font-size: 1.1rem; font-weight: 400; letter-spacing: 0; color: var(--brume-2); }
.plan .alt { margin-top: 0.5rem; color: var(--lagune-hi); font-size: 1.02rem; }
.plan .what { margin-top: 1.1rem; color: var(--brume-2); font-size: 1.08rem; flex: 1; }
.plan .btn { margin-top: 1.6rem; align-self: flex-start; }
.plans-note { margin-top: 1.75rem; max-width: 46rem; font-size: 0.98rem; color: var(--brume-2); }
.plans-note a { color: var(--lagune-hi); }
@media (max-width: 959.98px) { .plans { grid-template-columns: 1fr; } }

/* footer legal */
.foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.legal-links { margin: 0 var(--gutter); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--brume-2); text-decoration: none; font-size: 1.02rem; }
.legal-links a:hover, .legal-links a[aria-current] { color: var(--brume); text-decoration: underline; }
.letter .fine a, .fine a { color: var(--lagune-hi); }
@media (max-width: 859.98px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.rail-sub { margin: 1rem 0.85rem 0.25rem; font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; color: var(--brume-2); }

/* legal documents */
.doc { padding: 7.5rem var(--gutter) 4rem; max-width: calc(46rem + var(--gutter) * 2); margin: 0 auto; }
.doc-head h1 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(2.2rem, 5vw, 3.6rem); text-wrap: balance; }
.doc-meta { margin-top: 0.9rem; color: var(--brume-2); }
.draft-note { margin-top: 1.25rem; padding: 0.85rem 1.1rem; border-radius: 14px; border: 1px dashed rgba(255, 143, 122, 0.6); color: #ffc2b5; font-size: 1rem; line-height: 1.5; }
.toc { margin-top: 2rem; border-radius: 20px; padding: 1.25rem 1.5rem; }
.toc-title { font-family: var(--f-display); font-weight: 600; margin-bottom: 0.4rem; }
.toc ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 0.1rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toc li::marker { color: var(--lagune-hi); font-family: var(--f-display); }
.toc a { display: inline-block; padding: 0.3rem 0; color: var(--brume); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--lagune-hi); }
@media (max-width: 639.98px) { .toc ol { grid-template-columns: 1fr; } }
.doc-body section { margin-top: 3rem; }
.doc-body h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(1.4rem, 2.4vw, 1.8rem); max-width: none; }
.doc-body p, .doc-body li { font-size: 1.12rem; line-height: 1.7; max-width: 46rem; }
.doc-body p { margin-top: 0.9rem; }
.doc-body ul { margin-top: 0.9rem; list-style: disc; padding-left: 1.4rem; }
.doc-body li { margin-top: 0.4rem; }
.doc-body li::marker { color: var(--lagune); }
.doc-body a { color: var(--lagune-hi); overflow-wrap: anywhere; }
.facts { margin-top: 1rem; display: grid; gap: 0; border-top: 1px solid var(--glass-line); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--glass-line); }
.facts dt { font-family: var(--f-display); font-weight: 600; color: var(--brume-2); font-size: 1rem; }
.facts dd { font-size: 1.1rem; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 559.98px) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--glass-line); border-radius: 16px; }
.table-wrap table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
.table-wrap th, .table-wrap td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--glass-line); }
.table-wrap thead th { font-family: var(--f-display); font-weight: 600; background: rgba(228, 240, 238, 0.06); color: var(--brume); }
.table-wrap tbody th { font-family: var(--f-display); font-weight: 600; width: 11rem; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.form-model { margin-top: 1rem; padding: 0.5rem 1.4rem 1.2rem; border: 1px dashed var(--glass-line); border-radius: 16px; }
