@import "../brand/tokens.css";

:root {
  --bg: var(--rheda-page);
  --surface: var(--rheda-white);
  --surface-2: var(--rheda-control);
  --text: var(--rheda-ink);
  --text-2: var(--rheda-body);
  --muted: var(--rheda-muted);
  --line: var(--rheda-line);
  --accent: var(--rheda-purple);
  --accent-soft: var(--rheda-purple-soft);
  --primary-bg: var(--rheda-black);
  --primary-fg: var(--rheda-white);
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh: 0 18px 50px rgba(15, 23, 42, .16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0;
  background: var(--primary-bg); color: var(--primary-fg);
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.ld-btn:hover { background: #1F2430; }
.ld-btn--ghost {
  background: #fff; color: var(--text); border: 1.5px solid var(--line);
}
.ld-btn--ghost:hover { background: var(--surface-2); }
.ld-btn--block { width: 100%; }

.ld-home {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  scroll-behavior: smooth;
}
.ld-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.ld-nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px;
}
.ld-lockup { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.ld-lockup svg { width: 28px; height: 28px; flex: none; }
.ld-lockup > span { display: flex; flex-direction: column; }
.ld-word { font: 700 1.375rem/1 Outfit, Inter, sans-serif; letter-spacing: -.03em; }
.ld-parent { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.ld-nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 14px; }
.ld-nav-links a { color: var(--text); text-decoration: none; }
.ld-nav-links a:hover { color: var(--accent); }
.ld-lang { font-weight: 700; font-size: 13px; color: var(--muted); }

.ld-hero {
  position: relative; min-height: 640px; color: #fff;
  display: grid; align-items: center;
  background: #0b1220 center/cover no-repeat;
  overflow: hidden;
}
.ld-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,12,20,.78) 12%, rgba(8,12,20,.35) 70%);
}
.ld-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 56px 0 72px; }
.ld-hero h1 { font: 800 3.4rem/1.05 Inter, sans-serif; letter-spacing: -.04em; margin: 0 0 16px; max-width: 14ch; }
.ld-hero p { margin: 0 0 20px; font-size: 1.0625rem; max-width: 42ch; color: rgba(255,255,255,.88); }
.ld-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
.ld-checks li::before { content: "✓ "; color: #fff; font-weight: 700; }

.ld-widget {
  background: #fff; color: var(--text); border-radius: 20px; padding: 18px;
  box-shadow: var(--sh); display: grid; gap: 12px;
}
.ld-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.ld-seg button {
  border: 0; background: transparent; min-height: 40px; border-radius: 999px;
  font-weight: 700; cursor: pointer; color: var(--muted);
}
.ld-seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.ld-field { display: grid; gap: 6px; }
.ld-field span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ld-field input, .ld-field select {
  height: 46px; border: 0; border-radius: 12px; background: var(--surface-2); padding: 0 12px; color: var(--text);
}
.ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ld-step { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; height: 46px; background: var(--surface-2); border-radius: 12px; }
.ld-step button { border: 0; background: none; font-size: 18px; cursor: pointer; }
.ld-step input { width: 100%; border: 0; background: none; text-align: center; font-weight: 700; }
.ld-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ld-total b { font-size: 1.75rem; letter-spacing: -.03em; }
.ld-total .ld-btn { min-width: 140px; }

.ld-sec {
  padding: 72px 0;
  color: var(--text);
  background: var(--bg);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.ld-sec h2 { font: 800 2rem/1.15 Inter, sans-serif; letter-spacing: -.03em; margin: 0 0 8px; }
.ld-sec .lead { color: var(--text-2); margin: 0 0 28px; }
.ld-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-card {
  background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  display: grid; align-content: start;
}
.ld-card img { height: 170px; width: 100%; object-fit: cover; }
.ld-card-body { padding: 18px; display: grid; gap: 8px; }
.ld-card h3 { margin: 0; font-size: 1.125rem; }
.ld-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.ld-price { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.ld-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-route { text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; display: grid; gap: 8px; }
.ld-route img { height: 148px; object-fit: cover; border-radius: 14px; }
.ld-route span { font-weight: 700; }
.ld-steps { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; }
.ld-step-card { background: var(--accent-soft); border-radius: 16px; min-height: 220px; padding: 20px; display: grid; align-content: end; }
.ld-step-card b { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; }
.ld-step-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.ld-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ld-trust article { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.ld-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; display: grid; place-items: center; }
.ld-ico svg { width: 30px; height: 30px; fill: currentColor; }
.ld-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.ld-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.ld-faq summary { cursor: pointer; font-weight: 700; }
.ld-faq p { color: var(--text-2); margin: 8px 0 0; }
.ld-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ld-pills a { text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.ld-pills a:hover { border-color: var(--text); }

.ld-dark { background: var(--rheda-ink); color: #fff; border-radius: 20px; padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-dark p { margin: 6px 0 0; color: rgba(255,255,255,.78); font-size: 14px; }

.ld-footer {
  background: var(--rheda-ink);
  color: #fff;
  padding: 48px 0 24px;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
.ld-footer a { color: inherit; text-decoration: none; }
.ld-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.ld-footer h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ld-footer ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-size: 14px; }
.ld-copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.55); }

.ld-form-page {
  display: none;
  background: #F4F5F7;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body[data-view="form"] .ld-home { display: none; }
body[data-view="form"] .ld-form-page { display: block; }
.ld-form-bar { height: 72px; background: #fff; display: flex; align-items: center; }
.ld-form-bar a { color: var(--text); text-decoration: none; font-weight: 600; }
.ld-steps-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ld-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.ld-dot.is-on { background: var(--accent); color: #fff; }
.ld-form-trust { margin: 24px auto 0; }
.ld-form-trust article { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.ld-ico--on-dark { background: #fff; color: var(--text); }
.ld-form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; padding: 20px 0 64px; }
.ld-sum-when-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; color: var(--muted); font-size: 13px; }
.ld-edit { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }
.ld-sum-route { border-left: 3px solid var(--accent); padding-left: 12px; }
.ld-sum-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.25rem; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.ld-map-ph {
  margin: 0 20px 20px; height: 180px; border-radius: 12px;
  background: var(--accent-soft); color: var(--muted);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.ld-panel { background: #fff; border-radius: 16px; padding: 28px; }
.ld-choice { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.ld-choice input { accent-color: var(--accent); }
.ld-panel .ld-field { margin-top: 14px; }
.ld-panel .ld-field input, .ld-panel .ld-field textarea {
  background: var(--surface-2); border: 0; border-radius: 12px; padding: 12px 14px;
}
.ld-panel textarea { min-height: 80px; resize: vertical; }
.ld-sum-photo { height: 140px; object-fit: cover; border-radius: 12px 12px 0 0; }
.ld-done { text-align: center; padding: 48px 20px; }
.ld-done h2 { margin: 0 0 8px; }

@media (max-width: 900px) {
  .ld-nav-links { display: none; }
  .ld-hero { min-height: 0; }
  .ld-hero .wrap, .ld-cards, .ld-routes, .ld-steps, .ld-trust, .ld-faq, .ld-foot-grid, .ld-form-grid, .ld-dark {
    grid-template-columns: 1fr;
  }
  .ld-hero h1 { font-size: 2.25rem; }
}
