/* =========================================================================
   Tarifo — Design System (Lumin)
   ink · paper · electric lime
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');

@font-face { font-family: 'Quicksand'; src: url('fonts/Quicksand-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/Quicksand-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/Quicksand-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/Quicksand-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('fonts/Quicksand-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0A0A0A;
  --paper: #F5F5F0;
  --lime: #D4FF3A;
  --white: #FFFFFF;

  --ink-90: rgba(10,10,10,0.90);
  --ink-72: rgba(10,10,10,0.72);
  --ink-56: rgba(10,10,10,0.56);
  --ink-40: rgba(10,10,10,0.40);
  --ink-24: rgba(10,10,10,0.24);
  --ink-12: rgba(10,10,10,0.12);
  --ink-08: rgba(10,10,10,0.08);
  --ink-04: rgba(10,10,10,0.04);

  --paper-90: rgba(245,245,240,0.90);
  --paper-72: rgba(245,245,240,0.72);
  --paper-56: rgba(245,245,240,0.56);
  --paper-40: rgba(245,245,240,0.40);
  --paper-24: rgba(245,245,240,0.24);
  --paper-12: rgba(245,245,240,0.12);
  --paper-08: rgba(245,245,240,0.08);

  --font-display: 'Quicksand', 'Avenir Next Rounded', 'Nunito', system-ui, sans-serif;
  --font-text:    'Quicksand', 'Avenir Next Rounded', 'Nunito', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 15px; line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

button { font-family: inherit; }

/* ─── LAYOUT ──────────────────────────────────────────────────────────── */
.shell {
  max-width: 1180px; margin: 0 auto;
  padding: 0 18px 96px;  /* no top padding — hero-wrap sits above; strip overlaps into this area */
}
@media (min-width: 768px) {
  .shell { padding: 0 32px 96px; }
}

/* ─── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .site-header { margin-bottom: 40px; }
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  position: relative; text-decoration: none; color: inherit;
  line-height: 1;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}
@media (max-width: 540px) {
  .brand-logo { height: 36px; }
}

.brand-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-56);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--ink-08); background: rgba(255,255,255,0.4);
}
.brand-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 8px rgba(212,255,58,0.7);
}
@media (max-width: 480px) { .brand-tag { display: none; } }

/* ─── HERO — Booking-style full-bleed dark band ────────────────────── */
.hero-wrap {
  position: relative;
  background-color: #0A0A0A !important;  /* fond ink garanti, indépendant des variables */
  color: var(--paper);
  padding: 24px 0 76px;
  overflow: visible;
  margin-bottom: 40px;
  isolation: isolate;
}
.hero-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 35% at 18% 8%, rgba(212,255,58,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 92%, rgba(212,255,58,0.06), transparent 65%);
}
.hero-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(245,245,240,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,240,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (min-width: 768px) { .hero-inner { padding: 0 32px; } }

/* Site header sits at top of the dark hero — white text */
.hero-wrap .site-header {
  margin-bottom: 36px;
}
.hero-wrap .brand-name { color: var(--paper); }
.hero-wrap .brand-dot { background: var(--lime); }
.hero-wrap .brand-mark::before { background: var(--lime); }
.hero-wrap .brand-tag {
  background: rgba(245,245,240,0.06);
  border-color: rgba(245,245,240,0.12);
  color: var(--paper-72);
}
.hero-wrap .brand-tag::before { background: var(--lime); }

/* Two-column layout: text left, image right */
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    min-height: 360px;
  }
}

.hero-left { min-width: 0; padding: 20px 0 16px; }
@media (min-width: 980px) { .hero-left { padding: 28px 0 24px; } }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--paper-56); margin-bottom: 14px;
}
.hero-kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 10px rgba(212,255,58,0.6);
}

.hero-wrap h1 {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.04; margin: 0; color: var(--paper);
  max-width: 16ch;
}
.hero-wrap h1 em {
  font-style: normal; color: var(--paper);
  background-image: linear-gradient(to top, var(--lime) 0, var(--lime) 22%, transparent 22%);
  padding: 0 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@media (min-width: 540px) { .hero-wrap h1 { font-size: 44px; } }
@media (min-width: 768px) { .hero-wrap h1 { font-size: 54px; } }
@media (min-width: 1180px) { .hero-wrap h1 { font-size: 64px; } }

.hero-wrap p {
  margin: 16px 0 0; max-width: 48ch;
  font-size: 15px; color: var(--paper-72); font-weight: 500; line-height: 1.55;
}
.hero-wrap p strong { color: var(--paper); font-weight: 700; }
@media (min-width: 768px) { .hero-wrap p { font-size: 16.5px; } }

/* Image — visible uniquement sur desktop large pour rester compact.
   Hauteur fixe (pas d'aspect-ratio) pour éviter tout débordement. */
.hero-right {
  display: none;  /* masqué par défaut, affiché ≥ 1024px */
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(245,245,240,0.04);
  border: 1px solid var(--paper-08);
}
@media (min-width: 1024px) {
  .hero-right { display: block; height: 420px; }
}
@media (min-width: 1280px) {
  .hero-right { height: 460px; }
}
.hero-right img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}

