:root {
  --canvas: #f6fafc;
  --surface: #ffffff;
  --ink: #102f43;
  --muted: #536b7d;
  --line: #c9dde7;
  --line-strong: #9fc2d1;
  --action: #075985;
  --action-hover: #06466b;
  --soft: #e8f3f7;
  --good: #176246;
  --good-soft: #e8f4ef;
  --danger: #9f2d2d;
  --danger-soft: #fcefee;
  --shadow: 0 24px 70px rgba(31, 70, 88, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Heebo", "Assistant", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--action);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}

.topbar {
  width: min(1080px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.language-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.language-switch button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--ink);
}

main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  column-gap: clamp(48px, 8vw, 112px);
  align-items: start;
  padding: clamp(62px, 9vw, 112px) 0 52px;
}

.intro {
  position: sticky;
  top: 48px;
  padding-top: 18px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--action);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 15px 0 0;
  font-size: clamp(38px, 5.3vw, 66px);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.lede {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.journey {
  max-width: 460px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.journey li {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.journey-index {
  color: var(--action);
  font-size: 12px;
  font-weight: 760;
}

.flow-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.device-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.device-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--action);
}

.device-icon svg {
  width: 23px;
  height: 23px;
}

.device-phone {
  display: none;
}

html[data-device="mobile"] .device-phone {
  display: block;
}

html[data-device="mobile"] .device-computer {
  display: none;
}

.device-copy {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 660;
  line-height: 1.45;
}

.stage {
  padding-top: 28px;
}

.stage[hidden],
.ticket-note[hidden],
.error-box[hidden] {
  display: none;
}

.stage h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 690;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.stage-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.google-button {
  min-height: 44px;
  margin-top: 22px;
  display: flex;
  align-items: center;
}

.google-button [role="button"] {
  min-height: 44px;
}

.inline-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.text-button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--action);
  font-weight: 690;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ticket-note {
  margin-top: 24px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #b9dacb;
  border-radius: 12px;
  background: var(--good-soft);
}

.ticket-note .status-mark {
  width: 25px;
  height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--good);
}

.ticket-note svg {
  width: 21px;
  height: 21px;
}

.ticket-note strong {
  display: block;
  color: var(--good);
  font-size: 14px;
}

.ticket-note p {
  margin: 3px 0 0;
  color: #3d6253;
  font-size: 13px;
  line-height: 1.5;
}

.identity-row {
  margin-bottom: 24px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
}

.identity-initial {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--action);
  font-size: 14px;
  font-weight: 760;
}

.identity-row strong,
.identity-row span {
  display: block;
}

.identity-row strong {
  font-size: 14px;
}

.identity-row div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.field-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field-grid label {
  min-width: 0;
}

.field-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}

.field-grid input,
.field-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}

.field-grid input[readonly] {
  background: #f6fafc;
  color: var(--muted);
}

.consent-row {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  margin-top: 22px;
  border: 1px solid var(--action);
  background: var(--action);
  color: #fff;
}

.primary-action:hover {
  background: var(--action-hover);
}

.primary-action:disabled,
.primary-action[aria-disabled="true"] {
  border-color: var(--line);
  background: #e8eef1;
  color: #77909d;
  cursor: wait;
  pointer-events: none;
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--action);
}

.secondary-action:hover {
  border-color: var(--action);
  background: var(--soft);
}

#profile-submit {
  width: 100%;
}

.ready-stage {
  text-align: start;
}

.ready-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
}

.ready-mark svg {
  width: 24px;
  height: 24px;
}

.ready-stage .section-label + h2 {
  margin-top: 7px;
}

.ready-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.ready-actions .text-button {
  padding-inline: 4px;
}

.platform-switch {
  margin-top: 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f0f6f8;
}

.platform-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.platform-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(39, 78, 95, 0.11);
}

.release-card {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
}

.release-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.release-name {
  margin: 0;
  font-size: 16px;
  font-weight: 730;
}

.release-detail {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.availability {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.availability.ready {
  color: var(--good);
}

.availability.failed {
  color: var(--danger);
}

.release-proof {
  margin-top: 14px;
  padding-top: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.release-proof svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--good);
}

.download-action {
  width: 100%;
}

.compatibility {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.install-help {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.install-help summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 690;
  cursor: pointer;
}

.install-help ol {
  margin: 0;
  padding: 0 22px 20px 0;
  color: var(--muted);
}

[dir="ltr"] .install-help ol {
  padding: 0 0 20px 22px;
}

.install-help li {
  margin-top: 9px;
  padding-inline-start: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.error-box {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #e8bcbc;
  border-radius: 12px;
  background: var(--danger-soft);
}

.error-box strong {
  color: var(--danger);
  font-size: 14px;
}

.error-box p {
  margin: 5px 0 8px;
  color: #754545;
  font-size: 13px;
  line-height: 1.55;
}

.privacy-note {
  grid-column: 2;
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
}

.privacy-note svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--action);
}

.privacy-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

footer {
  width: min(1080px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  padding-block-end: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-underline-offset: 3px;
}

.no-script {
  width: min(620px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.no-script h2 {
  margin: 0;
  font-size: 18px;
}

.no-script p {
  margin: 8px 0 0;
}

@media (max-width: 820px) {
  .topbar,
  main,
  footer {
    width: min(680px, calc(100% - 40px));
  }

  main {
    display: block;
    padding-top: 44px;
  }

  .intro {
    position: static;
    padding: 0 0 34px;
  }

  h1 {
    max-width: 15ch;
    font-size: clamp(38px, 10vw, 56px);
  }

  .journey {
    margin-top: 28px;
  }

  .privacy-note {
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .topbar,
  main,
  footer {
    width: calc(100% - 28px);
  }

  .topbar {
    min-height: 66px;
    gap: 8px;
  }

  .language-switch button {
    min-width: 42px;
    padding-inline: 7px;
    font-size: 12px;
  }

  main {
    padding-top: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .lede {
    font-size: 16px;
  }

  .journey {
    display: none;
  }

  .flow-card {
    padding: 22px 18px;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(31, 70, 88, 0.08);
  }

  .stage {
    padding-top: 24px;
  }

  .stage h2 {
    font-size: 23px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .ready-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ready-actions .text-button {
    width: 100%;
    text-align: center;
  }

  footer {
    min-height: 82px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
