/* ──────────────────────────────────────────────────────────────
   GPX2Maps — "Horizon" design system
   Modern SaaS aesthetic: lavender accents, deep indigo panels,
   soft shadows, rounded forms. No gradients.
   ────────────────────────────────────────────────────────────── */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

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

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Surface */
  --bg:        #F7F4FB;
  --bg-card:   #FFFFFF;
  --bg-muted:  #EFEAF6;
  --bg-tint:   #E4DBF2;

  /* Ink */
  --ink-900:   #130B2B;
  --ink-800:   #1E1538;
  --ink-700:   #2B2250;
  --ink-600:   #433A6B;
  --text-900:  #180F33;
  --text-700:  #423760;
  --text-500:  #6B6086;
  --text-400:  #9A93AE;
  --line:      #E5DEF1;
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Iris — primary */
  --iris-50:   #F3EDFE;
  --iris-100:  #E4D7FD;
  --iris-200:  #C9B0FA;
  --iris-300:  #AE8AF6;
  --iris-400:  #9366F0;
  --iris-500:  #7B4BE8;
  --iris-600:  #6736D4;
  --iris-700:  #5528B3;

  /* Accents */
  --coral-500: #FF6F6B;
  --lime-500:  #B8E986;
  --amber-500: #FFB547;
  --sky-500:   #6BC5FF;

  /* Families */
  --font-sans: "Plus Jakarta Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(30, 21, 56, 0.04);
  --shadow-sm: 0 2px 4px rgba(30, 21, 56, 0.04), 0 4px 12px rgba(30, 21, 56, 0.04);
  --shadow-md: 0 4px 10px rgba(30, 21, 56, 0.06), 0 12px 28px rgba(30, 21, 56, 0.06);
  --shadow-lg: 0 10px 24px rgba(30, 21, 56, 0.08), 0 24px 60px rgba(30, 21, 56, 0.08);
  --shadow-xl: 0 20px 50px rgba(30, 21, 56, 0.10), 0 40px 100px rgba(30, 21, 56, 0.10);
  --shadow-iris: 0 12px 32px -8px rgba(123, 75, 232, 0.35);
}

/* ── Base ──────────────────────────────────────────────────── */
html, body {
  background: var(--bg) !important;
  color: var(--text-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1;
}

.h-mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.h-caps { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 600; }

/* Dot-grid panels */
.h-dotgrid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
}
.h-dotgrid-light {
  background-image: radial-gradient(circle at 1px 1px, rgba(19,11,43,0.06) 1px, transparent 0);
  background-size: 20px 20px;
}

/* ── Typography ─────────────────────────────────────────────── */
.h-display { font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; color: var(--text-900); }
.h-display-xl { font-weight: 700; font-size: clamp(44px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.025em; }
.h-display-lg { font-weight: 700; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
.h-display-md { font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.015em; }
.h-display-sm { font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }

.h-lede {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text-500);
  font-weight: 400;
  max-width: 640px;
  text-wrap: pretty;
}
.h-accent { color: var(--iris-500); }

/* ── Pill ────────────────────────────────────────────────────── */
.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--iris-50);
  color: var(--iris-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
}
.h-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iris-500);
}
.h-pill-dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
}
.h-pill-dark::before { background: var(--coral-500); }
.h-pill-plain::before { display: none; }

