/* SiteValet.net homepage prototype
   Dependency-free CSS. Design bar per docs/hosted-platform-plan.md §4.1:
   fluid type, generous whitespace, restrained motion. Light warm theme
   ("Golden Hour"): sunlit parchment, terracotta accent, sage secondary. */

:root {
  --bg: #fdf7ec;
  --bg-raise: #fffdf6;
  --ink: #2f261d;
  --ink-dim: #9c8a72;
  --accent: #c9681f;
  --accent-soft: rgba(201, 104, 31, .14);
  --teal: #7ba374;
  --line: rgba(51, 41, 31, .12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: .1em .4em;
  border-radius: 6px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand, .footer__brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.nav__mark { width: 26px; height: 26px; color: var(--accent); }
.nav__links { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav__links a, .footer__links a {
  color: var(--ink-dim); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav__links a:hover, .footer__links a:hover { color: var(--ink); }
.nav__actions { display: flex; gap: .6rem; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  font-family: inherit; cursor: pointer; appearance: none;
  background: transparent; color: var(--ink);
  padding: .55rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--accent); color: #1c1206; }
.btn--solid:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-dim); }
.btn--lg { padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn--block { display: block; text-align: center; }

.chip {
  font: 600 .9rem var(--font-body); color: var(--ink-dim);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1.1rem; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- shared section bits ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 4rem); max-width: 1200px; margin-inline: auto; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; margin: .35rem 0 .7rem;
}
.section-sub { color: var(--ink-dim); font-size: 1.05rem; }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: none;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.hero__glow {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 70% at 85% 8%, rgba(193, 102, 42, .28), transparent 65%),
    radial-gradient(50% 65% at 6% 88%, rgba(110, 143, 106, .22), transparent 65%),
    radial-gradient(90% 110% at 50% -10%, #f0dfc0 0%, var(--bg) 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1200px; margin-inline: auto;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.9rem, 6.2vw, 4.7rem); line-height: 1.03; letter-spacing: -.01em;
  margin: .8rem 0 1.2rem;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub { color: var(--ink-dim); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 30em; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }
.hero__facts {
  display: flex; gap: 1.6rem; flex-wrap: wrap;
  list-style: none; color: var(--ink-dim); font-size: .95rem;
}
.hero__facts strong { color: var(--ink); }

/* hero: live site mockup */
.hero__demo { position: relative; }
.demo-frame {
  overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line); background: #fffdf6;
  box-shadow:
    0 34px 90px -34px rgba(51, 41, 31, .28),
    0 0 0 1px rgba(51, 41, 31, .05),
    0 0 110px -34px rgba(193, 102, 42, .3);
  transform: rotate(1.6deg);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.demo-frame:hover { transform: rotate(0deg) scale(1.01); }
.demo-frame__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .8rem;
  background: rgba(51, 41, 31, .04); border-bottom: 1px solid var(--line);
}
.demo-frame__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(51, 41, 31, .18); }
.demo-frame__url {
  margin-inline: auto; padding: .18rem 1rem; border-radius: 999px;
  background: rgba(51, 41, 31, .06); color: var(--ink-dim);
  font-size: .78rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.demo-frame img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; }
.demo-frame-link { display: block; border-radius: 16px; text-decoration: none; }
.demo-frame-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; }
.hero__chip {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1.1rem;
  color: var(--ink-dim); font-size: .85rem; font-weight: 600;
}
.hero__chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- gallery ---------- */
.gallery__filters { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 2rem; }
.gallery__grid {
  display: flex; gap: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: .2rem .1rem 1rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery__grid::-webkit-scrollbar { height: 6px; }
.gallery__grid::-webkit-scrollbar-thumb { background: var(--line); }
.snap {
  flex: 0 0 340px; scroll-snap-align: start;
  transition: opacity .3s ease, transform .3s ease;
}
.snap:not(.is-hidden) + .snap:not(.is-hidden) { border-left: 1px solid var(--line); padding-left: 1.6rem; margin-left: 1.6rem; }
.picksbar--gallery .picksbar__arrow { top: 113px; }
.snap.is-hidden { display: none; }
.snap__frame {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 3 / 2; background: var(--bg-raise);
}
.snap__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.snap__frame:hover img { transform: scale(1.035); }
.snap__hover {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(8, 9, 13, .82));
  color: #fff; font-weight: 600; font-size: .95rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.snap__frame:hover .snap__hover, .snap__frame:focus-visible .snap__hover { opacity: 1; transform: none; }
.snap__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem .2rem 0; }
.snap__meta h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.snap__meta p { color: var(--ink-dim); font-size: .9rem; }
.snap__cta { display: inline-block; margin-top: .35rem; font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.snap__cta:hover { text-decoration: underline; }
.snap__tag {
  flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  border-radius: 999px; padding: .2rem .65rem;
}
a.snap__tag { text-decoration: none; transition: background .2s ease, color .2s ease; }
a.snap__tag:hover, a.snap__tag:focus-visible { background: var(--teal); color: #fff; }
.gallery__note { margin-top: 1.8rem; color: var(--ink-dim); font-size: .95rem; text-align: center; }

/* ---------- 2 steps ---------- */
.how { position: relative; }
.steps {
  display: grid; gap: 1.4rem; list-style: none; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.step {
  position: relative; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.6rem 1.7rem;
}
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--ink-dim); font-size: .97rem; }
.how__cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.6rem; }
.how__hint { color: var(--ink-dim); font-size: .9rem; }

