/* ==========================================================================
   MYCV — PUBLIC SITE
   Landing, pricing, auth, dashboard and published CV pages.

   Direction: Notion-like product UI. Warm paper, ink text, quiet borders,
   black primary actions, no chrome gradients or pill buttons.

   Type: Inter for UI, display, and body.
   ========================================================================== */

:root {
  --ink: #37352f;
  --ink-2: #5f5e5b;
  --ink-3: #787774;
  --ink-4: #9b9a97;

  --chrome: #191919;
  --chrome-2: #2f2f2f;
  --chrome-3: #3f3f3f;
  --chrome-4: #4a4a4a;
  --chrome-line: #3f3f3f;
  --chrome-text: #ffffff;
  --chrome-text-2: #d3d2cf;
  --chrome-text-3: #9b9a97;

  --accent: #2383e2;
  --accent-hover: #1a73c9;
  --accent-deep: #0b6bcb;
  --accent-soft: #e8f3fc;
  --accent-line: #c5dff5;
  --accent-glow: #69b1f0;
  --accent-shadow: hsl(210 76% 45% / 0.12);
  --accent-shadow-strong: hsl(210 76% 45% / 0.18);

  --indigo: #2383e2;
  --teal: #0f7b6c;

  --paper: #ffffff;
  --canvas: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --surface-3: #efefed;

  --line: #e9e9e7;
  --line-2: #dfdfde;

  --ok: #0f7b6c;
  --warn: #d9730d;
  --bad: #e03e3e;

svg.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  flex-shrink: 0;
}

  --r-sm: 6px;
  --r: 8px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 8px;

  --shadow-1: none;
  --shadow-2: 0 1px 2px hsl(40 8% 12% / 0.04);
  --shadow-3: 0 8px 24px hsl(40 8% 12% / 0.06);
  --shadow-paper: 0 8px 24px hsl(40 8% 12% / 0.06);

  --font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, monospace;

  --shell: 1240px;
  --gutter: clamp(1rem, 3.5vw, 1.75rem);
  --header-h: 45px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 650;
}
h3, h4 {
  font-family: var(--font-ui);
  font-weight: 575;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--ink-3); }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn,
.btn-primary {
  background-color: var(--ink);
  color: #fff;
  box-shadow: none;
}
.btn:hover,
.btn-primary:hover {
  background: #2b2a26;
  box-shadow: none;
  transform: none;
}
.btn:active,
.btn-primary:active {
  transform: none;
  box-shadow: none;
}
.btn:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn[disabled] { opacity: 0.6; pointer-events: none; filter: none; }
.btn svg,
.btn svg.lucide {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  background-image: none;
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: none;
  filter: none;
}
.btn-ghost:hover {
  background: var(--surface-3);
  background-image: none;
  color: var(--ink);
  border-color: var(--ink-4);
  filter: none;
  box-shadow: none;
}

.btn-light {
  background: transparent;
  background-image: none;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  filter: none;
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
  background-image: none;
  border-color: rgba(255, 255, 255, 0.55);
  filter: none;
  box-shadow: none;
}