/* ── Buttons ────────────────────────────────────────────────── */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.h-btn-primary { background: var(--iris-500); color: #fff !important; box-shadow: var(--shadow-iris); }
.h-btn-primary:hover { background: var(--iris-400); transform: translateY(-1px); color: #fff !important; }
.h-btn-dark { background: var(--ink-900); color: #fff !important; }
.h-btn-dark:hover { background: var(--ink-800); color: #fff !important; }
.h-btn-ghost {
  background: transparent;
  color: var(--text-900) !important;
  border: 1.5px solid var(--line);
}
.h-btn-ghost:hover { background: var(--bg-muted); }
.h-btn-ghost-dark {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.18);
}
.h-btn-ghost-dark:hover { background: rgba(255,255,255,0.08); }
.h-btn-coral { background: var(--coral-500); color: #fff !important; }
.h-btn-coral:hover { background: #ff5852; color: #fff !important; }
.h-btn-sm { padding: 10px 16px; font-size: 13px; }
.h-btn-lg { padding: 16px 26px; font-size: 16px; }
.h-btn-block { width: 100%; }
.h-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Cards ──────────────────────────────────────────────────── */
.h-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  border: 1px solid var(--line);
}
.h-card-elev {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border: 1px solid var(--line);
}
.h-card-feature {
  background: var(--bg-muted);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  border: 1px solid var(--line);
}
.h-card-dark {
  background: var(--ink-800);
  border-radius: var(--r-lg);
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Feature icon tile ─────────────────────────────────────── */
.h-f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--iris-50);
  color: var(--iris-600);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.h-f-icon svg { width: 22px; height: 22px; }
.h-f-icon-dark { background: rgba(255,255,255,0.08); color: #fff; }

/* ── Stat ───────────────────────────────────────────────────── */
.h-stat { display: flex; flex-direction: column; gap: 6px; }
.h-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-500);
  font-weight: 600;
}
.h-stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 24px;
  color: var(--text-900);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.h-stat-dark .h-stat-label { color: rgba(255,255,255,0.55); }
.h-stat-dark .h-stat-value { color: #fff; }

/* ── Badge / status chip ───────────────────────────────────── */
.h-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.h-badge-ready { color: #2F7A3F; background: #D6F0DC; }
.h-badge-pro { color: #fff; background: var(--iris-500); }
.h-badge-warn { color: #8E6100; background: #FFE7BD; }
.h-badge-err { color: #fff; background: #E85555; }
.h-badge-iris { color: var(--iris-600); background: var(--iris-100); }

/* ── Check row ─────────────────────────────────────────────── */
.h-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.h-check-row svg { flex-shrink: 0; margin-top: 3px; }

/* ── Layout ────────────────────────────────────────────────── */
.h-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.h-section { padding: 96px 0; }
.h-section-sm { padding: 64px 0; }
.h-section-dark {
  background: var(--ink-900);
  color: #fff;
  position: relative;
}

/* ── Navbar ────────────────────────────────────────────────── */
.h-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.h-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.h-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-900);
  letter-spacing: -0.02em;
}
.h-brand .h-brand-mark {
  width: 32px; height: 32px;
  background: var(--iris-500);
  border-radius: 9px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -2px rgba(123, 75, 232, 0.5);
}
.h-brand .h-brand-mark svg { width: 18px; height: 18px; }
.h-brand .h-brand-accent { color: var(--iris-500); }

.h-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.h-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-700);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: color 0.12s;
}
.h-nav-link:hover { color: var(--iris-600); }
.h-nav-link-active {
  color: var(--iris-600);
}
.h-nav-link-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--iris-500);
  border-radius: 2px;
}

.h-nav-actions { display: flex; align-items: center; gap: 10px; }

.h-dropdown { position: relative; }
.h-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}
.h-dropdown-menu-right { left: auto; right: 0; }
.h-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-700);
  text-decoration: none;
  border-radius: 10px;
}
.h-dropdown-item:hover { background: var(--bg-muted); color: var(--iris-600); }
.h-dropdown-item-active { background: var(--iris-50); color: var(--iris-600); font-weight: 600; }

.h-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-700);
}

/* ── Hero ──────────────────────────────────────────────────── */
.h-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.h-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -220px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--iris-200), var(--iris-50) 55%, transparent 70%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
.h-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.h-hero-copy { max-width: 560px; }
.h-hero-title {
  font-weight: 700;
  font-size: clamp(40px, 5.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
  color: var(--text-900);
}
.h-hero-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-500);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 0 28px;
}
.h-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.h-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .h-hero { padding: 56px 0 40px; }
  .h-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .h-hero-copy { max-width: 100%; }
  .h-nav-links { display: none; }
  .h-mobile-btn { display: inline-flex; }
  .h-nav-actions > .h-desktop-only { display: none; }
  .h-section { padding: 64px 0; }
}

