:root {
  /* Brand: deep navy base, bright blue for action, amber for emphasis */
  --navy: #0f2c5c;
  --navy-2: #1b4288;
  --blue: #2f6bff;
  --blue-dark: #1e4fd8;
  --blue-wash: #eef3ff;
  --amber: #f4a531;
  --amber-wash: #fdf3e2;

  --grey-1: #f5f7fa;
  --grey-2: #e3e8ef;
  --grey-3: #64748b;
  --ink: #1c2230;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); }
body { font-family: "DM Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--blue-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--grey-2); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 36px; height: 36px; display: block; }
.logo span { font-family: "Playfair Display", serif; font-weight: 700; font-size: 21px; color: var(--navy); }
nav a { margin-left: 24px; text-decoration: none; color: var(--grey-3); font-weight: 500; }
nav a:hover { color: var(--navy); }
nav a.btn { color: var(--white); }

.btn { display: inline-block; background: var(--blue); color: var(--white); padding: 12px 22px; border-radius: 7px; text-decoration: none; font-weight: 500; border: 0; cursor: pointer; font: inherit; }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--grey-2); }
.btn.ghost:hover { background: var(--grey-1); color: var(--navy); }

section { padding: 72px 0; }
.card { border: 1px solid var(--grey-2); border-radius: 10px; padding: 24px; background: var(--white); }
.note { font-size: 15px; margin-top: 12px; min-height: 1.5em; color: var(--blue-dark); }
.note.bad { color: #b42318; }
.meta { color: var(--grey-3); font-size: 15px; }
footer { border-top: 1px solid var(--grey-2); padding: 28px 0; color: var(--grey-3); font-size: 15px; }

/* Auth pages */
.panel { max-width: 430px; margin: 56px auto; }
.panel .card { padding: 30px; }
.panel h1 { font-size: 28px; }
.panel label { display: block; font-size: 15px; font-weight: 500; margin: 14px 0 6px; }
.panel input { width: 100%; padding: 12px 14px; border: 1px solid var(--grey-2); border-radius: 7px; font: inherit; }
.panel input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.panel .btn { width: 100%; margin-top: 20px; }
.panel .swap { text-align: center; margin-top: 18px; font-size: 15px; color: var(--grey-3); }
.hidden { display: none; }

/* Account page */
.account { max-width: 820px; margin: 48px auto 72px; }
.account .card + .card { margin-top: 20px; }
.account .who { color: var(--grey-3); font-size: 15px; margin: 0 0 28px; }
.account ol { padding-left: 0; margin: 0; list-style: none; counter-reset: step; }
.account ol li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.account ol li:last-child { padding-bottom: 0; }
.account ol li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-wash); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.download-card { border-color: var(--blue); background: linear-gradient(180deg, var(--blue-wash), var(--white) 70%); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--grey-1); border: 1px solid var(--grey-2); border-radius: 4px; padding: 1px 5px; }
.tag { display: inline-block; background: var(--amber-wash); color: #8a5a10; border-radius: 999px; padding: 2px 11px; font-size: 14px; font-weight: 500; }

/* Click-through walkthrough */
.tour { border: 1px solid var(--grey-2); border-radius: 10px; overflow: hidden; background: var(--white); }
.tour-stage { position: relative; background: var(--grey-1); border-bottom: 1px solid var(--grey-2); min-height: 260px; overflow: hidden; }
.tour-stage img { width: 100%; height: auto; display: block; }
.tour-stage .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 28px;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark)); color: #fff; }
.tour-stage .placeholder .n { width: 54px; height: 54px; border-radius: 50%; background: var(--amber); color: #3a2503; display: grid; place-items: center; font-weight: 700; font-size: 22px; font-family: "Playfair Display", serif; }
.tour-stage .placeholder .label { font-family: "Playfair Display", Georgia, serif; font-size: 24px; }
.tour-stage [hidden] { display: none; }
.spot { position: absolute; border: 3px solid var(--amber); border-radius: 8px; box-shadow: 0 0 0 9999px rgba(15, 44, 92, .42); transition: all .35s ease; }
.spot .pin {
  position: absolute; top: -15px; left: -15px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: #3a2503; display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.tour-body { padding: 20px 24px; display: flex; align-items: flex-start; gap: 20px; }
.tour-body .text { flex: 1; min-width: 0; }
.tour-body h3 { margin: 0 0 4px; font-size: 20px; }
.tour-body p { margin: 0; color: var(--grey-3); font-size: 16px; }
.tour-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tour-nav .btn { padding: 10px 16px; }
.tour-dots { display: flex; gap: 7px; justify-content: center; padding: 0 24px 20px; }
.tour-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--grey-2); cursor: pointer; }
.tour-dots button[aria-current="true"] { background: var(--blue); width: 26px; border-radius: 999px; }

@media (max-width: 640px) {
  .tour-body { flex-direction: column; gap: 14px; }
  .tour-nav { width: 100%; }
  .tour-nav .btn { flex: 1; }
  nav a:not(.btn) { display: none; }
}

/* Landing page */
.hero { padding: 88px 0 72px; background: var(--grey-1); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 780px; }
.hero p { font-size: 21px; line-height: 1.55; color: #44546b; max-width: 620px; margin: 0 0 28px; }
.hero .ctas a { margin-right: 12px; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid .card h3 { font-size: 21px; }
.grid .card p { margin: 0; color: var(--grey-3); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps strong { color: var(--navy); }
.sample { background: var(--grey-1); }
.agenda { border: 1px solid var(--grey-2); border-radius: 10px; background: var(--white); overflow: hidden; }
.agenda .row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--grey-2); }
.agenda .row:first-child { border-top: 0; background: var(--navy); color: var(--white); font-weight: 500; }
.agenda .t { color: var(--grey-3); }
.agenda .row:first-child .t { color: var(--white); }
.signup { text-align: center; }
.signup p { color: var(--grey-3); }
form.inline { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
form.inline input[type=email] { padding: 12px 14px; border: 1px solid var(--grey-2); border-radius: 7px; font: inherit; min-width: 280px; }

@media (max-width: 640px) {
  .agenda .row { grid-template-columns: 64px 1fr; }
  .agenda .row span:last-child { grid-column: 2; }
  form.inline input[type=email] { min-width: 0; width: 100%; }
}