.btn-lg { height: 36px; padding: 0 0.9rem; font-size: 0.875rem; border-radius: var(--r); }
.btn-sm { height: 28px; padding: 0 0.6rem; font-size: 0.8125rem; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-danger {
  background: var(--bad);
  background-image: none;
  border-color: transparent;
  box-shadow: none;
}
.btn-danger:hover {
  background: hsl(6 52% 36%);
  background-image: none;
  filter: none;
}

/* ── Header ──────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  /* bare cv-check mark: letters follow the text colour, the check stays blue */
  width: 30px;
  height: auto;
  display: block;
  flex-shrink: 0;
  color: var(--ink);
  overflow: visible;
}
.site-footer .brand-mark { color: var(--chrome-text); }
.brand-word { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav-link {
  padding: 0.32rem 0.6rem;
  border-radius: var(--r);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.45rem; margin-left: 0.7rem; }
.nav-actions .btn { height: 28px; font-size: 0.8125rem; border-radius: var(--r); padding: 0 0.65rem; }
.nav-actions .btn-ghost {
  color: var(--ink-2);
  border-color: var(--line-2);
  background: transparent;
  background-image: none;
  box-shadow: none;
}
.nav-actions .btn-ghost:hover {
  background: var(--surface-3);
  color: var(--ink);
  border-color: var(--ink-4);
  filter: none;
}

.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.nav-toggle:hover { background: var(--surface-3); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.75px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform 0.22s var(--ease), opacity 0.18s ease;
}
.nav-toggle span { top: 50%; margin-top: -0.875px; }
.nav-toggle span::before { content: ''; top: -6px; left: 0; margin-left: 0; }
.nav-toggle span::after { content: ''; top: 6px; left: 0; margin-left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-130%);
    transition: transform 0.24s var(--ease);
    margin-left: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  /* Scoped to the collapsed menu. These turn the actions into full-width
     stacked rows, which is right inside the dropdown and wrong anywhere the
     actions stay inline — the published CV page has no hamburger to fold them
     into, so its button was being sized as a 40px menu row inside a 45px bar
     and hung out of the bottom of it. */
  .nav-links .nav-actions { flex-direction: column; align-items: stretch; margin: 0.9rem 0 0; }
  .nav-links .nav-actions .btn { width: 100%; height: 40px; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: visible;
  padding: clamp(3.1rem, 6vw, 4.4rem) 0 clamp(2.2rem, 4.5vw, 3.4rem);
}
.hero::before,
.hero::after { display: none; }
.hero > .shell { position: relative; z-index: 2; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

.hero-intro { max-width: 36rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 26px;
  padding: 0 0.45rem 0 0.4rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.12s ease;
  animation: hero-rise 0.7s var(--ease) both;
}
.hero-eyebrow:hover { background: var(--surface-3); transform: none; }
.hero-eyebrow svg,
.hero-eyebrow svg.lucide {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--accent);
}
.hero-eyebrow svg.lucide:last-child {
  width: 12px;
  height: 12px;
  font-size: 12px;
  color: var(--ink-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
  max-width: 16ch;
  animation: hero-rise 0.7s var(--ease) 0.06s both;
}
.hero h1 em {
  font-style: italic;
  font-weight: 550;
  color: var(--ink);
}
.hero-sub {
  font-size: 0.9375rem;
  color: var(--ink-3);
  max-width: 44ch;
  margin-bottom: 1.25rem;
  line-height: 1.55;
  animation: hero-rise 0.7s var(--ease) 0.12s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: hero-rise 0.7s var(--ease) 0.18s both;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  color: var(--ink-4);
  font-size: 0.82rem;
  animation: hero-rise 0.7s var(--ease) 0.24s both;
}
.hero-notes li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-notes svg,
.hero-notes svg.lucide { width: 14px; height: 14px; font-size: 14px; line-height: 1; color: var(--ink-3); flex-shrink: 0; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 0;
  justify-self: end;
  width: min(100%, 580px);
  animation: hero-visual 0.9s var(--ease) 0.2s both;
}
@keyframes hero-visual {
  from { opacity: 0; transform: translate(16px, 18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.hero-visual-frame {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.hero-visual img {
  width: 100%;
  display: block;
  height: auto;
  max-height: min(58vh, 480px);
  object-fit: cover;
  object-position: top left;
  background: var(--canvas);
}

/* Floating proof chips — small, real UI states lifted out of the editor. */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
.hero-chip svg,
.hero-chip svg.lucide { width: 15px; height: 15px; font-size: 15px; line-height: 1; flex-shrink: 0; }
.hero-chip-score { left: -1.6rem; top: 14%; color: var(--ok); animation-delay: 0.4s; }
.hero-chip-score svg,
.hero-chip-score svg.lucide { color: var(--ok); }
.hero-chip-domain {
  right: -1.2rem;
  bottom: 12%;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  animation-delay: 1.4s;
}
.hero-chip-domain svg,
.hero-chip-domain svg.lucide { color: var(--accent); }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-intro { max-width: none; text-align: center; margin-inline: auto; }
  .hero h1, .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-notes { justify-content: center; }
  .hero-visual { justify-self: center; width: min(100%, 520px); }
  .hero-chip-score { left: -0.4rem; }
  .hero-chip-domain { right: -0.4rem; }
}
@media (max-width: 560px) {
  .hero-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-cta, .hero-notes,
  .hero-visual, .hero-chip { animation: none; }
}

/* Legacy eyebrow still used on auth asides */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── App window frame ────────────────────────────────────────────────── */

.window {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--chrome-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1rem;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-4);
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: #5a5856; }
.window-dot.red { background: #ff5f57; }
.window-dot.amber { background: #febc2e; }
.window-dot.green { background: #28c840; }
.window-title {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--chrome-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-body { display: block; background: var(--canvas); }
.window-body img {
  width: 100%;
  display: block;
  max-height: min(280px, 38vw);
  object-fit: cover;
  object-position: top center;
}
.window.on-dark {
  border-color: hsl(0 0% 100% / 0.12);
  box-shadow: 0 28px 70px hsl(40 10% 4% / 0.42);
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section { padding: clamp(2.4rem, 5vw, 4.2rem) 0; }
.section-canvas { background: linear-gradient(180deg, var(--canvas), var(--surface-2)); }
.section-soft { background: var(--surface-2); }

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--chrome);
  color: var(--chrome-text);
}
.section-dark::before,
.section-dark::after { display: none; }
.section-dark > .shell { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3 { color: var(--chrome-text); }
.section-dark p { color: var(--chrome-text-2); }

.section-head { max-width: 38rem; margin: 0 auto clamp(1.5rem, 3vw, 2.2rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}
.section-dark .kicker { color: var(--accent-glow); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin-bottom: 0.45rem;
}
.section h2 em { font-style: italic; font-weight: 550; color: inherit; }
.section-lead { color: var(--ink-3); font-size: 0.9375rem; line-height: 1.55; }
.section-dark .section-lead { color: var(--chrome-text-2); }

/* ── Feature rows ────────────────────────────────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.feature-row.flip .feature-media { order: -1; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip .feature-media { order: 0; }
}

.feature-tag,
.feature-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
}
.feature-mark-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink);
}
.feature-mark-icon svg,
.feature-mark-icon svg.lucide,
.feature-tag svg,
.feature-tag svg.lucide {
  display: block;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  overflow: visible;
}
.feature-row h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin-bottom: 0.5rem; }
.feature-row p { color: var(--ink-3); }
.section-dark .feature-row p { color: var(--chrome-text-2); }

.point-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.55rem; }
.point-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.point-list svg,
.point-list svg.lucide { width: 17px; height: 17px; font-size: 17px; line-height: 1; color: var(--ink-3); flex-shrink: 0; margin-top: 2px; }
.section-dark .point-list li { color: var(--chrome-text-2); }
.section-dark .point-list svg,
.section-dark .point-list svg.lucide { color: var(--chrome-text-3); }

/* ── Feature tiles ───────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}
.tile {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: none;
}
.tile:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
.tile-media {
  order: -1;
  margin: 0 0 0.85rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas);
}
.tile h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.tile p {
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  max-width: 36ch;
}
.tile-media img {
  width: 100%;
  display: block;
  /* A fixed height, not max-height: these load lazily, and max-height leaves
     the box at 0 until the file arrives — every tile then jumped 160px as you
     scrolled past it. A real height reserves the space up front. */
  height: 160px;
  object-fit: cover;
  object-position: top center;
}

/* ── Steps ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}
.steps-scene .steps {
  grid-template-columns: 1fr;
  gap: 1.35rem;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line-2);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-3); font-size: 0.9rem; }

/* ── Templates gallery ───────────────────────────────────────────────── */

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 960px) {
  .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.template-card {
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
  margin: 0;
}
.template-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--ink-4);
}
.template-shot {
  /* Thumbs are captured at a fixed width (~460px, slightly landscape). Match
     that so object-fit cannot crop the left and right of the page. */
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.template-shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.template-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
}
.template-meta-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.template-meta-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.35;
}

.template-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.template-filter {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.template-filter:hover { border-color: var(--accent); color: var(--ink); }
.template-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.template-card[hidden] { display: none; }
.template-foot {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  text-align: center;
}
.pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--ink-3);
}
.pill.pro {
  background: var(--warn);
  color: #18181b;
}

/* ── Proof strip ─────────────────────────────────────────────────────── */

/* A thin band of claims under the hero. Quiet facts, not a scoreboard. */
.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.15rem 1.25rem;
  min-width: 0;
}
.proof + .proof {
  border-left: 1px solid var(--line);
}
.proof-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ink-2);
}
.proof-icon svg,
.proof-icon svg.lucide { width: 20px; height: 20px; font-size: 20px; line-height: 1; }
.proof-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.proof strong {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.proof span {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.35;
}
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof { padding: 1rem 0.95rem; }
  .proof + .proof { border-left: none; }
  .proof:nth-child(odd) { border-right: 1px solid var(--line); }
  .proof:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── Browser mock (custom domains) ───────────────────────────────────── */

/* Drawn rather than screenshotted: the point being made is the address bar,
   and a real screenshot would bury it in page content. */
.browser-mock {
  margin: 1.5rem 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  max-width: 430px;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  background: var(--chrome-2);
  border-bottom: 1px solid var(--chrome-4);
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chrome-4); flex-shrink: 0; }
.browser-url {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  height: 26px;
  margin-left: 0.35rem;
  padding: 0 0.7rem;
  border-radius: var(--r);
  background: var(--chrome);
  color: var(--chrome-text-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  overflow: hidden;
}
.browser-url svg,
.browser-url svg.lucide { width: 12px; height: 12px; font-size: 12px; line-height: 1; color: var(--ok); flex-shrink: 0; }
.browser-host { color: var(--chrome-text); }
.browser-page {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem 1.3rem;
  background: var(--surface);
}
.browser-line { display: block; height: 9px; border-radius: 999px; background: var(--surface-3); }
.browser-line.lg { width: 52%; height: 13px; background: var(--ink-4); opacity: 0.35; }
.browser-line.md { width: 34%; }
.browser-sheet {
  display: block;
  height: 74px;
  margin-top: 0.4rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      to bottom,
      var(--surface-2) 0 8px,
      var(--surface) 8px 16px
    );
}

/* ── DNS demo card ───────────────────────────────────────────────────── */

.dns-demo {
  padding: 1.2rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.dns-demo-step {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--r);
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.dns-demo-head h3 { font-size: 1rem; color: var(--ink); }
.dns-demo-table {
  width: 100%;
  margin-top: 0.9rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.dns-demo-table th {
  text-align: left;
  padding: 0 0.7rem 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.dns-demo-table td {
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.dns-demo-table tr:last-child td { border-bottom: none; }
.dns-demo-table code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  word-break: break-all;
}
.dns-demo-table code.v { color: var(--ink); }
.dns-type {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: var(--r);
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}
.dns-demo-foot {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.dns-demo-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ok);
}
.dns-demo-ok svg,
.dns-demo-ok svg.lucide { width: 14px; height: 14px; font-size: 14px; line-height: 1; }

/* ── Published link strip ────────────────────────────────────────────── */

.link-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 0.4rem 0 1.1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  max-width: 440px;
  margin: 1.2rem 0 0.6rem;
  transition: background 0.14s, border-color 0.14s;
}
.link-strip:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.link-strip .host { color: var(--ink-4); }
.link-strip .slug { color: var(--ink); font-weight: 600; }
.link-strip button {
  position: relative;
  margin-left: auto;
  height: 36px;
  padding: 0 0.9rem;
  border: none;
  border-radius: var(--r);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.link-strip button:hover { background: var(--surface-3); }
.link-strip button.is-copied {
  background: hsl(152 42% 30% / 0.12);
  color: var(--ok);
}

/* Inline copy confirmation — sits on the control that was pressed. */
[data-copy] { position: relative; }
.copy-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(2px);
  padding: 0.28rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 5;
}
.copy-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
[data-copy].is-copied .copy-tip,
[data-copy].is-copy-failed .copy-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-copy].is-copy-failed .copy-tip { background: var(--bad); }
[data-copy].is-copy-failed .copy-tip::after { border-top-color: var(--bad); }
.link-strip-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  max-width: 44ch;
}

/* Ghost buttons need the light treatment on any dark surface. */
.section-dark .btn-ghost,
.cta-scene.on-dark .btn-ghost {
  color: var(--chrome-text);
  border-color: hsl(0 0% 100% / 0.32);
}
.section-dark .btn-ghost:hover {
  background: hsl(0 0% 100% / 0.1);
  color: var(--chrome-text);
  border-color: hsl(0 0% 100% / 0.55);
}

/* ── Pricing ─────────────────────────────────────────────────────────── */

.billing-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  margin-bottom: 0.8rem;
}
.billing-toggle button {
  border: none;
  background: transparent;
  height: 34px;
  padding: 0 1.05rem;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-3);
  cursor: pointer;
}
.billing-toggle button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}
.save-badge {
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
}
.currency-select {
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 820px;
  margin-inline: auto;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-1);
}
.plan.featured {
  border-color: var(--ink);
  box-shadow: none;
  padding-top: 1.85rem;
}
.plan-flag {
  position: absolute;
  top: 0;
  left: 1.25rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 22px;
  margin: 0;
  padding: 0 0.55rem;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}