/* ─── FLOATING SEARCH STRIP — Booking-style ──────────────────────────── */
.hero-strip {
  position: relative; z-index: 4;
  margin-top: 36px;
  margin-bottom: -56px;  /* overlap into the white area below */
  background: var(--paper);
  border-radius: 16px;
  box-shadow:
    0 24px 48px -16px rgba(10,10,10,0.45),
    0 0 0 1px rgba(10,10,10,0.04);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 2px solid var(--lime);
}
@media (min-width: 768px) {
  .hero-strip {
    grid-template-columns: 1.4fr 1fr 1.1fr auto;
  }
}

.strip-field {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-08);
  cursor: text; min-width: 0;
  transition: background 160ms var(--ease);
}
.strip-field:last-of-type { border-bottom: none; }
@media (min-width: 768px) {
  .strip-field {
    border-bottom: none; border-right: 1px solid var(--ink-08);
    padding: 14px 20px;
  }
}
.strip-field:focus-within { background: var(--ink-04); }

.strip-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink-04);
  color: var(--ink-72);
  display: inline-flex; align-items: center; justify-content: center;
}
.strip-field:focus-within .strip-icon { background: var(--lime); color: var(--ink); }

.strip-stack {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.strip-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-56);
}
.strip-input-row {
  display: flex; align-items: baseline; gap: 8px; position: relative; min-width: 0;
}
.strip-input-row input,
.strip-input-row select {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--font-display); font-weight: 700;
  color: var(--ink); padding: 0; letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  appearance: none; -webkit-appearance: none;
  cursor: text;
}
.strip-input-row select { cursor: pointer; padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 11px 7px;
}
.strip-field.amount .strip-input-row input { font-size: 22px; letter-spacing: -0.025em; }
.strip-field.select .strip-input-row select { font-size: 15px; }

.strip-currency {
  font-size: 11.5px; font-weight: 600; color: var(--ink-40); letter-spacing: 0.04em;
}
.strip-op-dot {
  flex-shrink: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #E84A4A;
}

/* CTA on the right edge */
.strip-cta {
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  font-family: var(--font-text); font-weight: 700; font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 120ms var(--ease);
  width: 100%;
}
@media (min-width: 768px) {
  .strip-cta { padding: 0 24px; min-height: 100%; min-width: 150px; }
}
.strip-cta:hover { background: #1a1a1a; }
.strip-cta:active { transform: scale(0.99); }
.strip-cta svg { transition: transform 200ms var(--ease); }
.strip-cta:hover svg { transform: translateX(3px); }

/* ─── HERO RESULT CARD — sits below the strip in the white area ────── */
.hero-result-card {
  position: relative;
  background: var(--ink); color: var(--paper);
  border-radius: 20px;
  padding: 24px 22px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 24px 48px -22px rgba(10,10,10,0.18);
  margin-bottom: 56px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero-result-card { padding: 32px 36px; gap: 24px; } }
@media (max-width: 540px) { .hero-result-card { grid-template-columns: 1fr; padding: 24px 20px; } }

.hero-result-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px; border-radius: 999px;
  background: radial-gradient(circle, rgba(212,255,58,0.12), transparent 65%);
  pointer-events: none;
}
.hero-result-card > .share-row { grid-column: 1 / -1; }
.hero-result-card > .hero-article-link { grid-column: 1 / -1; }

