/* ---------- Tokens (from Figma) ---------- */
:root {
  --color-page: #f2f2f2;
  --color-surface: #ffffff;
  --color-ink: #0e0f0c;
  --color-text: #454745;
  --color-muted: #868685;
  --color-border: #e2e2e2;
  --color-brand: #9fe870;
  --color-brand-soft: #e2f6d5;
  --color-brand-deep: #163300;
  --color-link: #1f7f36;
  --color-error: #d03238;

  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font: 'Google Sans Flex', 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.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;
}

/* ---------- Landing layout ---------- */
.landing {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

.main {
  display: flex;
  gap: 24px;
  flex: 1;
  min-height: 600px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 64px 48px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 752px;
}

.brand-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}

.brand-pill img {
  width: 161px;
  height: auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.headline h1 {
  margin: 0;
  max-width: 640px;
  font-size: 64px;
  line-height: 68px;
  font-weight: 800;
  color: var(--color-ink);
}

.headline p {
  margin: 0;
  max-width: 600px;
  font-size: 20px;
  line-height: 31px;
  letter-spacing: -0.48px;
  color: var(--color-text);
}

.headline strong {
  font-weight: 600;
}

/* ---------- Form ---------- */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 623px;
}

.signup[hidden] {
  display: none;
}

.signup__row {
  display: flex;
  gap: 8px;
}

.field {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field::placeholder {
  color: var(--color-muted);
}

.field:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.signup.is-error .field {
  border: 2px solid var(--color-error);
  padding: 11px 15px;
}

.signup.is-known .field {
  border: 2px solid var(--color-brand);
  padding: 11px 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 12px 24px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  background: var(--color-brand);
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:active {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.signup__message {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.signup__message:empty {
  display: none;
}

.signup.is-error .signup__message {
  color: var(--color-error);
}

.signup.is-known .signup__message {
  color: var(--color-link);
}

.signup__consent {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
}

/* Success state */
.success {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  padding: 24px;
  background: var(--color-brand-soft);
  border-radius: var(--radius-lg);
}

.success[hidden] {
  display: none;
}

.success__check {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}

.success__title {
  margin: 0;
  font-size: 24px;
  line-height: 31px;
  font-weight: 600;
  letter-spacing: -0.48px;
  color: var(--color-ink);
}

.success__text {
  margin: 0;
  color: var(--color-brand-deep);
}

/* ---------- Visual ---------- */
.visual {
  position: relative;
  flex: none;
  width: 520px;
  overflow: hidden;
  background: var(--color-brand);
  border-radius: var(--radius-lg);
}

.ring {
  position: absolute;
  left: 322px;
  top: 41%;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring--1 { width: 760px; height: 760px; }
.ring--2 { width: 540px; height: 540px; }
.ring--3 { width: 320px; height: 320px; }

.visual__car {
  position: absolute;
  left: 24px;
  top: 58%;
  /* 680px at Figma's 900px height; shrinks with the card on shorter screens. */
  width: clamp(460px, calc(100vh - 210px), 680px);
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(-1px -27px 73.5px rgba(0, 0, 0, 0.25));
}

/* ---------- Teasers ---------- */
.teasers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.teaser {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 106px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.teaser--highlight {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.teaser__title {
  margin: 0;
  font-size: 24px;
  line-height: 31px;
  font-weight: 600;
  letter-spacing: -0.48px;
  color: var(--color-ink);
}

.teaser__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text);
}

.teaser__logo {
  width: 115px;
  height: auto;
}

/* ---------- Footer ---------- */
.footer {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
  text-align: center;
}

.footer__link {
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 760px;
  padding: 16px 16px 16px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(14, 15, 12, 0.16);
  transform: translateX(-50%);
}

.cookie[hidden] {
  display: none;
}

.cookie__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text);
}

.cookie__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.btn--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

/* ---------- Short desktop screens (laptops) ---------- */
/* Figma's frame is 1440×900; most laptop browsers show less height than that,
   so tighten spacing and type so the whole page fits without scrolling. */
@media (min-width: 1101px) and (max-height: 920px) {
  .landing {
    gap: 16px;
    padding: 16px;
  }

  .main {
    gap: 16px;
    min-height: 0;
  }

  .hero {
    padding: 40px 48px;
  }

  .hero__inner {
    gap: 40px;
  }

  .hero__content {
    gap: 32px;
  }

  .headline h1 {
    font-size: 56px;
    line-height: 60px;
  }

  .headline p {
    font-size: 18px;
    line-height: 28px;
  }

  .teaser {
    min-height: 88px;
    padding: 18px 24px;
  }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .landing {
    gap: 12px;
    padding: 12px;
  }

  .main {
    gap: 12px;
  }

  .hero {
    padding: 32px 48px;
  }

  .hero__inner {
    gap: 28px;
  }

  .hero__content {
    gap: 24px;
  }

  .brand-pill {
    padding: 8px 16px;
  }

  .brand-pill img {
    width: 134px;
  }

  .headline {
    gap: 12px;
  }

  .headline h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .headline p {
    font-size: 17px;
    line-height: 26px;
  }

  .teaser {
    min-height: 76px;
    padding: 14px 20px;
  }

  .teaser__title {
    font-size: 20px;
    line-height: 28px;
  }

  .teaser__logo {
    width: 96px;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .landing {
    gap: 16px;
  }

  .main {
    min-height: 0;
  }

  .visual {
    display: none;
  }

  .teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .landing {
    padding: 16px;
  }

  .hero {
    padding: 32px 16px;
  }

  .hero__inner {
    gap: 32px;
  }

  .hero__content {
    gap: 32px;
  }

  .brand-pill {
    padding: 8px 16px;
  }

  .brand-pill img {
    width: 134px;
  }

  .headline {
    gap: 12px;
  }

  .headline h1 {
    font-size: 32px;
    line-height: 38px;
    font-weight: 600;
    letter-spacing: -0.96px;
  }

  .headline p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
  }

  .signup__row {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .success {
    padding: 16px;
  }

  .cookie {
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: calc(100% - 32px);
    padding: 16px;
  }

  .cookie__actions .btn {
    flex: 1;
  }

  .teasers {
    gap: 8px;
  }

  .teaser {
    min-height: 82px;
    padding: 12px 16px;
  }

  .teaser__title {
    font-size: clamp(18px, 5.6vw, 22px);
  }
}
