:root {
  --navy: #06141c;
  --teal: #22d3ee;
  --teal-deep: #0e7a8c;
  --lavender: #c9a6ff;
  --pink: #ff7ac8;
  --line: #e4e6ea;
  --bg: #f3f6f7;
  --muted: #5c6b75;
  --card: #ffffff;
  --warn: #7a4e00;
  --warn-bg: #fff8ec;
  --danger: #9f1239;
  --danger-bg: #fff1f2;
  --shadow: 0 18px 50px rgba(6, 20, 28, 0.08);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; }
button, input { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

.stripe { display: grid; grid-template-columns: 1.35fr 0.7fr 0.95fr; height: 4px; }
.stripe i { display: block; }
.stripe i:nth-child(1) { background: var(--teal); }
.stripe i:nth-child(2) { background: var(--lavender); }
.stripe i:nth-child(3) { background: var(--pink); }

.sword { width: 28px; height: 28px; flex: none; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.brand-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.lede { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.hint { margin: -6px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fine { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.alert {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.login {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(34, 211, 238, 0.2), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 122, 200, 0.14), transparent 50%),
    radial-gradient(640px 420px at 50% 120%, rgba(201, 166, 255, 0.18), transparent 55%),
    var(--bg);
}
.login-card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.login-body { padding: 28px 28px 32px; }
.login-body .lede { margin-top: 18px; }

.google-btn, .primary, .secondary, .dev-btn, .text-btn {
  border-radius: 6px;
  cursor: pointer;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  background: white;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #dadce0;
}
.google-btn:hover { background: #f7fbfc; }

.dev-box {
  margin-top: 22px;
  border: 1px solid #e7c98a;
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 14px;
}
.dev-box strong {
  display: block;
  color: var(--warn);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dev-box p { margin: 0 0 12px; color: #5c4316; font-size: 14px; line-height: 1.45; }
.dev-btn {
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--warn);
  border: 1px solid #d7b56a;
  font-weight: 700;
}
.dev-btn:hover { background: #fff1d6; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: 12px; }
.who-email { color: var(--muted); font-size: 14px; }
.text-btn {
  background: transparent;
  border: 0;
  color: var(--teal-deep);
  font-weight: 700;
  padding: 6px 0;
}
.text-btn:hover { text-decoration: underline; }

.dev-banner {
  background: var(--warn-bg);
  color: #5c4316;
  border-bottom: 1px solid #e7c98a;
  padding: 10px 28px;
  font-size: 14px;
  line-height: 1.45;
}
.dev-banner strong { color: var(--warn); }

.wrap { padding: 28px; max-width: 1180px; margin: 0 auto; }
.layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.panel h1, .panel h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.panel h2 { font-size: 18px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.panel-head p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input:not([type]) {
  width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
input:focus {
  outline: 2px solid var(--teal);
  border-color: transparent;
}

.drop {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px dashed #b7c3c9;
  border-radius: 12px;
  padding: 14px;
  background: #fbfcfd;
  margin-bottom: 8px;
}
.drop.dragover { border-color: var(--teal-deep); background: #f3fbfc; }
.drop strong { display: block; margin-bottom: 4px; }
.drop p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}
#headshot-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  flex: none;
}

.primary, .secondary {
  min-height: 48px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.primary { background: var(--teal); color: var(--navy); width: 100%; }
.primary:hover:not(:disabled) { filter: brightness(0.97); }
.secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  width: 100%;
}
.secondary:hover:not(:disabled) { background: #f7fbfc; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
#save { margin-top: 6px; }
.share-note { margin-top: 12px; }

.preview-panel { position: sticky; top: 18px; }
.email-sheet {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.email-chrome {
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}
.email-chrome div { display: flex; gap: 8px; padding: 3px 0; }
.email-chrome span { width: 58px; color: #8b98a1; }
#preview { display: block; width: 100%; height: 520px; border: 0; background: white; }

.result { margin-top: 22px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.url {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.status { min-height: 1.2em; margin: 8px 0 0; color: var(--teal-deep); font-size: 14px; font-weight: 700; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.steps h3 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.steps ol { margin: 0; padding-left: 18px; color: var(--navy); font-size: 14px; line-height: 1.45; }
.steps li { margin: 0 0 6px; }
.noscript { padding: 16px 28px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .wrap { padding: 18px 16px 40px; }
  .topbar, .dev-banner { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 720px) {
  .steps, .actions { grid-template-columns: 1fr; }
  .who { flex-direction: column; align-items: flex-end; gap: 0; }
  .login-body { padding: 22px 18px 24px; }
  #preview { height: 640px; }
}