/* ── Tab switcher (Horizon style) ───────────────────────────── */
.h-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.h-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  font-family: var(--font-sans);
}
.h-tab:hover { color: var(--text-900); }
.h-tab-active {
  background: #fff;
  color: var(--iris-600);
  box-shadow: var(--shadow-xs);
}

/* ── Drop zone ─────────────────────────────────────────────── */
.h-converter-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.h-converter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-500);
}
.h-converter-body { padding: 24px; }

.h-drop {
  border: 2px dashed var(--iris-200);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--iris-50);
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: left;
  width: 100%;
}
.h-drop:hover, .h-drop.drag-active {
  border-color: var(--iris-400);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.h-drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  color: var(--iris-600);
}
.h-drop-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.2;
}
.h-drop-hint {
  font-size: 13px;
  color: var(--text-500);
  margin-top: 4px;
}

/* ── Inputs ────────────────────────────────────────────────── */
.h-field { display: flex; flex-direction: column; gap: 6px; }
.h-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-700);
  letter-spacing: 0.02em;
}
.h-input, .h-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  color: var(--text-900);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.h-input:focus, .h-textarea:focus {
  border-color: var(--iris-300);
  box-shadow: 0 0 0 4px var(--iris-50);
}
.h-input-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.h-input-dark::placeholder { color: rgba(255,255,255,0.45); }

.h-segmented {
  display: flex;
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.h-segmented button {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.h-segmented button.active,
.h-segmented button[data-active="true"] {
  background: #fff;
  color: var(--iris-600);
  box-shadow: var(--shadow-xs);
}
.h-segmented-dark { background: rgba(255,255,255,0.08); }
.h-segmented-dark button { color: rgba(255,255,255,0.7); }
.h-segmented-dark button.active { background: #fff; color: var(--iris-600); }

.h-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-700);
  cursor: pointer;
}
.h-check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.h-check input[type="checkbox"]:checked {
  background: var(--iris-500);
  border-color: var(--iris-500);
}
.h-check input[type="checkbox"]:checked::after {
  content: "";
  width: 10px; height: 6px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Progress ───────────────────────────────────────────────── */
.h-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}
.h-progress > div {
  height: 100%;
  background: var(--iris-500);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── Feature grid ──────────────────────────────────────────── */
.h-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .h-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .h-feature-grid { grid-template-columns: 1fr; }
}
.h-feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.h-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.h-feature h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-900);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.h-feature p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.55;
  margin: 0;
}

/* ── Pricing ───────────────────────────────────────────────── */
.h-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .h-pricing-grid { grid-template-columns: 1fr; }
}
.h-price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.h-price-card-featured {
  background: var(--ink-900);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-xl), 0 0 0 2.5px var(--lime-500), 0 0 32px rgba(184, 233, 134, 0.45);
}
.h-price-card-featured .h-price-amount,
.h-price-card-featured .h-price-name {
  color: #fff !important;
}
.h-price-card-featured .h-price-unit,
.h-price-card-featured .h-price-sub {
  color: rgba(255,255,255,0.85) !important;
}
.h-price-card-featured ul li,
.h-price-card-featured ul li span {
  color: #fff !important;
  font-weight: 500;
}
.h-price-card-featured ul {
  margin-top: 28px;
}
.h-price-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.h-price-sub {
  font-size: 13px;
  color: var(--text-500);
  margin-top: 4px;
}
.h-price-amount {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-900);
  margin-top: 18px;
}
.h-price-unit {
  font-size: 14px;
  color: var(--text-500);
  margin-left: 6px;
  font-weight: 500;
}
.h-price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.h-price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-700);
  line-height: 1.45;
}
.h-price-card ul li svg { flex-shrink: 0; margin-top: 2px; }
.h-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

