/* ============================================================
   AskAngiiAI Visibility Lab — styles
   Matched to the official AskAngiiAI brand sheet:
     --bg         #040E1A  Background (deepest)
     --surface    #0A1C2E  Surface (panels / cards)
     --teal       #1EB8CC  Primary accent
     --teal-light #5FD4E4  Highlight / 'A'
     --coral      #E8836A  Warm accent / 'Angii'
     --text       #EDF5F8  Light text
     --muted      #6BA8BC  Secondary text
   Typography:
     Playfair Display Italic — logo 'A' + editorial accents
     DM Sans                 — headings + body
     DM Mono                 — eyebrows, labels, taglines
   Mobile-first: base styles target small screens;
   the @media block at the bottom widens for desktop.
   ============================================================ */

:root {
  --bg:         #040E1A;
  --surface:    #0A1C2E;
  --teal:       #1EB8CC;
  --teal-light: #5FD4E4;
  --coral:      #E8836A;
  --text:       #EDF5F8;
  --muted:      #6BA8BC;
  --line:       rgba(107, 168, 188, 0.25); /* muted @ 25% for borders */
  --radius:     16px;
  --shadow:     0 6px 24px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.55;
  /* Deep-space background with faint teal/coral glows */
  background:
    radial-gradient(circle at 15% 8%,  rgba(30,184,204,0.10), transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(232,131,106,0.07), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

main { max-width: 680px; margin: 0 auto; padding: 0 1rem 3rem; }

/* ---------- Header + logo ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.15rem; }

/* Ring-A mark: teal ring with an open gap + coral spark, per brand sheet */
.brand-mark { display: block; width: 34px; height: 34px; }

.brand-angii { color: var(--coral); }
.brand-tag {
  font-family: "DM Mono", Consolas, monospace;
  font-size: 0.72rem; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.5rem 0 2rem; }
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 0.8rem; font-weight: 600; }
.hero h1 em { font-style: italic; font-family: "Playfair Display", Georgia, serif; color: var(--teal-light); }
.hero-sub { color: var(--muted); margin-bottom: 0.7rem; }
.hero-sub strong { color: var(--text); }
.hero-local {
  font-family: "DM Mono", Consolas, monospace;
  font-size: 0.85rem; color: var(--coral); margin-bottom: 1.2rem;
}
.hero-honesty { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.card h2 { font-size: 1.35rem; margin-bottom: 0.3rem; font-weight: 600; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; font-weight: 600; }
.card-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.8rem; }

/* ---------- Form ---------- */
.form-intro { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.req { color: var(--coral); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
input, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
input::placeholder, textarea::placeholder { color: rgba(107,168,188,0.55); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30,184,204,0.20);
}
.form-error {
  color: var(--coral); background: rgba(232,131,106,0.12);
  border: 1px solid rgba(232,131,106,0.4);
  padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 0.8rem;
}
.form-privacy { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--bg); box-shadow: 0 4px 18px rgba(30,184,204,0.35); }
.btn-cta { background: var(--coral); color: var(--bg); box-shadow: 0 4px 18px rgba(232,131,106,0.4); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--teal); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 0.5rem; }

/* ---------- Report header / score ring ---------- */
.report-header-card { text-align: center; }
.report-eyebrow {
  font-family: "DM Mono", Consolas, monospace;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: var(--teal); font-weight: 500;
}
.report-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }

.score-ring-wrap { position: relative; width: 170px; margin: 0.5rem auto; }
.score-ring { width: 170px; height: 170px; transform: rotate(-90deg); }
.ring-bg, .ring-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring-bg { stroke: rgba(107,168,188,0.18); }
.ring-fill {
  stroke: var(--teal);
  stroke-dasharray: 326.7;      /* 2πr where r=52 */
  stroke-dashoffset: 326.7;     /* animated by JS */
  transition: stroke-dashoffset 1.2s ease, stroke 0.5s ease;
}
.score-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-number { font-size: 2.6rem; font-weight: 700; }
.score-outof { font-size: 0.85rem; color: var(--muted); }
.score-verdict { font-weight: 600; font-size: 1.05rem; margin-top: 0.4rem; }
.confidence-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Category bars ---------- */
.cat-row { margin-bottom: 0.9rem; }
.cat-label { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.cat-score { color: var(--teal-light); }
.cat-track { height: 10px; background: rgba(107,168,188,0.15); border-radius: 999px; overflow: hidden; }
.cat-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); width: 0; transition: width 1s ease; }
.cat-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- Lists ---------- */
.list-missing li, .list-fixes li { margin: 0 0 0.6rem 1.2rem; font-size: 0.93rem; }
.list-missing li strong { color: var(--coral); }
.list-plain li { margin: 0 0 0.5rem 1.2rem; font-size: 0.93rem; }
.list-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.list-chips li {
  background: rgba(30,184,204,0.12); border: 1px solid var(--teal);
  color: var(--teal-light);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  font-family: "DM Mono", Consolas, monospace; font-size: 0.8rem;
}
.list-prompts { list-style: none; }
.list-prompts li {
  background: var(--bg); color: var(--teal-light);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 0.7rem 0.9rem; margin-bottom: 0.55rem;
  font-size: 0.85rem; font-family: "DM Mono", Consolas, monospace;
}

/* ---------- Action plan ---------- */
.plan { margin-bottom: 1rem; }
.plan h4 {
  font-family: "DM Mono", Consolas, monospace;
  font-size: 0.85rem; color: var(--teal);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.plan ul li { margin: 0 0 0.4rem 1.2rem; font-size: 0.92rem; }

/* ---------- CTA card ---------- */
.cta-card {
  background: linear-gradient(135deg, var(--surface) 0%, #0e2a42 100%);
  border: 1px solid var(--teal);
  text-align: center;
}
.cta-card h3 { color: var(--text); }
.cta-card p { color: var(--muted); font-size: 0.92rem; margin: 0.7rem 0 1rem; }
.lead-form { text-align: left; max-width: 420px; margin: 0.5rem auto 0; }
.cta-local {
  font-family: "DM Mono", Consolas, monospace;
  font-size: 0.75rem !important; color: var(--teal) !important; margin-top: 1rem !important;
}

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 1.5rem 1rem 2.5rem; font-size: 0.8rem; color: var(--muted); }
.footer-honesty { margin-top: 0.4rem; font-size: 0.72rem; }

/* ---------- Desktop tweaks (mobile-first) ---------- */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.5rem; }
  .card { padding: 2rem; }
}

/* ---------- Print (report prints on white for readability) ---------- */
@media print {
  .site-header, .hero, .form-card, .btn, .site-footer { display: none !important; }
  body { background: #ffffff; }
  .card, .cta-card { box-shadow: none; border: 1px solid #ccc; background: #ffffff; }
  body, .card h2, .card h3, .cta-card h3, .plan ul li, .list-plain li, .list-missing li, .list-fixes li { color: #131b3a; }
  .card-sub, .cat-note, .report-meta, .confidence-note, .cta-card p { color: #44506e; }
  .list-prompts li { background: #f0f4f8; color: #131b3a; border-color: #ccc; }
}