.plan-flag svg,
.plan-flag svg.lucide {
  width: 11px;
  height: 11px;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.plan .plan-tag { color: var(--ink-3); font-size: 0.85rem; margin-bottom: 1rem; min-height: 2.4em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.2rem; }
.price-was {
  color: var(--ink-4);
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.price .amount {
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price .per { color: var(--ink-4); font-size: 0.85rem; font-weight: 600; }
.price-note { font-size: 0.8rem; color: var(--ink-3); min-height: 2.4em; margin-bottom: 1.1rem; }

.coupon-entry { margin-top: 1rem; }
.coupon-entry summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.15rem 0;
  border-radius: var(--r);
  -webkit-tap-highlight-color: transparent;
}
.coupon-entry summary::-webkit-details-marker,
.coupon-entry summary::marker { display: none; content: none; }
.coupon-entry summary:focus,
.coupon-entry summary:focus-visible { outline: none; }
.coupon-entry summary svg,
.coupon-entry summary svg.lucide {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-3);
  flex-shrink: 0;
}
.coupon-chevron {
  display: inline-flex;
  transition: transform 0.18s var(--ease);
}
.coupon-entry[open] .coupon-chevron { transform: rotate(180deg); }
.coupon-entry summary:hover { color: var(--ink); }
.coupon-entry summary:hover svg,
.coupon-entry summary:hover svg.lucide { color: var(--ink); }
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.coupon-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.coupon-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-4);
}
.coupon-input:hover { border-color: var(--ink-4); }
.coupon-input:focus {
  outline: none;
  border-color: var(--ink-4);
  box-shadow: 0 0 0 1px var(--ink-4);
}
.coupon-apply {
  width: auto;
  height: 32px;
  padding: 0 0.9rem;
  font-size: 0.8125rem;
}
.coupon-entry.is-applied .coupon-row { display: none; }
.coupon-status {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ok);
}
.coupon-status.is-error { color: var(--bad); }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  flex: 1;
}
.plan-features li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--ink-2); }
.plan-features svg,
.plan-features svg.lucide { width: 16px; height: 16px; font-size: 16px; line-height: 1; color: var(--ink-3); flex-shrink: 0; margin-top: 3px; }
.plan-features li.off { color: var(--ink-4); }
.plan-features li.off svg,
.plan-features li.off svg.lucide { color: var(--line-2); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { max-width: 740px; margin-inline: auto; display: grid; gap: 0.55rem; }
.faq details {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 0 1.05rem;
}
.faq details[open] {
  border-color: var(--line-2);
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.1em;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-4);
  line-height: 1;
  text-align: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--ink-3);
}
.faq-panel {
  overflow: hidden;
  /* Height is driven by JS for open + close. Without JS, native <details>
     still shows/hides content instantly (height:auto). */
}
.faq.js-faq .faq-panel {
  height: 0;
  transition: height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq .answer {
  padding: 0 0 1rem;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.55;
}
.faq.js-faq .answer {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.28s ease 0.04s,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}
.faq.js-faq details.is-open .answer {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after,
  .faq.js-faq .faq-panel,
  .faq.js-faq .answer {
    transition: none !important;
  }
}

/* ── CTA band ────────────────────────────────────────────────────────── */

.cta-scene {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.cta-scene-photo { display: none; }
.cta-scene::before,
.cta-scene::after { display: none; }
.cta-band {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  text-align: left;
  max-width: 36rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  max-width: 22ch;
}
.cta-band p { color: var(--ink-3); max-width: 46ch; margin: 0 0 1.15rem; font-size: 0.9375rem; }

/* How-it-works scene: photo + steps */
.steps-scene {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.steps-scene > * {
  /* Grid items default to min-width:auto, which lets wide images spill into the next column. */
  min-width: 0;
}
@media (max-width: 1024px) {
  .steps-scene { grid-template-columns: 1fr; }
}
.steps-photo {
  display: grid;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}
.steps-photo img,
.steps-photo figcaption {
  grid-area: 1 / 1;
}
.steps-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.steps-photo figcaption {
  align-self: end;
  z-index: 1;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(transparent, hsl(40 10% 9% / 0.88));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--chrome);
  color: var(--chrome-text-2);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 1.6rem;
  font-size: 0.875rem;
  border-top: none;
}
.footer-bg-word {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -0.12em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 26rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(
    180deg,
    hsl(44 30% 100% / 0.015) 0%,
    hsl(44 30% 100% / 0.05) 60%,
    hsl(44 30% 100% / 0.03) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 1.9rem;
  border-bottom: 1px solid var(--chrome-4);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer .brand { margin-bottom: 0.65rem; color: var(--chrome-text); }
.site-footer .brand-word { color: var(--chrome-text); }
.site-footer p { color: var(--chrome-text-3); max-width: 32ch; }
.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chrome-text-3);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--chrome-text-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer li form { display: inline; margin: 0; padding: 0; }
.site-footer .link-button {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--chrome-text-2);
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}
.site-footer .link-button:hover { color: #fff; }
.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.4rem;
  align-items: center; justify-content: space-between;
  color: var(--chrome-text-3); font-size: 0.8rem;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--chrome-text-3);
  min-width: 0;
}
.footer-credit:hover { color: #fff; }
.footer-credit svg,
.footer-credit svg.lucide {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  color: currentColor;
  flex-shrink: 0;
}
.footer-paystack {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-paystack svg,
.footer-paystack svg.lucide {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  color: var(--chrome-text-2);
  flex-shrink: 0;
}

/* Interior page heroes (pricing, etc.) — the landing hero, quieter */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero::before,
.page-hero::after { display: none; }
.page-hero-photo { display: none; }
.page-hero-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(1.8rem, 4vw, 2.6rem) clamp(1.4rem, 3vw, 2rem);
  max-width: 36rem;
}
.page-hero-copy .kicker { color: var(--ink-3); }
.page-hero-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.page-hero-copy p {
  color: var(--ink-3);
  font-size: 0.9375rem;
  max-width: 46ch;
  margin: 0;
}

body.auth-page .site-header { display: none; }
body.auth-page .site-footer { display: none; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter);
  background:
    linear-gradient(180deg, var(--surface-2), var(--canvas));
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.auth-card-brand,
.auth-card .brand {
  display: inline-flex;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 1.6rem;
  color: var(--ink);
}
.auth-card .brand-mark { width: 36px; }
.auth-card h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin-bottom: 0.45rem;
}
.auth-card .sub {
  color: var(--ink-3);
  margin: 0 auto 1.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 34ch;
}
.auth-card form { text-align: left; }
.auth-card .flashes { margin-bottom: 1.1rem; text-align: left; }
.auth-card .form-foot {
  text-align: center;
}

.btn-google,
.btn.btn-google {
  background: var(--surface);
  background-image: none;
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
  font-weight: 500;
}
.btn-google:hover,
.btn.btn-google:hover {
  background: var(--surface-3);
  background-image: none;
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: none;
  transform: none;
}
.btn-google:active,
.btn.btn-google:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px hsl(40 10% 9% / 0.06);
}
.btn-google .google-mark,
.btn-google svg.google-mark {
  width: 18px;
  height: 18px;
}