/* ── Process steps ─────────────────────────────────────────── */
.h-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 820px) {
  .h-steps { grid-template-columns: 1fr; }
}
.h-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.h-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--iris-600);
  background: var(--iris-50);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  letter-spacing: 0.12em;
}
.h-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-900);
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.h-step p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.55;
  margin: 0;
}

/* ── Guide article list ────────────────────────────────────── */
.h-guide {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
}
.h-guide h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.h-guide h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.h-guide h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-900);
  margin: 0 0 6px;
}
.h-guide p, .h-guide li {
  font-size: 16px;
  color: var(--text-700);
  line-height: 1.65;
}
.h-guide p { margin: 0 0 12px; }
.h-guide a {
  color: var(--iris-600) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.h-guide ul { padding-left: 1.25em; margin: 0 0 16px; }
.h-guide li { margin: 6px 0; }
.h-guide-step {
  background: var(--bg-muted);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 14px 0;
}
.h-guide-step p { margin: 0; font-size: 15px; }
@media (max-width: 720px) {
  .h-guide { padding: 28px; }
}

/* ── FAQ ───────────────────────────────────────────────────── */
.h-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.h-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: box-shadow 0.15s;
}
.h-faq-item:hover { box-shadow: var(--shadow-sm); }
.h-faq-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-900);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.h-faq-item p {
  font-size: 15px;
  color: var(--text-700);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA banner ────────────────────────────────────────────── */
.h-cta {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.h-cta::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,75,232,0.35), transparent 60%);
  pointer-events: none;
}
.h-cta-inner {
  position: relative;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.h-cta h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.h-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin: 0;
  max-width: 520px;
}

/* ── Footer ────────────────────────────────────────────────── */
.h-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 40px;
  margin-top: 96px;
}
.h-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) {
  .h-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .h-footer-grid { grid-template-columns: 1fr; }
}
.h-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.h-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.12s;
}
.h-footer a:hover { color: var(--iris-300); }
.h-footer-about {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 300px;
}
.h-footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.h-footer-bottom a { color: rgba(255,255,255,0.65); font-size: 13px; }
.h-footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Flash messages ────────────────────────────────────────── */
.h-flash-wrap {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h-flash {
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--text-900);
}
.h-flash-success { border-color: #B8E986; background: #F0FBE0; color: #2F5C14; }
.h-flash-error { border-color: #FFB3B0; background: #FFEFEE; color: #99231E; }
.h-flash-warning { border-color: #FFDA8C; background: #FFF6E3; color: #7A4A00; }
.h-flash button {
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
}
.h-flash a,
.h-flash-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.h-flash a:hover,
.h-flash-link:hover { text-decoration: none; }

/* ── Utility overrides (neutralise legacy tailwind defaults on body) ── */
body.min-h-screen.bg-gray-50 { background: var(--bg) !important; }

/* Responsive helper */
.h-mobile-only { display: none; }
@media (max-width: 960px) {
  .h-mobile-only { display: inline-flex; }
  .h-desktop-only { display: none !important; }
  .h-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Screen-reader only */
.h-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Ensure Tailwind's .hidden beats any Horizon component display: flex */
.hidden { display: none !important; }

/* Map mini-preview (soft illustration, no API) */
.h-map-mini {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
}

/* Dashed top accent for hero split */
.h-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ── Two-column layout (text + cards) ──────────────────────── */
.h-two-col {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .h-two-col { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Mobile: dropzone stacks vertically ────────────────────── */
@media (max-width: 600px) {
  .h-drop {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 22px 16px;
  }
  .h-drop > div[style*="flex: 1"] { width: 100%; }
  .h-drop-title { font-size: 18px; }
  .h-drop-hint { font-size: 12px; }
  .h-converter-body { padding: 18px; }
}

/* ── Mobile: pricing reorder ───────────────── */
@media (max-width: 900px) {
  .h-pricing-grid > .h-price-card-featured { order: 1; }
  .h-pricing-grid > .h-price-card:not(.h-price-card-featured):last-child { order: 2; }
  .h-pricing-grid > .h-price-card:not(.h-price-card-featured):first-child { order: 3; }
}