/* ---------- pricing (single plan) ---------- */
.plans__solo { max-width: 560px; margin-inline: auto; }
.plan {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
}
.plan--solo { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -22px var(--accent-soft); }
.plan__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan h3 { font-family: var(--font-display); font-size: 1.35rem; }
.plan__price { color: var(--ink-dim); font-size: 1.05rem; }
.plan__price strong { color: var(--ink); font-size: 2.4rem; font-family: var(--font-display); }
.plan__once { color: var(--ink-dim); font-size: .85rem; margin-top: .2rem; }
.plan ul { list-style: none; display: grid; gap: .55rem; color: var(--ink-dim); font-size: .97rem; }
.plan ul li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: .5rem; }
.plan__note { text-align: center; color: var(--ink-dim); font-size: .85rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.2rem, 5vw, 4rem) 3.4rem; max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
.footer__line { color: var(--ink-dim); font-size: .92rem; }
.footer__links { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .snap__frame img, .btn, .snap__hover { transition: none; }
  .snap__frame:hover img { transform: none; }
  .demo-frame { transform: none; transition: none; }
  .hero__chip-dot { animation: none; }
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__facts { justify-content: center; }
  .hero__demo { max-width: 560px; margin-inline: auto; width: 100%; }
  .demo-frame { transform: none; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero__facts { gap: 1.2rem; }
  .footer__links { margin-left: 0; }
}

@media (max-width: 420px) {
  .nav { gap: .7rem; }
  .nav .btn { padding: .5rem .85rem; font-size: .85rem; white-space: nowrap; }
}

/* ---------- site-setup wizard (/start) ---------- */
.wizard { max-width: 780px; }
.wizard__head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3rem); margin: .35rem 0 1.4rem;
}
.progress {
  display: flex; gap: .5rem; list-style: none; flex-wrap: wrap; margin-bottom: 2rem;
}
.progress li {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-dim); font-size: .88rem; font-weight: 600;
}
.progress li span {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg-raise); font-size: .78rem;
}
.progress li.is-current { border-color: var(--accent); color: var(--accent); }
.progress li.is-current span { background: var(--accent-soft); }
.progress li.is-done { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.progress li.is-done span { background: transparent; }

.wcard {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
/* fieldsets default to min-content sizing, which would grow the card to
   fit the horizontal theme strip instead of letting it scroll */
.wcard fieldset { min-width: 0; }
.wpanel { display: none; border: 0; }
.wpanel.is-active { display: block; }
.wpanel__title {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; padding: 0;
  margin-bottom: .4rem;
}
.wpanel__sub { color: var(--ink-dim); margin-bottom: 1.4rem; }

.picksbar { position: relative; }
.picks {
  display: flex; gap: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: .2rem .1rem .9rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.picks::-webkit-scrollbar { height: 6px; }
.picks::-webkit-scrollbar-thumb { background: var(--line); }
.picksbar__arrow {
  position: absolute; top: 100px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  transition: background .2s ease, color .2s ease;
}
.picksbar__arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.picksbar__arrow--prev { left: -12px; }
.picksbar__arrow--next { right: -12px; }
.picksbar__arrow[hidden] { display: none; }
.pick { position: relative; display: block; flex: 0 0 300px; scroll-snap-align: start; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__frame {
  display: block; overflow: hidden; border-radius: 12px; border: 2px solid var(--line);
  aspect-ratio: 3 / 2; transition: border-color .2s ease;
}
.pick__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pick__live {
  flex: none; display: inline-block; padding: .28rem .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent); font-size: .8rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pick__live:hover, .pick__live:focus-visible {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.pick__meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .15rem 0; cursor: pointer; border-radius: 8px; }
.pick__meta:hover strong, .pick__meta:focus-visible strong { color: var(--accent); }
.pick__meta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick__meta strong { font-size: 1rem; flex: none; }
.pick__meta small { color: var(--ink-dim); font-size: .78rem; flex: 1; min-width: 0; }
.pick__check {
  position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #1c1206; font-weight: 700;
  opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease;
}
.pick input:checked ~ .pick__frame { border-color: var(--accent); }
.pick input:checked ~ .pick__check { opacity: 1; transform: scale(1); }
.pick input:focus-visible ~ .pick__frame { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick[hidden] { display: none; }
/* square-edged separator between themes in the scroller, only between two
   *visible* cards, so the first visible card never carries a stray indent */
.pick:not([hidden]) + .pick:not([hidden]) { border-left: 1px solid var(--line); padding-left: 1.2rem; margin-left: 1.2rem; }
.picks > .pick:last-child { padding-right: .5rem; }

.ttabs { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.switch-note { margin: 0 0 1.2rem; padding: .8rem 1rem; border: 1px solid var(--line, #ddd); border-radius: 10px; background: rgba(0,0,0,.03); font-size: .92rem; color: var(--ink-2, #555); max-width: 46rem; }

.explainer {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.15rem; margin: -.3rem 0 1.3rem;
  font-size: .88rem; line-height: 1.55; color: var(--ink-dim);
}
.explainer strong { color: var(--ink); }
.explainer p { margin: .5rem 0 0; }
.explainer code { font-size: .92em; color: var(--accent); word-break: break-all; }

.slug-status { margin: .5rem 0 0; font-size: .87rem; line-height: 1.5; }
.slug-status code { font-size: .92em; }
.slug-status::first-letter { font-weight: 700; }
.slug-status.is-ok { color: var(--teal); }
.slug-status.is-taken { color: #e5484d; }
.slug-status.is-taken code { color: #e5484d; background: transparent; padding: 0; }

.field { margin-bottom: 1.3rem; }
.field > label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field label em { color: var(--ink-dim); font-style: normal; font-weight: 500; }
.field input {
  width: 100%; padding: .7rem .95rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; transition: border-color .18s ease;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: color-mix(in srgb, var(--ink-dim) 60%, transparent); }
.field__hint { display: block; color: var(--ink-dim); font-size: .82rem; margin-top: .35rem; }
.field__slug { display: flex; align-items: stretch; }
.field__slug input { border-radius: 10px 0 0 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.field__slug span {
  display: flex; align-items: center; padding: 0 .95rem;
  border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0;
  background: var(--bg); color: var(--ink-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem;
}
.links { display: grid; gap: .55rem; margin-bottom: .6rem; }

.werror { color: #b3342c; font-size: .9rem; margin-top: 1rem; }

.review__row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.review__row img { width: 84px; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; border-radius: 8px; }
.review__row a { display: block; border-radius: 8px; line-height: 0; }
.review__row a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.review__row small { display: block; color: var(--ink-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.review__total { display: grid; gap: .1rem; padding-top: 1.1rem; }
.review__total span { color: var(--ink-dim); font-size: .9rem; }
.review__total strong { font-family: var(--font-display); font-size: 2rem; }
.review__total small { color: var(--ink-dim); }

.wizard__nav { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; }
.wizard__spacer { flex: 1; }
.btn--sm { padding: .35rem .9rem; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.is-disabled { opacity: .55; cursor: not-allowed; }

.wpanel--success .success { text-align: center; padding: 1.5rem 0 .5rem; }
.success__badge {
  width: 60px; height: 60px; margin: 0 auto 1.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal);
  font-size: 1.7rem; font-weight: 700;
}
.success h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: .5rem; }
.success p { color: var(--ink-dim); }
.success__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.success__note { font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  .pick__frame, .pick__check { transition: none; }
}

/* ---------- owner dashboard (/dashboard) ---------- */
.dash { max-width: 900px; }
.dash__head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3rem); margin: .35rem 0 1.6rem;
}

.dash-empty {
  text-align: center; padding: 4rem 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; gap: 1.1rem; justify-items: center;
}
.dash-empty__lead { font-family: var(--font-display); font-size: 1.4rem; }
.dash-empty__hint { color: var(--ink-dim); font-size: .88rem; }

.sitecard {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.8rem;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.sitecard__shot {
  position: relative; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line); aspect-ratio: 3 / 2; align-self: start;
}
.sitecard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sitecard__shot a { display: block; width: 100%; height: 100%; }
.sitecard__shot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sitecard__status {
  position: absolute; top: .6rem; left: .6rem;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(51, 41, 31, .78); backdrop-filter: blur(6px);
  color: #fffaf1; font-size: .78rem; font-weight: 600;
  border-radius: 999px; padding: .28rem .7rem;
}
.sitecard__status span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.sitecard__info h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.sitecard__addr { margin: .3rem 0 .6rem; }
.sitecard__tag { color: var(--ink-dim); }
.sitecard__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.sitecard__hint { color: var(--ink-dim); font-size: .85rem; margin-top: 1rem; }

.stats {
  display: grid; gap: 1rem; margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 14px; padding: 1rem 1.2rem;
  display: grid; gap: .1rem;
}
.stat small {
  color: var(--ink-dim); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.stat strong { font-size: 1.15rem; }
.stat span { color: var(--ink-dim); font-size: .8rem; }

.panel {
  margin-top: 1.4rem; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.panel h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .4rem; }
.panel p { color: var(--ink-dim); font-size: .95rem; }
.panel__note { margin-top: .9rem; font-size: .85rem !important; }
.panel--danger { border-color: color-mix(in srgb, #e5484d 32%, var(--line)); }
.panel--danger h3 { color: #b3342c; }

.btn--danger {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid #e5484d; color: #b3342c; background: transparent;
  font: 600 .92rem var(--font-body); transition: background .18s ease, color .18s ease;
}
.btn--danger:hover { background: #e5484d; color: #fff; }

.cancel-steps {
  margin: 1rem 0 1.2rem; padding-left: 1.3rem; color: var(--ink-dim);
  font-size: .92rem; line-height: 1.55; display: grid; gap: .55rem;
}
.cancel-steps strong { color: var(--ink); }

.sitecard__status.is-canceled span { background: #e5484d; }

/* billing-lapse banner (payment grace / suspension, policy §4.3) */
.billing {
  display: flex; gap: 1.1rem; align-items: flex-start;
  margin-bottom: 1.4rem; padding: 1.2rem 1.4rem;
  background: color-mix(in srgb, #d9930d 12%, var(--bg-raise));
  border: 1px solid color-mix(in srgb, #d9930d 45%, var(--line));
  border-radius: var(--radius);
}
.billing[hidden] { display: none; }
.billing.is-suspended {
  background: color-mix(in srgb, #e5484d 10%, var(--bg-raise));
  border-color: color-mix(in srgb, #e5484d 45%, var(--line));
}
.billing__icon {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #d9930d; color: #1c1206; font-weight: 800;
}
.billing.is-suspended .billing__icon { background: #e5484d; color: #fff; }
.billing__body { flex: 1; min-width: 0; }
.billing__body strong { display: block; margin-bottom: .25rem; font-size: 1.02rem; }
.billing__body p { color: var(--ink-dim); font-size: .92rem; line-height: 1.5; }
.billing__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.billing-ok { margin: -.4rem 0 1.4rem; color: var(--teal); font-size: .92rem; font-weight: 600; }

@media (max-width: 720px) {
  .billing { flex-direction: column; }
}

/* your-data page (/privacy) */
.legal { max-width: 780px; }
.legal .section-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
}
.legal .panel h2 {
  font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .5rem;
}
.legal .panel p + p { margin-top: .6rem; }
.legal .panel a { color: var(--accent); }
.legal-list { margin: .8rem 0; padding-left: 1.3rem; display: grid; gap: .5rem; color: var(--ink-dim); font-size: .95rem; }
.legal-list strong { color: var(--ink); }
.legal-table { margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.legal-table__row {
  display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1rem;
  padding: .8rem 1rem; font-size: .92rem; color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.legal-table__row:first-child { border-top: 0; }
.legal-table__row--head { background: var(--bg); color: var(--ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-table__row strong { color: var(--ink); }
@media (max-width: 720px) {
  .legal-table__row { grid-template-columns: 1fr; gap: .25rem; }
}
.domain-row { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.domain-row input {
  flex: 1; min-width: 220px; padding: .65rem .95rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
  opacity: .55;
}
.dash__note { color: var(--ink-dim); font-size: .82rem; text-align: center; margin-top: 1.8rem; }

@media (max-width: 720px) {
  .sitecard { grid-template-columns: 1fr; }
}

/* ---------- emails preview page (/emails/) ---------- */
.epage { max-width: 1100px; }
.epreview { display: grid; grid-template-columns: 300px 1fr; gap: 1.8rem; align-items: start; margin-top: 2.2rem; }
.epreview__list { position: sticky; top: 84px; display: grid; gap: 1.3rem; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: .3rem; }
.epreview__group h3 { font: 600 .76rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); margin-bottom: .55rem; }
.epreview__item {
  display: block; width: 100%; text-align: left; padding: .6rem .85rem; margin-bottom: .35rem;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-dim); font: inherit; font-size: .92rem; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.epreview__item:hover { border-color: var(--ink-dim); color: var(--ink); }
.epreview__item.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.epreview__stage { min-width: 0; }
.epreview__bar { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.epreview__bar h2 { font-family: var(--font-display); font-size: 1.4rem; }
.epreview__when { color: var(--ink-dim); font-size: .88rem; }
.epreview__toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.epreview__toggle button { padding: .45rem 1.05rem; background: transparent; border: 0; color: var(--ink-dim); font: 600 .85rem var(--font-body); cursor: pointer; }
.epreview__toggle button.is-on { background: var(--accent-soft); color: var(--accent); }
.epreview__frame-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-raise); }
.epreview__frame { display: block; width: 100%; border: 0; }
.epreview__text { margin: 0; padding: 1.4rem 1.5rem; color: var(--ink-dim); font-size: .85rem; line-height: 1.65; max-height: 72vh; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.epreview__meta { margin-top: .8rem; color: var(--ink-dim); font-size: .82rem; }
.epreview__meta a { color: var(--accent); }
@media (max-width: 860px) {
  .epreview { grid-template-columns: 1fr; }
  .epreview__list { position: static; max-height: none; }
  .epreview__toggle { margin-left: 0; }
}
