:root {
  color-scheme: light;
  font-family: "Avenir Next", system-ui, sans-serif;
  color: #17302d;
  background: #f1f7f4;
  --ink: #17302d;
  --muted: #4f635e;
  --accent: #175b4e;
  --accent-hover: #104b40;
  --line: #627f7738;
  --surface: #ffffffa8;
  --field: #ffffffb8;
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 91% 44%, #c4e5da 0%, transparent 56%),
    radial-gradient(ellipse at 7% 90%, #f7efde 0%, transparent 53%),
    linear-gradient(130deg, #f9fbf8, #e9f3ef);
}

a { color: inherit; text-underline-offset: .22em; }
header, main { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 780;
  font-size: 1.24rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-access {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff80;
  font-size: .875rem;
  font-weight: 680;
  text-decoration: none;
}

.nav-access span { font-size: 1rem; color: var(--accent); }

main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(30px, 7vw, 102px);
  padding-block: clamp(52px, 8vw, 112px);
}

h1 {
  margin: 0 0 19px;
  font-size: clamp(2.6rem, 5.25vw, 4.7rem);
  line-height: 1.01;
  letter-spacing: -.056em;
  font-weight: 760;
}

.hero-dot { color: #347365; }

.intro-copy {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.18rem);
  line-height: 1.58;
}

.hero-detail {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  min-height: 172px;
  margin-top: 30px;
  padding: 18px 24px;
  border: 1px solid #fff;
  border-radius: 28px;
  background: linear-gradient(110deg, #ffffff92 0%, #dceee582 100%);
}

.price { flex-shrink: 0; }
.price strong { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; white-space: nowrap; }
.price span { display: block; margin-top: 9px; color: var(--muted); font-size: .87rem; line-height: 1.35; }

.rover-stage {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 1;
  min-width: 0;
}

.rover-stage::before {
  position: absolute;
  z-index: -1;
  width: min(100%, 220px);
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: #b7dbd0;
  opacity: .55;
  filter: blur(14px);
  content: "";
}

.rover-stage img { width: min(100%, 172px); height: auto; display: block; }

.panel {
  min-width: 0;
  padding: clamp(22px, 3.7vw, 42px);
  border: 1px solid #ffffffdb;
  border-radius: clamp(24px, 4vw, 38px);
  background: var(--surface);
  box-shadow: 0 20px 62px #2b534a1b, inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scroll-margin-top: 20px;
}

h2 { margin: 0 0 14px; font-size: clamp(1.48rem, 3vw, 1.85rem); letter-spacing: -.032em; }
.login-note { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
#send-code { gap: 10px; }
label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 690; }

input, select, button, .button {
  min-height: 48px;
  border-radius: var(--radius);
  padding: 12px 15px;
  font: inherit;
}

input, select {
  width: 100%;
  min-width: 0;
  border: 1px solid #78938c85;
  background: var(--field);
  color: var(--ink);
}

input::placeholder { color: #596e67; opacity: 1; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 720;
}

form button { width: 100%; margin-top: 13px; }
button:disabled { opacity: .68; cursor: wait; }
.secondary { border-color: var(--line); background: #ffffff84; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 13px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 650;
}

#status { color: var(--muted); line-height: 1.45; }
#status:empty { display: none; }
#code-step { margin-top: 18px; }
#qr, #logout, .subscription-label { margin-top: 16px; }
#qr-image { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 12px; }
:focus-visible { outline: 3px solid #216f60; outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover, .button:hover { background: var(--accent-hover); }
  .secondary:not(:disabled):hover, .nav-access:hover { background: #fff; }
}

@media (prefers-reduced-motion: no-preference) {
  button, .button, .nav-access { transition: background-color 150ms ease-out; }
}

@media (max-width: 760px) {
  header, main { width: min(560px, calc(100% - 36px)); }
  header { padding-block: 16px; }
  main { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 44px; }
  .hero-break { display: none; }
  h1 { max-width: 14ch; }
  .hero-detail { min-height: 116px; margin-top: 20px; padding: 9px 18px; }
  .rover-stage img { width: min(100%, 108px); }
}

@media (prefers-reduced-transparency: reduce) {
  .panel { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  width: min(1120px, calc(100% - 56px));
  margin-inline: auto;
  padding: 23px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand { color: var(--ink); font-weight: 750; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; font-size: .875rem; }
.site-footer button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
  font-weight: inherit;
}
.site-footer button:not(:disabled):hover { background: transparent; color: var(--accent); }

.cookie-notice {
  position: fixed;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(520px, calc(100% - 40px));
  padding: 17px 19px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #f7fcf9;
  box-shadow: 0 12px 42px #2b534a2d;
}
.cookie-notice p { margin: 5px 0 0; font-size: .87rem; line-height: 1.45; color: var(--muted); }
.cookie-notice button { flex-shrink: 0; }

.legal-main { display: block; max-width: 820px; padding-block: clamp(30px, 5vw, 68px); }
.legal-document h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.legal-document section { margin-top: 32px; scroll-margin-top: 20px; }
.legal-document p, .legal-document dd { line-height: 1.65; color: var(--muted); }
.legal-document dt { font-weight: 650; overflow-wrap: anywhere; }
.legal-document dd { margin: 4px 0 14px; }

@media (max-width: 520px) {
  .site-footer { width: calc(100% - 36px); }
  .cookie-notice { right: 12px; bottom: 12px; max-width: calc(100% - 24px); gap: 10px; padding: 13px; }
  .cookie-notice button { padding-inline: 10px; }
}
