/* ============================================================
   LocalProof v2 — design system + app pages
   ============================================================ */

:root {
  --ink: #101418;
  --ink-soft: #3c454e;
  --muted: #6b7681;
  --line: #e6e9ec;
  --bg: #f7f8f9;
  --surface: #ffffff;
  --brand: #0e7a6c;
  --brand-dark: #0a5d53;
  --brand-soft: #e3f2ef;
  --accent: #f4b63f;
  --danger: #c2452d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.06), 0 1px 6px rgba(16, 20, 24, 0.05);
  --shadow-md: 0 6px 24px rgba(16, 20, 24, 0.09);
  --shadow-lg: 0 20px 60px rgba(16, 20, 24, 0.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- primitives ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--font);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.button.primary:hover { background: var(--brand-dark); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { background: #fff; }
.button.light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.button.danger { background: transparent; color: var(--danger); border-color: #ecd5cf; }
.button.danger:hover { background: #fbf1ee; }
.button.full { width: 100%; }
.button:disabled { opacity: 0.55; cursor: progress; }

.eyebrow {
  display: inline-block;
  font: 700 0.74rem var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: 400 0.95rem var(--font);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-color: var(--brand);
}
label { font: 600 0.85rem var(--font); color: var(--ink-soft); display: grid; gap: 6px; }

.form-status { min-height: 1.3em; font-size: 0.9rem; color: var(--muted); margin: 4px 0 0; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--brand); }

.badge {
  display: inline-block;
  font: 700 0.7rem var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge.live { background: #e5f4ea; color: #1c7c3c; }
.badge.draft { background: #f1f0ea; color: #8a7a36; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(247, 248, 249, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none !important;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #15a08d);
  color: #fff;
  font: 800 0.85rem var(--font);
}
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--ink-soft); font-weight: 550; font-size: 0.93rem; }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
.topbar .actions { display: flex; gap: 10px; align-items: center; }
.account-chip {
  font: 600 0.83rem var(--font);
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}
@media (max-width: 760px) { .topbar nav { display: none; } }

/* ---------- marketing: hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 110px) clamp(18px, 4vw, 48px);
  max-width: 1240px;
  margin: 0 auto;
}
.hero-copy .lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: 0.85rem; color: var(--muted); }

.hero-copy .hl {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%);
  padding: 0 2px;
}
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font: 600 0.88rem var(--font);
}

.hero-visual { position: relative; }
.hero-visual .screenshot,
.hero-visual .video-shell {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #0c1013;
}
.hero-visual .screenshot img { aspect-ratio: 4/3; object-fit: cover; }
.hero-visual .video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- seo strip ---------- */
.seo-strip {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.seo-strip article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  display: grid;
  gap: 2px;
}
.seo-strip strong { font-size: 0.95rem; }
.seo-strip span { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 860px) { .seo-strip { grid-template-columns: 1fr; } }

/* ---------- feature cards (image features) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card img { aspect-ratio: 16/10; object-fit: cover; }
.feature-card .meta { padding: 20px 22px 24px; }
.feature-card .tag {
  display: inline-block;
  font: 700 0.7rem var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 10px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.hero-visual .float-card {
  position: absolute;
  left: -26px;
  bottom: -22px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 0.85rem;
}
.hero-visual .float-card strong { color: var(--brand); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual .float-card { left: 10px; }
}

/* ---------- marketing: sections ---------- */

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(18px, 4vw, 48px);
}
.section-heading { max-width: 620px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.steps article::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  font: 800 0.8rem var(--font);
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 9px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.steps strong { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.example-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.example-card img { aspect-ratio: 3/2; object-fit: cover; }
.example-card .meta { padding: 18px 20px; }
.example-card .meta p { color: var(--muted); font-size: 0.82rem; margin: 0 0 4px; }
.example-card .meta h3 { font-size: 1.02rem; margin: 0 0 8px; }
.example-card .meta span {
  font: 650 0.72rem var(--font);
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
@media (max-width: 860px) { .examples { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 12px 40px rgba(14, 122, 108, 0.18); position: relative; }
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font: 700 0.68rem var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card .price { font: 800 2.4rem var(--font); letter-spacing: -0.03em; margin: 2px 0 4px; }
.price-card .price small { font: 600 0.95rem var(--font); color: var(--muted); }
.price-card .plan-tag { margin: -4px 0 0; color: var(--muted); font-size: 0.86rem; }
.price-card ul { margin: 8px 0 18px; padding: 0 0 0 18px; color: var(--ink-soft); font-size: 0.93rem; display: grid; gap: 6px; }
.price-card ul.plan-features { list-style: none; padding-left: 0; gap: 9px; }
.plan-features li { position: relative; padding-left: 28px; line-height: 1.45; }
.plan-features li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.plan-features li.ok::before { content: "✓"; background: var(--brand-soft); color: var(--brand); }
.plan-features li.no { color: var(--muted); }
.plan-features li.no::before { content: "✕"; background: #f3f1ee; color: #b3aca2; }
.pricing-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.price-card .button { margin-top: auto; }
.waitlist-form { display: grid; gap: 8px; margin-top: auto; }
.waitlist-form .button { margin-top: 0; }
.waitlist-form[hidden] { display: none; }
@media (max-width: 1080px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }

.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq-list summary { font-weight: 650; cursor: pointer; }
.faq-list details p { margin: 10px 0 0; color: var(--ink-soft); }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(18px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- auth pages ---------- */

.auth-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 18px; }
.auth-panel { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 36px 32px; }
.auth-panel h1 { font-size: 1.6rem; }
.auth-panel > p { color: var(--muted); font-size: 0.93rem; }
.auth-panel form { display: grid; gap: 14px; margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; margin: 18px 0 4px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-toggle { margin-top: 18px; text-align: center; font-size: 0.92rem; color: var(--muted); }
.auth-toggle a { font-weight: 650; margin-left: 6px; }
.google-area { display: grid; gap: 10px; margin-top: 16px; justify-items: stretch; }

/* ---------- dashboard ---------- */

.dash { max-width: 1080px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 48px); }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head p { color: var(--muted); margin: 0; }

.generator-card { padding: 30px 28px; margin-bottom: 34px; }
.generator-card form { display: grid; gap: 16px; max-width: 560px; }

.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.site-card { overflow: hidden; display: flex; flex-direction: column; }
.site-card .thumb { aspect-ratio: 5/2.6; object-fit: cover; border-bottom: 1px solid var(--line); background: #eef0f2; }
.site-card .body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.site-card .title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site-card h3 { margin: 0; font-size: 1.05rem; }
.site-card .meta { color: var(--muted); font-size: 0.83rem; }
.site-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.site-card .row .button { padding: 8px 16px; font-size: 0.85rem; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); }

/* ---------- editor ---------- */

.editor-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}
.editor-side {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 24px 60px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
}
.editor-side h2 { font-size: 1.15rem; }
.editor-side form { display: grid; gap: 14px; }
.editor-side fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 10px; }
.editor-side legend { font: 700 0.8rem var(--font); color: var(--ink-soft); padding: 0 6px; }
.repeat-row { display: grid; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.repeat-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.row-tools { display: flex; justify-content: flex-end; }
.mini-btn {
  font: 650 0.75rem var(--font);
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}
.add-btn {
  font: 650 0.8rem var(--font);
  color: var(--brand);
  background: var(--brand-soft);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  justify-self: start;
}
.color-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.color-row input[type="color"] { padding: 3px; height: 38px; cursor: pointer; }

.editor-main { padding: 26px clamp(16px, 3vw, 40px); overflow-y: auto; max-height: calc(100vh - 64px); }
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.editor-toolbar .spacer { flex: 1; }
.editor-toolbar select { width: auto; min-width: 200px; }
.editor-toolbar .link-box { display: flex; gap: 8px; align-items: center; }
.editor-toolbar .link-box input { width: 280px; font-size: 0.83rem; }
.preview-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
@media (max-width: 1020px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side, .editor-main { max-height: none; }
}