.auth-split {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.2rem 0 1.15rem;
  color: var(--ink-4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-split::before,
.auth-split::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Forms ───────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.field .hint { font-size: 0.76rem; color: var(--ink-3); margin-top: 0.35rem; }
.field-control {
  position: relative;
}
.field-control .field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--ink-4);
  pointer-events: none;
  transition: color 0.12s;
}
.field-control .field-icon svg,
.field-control .field-icon svg.lucide {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  display: block;
}
.field-control .input {
  padding-left: 2.55rem;
}
.field-control:has(.password-toggle) .input {
  padding-right: 2.55rem;
}
.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-4);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: var(--ink-2);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.password-toggle svg.lucide {
  width: 16px;
  height: 16px;
}
.field-control .input::-ms-reveal,
.field-control .input::-ms-clear {
  display: none;
}

.password-meter {
  margin-top: 0.55rem;
}
.password-meter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  height: 4px;
  margin-bottom: 0.45rem;
}
.password-meter-bar span {
  display: block;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.15s;
}
.password-meter.is-weak .password-meter-bar span:nth-child(1) { background: var(--bad); }
.password-meter.is-fair .password-meter-bar span:nth-child(1),
.password-meter.is-fair .password-meter-bar span:nth-child(2) { background: var(--warn); }
.password-meter.is-good .password-meter-bar span { background: var(--ok); }
.password-meter-label {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.35;
}
.password-meter.is-weak .password-meter-label { color: var(--bad); }
.password-meter.is-fair .password-meter-label { color: var(--warn); }
.password-meter.is-good .password-meter-label { color: var(--ok); }
.password-hints {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.password-hints li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.3;
}
.password-hints li::before {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: transparent;
  box-sizing: border-box;
}
.password-hints li.is-ok {
  color: var(--ok);
}
.password-hints li.is-ok::before {
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: inset 0 0 0 2px var(--surface);
}
.password-hints li.is-bad {
  color: var(--bad);
}
.password-hints li.is-bad::before {
  border-color: var(--bad);
}
.field-control:focus-within .field-icon {
  color: var(--accent);
}
.input {
  width: 100%;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:focus {
  outline: none;
  border-color: var(--ink-4);
  box-shadow: 0 0 0 1px var(--ink-4);
}
.input::placeholder { color: var(--ink-4); }
/* Read-only fields have to look it, or the first thing a user does is try to
   type in them. */
.input:disabled {
  background: var(--surface-2);
  color: var(--ink-3);
  border-color: var(--line);
  cursor: not-allowed;
}
.field-control:has(.input:disabled) .field-icon { opacity: 0.55; }
.input-row { display: flex; gap: 0.5rem; align-items: center; }

.check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--ink-3); }
.check input { width: 15px; height: 15px; accent-color: var(--accent); }