/* ─── HERO ARTICLE LINK — vers l'Observatoire ──────────────────────── */
.hero-article-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(245,245,240,0.04);
  border: 1px solid var(--paper-12);
  border-radius: 12px;
  color: var(--paper);
  text-decoration: none;
  transition: all 180ms var(--ease);
}
.hero-article-link:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: translateY(-1px);
}
.hero-article-link-label {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.hero-article-link-label::before {
  content: 'OBSERVATOIRE · ';
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-right: 6px;
}
.hero-article-link:hover .hero-article-link-label::before { color: var(--ink); }
.hero-article-link-arrow {
  display: inline-flex;
  transition: transform 200ms var(--ease);
  color: currentColor;
}
.hero-article-link:hover .hero-article-link-arrow { transform: translateX(3px); }

.hero-result-block { position: relative;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-result-block.primary { padding-right: 14px; }
.hero-result-block.secondary {
  border-left: 1px solid var(--paper-12);
  padding-left: 24px;
}
@media (max-width: 540px) {
  .hero-result-block.secondary {
    border-left: none;
    border-top: 1px solid var(--paper-12);
    padding-left: 0; padding-top: 20px; margin-top: 4px;
  }
  .hero-result-block.primary { padding-right: 0; padding-bottom: 4px; }
}

.hero-result-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--paper-56); margin-bottom: 12px;
}
.hero-result-value {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em; line-height: 0.95;
}
.hero-result-value .num-wrap { position: relative; display: inline-block; }
.hero-result-value .num {
  position: relative; z-index: 1;
  font-size: 48px; font-weight: 600; color: var(--paper);
  display: inline-block;
  animation: tarifo-number-in 380ms var(--ease) both;
}
.hero-result-block.primary .hero-result-value .num { font-size: 64px; }
@media (min-width: 768px) {
  .hero-result-block.primary .hero-result-value .num { font-size: 80px; }
  .hero-result-block.secondary .hero-result-value .num { font-size: 44px; }
}
@media (max-width: 540px) {
  .hero-result-block.primary .hero-result-value .num { font-size: 56px; }
  .hero-result-block.secondary .hero-result-value .num { font-size: 38px; }
}
.hero-result-value .lime-under {
  position: absolute; left: -3%; bottom: -2%;
  width: 106%; height: 14%;
  background: var(--lime); border-radius: 3px;
  transform-origin: left center;
  animation: tarifo-lime-paint 420ms 120ms var(--ease) both;
  z-index: 0;
  box-shadow: 0 0 18px rgba(212,255,58,0.35);
}
.hero-result-value .unit {
  font-size: 14px; font-weight: 600; color: var(--paper-56); letter-spacing: 0.02em;
}
.hero-result-rate {
  margin-top: 10px; font-size: 12.5px; color: var(--paper-72); font-weight: 500;
  letter-spacing: -0.005em;
}

/* ─── TOOLS INTRO ────────────────────────────────────────────────────── */
.tools-intro { margin-bottom: 24px; max-width: 60ch; }
.tools-intro .section-tag { margin-bottom: 10px; }
.tools-intro h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--ink);
}
@media (min-width: 768px) { .tools-intro h2 { font-size: 32px; } }
.tools-intro h2 em {
  font-style: normal;
  background-image: linear-gradient(to top, var(--lime) 0, var(--lime) 22%, transparent 22%);
  padding: 0 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.tools-intro p {
  margin-top: 12px; font-size: 14.5px; color: var(--ink-72); font-weight: 500; line-height: 1.55;
}

/* ─── TABS ───────────────────────────────────────────────────────────── */
.tabs {
  display: inline-grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 6px; border-radius: 14px;
  background: var(--ink-04); border: 1px solid var(--ink-08);
  margin-bottom: 20px; width: 100%;
}
@media (min-width: 640px) { .tabs { width: auto; } }

.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 10px;
  background: transparent; color: var(--ink-72); border: none;
  font-family: var(--font-text); font-weight: 600; font-size: 13px;
  letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--ink); color: var(--paper); font-weight: 700;
}
.tab[aria-selected="true"] .tab-dot { background: var(--lime); }
.tab-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-24);
  transition: background 180ms var(--ease);
}
@media (min-width: 768px) {
  .tab { height: 48px; padding: 0 22px; font-size: 14px; }
}

/* ─── APP LAYOUT (form + result) ─────────────────────────────────────── */
.app {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  align-items: start;
}
@media (min-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; }
}
@media (min-width: 1120px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; }
}

.app-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--ink-08); border-radius: 18px;
  box-shadow: 0 8px 24px -16px rgba(10,10,10,0.08);
}
@media (min-width: 768px) {
  .app-form { padding: 32px 30px; gap: 24px; }
}

.app-result {
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0; /* allow truncation in grid */
}

