:root {
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
  --ink: #17211d;
  --muted: #52605a;
  --surface: #fff;
  --accent: #2f6fa3;
  --accent-dark: #24577f;
  --line: #dbe4df;
}

* { box-sizing: border-box; }

html { background: var(--surface); }

body {
  min-height: 100vh;
  margin: 0;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #f7fafd 25%, #e8f1f8);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.language-picker label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.language-picker select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; }
.language-picker noscript button { min-height: 44px; margin-left: 8px; }

main {
  padding: 0 20px 96px;
}

.hero { display: grid; width: min(760px, 100%); place-content: center; margin: auto; padding: 40px 0 24px; text-align: center; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 78px); line-height: 1.02; letter-spacing: -.04em; }
.pitch { max-width: 620px; margin: 24px auto 20px; color: var(--muted); font-size: clamp(18px, 3vw, 23px); }
.cta { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; justify-self: center; padding: 12px 22px; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 700; text-decoration: none; }
.cta:hover { background: var(--accent-dark); }
.signup-note { max-width: 620px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.welcome-note { justify-self: center; margin: 0 0 24px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
#create-account { width: min(480px, 100%); justify-self: center; min-width: 0; }
#create-account summary { width: fit-content; margin: auto; cursor: pointer; }
.welcome-account { width: min(480px, 100%); min-width: 0; margin: 20px auto 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; overflow-wrap: anywhere; }
.welcome-account h2 { margin: 0 0 16px; font-size: 24px; }
.welcome-account form { display: grid; gap: 16px; }
.welcome-account label { display: grid; gap: 6px; }
.welcome-account input { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #767676; border-radius: 7px; color: var(--ink); background: var(--surface); font: inherit; }
.welcome-account button { min-height: 48px; padding: 12px 16px; border: 0; border-radius: 9px; color: #fff; background: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.welcome-account button:disabled { opacity: .6; cursor: wait; }
.existing-account { color: var(--muted); font-size: 14px; }
.welcome-account .error, .welcome-account .warning, .welcome-account .notice { padding: 10px 12px; border: 1px solid; border-radius: 7px; }
.welcome-account .error { color: #a63636; background: #faeeee; }
.welcome-account .warning { color: #7b4318; background: #fff4e8; }
.welcome-account .notice { color: #28785d; background: #e8f3ef; }
.welcome-account .error ul { margin: 0; padding-left: 18px; }
#registration-progress:empty { margin: 0; }
.discovery-link { margin: 12px 0 0; }
.discovery-link a, .existing-account a { display: inline-block; padding: 10px 0; color: var(--accent); }
.existing-account { margin: 0; }
.welcome-bottom { margin: 64px auto 0; text-align: center; }
.welcome-bottom h2 { font-size: 28px; }
summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.journeys { width: min(1120px, 100%); margin: auto; }
.journeys h2 { margin: 0 0 28px; font-size: clamp(28px, 4vw, 42px); text-align: center; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.journey-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.journey-card img { display: block; width: 100%; height: auto; }
.journey-card div { padding: 20px; }
.journey-card h3 { margin: 0 0 8px; font-size: 21px; }
.journey-card p { margin: 0; color: var(--muted); }
.how-it-works { width: min(960px, 100%); margin: 112px auto 0; }
.how-it-works h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); text-align: center; }
.how-intro { max-width: 680px; margin: 16px auto 36px; color: var(--muted); font-size: 18px; text-align: center; }
.product-tour { display: grid; justify-content: center; gap: 24px; }
.tour-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 351px)); align-items: end; justify-content: center; gap: 24px; }
.tour-card { width: fit-content; max-width: 100%; margin: 0; justify-self: center; }
.tour-card img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.tour-card figcaption { display: flex; width: fit-content; align-items: center; gap: 10px; margin: 0 auto 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; }
.tour-card figcaption span { display: inline-grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 14px; }
.site-footer { width: min(960px, calc(100% - 40px)); margin: auto; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent); }
a:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 800px) {
  .journey-grid { grid-template-columns: 1fr; max-width: 520px; margin: auto; }
  .product-tour { grid-template-columns: 1fr; }
  .tour-setup { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; width: min(100% - 28px, 1120px); padding-top: 16px; }
  .language-picker label { display: grid; gap: 4px; font-size: 13px; }
  .hero { padding: 48px 0 32px; }
}