.form-foot { margin-top: 1.35rem; text-align: left; font-size: 0.875rem; color: var(--ink-3); }
.form-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form-foot a:hover { text-decoration: underline; }
.auth-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

/* ── Flash messages ──────────────────────────────────────────────────── */
/* Inline alerts for form / server feedback. Not toasts — login errors and
   account messages need to stay put next to the form until the user acts. */

.flashes { display: grid; gap: 0.55rem; margin-bottom: 1rem; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid;
  box-shadow: var(--shadow-2);
}
.flash > span { flex: 1; min-width: 0; }
.flash svg,
.flash svg.lucide {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.flash-error {
  background: #fdf2f2;
  border-color: #f1c0c0;
  color: #9b2c2c;
}
.flash-error svg,
.flash-error svg.lucide { color: #e03e3e; }
.flash-success {
  background: #edf8f4;
  border-color: #b7e2d4;
  color: #0f5c50;
}
.flash-success svg,
.flash-success svg.lucide { color: var(--ok); }
.flash-info {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-deep);
}
.flash-info svg,
.flash-info svg.lucide { color: var(--accent); }

/* ── Account / settings ──────────────────────────────────────────────── */

.account-page {
  background:
    linear-gradient(180deg, var(--canvas) 0%, var(--surface-2) 28%, var(--surface) 100%);
  min-height: calc(100vh - var(--header-h));
}
.account-shell { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

.account-head {
  padding: clamp(2rem, 5vw, 3rem) 0 1.6rem;
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.account-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.account-head h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0;
}
.account-email {
  color: var(--ink-3);
  font-size: 0.95rem;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem 0 0;
  align-items: start;
}
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.2rem;
  box-shadow: none;
}
.card + .card { margin-top: 1rem; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.card h2 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 575;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.card .card-sub {
  color: var(--ink-3);
  font-size: 0.85rem;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 22px;
  padding: 0 0.45rem;
  border-radius: var(--r);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: var(--canvas);
  color: var(--ink-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.plan-badge.free { background: var(--surface-3); color: var(--ink-3); }
.plan-badge.warn { background: hsl(38 92% 90%); color: #92400e; }

/* Same Pro badge as the editor ribbon (ribbon.css). Shared here so dashboard
   pages do not need the full editor stylesheet. */
.pro-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border-radius: 3px;
  background: linear-gradient(140deg, hsl(45 95% 55%), hsl(28 90% 52%));
  color: #3b2a02;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.meter {
  width: 100%;
  height: 6px;
  border-radius: var(--r);
  background: var(--surface-3);
  overflow: hidden;
  margin: 0.45rem 0 0.3rem;
}
.meter span {
  display: block;
  height: 100%;
  border-radius: var(--r);
  background: var(--ink);
}
/* Unlimited plans have no cap — an empty track reads clearer than a full bar. */
.meter.is-unlimited {
  background: var(--surface-3);
  opacity: 0.85;
}

.data-list { display: grid; gap: 0.9rem; }
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.data-row:last-child { border-bottom: none; padding-bottom: 0; }
.data-row .label { font-size: 0.8rem; color: var(--ink-3); }
.data-row .value { font-weight: 600; font-size: 0.875rem; }

.card-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-2);
  font-weight: 700;
}
.table td { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }
.table a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.table a:hover { text-decoration: underline; }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: var(--ok);
}
.status-dot.off { background: var(--ink-4); }

.danger-zone {
  border-color: hsl(0 45% 82%);
  background: hsl(0 55% 98%);
}
.danger-zone h2 { color: var(--bad); }

.account-signout {
  margin-top: 1.4rem;
  text-align: center;
}
.account-signout a {
  font-size: 0.85rem;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 500;
}
.account-signout a:hover { color: var(--ink); }

.empty-note {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.empty-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.empty-note a:hover { text-decoration: underline; }

/* ── Published CV page ───────────────────────────────────────────────── */

body.public-cv { background: var(--canvas); }

/* Paper, like the rest of the site — a dark bar over a document reads as a
   product chrome bolted onto someone's CV. */
.cv-topbar {
  background: hsl(0 0% 100% / 0.92);
  backdrop-filter: saturate(1.7) blur(14px);
  -webkit-backdrop-filter: saturate(1.7) blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 20;
}
/* The published header keeps its one action inline — there is no hamburger to
   fold it into. The collapsed-menu rules must not reach it: they size a button
   as a 40px stacked menu row. Keep the compact header control size here. */
@media (max-width: 900px) {
  .cv-topbar .nav { height: 100%; display: flex; align-items: center; gap: 0.75rem; }
  .cv-topbar .nav-actions { flex-direction: row; align-items: center; margin: 0 0 0 auto; }
  .cv-topbar .nav-actions .btn {
    width: auto;
    height: 28px;
    padding: 0 0.65rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}

.cv-owner-note {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem var(--gutter);
}

.cv-hero { padding: clamp(1.8rem, 4vw, 2.8rem) 0 1.4rem; text-align: center; }
.cv-hero h1 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin-bottom: 0.3rem; }
.cv-hero .headline { color: var(--accent); font-weight: 600; font-size: 1rem; margin-bottom: 0.8rem; }
.cv-hero .summary { color: var(--ink-3); max-width: 64ch; margin: 0 auto 1.1rem; font-size: 0.95rem; }

.cv-contacts { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.cv-contact {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 30px; padding: 0 0.7rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 0.82rem;
  color: var(--ink-3);
  text-decoration: none;
}
.cv-contact:hover { border-color: var(--accent); color: var(--accent); }
.cv-contact svg,
.cv-contact svg.lucide { width: 14px; height: 14px; font-size: 14px; line-height: 1; flex-shrink: 0; }

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
}
/* Match the shared .btn (32px) — same visual weight as the contact chips
   above. A former (max-width: 640px) 44px bump made these look oversized
   in narrow desktop / Cursor preview panes (and on Windows touch laptops
   that also report pointer: coarse). */
.cv-actions .btn {
  height: 32px;
  min-height: 32px;
  padding: 0 0.85rem;
  flex: 0 0 auto;
  align-self: center;
}
.cv-actions .btn svg.lucide,
.cv-actions .btn svg {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 1;
}

.cv-paper-wrap { padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4rem); display: flex; justify-content: center; }
.cv-frame {
  width: 100%;
  /* Exactly the paper's own width. A wider frame left a white gutter down
     both sides of the sheet, which reads as part of the page on templates
     with a coloured rail or full-bleed header. */
  max-width: 210mm;
  /* The global border-box would make the 1px paper edge eat into the content
     box, leaving the frame a hair narrower than the paper and scaling the page
     to 0.998 for no reason. The border belongs outside the paper. */
  box-sizing: content-box;
  border: none;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-paper);
  display: block;
  /* The sheet is scaled to fit narrow screens, so clip it to the rounded
     corners rather than letting a coloured edge square them off. */
  overflow: hidden;
}
.cv-paper-wrap.is-letter .cv-frame { max-width: 216mm; }

