:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17201a;
  background: #f4f2ec;
  font-synthesis: none;
  --ink: #17201a;
  --muted: #687069;
  --paper: #f7f5ef;
  --card: rgba(255,255,255,.88);
  --line: rgba(23,32,26,.12);
  --green: #244f3a;
  --green-2: #183c2b;
  --shadow: 0 18px 55px rgba(35, 49, 39, .13);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { min-width: 320px; background: #f4f2ec; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.landing-shell {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) auto 24px;
  padding: 0 clamp(18px, 3vw, 48px) 12px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.98), transparent 48%),
    linear-gradient(180deg, #f7f5ef 0%, #eeeee7 100%);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(36,79,58,.08);
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(16px);
}
.lang-button {
  width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  opacity: .55;
  transition: .18s ease;
}
.lang-button:hover, .lang-button.active { opacity: 1; background: #fff; box-shadow: 0 4px 14px rgba(20,32,25,.09); }

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: stretch;
}
.hero-copy {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: clamp(8px, 2vh, 24px);
  width: min(720px, 78vw);
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: clamp(14px, 1.5vw, 22px) clamp(20px, 3vw, 42px) clamp(16px, 1.7vw, 24px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13,24,17,.58), rgba(13,24,17,.36));
  box-shadow: 0 18px 55px rgba(8,17,11,.18);
  backdrop-filter: blur(8px) saturate(1.08);
  text-shadow: 0 2px 18px rgba(0,0,0,.34);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .82;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 700;
}
.motto {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.1vw, 31px);
  font-weight: 520;
  letter-spacing: -.035em;
}
.lead {
  max-width: 580px;
  margin: 8px auto 0;
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 1.45;
  opacity: .86;
}
.journey-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1vw, 15px);
}
.journey-card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(22px, 2.4vw, 34px);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.journey-auto { background-image: url('/assets/auto.jpg'); background-position: center 56%; }
.journey-hike { background-image: url('/assets/hike.jpg'); background-position: center 46%; }
.journey-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,20,15,.48) 0%, rgba(15,27,20,.10) 48%, rgba(13,25,18,.62) 100%),
    linear-gradient(90deg, rgba(7,15,10,.16), transparent 52%);
}
.journey-copy {
  position: absolute;
  z-index: 3;
  inset: auto 22px 64px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: #fff;
}
.journey-index {
  flex: 0 0 auto;
  padding-bottom: 3px;
  font-size: 11px;
  opacity: .65;
}
.journey-copy h2 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 26px);
  letter-spacing: -.035em;
}
.journey-copy p {
  margin: 3px 0 0;
  max-width: 390px;
  font-size: clamp(10px, .85vw, 13px);
  line-height: 1.35;
  opacity: .82;
}

.auth-dock {
  position: relative;
  z-index: 20;
  width: min(1080px, calc(100vw - 72px));
  min-height: 124px;
  margin: -44px auto 0;
  padding: 13px 16px 15px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 26px;
  background: rgba(250,249,245,.92);
  backdrop-filter: blur(24px) saturate(1.15);
  box-shadow: 0 20px 60px rgba(28,40,32,.18), inset 0 0 0 1px rgba(23,32,26,.05);
}
.auth-tabs {
  display: flex;
  gap: 3px;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 3px;
  border-radius: 999px;
  background: #e8e9e3;
}
.auth-tab {
  min-width: 118px;
  border: 0;
  border-radius: 999px;
  padding: 7px 18px;
  background: transparent;
  color: #596159;
  font-size: 12px;
  font-weight: 700;
}
.auth-tab.active { color: #fff; background: var(--green); box-shadow: 0 5px 16px rgba(36,79,58,.22); }
.auth-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto auto auto;
  align-items: end;
  gap: 10px;
}
.auth-form[hidden] { display: none; }
.auth-form[data-auth-panel="register"] {
  grid-template-columns: minmax(145px, .8fr) minmax(145px, .8fr) minmax(145px, .8fr) minmax(260px, 1.5fr) auto;
}
.field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #656d66;
  font-size: 10px;
  font-weight: 650;
}
.field input {
  width: 100%;
  height: 39px;
  border: 1px solid #d7dcd4;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  outline: none;
}
.field input:focus { border-color: #7b9a87; box-shadow: 0 0 0 3px rgba(36,79,58,.09); }
.check-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #5f6861;
  font-size: 10px;
  line-height: 1.3;
}
.check-line input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--green); }
.check-line a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.consent-line { max-width: 330px; }
.auth-submit, .lk-link {
  height: 39px;
  border-radius: 12px;
  padding: 0 20px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 760;
}
.auth-submit {
  border: 0;
  color: #fff;
  background: var(--green);
}
.auth-submit:hover { background: var(--green-2); }
.lk-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cad1ca;
  text-decoration: none;
  color: #4f5b52;
  background: rgba(255,255,255,.58);
}
.auth-note {
  position: relative;
  z-index: 5;
  margin: 6px auto 0;
  max-width: 900px;
  text-align: center;
  color: #7b827c;
  font-size: 9px;
}

.modal {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 22px;
  color: var(--ink);
  background: transparent;
}
.modal::backdrop { background: rgba(20,28,22,.38); backdrop-filter: blur(7px); }
.modal-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  background: #fbfaf6;
  box-shadow: 0 24px 80px rgba(12,22,16,.25);
  text-align: center;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: #e5ebe6;
  color: var(--green);
  font-weight: 900;
}
.modal-card h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.modal-card p { margin: 8px 0 18px; color: #69726b; font-size: 13px; line-height: 1.5; }
.modal-card button {
  border: 0;
  border-radius: 11px;
  padding: 9px 20px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
}

@media (max-width: 900px) {
  .landing-shell { min-height: 560px; grid-template-rows: 58px minmax(0,1fr) auto 18px; padding-inline: 12px; }
  .hero-copy { top: 8px; width: 88vw; padding: 12px 16px 14px; border-radius: 22px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 52px); }
  .lead { display: none; }
  .journey-grid { gap: 7px; }
  .journey-card { border-radius: 20px; }
  .journey-copy { inset: auto 12px 54px; gap: 7px; }
  .journey-copy p { display: none; }
  .auth-dock { width: calc(100vw - 20px); margin-top: -32px; border-radius: 20px; }
  .auth-form, .auth-form[data-auth-panel="register"] { grid-template-columns: 1fr 1fr; gap: 7px; }
  .remember-line, .consent-line { grid-column: 1 / -1; max-width: none; }
  .auth-submit, .lk-link { width: 100%; padding-inline: 10px; }
}
@media (max-height: 720px) {
  .landing-shell { min-height: 0; grid-template-rows: 52px minmax(0,1fr) auto 16px; }
  .hero-copy { top: 3px; }
  .hero-copy h1 { font-size: clamp(34px, 4.8vw, 58px); }
  .lead { display: none; }
  .auth-dock { margin-top: -34px; padding-top: 9px; padding-bottom: 10px; }
  .auth-tabs { margin-bottom: 6px; }
  .auth-note { margin-top: 3px; }
}