/* ─── FORM ELEMENTS ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; }
.field-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.field-label span:first-child {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-56);
}
.field-hint {
  font-size: 11px; color: var(--ink-40); font-weight: 500;
}

/* Operator toggle */
.op-toggle {
  background: var(--ink-04); padding: 5px; border-radius: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
}
.op-toggle button {
  height: 52px; border: none; border-radius: 10px;
  background: transparent; color: var(--ink-72);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.005em; cursor: pointer;
  transition: all 180ms var(--ease);
}
.op-toggle button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); font-weight: 700;
}
.op-toggle .op-dot {
  width: 9px; height: 9px; border-radius: 50%;
  transition: all 180ms var(--ease);
}
.op-toggle button[aria-pressed="true"] .op-dot {
  background: var(--lime) !important;
  box-shadow: 0 0 0 3px rgba(212,255,58,0.2);
}

/* Type selector */
.type-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.type-grid button {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ink-08);
  padding: 14px 14px; border-radius: 12px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 80px;
  transition: all 180ms var(--ease);
  position: relative;
}
.type-grid button:hover { border-color: var(--ink-24); }
.type-grid button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.type-grid button[aria-pressed="true"] .type-sub { color: var(--paper-56); }
.type-grid button[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
}
.type-label {
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
}
.type-sub {
  font-size: 10.5px; font-weight: 500; line-height: 1.3; color: var(--ink-40);
}

/* Amount input */
.amount {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--ink-08);
  padding: 18px 20px; transition: all 180ms var(--ease);
  position: relative;
}
.amount:focus-within { border: 2px solid var(--lime); padding: 17px 19px; }
.amount-caption {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-40); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.amount.receive .amount-caption::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 6px rgba(212,255,58,0.6);
}
.amount-row { display: flex; align-items: baseline; gap: 8px; }
.amount input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-display); font-size: 40px; font-weight: 600;
  letter-spacing: -0.035em; color: var(--ink); padding: 0; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.amount input::placeholder { color: var(--ink-24); }
.amount-currency {
  font-size: 13px; font-weight: 600; color: var(--ink-40); letter-spacing: 0.04em;
}

/* Quick amounts */
.quick {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  margin-top: 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.quick::-webkit-scrollbar { display: none; }
.quick button {
  flex-shrink: 0; background: var(--white); color: var(--ink-72);
  border: 1px solid var(--ink-08);
  height: 32px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-text); font-size: 12px; font-weight: 700;
  cursor: pointer; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.quick button:hover { border-color: var(--ink-24); }
.quick button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.quick button .unit { font-size: 9px; opacity: 0.6; font-weight: 600; }

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px; border-radius: 14px;
  background: var(--ink); color: var(--paper); border: none;
  font-family: var(--font-text); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; cursor: pointer;
  transition: transform 120ms var(--ease), opacity 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.btn-full { width: 100%; }
.btn.btn-lime { background: var(--lime); color: var(--ink); }
.btn.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink-24);
}
.btn.btn-ghost:hover { border-color: var(--ink); transform: none; }
.btn.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* ─── RESULT CARD ────────────────────────────────────────────────────── */
.result-card {
  background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: 24px 22px 26px; position: relative; overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(10,10,10,0.35);
  animation: tarifo-result-rise 360ms 60ms var(--ease) both;
}
.result-card::before {
  content: ''; position: absolute; top: -40px; right: -30px;
  width: 180px; height: 180px; border-radius: 999px;
  background: radial-gradient(circle, rgba(212,255,58,0.10), transparent 65%);
  pointer-events: none;
}
.result-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; position: relative;
}
.result-head .kicker {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--paper-56);
}
.result-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 11px; border-radius: 999px;
  background: transparent; color: var(--paper-72);
  border: 1px solid var(--paper-12);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap;
}
.result-pill .pill-dot { width: 7px; height: 7px; border-radius: 50%; }

