/* welcome.nametag.co — recreated from the Nametag design handoff.
   Design tokens are transcribed from the design system's colors_and_type.css. */

:root {
  --nt-ink: #1F1F1F;
  --nt-ink-soft: #2B2B2B;
  --nt-paper: #FFFFFF;
  --nt-bone: #FAFAFA;
  --nt-fog: #F2F2F0;
  --nt-mist: #E6E6E4;
  --nt-stone: #C9C9C7;
  --nt-graphite: #6B6B6B;
  --nt-slate: #4A4A4A;

  --nt-blue: #1A73FF;
  --nt-blue-strong: #0E5BD9;
  --nt-blue-soft: #E6EFFF;

  --nt-success: #1F8F4E;
  --nt-success-soft: #E5F5EC;
  --nt-danger: #C5302C;
  --nt-warning: #B45309;

  --nt-border-strong: #C9C9C7;

  --nt-font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --nt-radius-md: 8px;
  --nt-radius-lg: 12px;
  --nt-radius-xl: 20px;

  --nt-shadow-sm: 0 1px 3px rgba(15, 15, 15, 0.06), 0 1px 2px rgba(15, 15, 15, 0.04);
  --nt-shadow-md: 0 4px 12px rgba(15, 15, 15, 0.08), 0 1px 3px rgba(15, 15, 15, 0.05);
  --nt-shadow-lg: 0 12px 32px rgba(15, 15, 15, 0.10), 0 4px 8px rgba(15, 15, 15, 0.05);
  --nt-ring-focus: 0 0 0 3px rgba(26, 115, 255, 0.35);

  --nt-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nt-ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--nt-bone);
}

body {
  min-height: 100vh;
  font-family: var(--nt-font-sans);
  color: var(--nt-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 64px;
  -webkit-font-smoothing: antialiased;
}

.logo { height: 26px; margin-bottom: 40px; }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

a { color: var(--nt-blue); text-decoration: none; text-underline-offset: 2px; }
a:hover { color: var(--nt-blue-strong); text-decoration: underline; }

/* enter animation */
.fade-in { animation: fade-in 280ms var(--nt-ease-emphasis) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- shared type ---- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--nt-graphite);
}
h1.display {
  margin: 0; font-size: 52px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.03;
}
h2.title {
  margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
}
.lead {
  margin: 4px auto 0; max-width: 460px; font-size: 19px; line-height: 1.55;
  color: var(--nt-slate); text-wrap: pretty;
}
strong.ink { color: var(--nt-ink); font-weight: 700; }

/* ---- columns ---- */
.col-welcome { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 40px; }
.col-narrow { width: 100%; max-width: 480px; margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.letter-head { text-align: center; display: flex; flex-direction: column; gap: 16px; }

/* ---- cards ---- */
.card {
  background: var(--nt-paper); border: 1px solid var(--nt-mist);
  border-radius: var(--nt-radius-xl);
}
.card-explainer { padding: 28px 28px 24px; box-shadow: var(--nt-shadow-sm); }
.card-email { padding: 28px; box-shadow: var(--nt-shadow-md); }
.card-panel {
  padding: 40px 36px; box-shadow: var(--nt-shadow-lg);
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}

/* ---- explainer ---- */
.explainer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.explainer-head .material-symbols-rounded { font-size: 26px; color: var(--nt-blue); }
.explainer-head h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.explainer-body { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--nt-slate); }
.explainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.explainer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.explainer-grid .material-symbols-rounded { font-size: 22px; color: var(--nt-ink); }
.explainer-grid .cell { font-size: 13.5px; line-height: 1.4; color: var(--nt-slate); }
.explainer-grid .cell strong { color: var(--nt-ink); }

/* ---- steps ---- */
.steps { display: flex; flex-direction: column; gap: 4px; }
.steps .eyebrow { margin-bottom: 12px; padding-left: 2px; }
.step { display: flex; gap: 18px; padding: 16px 2px; }
.step-badge {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  background: var(--nt-ink); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.step-body { padding-top: 3px; }
.step-title { font-size: 17px; font-weight: 700; }
.step-desc { font-size: 15px; line-height: 1.5; color: var(--nt-slate); margin-top: 3px; }
.step-divider { height: 1px; background: var(--nt-mist); margin-left: 50px; }

/* ---- email form ---- */
.field-label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.field-help { margin: 0 0 16px; font-size: 14px; color: var(--nt-graphite); line-height: 1.45; }
.field-help strong { color: var(--nt-slate); }
form.email-form { display: flex; flex-direction: column; gap: 12px; }
input.email {
  width: 100%; font-family: var(--nt-font-sans); font-size: 16px;
  padding: 13px 15px; border: 1px solid var(--nt-border-strong);
  border-radius: var(--nt-radius-md); color: var(--nt-ink); background: var(--nt-paper);
  transition: border-color 120ms, box-shadow 120ms;
}
input.email:focus { outline: none; border-color: var(--nt-blue); box-shadow: var(--nt-ring-focus); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--nt-danger); }
.field-error .material-symbols-rounded { font-size: 18px; }

