/*
  Solvik Life Agency, a demo. The Lamplit Desk direction from profiles/insurance-broker.md:
  modern and calm, with depth, a soft glow and crisp borders (the founder's words, 2026-09-27).

  Every colour comes from a checked palette through CSS custom properties set by the starter.
  The glow is always the palette's own accent, mixed down, so it follows every look.
  Phone first; the wider rules sit below the rules they change.
*/

:root {
  --bg: #0F1A17;
  --surface: #16251F;
  --text: #E9F1ED;
  --muted: #A8BCB3;
  --primary: #7BE0BC;
  --accent: #7BE0BC;
  --accent-text: #0F1A17;
  --border: #2B4239;
  --focus: #7BE0BC;
  --band-1: #1B2E27;
  --band-2: #16251F;
  --detail: #7BE0BC;

  --glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --glow-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --lift: color-mix(in srgb, var(--text) 7%, transparent);
  --radius: 18px;
  --gutter: 16px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -10%, var(--glow-soft), transparent 70%),
    radial-gradient(700px 480px at -10% 40%, var(--glow-soft), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
  padding-bottom: 76px;
  transition: background-color .4s ease, color .4s ease;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.muted { color: var(--muted); }

/* The sample ribbon stays on every screen: the page must never be mistaken for a real agent. */
.preview-ribbon {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--gutter);
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.ribbon-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.showing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}
.showing-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.palette-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.palette-switch button {
  font: 700 15px/1 var(--body);
  min-height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.palette-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--glow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  font: 700 22px/1 var(--display);
  color: var(--accent);
  box-shadow: 0 0 18px var(--glow), inset 0 1px 0 var(--lift);
}
.brand-words { display: flex; flex-direction: column; }
.brand-name { font: 700 17px/1.2 var(--display); }
.brand-licence { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topnav { display: none; gap: 22px; }
.topnav a { text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--accent); }

main { padding: 0 var(--gutter); max-width: 1120px; margin: 0 auto; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: 700 17px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--glow), 0 8px 24px var(--glow-soft);
  transition: box-shadow .25s ease, transform .25s ease;
}
.btn:hover { box-shadow: 0 0 22px var(--glow), 0 8px 24px var(--glow-soft); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--glow-soft); }
.btn.small { min-height: 42px; font-size: 15px; padding: 0 16px; }

/* Layered panels: a hairline border, a lit top edge and a glow underneath. */
.panel, .glow {
  background: linear-gradient(180deg, var(--lift), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--lift), 0 18px 40px -24px var(--glow);
}
.panel { padding: 24px 20px; margin: 0 0 28px; }

/* Hero */
.hero { display: grid; gap: 22px; padding: 18px 0 34px; }
.portrait {
  position: relative;
  margin: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--band-1), var(--surface));
  border: 1px solid var(--border);
}
.portrait-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 26px var(--glow), inset 0 0 18px var(--glow-soft);
}
.portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.agent-line { margin: 0 0 .35em; font-size: 19px; }
.agent-name { font-weight: 700; }
.agent-title { color: var(--muted); }
.agent-title::before { content: "\00B7\00A0"; }