.result-amount-row {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.result-amount-wrap { position: relative; display: inline-block; }
.lime-under {
  position: absolute; left: -3%; bottom: -2%;
  width: 106%; height: 14%;
  background: var(--lime); border-radius: 3px;
  transform-origin: left center;
  animation: tarifo-lime-paint 420ms 120ms var(--ease) both;
  z-index: 0;
  box-shadow: 0 0 18px rgba(212,255,58,0.35);
}
.result-amount {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 72px; font-weight: 600;
  letter-spacing: -0.045em; line-height: 0.92;
  font-variant-numeric: tabular-nums; color: var(--paper);
  display: inline-block;
  animation: tarifo-number-in 380ms var(--ease) both;
}
@media (min-width: 768px) { .result-amount { font-size: 84px; } }

.result-currency {
  font-size: 18px; font-weight: 600; color: var(--paper-56); letter-spacing: 0.02em;
  animation: tarifo-fade-in 360ms 220ms var(--ease) both;
}
.result-rate {
  font-size: 13px; color: var(--paper-72); font-weight: 500; margin-bottom: 18px;
  letter-spacing: -0.005em;
  animation: tarifo-fade-in 280ms 280ms var(--ease) both;
}

.result-divider { height: 1px; background: var(--paper-12); margin-bottom: 14px; }

.breakdown { display: flex; flex-direction: column; gap: 9px;
  animation: tarifo-fade-in 280ms 340ms var(--ease) both;
}
.breakdown-row { display: flex; justify-content: space-between; align-items: baseline; }
.breakdown-label { font-size: 12.5px; color: var(--paper-56); font-weight: 500; }
.breakdown-value {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  color: var(--paper); font-variant-numeric: tabular-nums; letter-spacing: -0.015em;
}

.result-total {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--paper-12);
  display: flex; justify-content: space-between; align-items: baseline;
  animation: tarifo-fade-in 280ms 400ms var(--ease) both;
}
.result-total-label {
  font-size: 12.5px; font-weight: 600; color: var(--paper); letter-spacing: -0.005em;
}
.result-total-value {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--paper); font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em; line-height: 1;
}
.result-total-value .unit {
  font-size: 11.5px; font-weight: 600; color: var(--paper-56);
  margin-left: 5px; letter-spacing: 0.02em;
}

/* ─── COMPARE — operator cards ───────────────────────────────────────── */
.op-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  animation: tarifo-fade-in 280ms 280ms var(--ease) both;
}
.op-card {
  background: var(--white); border: 1px solid var(--ink-08);
  border-radius: 14px; padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: all 240ms var(--ease);
}
.op-card.winner {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(212,255,58,0.35);
}
.op-card.winner::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 3px;
  background: var(--lime);
  border-top-right-radius: 14px; border-bottom-right-radius: 14px;
}
.op-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.op-card-dot { width: 8px; height: 8px; border-radius: 50%; }
.op-card-name { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.op-card-fee-row { display: flex; align-items: baseline; gap: 6px; }
.op-card-fee {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em; line-height: 1;
}
@media (min-width: 480px) { .op-card-fee { font-size: 36px; } }
.op-card-unit { font-size: 11.5px; font-weight: 600; color: var(--ink-40); }
.op-card-rate { margin-top: 6px; font-size: 11.5px; color: var(--ink-56); font-weight: 500; }

/* ─── ALERT ──────────────────────────────────────────────────────────── */
.alert {
  border-radius: 12px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  animation: tarifo-fade-in 280ms 280ms var(--ease) both;
}
.alert.subtle { background: var(--ink-04); color: var(--ink); }
.alert.warn { background: var(--ink); color: var(--paper); }
.alert.info { background: var(--white); color: var(--ink); border: 1px solid var(--ink-08); }
.alert-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
  background: var(--ink-08); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.alert.warn .alert-icon { background: var(--lime); color: var(--ink); }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-size: 12.5px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.005em; }
.alert-text { font-size: 12px; line-height: 1.45; font-weight: 500; }
.alert.subtle .alert-text { color: var(--ink-72); }
.alert.warn .alert-text { color: var(--paper-72); }
.alert.info .alert-text { color: var(--ink-72); }

/* ─── DISCLAIMER ─────────────────────────────────────────────────────── */
.disclaimer {
  padding: 14px 16px;
  border: 1px dashed var(--ink-12); border-radius: 10px;
  animation: tarifo-fade-in 280ms 360ms var(--ease) both;
}
.disclaimer-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-40); margin-bottom: 4px;
}
.disclaimer-text {
  font-size: 11.5px; line-height: 1.5; color: var(--ink-56); font-weight: 500;
}

/* ─── RESULT HEADER (above card) ─────────────────────────────────────── */
.result-intro { animation: tarifo-fade-in 240ms var(--ease) both; }
.result-intro .kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-40); margin-bottom: 6px;
}
.result-intro h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.15; margin: 0; color: var(--ink);
}
.result-intro h2 .muted { color: var(--ink-56); font-weight: 500; }