.signoff { margin: 0; text-align: center; font-size: 13px; color: var(--nt-graphite); line-height: 1.5; }

/* ---- buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-family: var(--nt-font-sans); font-weight: 700; font-size: 16px;
  padding: 14px 20px; border-radius: var(--nt-radius-md); border: none; cursor: pointer;
  color: #fff; background: var(--nt-ink); transition: background 120ms; text-decoration: none;
}
.btn-primary:hover { background: var(--nt-ink-soft); color: #fff; text-decoration: none; }
.btn-primary .material-symbols-rounded { font-size: 20px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: flex-start; font-family: var(--nt-font-sans); font-weight: 600; font-size: 14px;
  padding: 9px 14px; border-radius: var(--nt-radius-md); border: 1px solid var(--nt-border-strong);
  background: var(--nt-paper); color: var(--nt-ink); cursor: pointer;
}
.btn-secondary .material-symbols-rounded { font-size: 18px; }

.btn-ghost {
  background: none; border: none; cursor: pointer; font-family: var(--nt-font-sans);
  font-size: 13.5px; color: var(--nt-graphite); text-decoration: none;
}
.btn-ghost:hover { color: var(--nt-slate); text-decoration: none; }

/* ---- stepper ---- */
.stepper { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--nt-graphite); }
.stepper .material-symbols-rounded { font-size: 16px; color: var(--nt-stone); }
.stepper .now { color: var(--nt-ink); }
.stepper .done { color: var(--nt-success); }

/* ---- panel icon circles ---- */
.icon-circle { width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.icon-circle.blue { background: var(--nt-blue-soft); }
.icon-circle.blue .material-symbols-rounded { font-size: 32px; color: var(--nt-blue); }
.icon-circle.green { background: var(--nt-success-soft); }
.icon-circle.green .material-symbols-rounded { font-size: 34px; color: var(--nt-success); font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.icon-circle.red { background: var(--nt-danger); }
.icon-circle.red .material-symbols-rounded { font-size: 32px; color: #fff; }

.panel-copy { margin: 0 auto; max-width: 380px; font-size: 16px; color: var(--nt-slate); line-height: 1.55; }
.reassure { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nt-graphite); }
.reassure .material-symbols-rounded { font-size: 16px; }

/* ---- iCloud Keychain guidance ---- */
.kc { width: 100%; text-align: left; border-radius: var(--nt-radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
/* the [hidden] attribute must win over the display above (author CSS beats the
   UA [hidden] rule); the browser-detection script reveals exactly one box. */
.kc[hidden] { display: none; }
.kc.success { background: var(--nt-success-soft); border: 1px solid #CDEBD9; }
.kc.blue { background: var(--nt-blue-soft); border: 1px solid #CBDDFF; }
.kc-row { display: flex; gap: 12px; }
.kc-row .material-symbols-rounded { font-size: 22px; flex: none; margin-top: 1px; }
.kc.success .kc-row .material-symbols-rounded { color: var(--nt-success); }
.kc.blue .kc-row .material-symbols-rounded { color: var(--nt-blue); }
.kc-title { font-size: 15px; font-weight: 700; color: var(--nt-ink); }
.kc-text { font-size: 14px; line-height: 1.5; color: var(--nt-slate); margin-top: 3px; }
.kc-text strong { color: var(--nt-ink); }
.kc-warn {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  background: var(--nt-paper); border: 1px solid #F1C9C7; border-radius: var(--nt-radius-md);
}
.kc-warn-text { font-size: 13.5px; line-height: 1.4; color: var(--nt-slate); }
.kc-warn-text strong { color: var(--nt-ink); }

.no-google { position: relative; display: inline-block; width: 30px; height: 30px; flex: none; }
.no-google .g { position: absolute; inset: 5px; width: 20px; height: 20px; }
.no-google .prohibit { position: absolute; inset: 0; width: 30px; height: 30px; }

/* ---- lookup spinner ---- */
.spinner {
  width: 34px; height: 34px; border-radius: 999px;
  border: 3px solid var(--nt-mist); border-top-color: var(--nt-ink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