/* The licence line: the same size as the phone number beside it, on purpose. */
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 .25em;
  font: 500 19px/1.3 var(--display);
  font-variant-numeric: tabular-nums;
}
.licence { font-size: inherit; white-space: nowrap; }
.phone { font-size: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); }
.licence-note { font-size: 15px; color: var(--muted); margin-bottom: 1em; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.lead { font-size: 19px; max-width: 36em; margin-top: 1em; }

/* How I work */
.how .big { font-size: 20px; line-height: 1.5; }
.facts { display: grid; gap: 12px; margin: 22px 0 0; }
.fact {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--band-1);
}
.fact dt { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.fact dd { margin: 0; }

/* What I help with */
.help { margin: 0 0 30px; }
.section-head { margin-bottom: 16px; }
.help-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.help-card { padding: 18px; }
.help-card h3 { margin-bottom: .3em; }
.help-card p { margin: 0; color: var(--muted); }

/* Your first conversation: a lit path down the steps */
.first { display: grid; gap: 22px; margin: 0 0 30px; }
.first-photo { margin: 0; }
.first-photo img, .about-photo img, .ready-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.path { list-style: none; margin: 18px 0 22px; padding: 0; position: relative; }
.path::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border));
  box-shadow: 0 0 10px var(--glow);
}
.path-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 0 0 18px; }
.path-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 17px/1 var(--display);
  box-shadow: 0 0 14px var(--glow);
  position: relative;
}
.path-words h3 { margin: 8px 0 .25em; }
.path-words p { margin: 0; color: var(--muted); }
.book-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  font-size: 15px;
}

/* Getting ready: the checklist and its meter */
.ready-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.meter { flex: none; }
.meter svg { transform: rotate(-90deg); }
.meter-track { fill: none; stroke: var(--border); stroke-width: 4; }
.meter-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .5s ease;
  filter: drop-shadow(0 0 4px var(--glow));
}
.checklist { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 8px; }
.check { position: relative; }
.check label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--band-1);
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--muted);
  display: grid;
  place-items: center;
  transition: background-color .2s ease;
}
.check.is-done label { border-color: var(--accent); box-shadow: 0 0 16px var(--glow-soft); }
.check.is-done .check-mark { background: var(--accent); border-color: var(--accent); }
.check.is-done .check-mark::after { content: ""; width: 7px; height: 13px; border: solid var(--accent-text); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .check-mark { outline: 3px solid var(--focus); outline-offset: 3px; }
.progress { font-weight: 700; margin: 8px 0 12px; }
.ready.is-complete .progress { color: var(--accent); }
.ready-photo { margin: 22px 0 0; }

/* Questions worth asking */
.ask { margin: 0 0 30px; }
.questions { display: grid; gap: 10px; margin-bottom: 14px; }
.question {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 16px;
}
.question summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 700;
  position: relative;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font: 500 24px/1 var(--display);
  color: var(--accent);
}
.question[open] { border-color: var(--accent); box-shadow: 0 0 18px var(--glow-soft); }
.question[open] summary::after { content: "\2212"; }
.question p { color: var(--muted); padding-bottom: 6px; }
.text-link { color: var(--accent); font-weight: 700; }

/* About */
.about { display: grid; gap: 22px; margin: 0 0 30px; }
.about-photo { margin: 0; }
.signoff { font: 700 22px/1 var(--display); color: var(--accent); }

/* Visit */
.email-note {
  margin: 20px 0 8px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--band-1);
  border-radius: 0 12px 12px 0;
}
.email-note-label { font-weight: 700; margin-bottom: 4px; }
.email-note p:last-child { margin: 0; }

.footer {
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 26px var(--gutter) 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.footer-licence { color: var(--text); font: 500 17px/1.5 var(--display); }
.footer-licence .licence, .footer-licence .phone { font-size: inherit; }
.made-by { font-weight: 700; }

/* Call and Book, pinned to the bottom of a phone screen. */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}
.action-bar a:last-child { background: var(--accent); color: var(--accent-text); border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }

/* The reveal, only when scripts run and motion is welcome. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .check label, .meter-fill, body { transition: none; }
}

/* Wider screens: below the rules they change. */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .topnav { display: flex; }
  .showing-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .hero { grid-template-columns: 200px 1fr; align-items: center; padding: 40px 0 50px; }
  .portrait { width: 184px; height: 184px; }
  .panel { padding: 34px 36px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts-wide { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .first, .about { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .ready { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 36px; }
  .ready > .ready-photo { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
  .about-photo { order: 2; }
}

@media (min-width: 1000px) {
  .help-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
  .action-bar { display: none; }
}