/* ─── VERDICT CARD (Comparer) ────────────────────────────────────────── */
.verdict-card {
  background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: 22px 22px 24px; position: relative; overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(10,10,10,0.35);
  animation: tarifo-result-rise 360ms 60ms var(--ease) both;
}
.verdict-card::before {
  content: ''; position: absolute; top: -40px; right: -30px;
  width: 180px; height: 180px; border-radius: 999px;
  background: radial-gradient(circle, rgba(212,255,58,0.10), transparent 65%);
  pointer-events: none;
}
.verdict-kicker {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--lime); margin-bottom: 14px;
}
.verdict-headline {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.06; color: var(--paper); margin: 0;
}
@media (min-width: 768px) { .verdict-headline { font-size: 32px; } }
.verdict-headline .muted { color: var(--paper-72); font-weight: 500; }
.verdict-num-wrap {
  display: inline-flex; align-items: baseline; gap: 8px;
  position: relative; white-space: nowrap;
}
.verdict-num-wrap .lime-under {
  width: 76%; height: 12%;
}
.verdict-num {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 48px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.95;
  color: var(--paper); font-variant-numeric: tabular-nums;
  display: inline-block;
  animation: tarifo-number-in 380ms var(--ease) both;
}
@media (min-width: 768px) { .verdict-num { font-size: 56px; } }
.verdict-currency {
  font-size: 15px; font-weight: 600; color: var(--paper-56); letter-spacing: 0.02em;
  position: relative; z-index: 1;
}
.verdict-sub {
  margin-top: 14px; font-size: 12.5px; line-height: 1.5;
  color: var(--paper-72); font-weight: 500;
}

/* ─── SECTIONS / DIVIDERS ────────────────────────────────────────────── */
.section {
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--ink-08);
}
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-56);
  margin-bottom: 10px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
}
.section h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--ink); max-width: 22ch;
}
@media (min-width: 768px) { .section h2 { font-size: 36px; } }
.section h2 em {
  font-style: normal; color: var(--ink);
  background-image: linear-gradient(to top, var(--lime) 0, var(--lime) 22%, transparent 22%);
  padding: 0 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.section-lead {
  margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-72);
  font-weight: 500; max-width: 60ch;
}

/* ─── FEATURE GRID ───────────────────────────────────────────────────── */
.features {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
.feature {
  background: var(--white); border: 1px solid var(--ink-08); border-radius: 16px;
  padding: 22px 22px 24px;
}
.feature-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-40);
  margin-bottom: 14px;
}
.feature-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin: 0; color: var(--ink);
}
.feature-body {
  margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-72);
  font-weight: 500;
}

/* ─── DEVICES SHOWCASE — laptop + smartphone mockup ─────────────────── */
.devices-figure {
  margin: var(--space-6) 0 var(--space-5);
  background: linear-gradient(180deg, #faf7f2 0%, var(--paper) 100%);
  border: 1px solid var(--ink-08);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.devices-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.devices-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: var(--space-5);
}
@media (max-width: 540px) {
  .devices-actions { flex-direction: column; align-items: flex-start; }
}

.devices-install-hint {
  font-size: 13px;
  color: var(--ink-72);
  line-height: 1.5;
  max-width: 56ch;
}
.devices-install-hint strong {
  color: var(--ink);
  font-weight: 700;
}

#install-pwa svg { transition: transform 200ms var(--ease); }
#install-pwa:hover svg { transform: translateY(2px); }

/* ─── CONTACT FORM ───────────────────────────────────────────────────── */
.contact {
  margin-top: 28px;
  background: var(--ink); color: var(--paper); border-radius: 22px;
  padding: 32px 24px;
}
@media (min-width: 768px) {
  .contact { padding: 48px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
}
.contact h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--paper);
}
@media (min-width: 768px) { .contact h3 { font-size: 32px; } }
.contact h3 em { font-style: normal; color: var(--lime); }
.contact p {
  margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--paper-72); font-weight: 500;
}
.contact-form {
  margin-top: 24px; display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 768px) { .contact-form { margin-top: 0; } }
.contact-field {
  display: flex; flex-direction: column; gap: 6px;
}
.contact-field label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--paper-56);
}
.contact-field input,
.contact-field textarea {
  background: rgba(245,245,240,0.04); color: var(--paper);
  border: 1px solid var(--paper-12); border-radius: 12px;
  padding: 14px 16px; font-family: var(--font-text); font-size: 14.5px; font-weight: 500;
  outline: none; transition: border-color 180ms var(--ease);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--paper-40); }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--lime); }
.contact-field textarea { min-height: 92px; resize: vertical; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } }

