/* lango.sh waitlist — brand tokens pulled from the app's theme/Color.kt */
:root {
  --bg: #0C94C5;            /* requested blue (app's darker "primary shadow" tone) */
  --primary: #13A4EC;       /* app primary */
  --shadow-primary: #0A6189;/* chunky flat shadow under blue surfaces */
  --shadow-neutral: rgba(15, 23, 42, 0.18); /* under white surfaces */
  --surface: #FFFFFF;
  --foreground: #101C22;
  --border: #E5E7EB;
  --muted: #5B6B73;
  --error: #FF5722;
  --success: #2E7D32;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  border: 2px solid var(--border);
  /* chunky flat offset shadow — no blur, the app's ChunkyShadow look */
  box-shadow: 0 8px 0 var(--shadow-primary);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
}

.slogan {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.lede {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Platform selector — gamified segmented toggle */
.segmented {
  display: flex;
  gap: 8px;
  background: #EFF6F9;
  border-radius: 16px;
  padding: 6px;
  width: 100%;
}

.segment {
  flex: 1;
  appearance: none;
  /* Raised white "key" so an unselected tab still clearly reads as pressable. */
  background: #fff;
  border: 2px solid var(--border);
  font: inherit;
  font-weight: 700;
  color: var(--foreground);
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--shadow-neutral);
  transition: transform 0.05s ease, box-shadow 0.05s ease,
    border-color 0.1s ease, background 0.1s ease, color 0.1s ease;
}

@media (hover: hover) {
  .segment:not(.is-selected):hover {
    border-color: var(--primary);
    color: var(--primary);
  }
}

.segment.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--shadow-primary);
}

/* Pressed feel: sink into the track and shrink the offset shadow. */
.segment:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--shadow-neutral);
}

.segment.is-selected:active {
  box-shadow: 0 2px 0 var(--shadow-primary);
}

/* Per-platform instruction panel */
.panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.panel[hidden] { display: none; }

.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.45;
}

.steps li { padding-left: 4px; }

.hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hint.subtle { font-size: 13px; }

/* Link styled as the app's chunky primary button */
.btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  text-align: center;
  padding: 16px 18px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--shadow-primary);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--shadow-primary);
}

/* Footer — separated from the steps by a full-width rule */
.card-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.card-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.card-footer a:hover { text-decoration: underline; }

/* Info switcher — circular "i" button in the card's top-left corner */
.info-switcher {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
}

.info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--shadow-neutral);
  transition: border-color 0.1s ease, color 0.1s ease;
}

.info-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.info-icon { display: block; }

.info-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-menu[hidden] { display: none; }

.info-option {
  display: flex;
  align-items: center;
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--foreground);
  text-align: left;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.info-option:hover { background: #EFF6F9; }

/* Language switcher — globe + flag pill in the card's top-right corner */
.lang-switcher {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 5px 8px;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--shadow-neutral);
  transition: border-color 0.1s ease, color 0.1s ease;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.globe { display: block; }

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-menu[hidden] { display: none; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--foreground);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.lang-option:hover { background: #EFF6F9; }

.lang-option.is-active {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 480px) {
  .slogan { font-size: 26px; }
  .card { padding: 28px 20px; }
}