.cv-cta { text-align: center; padding: 0 var(--gutter) clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-3); font-size: 0.85rem; }
.cv-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* The frame holds a white page; give it a paper edge rather than a hard cut. */
.cv-frame { border: 1px solid var(--line); }

/* ── Empty / error states ────────────────────────────────────────────── */

.state {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem var(--gutter);
  background: var(--paper);
  overflow: hidden;
}
.state::before { display: none; }
.state h1 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin: 0 0 0.55rem; letter-spacing: -0.03em; }
.state p { color: var(--ink-3); margin: 0 auto 0; max-width: 42ch; }
.state-photo { display: none; }

.state-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  padding: 1rem 0 2rem;
}

.state-num {
  margin: 0 0 0.15rem;
  font-size: clamp(5.5rem, 18vw, 9.5rem);
  font-weight: 650;
  line-height: 0.88;
  letter-spacing: -0.07em;
  color: var(--ink);
}
.state .state-num { color: var(--ink); }

.state-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 32rem;
  margin: 2rem;
}
.state-code {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--r);
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.state-detail {
  font-size: 0.88rem;
  color: var(--ink-4);
}
.state code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.08em 0.35em;
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--ink-2);
}
.state-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Reveal on scroll ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Toast ───────────────────────────────────────────────────────────── */

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(92vw, 22rem);
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: var(--shadow-3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s var(--ease, ease), opacity 0.2s ease, visibility 0.2s ease;
}
.site-toast:not(.show) { display: none; }
.site-toast.show {
  display: inline-flex;
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-toast-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: hsl(152 42% 30% / 0.12);
  color: var(--ok);
}
.site-toast-icon svg.lucide,
.site-toast-icon svg {
  width: 13px;
  height: 13px;
  font-size: 13px;
  line-height: 1;
}
.site-toast.is-error .site-toast-icon {
  background: hsl(6 52% 44% / 0.12);
  color: var(--bad);
}
.site-toast-msg {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Busy / loading buttons (auth + checkout) */
.btn.is-busy {
  position: relative;
  opacity: 1;
  pointer-events: none;
  color: transparent !important;
}
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #fff;
  opacity: 0.95;
  animation: btn-spin 0.65s linear infinite;
}
.btn-ghost.is-busy::after,
.btn-google.is-busy::after {
  border-color: var(--ink-3);
  border-right-color: transparent;
  color: var(--ink);
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-busy::after { animation: none; border-right-color: currentColor; opacity: 0.55; }
}