.contact-submit {
  margin-top: 6px;
  background: var(--lime); color: var(--ink);
  height: 56px; border: none; border-radius: 14px;
  font-family: var(--font-text); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; cursor: pointer;
  transition: transform 120ms var(--ease), opacity 180ms var(--ease);
}
.contact-submit:hover { transform: translateY(-1px); }
.contact-submit:active { transform: translateY(0) scale(0.99); }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.contact-msg {
  font-size: 12.5px; font-weight: 600; padding: 10px 14px; border-radius: 10px;
  display: none;
}
.contact-msg.success { display: block; background: rgba(212,255,58,0.16); color: var(--lime); border: 1px solid rgba(212,255,58,0.4); }
.contact-msg.error { display: block; background: rgba(245,245,240,0.08); color: var(--paper); border: 1px solid var(--paper-24); }

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--ink-08);
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.site-footer-meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; color: var(--ink-40);
  text-transform: uppercase;
}
.site-footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer-nav a {
  font-size: 12px; color: var(--ink-72); text-decoration: none; font-weight: 600;
}
.site-footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */
@keyframes tarifo-lime-paint {
  0% { transform: scaleX(0.18); }
  100% { transform: scaleX(1); }
}
@keyframes tarifo-number-in {
  0% { transform: translateY(8px); }
  100% { transform: translateY(0); }
}
@keyframes tarifo-fade-in {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes tarifo-result-rise {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

/* ─── A11Y ───────────────────────────────────────────────────────────── */
.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;
}

/* ─── SHARE BUTTON (inline, under results) ──────────────────────────── */
.share-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--paper-12);
}
.share-row.on-paper {
  border-top-color: var(--ink-08);
}
.share-row .share-recommend {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1;
}
.share-row .share-recommend-title {
  font-size: 12.5px; font-weight: 700; color: var(--paper); letter-spacing: -0.005em;
}
.share-row.on-paper .share-recommend-title { color: var(--ink); }
.share-row .share-recommend-sub {
  font-size: 11.5px; color: var(--paper-56); font-weight: 500;
}
.share-row.on-paper .share-recommend-sub { color: var(--ink-56); }

.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  background: transparent; color: var(--paper);
  border: 1px solid var(--paper-24);
  font-family: var(--font-text); font-weight: 700; font-size: 12.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
}
.share-btn:hover { background: var(--paper-08); border-color: var(--paper); }
.share-btn.on-paper {
  color: var(--ink); border-color: var(--ink-24);
}
.share-btn.on-paper:hover { background: var(--ink-04); border-color: var(--ink); }
.share-btn.primary {
  background: var(--lime); color: var(--ink); border-color: var(--lime);
}
.share-btn.primary:hover { background: var(--lime); border-color: var(--ink); }
.share-btn svg { width: 16px; height: 16px; }

/* ─── SHARE SHEET (bottom sheet modal) ───────────────────────────────── */
.share-sheet {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) {
  .share-sheet { align-items: center; }
}

.share-scrim {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: share-scrim-in 220ms var(--ease) both;
}
@keyframes share-scrim-in { 0% { opacity: 0; } 100% { opacity: 1; } }

.share-panel {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--paper);
  width: 100%; max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 14px 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
  animation: share-panel-up 320ms var(--ease) both;
  box-shadow: 0 -16px 48px -8px rgba(10,10,10,0.5);
}
@media (min-width: 640px) {
  .share-panel {
    border-radius: 20px;
    margin: 0 16px;
    padding: 18px 24px 24px;
    animation: share-panel-fade 220ms var(--ease) both;
  }
}
@keyframes share-panel-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
@keyframes share-panel-fade {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.share-handle {
  width: 56px; height: 4px; border-radius: 999px;
  background: var(--lime);
  margin: 0 auto;
  transform-origin: center;
  animation: share-handle-paint 480ms 200ms var(--ease) both;
  box-shadow: 0 0 18px rgba(212,255,58,0.5);
}
@keyframes share-handle-paint {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@media (min-width: 640px) {
  .share-handle { display: none; }
}

.share-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.share-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime);
}
.share-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--paper-08); color: var(--paper);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 180ms var(--ease);
}
.share-close:hover { background: var(--paper-12); }

.share-preview {
  background: rgba(245,245,240,0.04);
  border: 1px solid var(--paper-08);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.5;
  color: var(--paper-72);
  white-space: pre-wrap; word-break: break-word;
  max-height: 200px; overflow-y: auto;
  margin: 0;
}

.share-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.share-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 12px;
  background: var(--paper-08); color: var(--paper);
  border: 1px solid transparent;
  font-family: var(--font-text); font-weight: 700; font-size: 12px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.share-action:hover {
  background: var(--paper-12); border-color: var(--paper-24);
  transform: translateY(-1px);
}
.share-action:active { transform: translateY(0) scale(0.98); }
.share-action[data-share="whatsapp"] { color: #25D366; }
.share-action[data-share="telegram"] { color: #2EA8FF; }
.share-action[data-share="copy"] { color: var(--lime); }
.share-action span { color: var(--paper); }

.share-more {
  background: transparent; color: var(--paper-72);
  border: none;
  font-family: var(--font-text); font-size: 13px; font-weight: 600;
  padding: 8px;
  cursor: pointer;
  transition: color 180ms var(--ease);
}
.share-more:hover { color: var(--paper); }

/* ─── TOAST ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 200;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 16px 40px -8px rgba(10,10,10,0.4);
  font-family: var(--font-text); font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  animation: toast-in 220ms var(--ease) both;
}
@keyframes toast-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast.fade-out {
  animation: toast-out 220ms var(--ease) both;
}
@keyframes toast-out {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ─── WELCOME POPUP — premier visiteur ─────────────────────────────── */
.welcome-popup {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.welcome-scrim {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: welcome-scrim-in 220ms var(--ease) both;
}
@keyframes welcome-scrim-in { 0% { opacity: 0; } 100% { opacity: 1; } }

.welcome-panel {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--paper);
  width: 100%; max-width: 480px;
  border-radius: 22px;
  padding: 28px 26px 26px;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: welcome-panel-in 320ms var(--ease) both;
  box-shadow: 0 30px 60px -16px rgba(10,10,10,0.6);
}
@keyframes welcome-panel-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.welcome-panel::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px; border-radius: 999px;
  background: radial-gradient(circle, rgba(212,255,58,0.12), transparent 65%);
  pointer-events: none;
}

.welcome-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--lime);
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(212,255,58,0.4);
}
.welcome-kicker {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--lime); margin-bottom: 8px;
}
.welcome-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15;
  margin: 0; color: var(--paper); max-width: 22ch;
}
@media (min-width: 540px) { .welcome-title { font-size: 28px; } }

.welcome-text {
  margin: 14px 0 22px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--paper-72); font-weight: 500;
}
.welcome-text em { font-style: italic; color: var(--paper); }

.welcome-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.welcome-cta {
  width: 100%;
  text-decoration: none;
  text-align: center;
  justify-content: center;
}
.welcome-cta svg { transition: transform 200ms var(--ease); }
.welcome-cta:hover svg { transform: translateX(3px); }
.welcome-dismiss {
  width: 100%;
  background: transparent;
  color: var(--paper-72);
  border: 1px solid var(--paper-24);
  font-family: var(--font-text); font-weight: 600; font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--dur-default) var(--ease), color var(--dur-default) var(--ease);
}
.welcome-dismiss:hover { background: var(--paper-08); color: var(--paper); }

/* ═══ « Le saviez-vous » — affiché sous l'en-attente ════════════════════════ */
.dyk-card {
  margin-top: 16px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(212,255,58,0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink-04), rgba(10,10,10,0.025));
  border: 1px solid var(--ink-08);
  position: relative;
  overflow: hidden;
  animation: tarifo-result-rise 360ms 120ms var(--ease) both;
}
.dyk-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.dyk-bulb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}
.dyk-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-56);
}
.dyk-rotator {
  position: relative;
  min-height: 92px;
}
@media (max-width: 540px) { .dyk-rotator { min-height: 110px; } }
.dyk-fact {
  position: absolute; inset: 0;
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-72); font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  animation: dykCycle 28s ease-in-out infinite;
}
.dyk-fact strong { color: var(--ink); font-weight: 700; }
.dyk-fact em { font-style: normal; background: var(--lime); padding: 0 4px; border-radius: 3px; color: var(--ink); }
.dyk-src {
  display: block; margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-40);
}
@keyframes dykCycle {
  0%, 24%   { opacity: 0; transform: translateY(6px); }
  3%, 22%   { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(-6px); }
}
.dyk-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-24);
  padding-bottom: 2px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.dyk-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.dyk-link svg { transition: transform 200ms var(--ease); }
.dyk-link:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .dyk-card { animation: none; }
  .dyk-fact { animation: none; opacity: 1; position: relative; transform: none; }
  .dyk-fact + .dyk-fact { display: none; }
  .dyk-rotator { min-height: 0; }
}

/* hidden helper */
[hidden] { display: none !important; }
