/* ============================================================
   Proserra — AI Property Marketing Studio
   Design system (brand tokens + components)
   Navy #071B3D · Blue #118CF5 · Teal #13C8C1 · Aqua #55E5C3
   ============================================================ */

:root {
  --navy: #071B3D;
  --blue: #118CF5;
  --blue-dark: #0E74CE;
  --teal: #13C8C1;
  --aqua: #55E5C3;
  --cloud: #F4F8FC;
  --ink: #142033;

  --muted: #5B6B82;
  --border: #E2E9F2;
  --surface: #ffffff;

  --brand-gradient: linear-gradient(120deg, #118CF5 0%, #13C8C1 55%, #55E5C3 100%);

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(7, 27, 61, 0.05), 0 1px 3px rgba(7, 27, 61, 0.04);
  --shadow-md: 0 4px 12px rgba(7, 27, 61, 0.06), 0 12px 32px rgba(7, 27, 61, 0.07);
  --shadow-lg: 0 20px 50px rgba(7, 27, 61, 0.14);

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-gradient { background: var(--brand-gradient); color: #fff; box-shadow: 0 6px 18px rgba(17, 140, 245, 0.28); }
.btn-gradient:hover { color: #fff; box-shadow: 0 8px 24px rgba(19, 200, 193, 0.34); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { background: var(--cloud); color: var(--navy); border-color: #cbd7e6; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }

:focus-visible { outline: 3px solid rgba(17, 140, 245, 0.45); outline-offset: 2px; border-radius: 6px; }

/* ---------------- Top nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.nav-logo { display: flex; align-items: center; }
/* Logo is pre-trimmed (no baked-in whitespace), so this height is all logo —
   it reads much larger than before while the bar stays compact. */
.nav-logo img { height: 52px; width: auto; display: block; }
@media (max-width: 560px) { .nav-logo img { height: 42px; } }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
}
.nav-link:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-user { color: var(--navy); font-weight: 600; font-size: 0.9rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout { margin: 0; }
.nav-logout-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
@media (max-width: 700px) { .nav-user { display: none; } }
@media (max-width: 760px) {
  .nav-links .nav-link:not(.nav-drop-btn) { display: none; }
}

/* Features dropdown */
.nav-dropdown { position: relative; }
.nav-drop-btn .caret { width: 16px; height: 16px; transition: transform 0.15s ease; }
.nav-dropdown.open .nav-drop-btn .caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-dropdown.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  color: var(--ink);
}
.nav-menu-item:hover { background: var(--cloud); color: var(--ink); }
.nmi-ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(17, 140, 245, 0.10);
  color: var(--blue);
}
.nmi-ico svg { width: 18px; height: 18px; }
.nmi-text { display: flex; flex-direction: column; gap: 0.1rem; }
.nmi-name { font-size: 0.92rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; }
.nmi-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.nmi-name .badge { margin-left: 0.45rem; }
.nav-menu-all {
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0.35rem 0.2rem 0.1rem;
  padding: 0.6rem 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--blue); font-weight: 600; font-size: 0.88rem;
}
.nav-menu-all svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.nav-menu-all:hover { color: var(--blue-dark); }
.nav-menu-all:hover svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .nav-menu { left: auto; right: 0; transform: translateY(6px); }
  .nav-dropdown:hover .nav-menu,
  .nav-dropdown:focus-within .nav-menu,
  .nav-dropdown.open .nav-menu { transform: translateY(0); }
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--cloud);
  color: var(--muted);
  padding: 2.75rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem 2rem;
  align-items: flex-start;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
/* Transparent logo sits directly on the light footer — no white box. */
.footer-logo { display: inline-flex; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-tag { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.9rem; max-width: 22rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col-title { color: var(--navy); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem; }
.footer-col a { color: var(--ink); font-size: 0.88rem; }
.footer-col a:hover { color: var(--blue); }
.footer-note { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1.2rem; color: var(--muted); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-legal { display: inline-flex; gap: 1.25rem; }
.footer-legal a { color: var(--muted); font-weight: 500; }
.footer-legal a:hover { color: var(--blue); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(19, 200, 193, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(17, 140, 245, 0.12), transparent 55%),
    var(--cloud);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 2rem; } }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin: 0 0 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero-meta { margin-top: 1.5rem; color: var(--muted); font-size: 0.86rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* Product preview card (stands in for a screenshot) */
.preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(0deg, #fff, #fbfdff);
}
.preview-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: #d7e0ec; }
.preview-bar .tag {
  margin-left: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal); display: inline-flex; align-items: center; gap: 0.4rem;
}
.preview-body { padding: 1.25rem 1.35rem 1.5rem; }
.preview-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.preview-headline { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.28rem; margin: 0.3rem 0 0.7rem; }
.preview-body p { color: var(--ink); font-size: 0.92rem; margin: 0 0 0.7rem; }
.preview-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip { font-size: 0.76rem; font-weight: 500; color: var(--navy); background: var(--cloud); border: 1px solid var(--border); border-radius: 999px; padding: 0.28rem 0.7rem; }
.gen-line { height: 4px; border-radius: 999px; background: var(--brand-gradient); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; margin-top: 1.1rem; }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; margin: 0.5rem 0 0.6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-eyebrow { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: inherit;
  text-decoration: none;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0f4; color: inherit; }
.feature .ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(17, 140, 245, 0.10); color: var(--blue); margin-bottom: 0.9rem;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 0.4rem; }
.feature p { color: var(--muted); font-size: 0.94rem; margin: 0 0 0.9rem; }
.feature-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--blue); font-weight: 600; font-size: 0.9rem;
}
.feature-more svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.feature:hover .feature-more svg { transform: translateX(3px); }
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 6px; margin-left: 0.5rem;
  vertical-align: middle;
}
.badge-live { color: #067a5b; background: rgba(85, 229, 195, 0.20); }
.badge-soon { color: var(--muted); background: var(--cloud); border: 1px solid var(--border); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff;
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gradient); margin-bottom: 0.85rem;
}
.step h3 { font-size: 1.08rem; margin: 0 0 0.35rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 20%, rgba(19,200,193,0.28), transparent 60%),
    radial-gradient(700px 320px at 10% 90%, rgba(17,140,245,0.30), transparent 60%),
    var(--navy);
}
.cta-inner { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; margin: 0 0 0.6rem; }
.cta-inner p { color: #b9c8dd; font-size: 1.08rem; margin: 0 0 1.6rem; }

/* ============================================================
   STUDIO / APP PAGE
   ============================================================ */
.app-head { max-width: 1200px; margin: 2rem auto 0; padding: 0 1.5rem; }
.app-head .kicker { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.app-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; margin: 0.4rem 0 0.35rem; }
.app-head .tagline { color: var(--muted); margin: 0; font-size: 1rem; }

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1.5rem 4rem;
  align-items: start;
}
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
}
.results-card { position: sticky; top: 5rem; }
@media (max-width: 960px) { .results-card { position: static; } }

fieldset {
  border: none;
  border-top: 1px solid var(--border);
  padding: 1.3rem 0 0;
  margin: 0 0 1rem;
}
fieldset:first-of-type { border-top: none; padding-top: 0; }
legend { font-family: var(--font-display); font-weight: 650; font-size: 0.98rem; padding: 0; color: var(--navy); }
.hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.9rem; }
.span-2 { grid-column: 1 / -1; }

label { display: flex; flex-direction: column; font-size: 0.82rem; font-weight: 500; color: var(--muted); gap: 0.35rem; }

input, select, textarea {
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  width: 100%;
  resize: vertical;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input::placeholder, textarea::placeholder { color: #9aa8bd; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(17, 140, 245, 0.15);
}

/* Checkbox groups */
.checkgroup { margin-bottom: 1rem; }
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.45rem 0.9rem;
  margin: 0.9rem 0 0.7rem;
}
.check { flex-direction: row; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 400; color: var(--ink); cursor: pointer; }
.check input { width: auto; margin: 0; accent-color: var(--blue); cursor: pointer; }
.check span { line-height: 1.2; }
.other { font-size: 0.86rem; }

/* Research toggle */
.research-toggle {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(120deg, rgba(17,140,245,0.06), rgba(19,200,193,0.08));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.research-toggle input { width: auto; margin: 0; accent-color: var(--teal); cursor: pointer; }
.research-toggle em { color: var(--muted); font-weight: 400; font-style: normal; }
.ico-inline { width: 16px; height: 16px; flex: none; color: var(--teal); }

/* Primary generate = AI generation moment (gradient) */
.generate-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17, 140, 245, 0.28);
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}
.generate-btn:hover { box-shadow: 0 9px 26px rgba(19, 200, 193, 0.34); }
.generate-btn:active { transform: translateY(1px); }

/* Terms & Conditions acceptance — required before generating */
.terms-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.terms-check input { width: auto; margin: 0.15rem 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.terms-check a { font-weight: 600; }

/* Review-before-publishing disclaimer atop every generated listing */
.listing-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: linear-gradient(120deg, rgba(255, 176, 32, 0.08), rgba(17, 140, 245, 0.06));
  border: 1px solid #f4d9a6;
  border-left: 3px solid #e8a33d;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}
.listing-disclaimer .ico-inline { color: #d9911f; margin-top: 0.15rem; }
.listing-disclaimer p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink); }
.listing-disclaimer strong { color: var(--navy); }

.banner.error {
  background: #fdecec;
  color: #b42318;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid #f7cdcd;
}

.placeholder { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.placeholder .badge-word { font-family: var(--font-display); font-weight: 700; color: var(--navy); }

.result-block { margin-bottom: 1.5rem; }
.result-block:last-child { margin-bottom: 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.45rem; }
.result-head h2 {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.copy-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(17, 140, 245, 0.09);
  border: none;
  border-radius: 7px;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(17, 140, 245, 0.16); }
.copy-btn.copied { color: #067a5b; background: rgba(85, 229, 195, 0.22); }

.headline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 0; }
.description p { margin: 0 0 0.75rem; }
.description p:last-child { margin-bottom: 0; }
#highlights { margin: 0; padding-left: 1.25rem; }
#highlights li { margin-bottom: 0.35rem; }
.meta { font-size: 0.9rem; color: var(--muted); margin: 0; font-style: italic; }

/* Rewrite box */
.rewrite-box { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.3rem; }
.rewrite-box h3 { font-size: 0.98rem; margin: 0 0 0.6rem; color: var(--navy); }
.rewrite-box textarea { width: 100%; }
.rewrite-btn {
  margin-top: 0.65rem;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--blue);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.rewrite-btn:hover { background: var(--blue); color: #fff; }
.rewrite-btn:hover .ico-inline { color: #fff; }
.prefs-note { margin: 0.65rem 0 0; }

.area-research { border-top: 1px solid var(--border); padding-top: 1.3rem; margin-top: 1.5rem; }

/* AI generation overlay (shown on submit) */
.gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 27, 61, 0.55);
  backdrop-filter: blur(4px);
}
.gen-overlay.show { display: flex; }
.gen-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 340px;
}
.gen-card .spinner {
  width: 40px; height: 40px; margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(17,140,245,0.18);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-card h4 { font-family: var(--font-display); margin: 0 0 0.3rem; color: var(--navy); font-size: 1.05rem; }
.gen-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.gen-card .bar { height: 4px; border-radius: 999px; background: var(--brand-gradient); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; margin-top: 1rem; }

/* ============================================================
   FEATURE PAGES
   ============================================================ */
.feature-hero { padding: 3.5rem 1.5rem 2.75rem; }
.feature-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.feature-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.feature-eyebrow .feat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(19, 200, 193, 0.14); color: var(--teal);
}
.feature-eyebrow .feat-ico svg { width: 19px; height: 19px; }
.feature-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.9rem; }
.feature-hero .hero-sub { margin-left: auto; margin-right: auto; }
.feature-hero .hero-actions { justify-content: center; }
.soon-note { color: var(--muted); font-size: 0.9rem; }

.ps-section { padding-top: 1rem; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.ps-solution { border-color: rgba(19, 200, 193, 0.4); box-shadow: 0 10px 30px rgba(19, 200, 193, 0.10); }
.ps-label {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 7px; margin-bottom: 1rem;
}
.ps-label-pain { color: #a05a2c; background: rgba(224, 138, 60, 0.12); }
.ps-label-sol { color: #067a5b; background: rgba(85, 229, 195, 0.18); }
.ps-lead { font-size: 1.05rem; color: var(--ink); margin: 0 0 1.1rem; }
.ps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.ps-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); font-size: 0.96rem; }
.ps-mark { width: 20px; height: 20px; flex: none; margin-top: 0.1rem; }
.ps-mark-x { color: #c9743b; }
.ps-mark-check { color: var(--teal); }

.outcome-strip {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(17,140,245,0.08), rgba(85,229,195,0.12));
  border: 1px solid var(--border);
}
.outcome-strip svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.outcome-strip p { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; color: var(--navy); }

/* Auth pages — Log in / Sign up */
.auth-page { max-width: 460px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.auth-card { padding: 2rem 1.9rem; }
.auth-head { text-align: center; margin-bottom: 1.4rem; }
.auth-head .kicker { display: inline-block; font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 0.35rem; }
.auth-head h1 { font-size: 1.7rem; margin: 0 0 0.3rem; }
.auth-head .tagline { color: var(--muted); font-size: 0.92rem; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.auth-form label { font-size: 0.86rem; color: var(--navy); font-weight: 600; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-row label { margin: 0; }
@media (max-width: 420px) { .auth-row { grid-template-columns: 1fr; } }
.auth-form .generate-btn { margin-top: 0.35rem; }
.auth-alt { text-align: center; margin: 1.2rem 0 0; font-size: 0.9rem; color: var(--muted); }
.banner.error { margin-bottom: 1rem; }

/* Signed-in account badge in the Studio form */
.account-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: linear-gradient(120deg, rgba(17,140,245,0.06), rgba(19,200,193,0.08));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.account-badge .ico-inline { margin-top: 0.1rem; }
.account-badge .hint { display: block; margin-top: 0.15rem; }

/* Legal pages — Terms & Conditions, Privacy Policy */
.legal-page { max-width: 780px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.legal-page .legal-head { margin-bottom: 2rem; }
.legal-page .legal-eyebrow { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0.4rem 0 0.5rem; }
.legal-page .legal-updated { color: var(--muted); font-size: 0.88rem; margin: 0; }
.legal-page h2 { font-size: 1.15rem; margin: 2rem 0 0.6rem; color: var(--navy); }
.legal-page p, .legal-page li { color: var(--ink); font-size: 0.95rem; line-height: 1.65; }
.legal-page ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page .legal-callout {
  background: linear-gradient(120deg, rgba(255, 176, 32, 0.08), rgba(17, 140, 245, 0.06));
  border: 1px solid #f4d9a6;
  border-left: 3px solid #e8a33d;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.legal-page .legal-callout p { margin: 0; font-size: 0.9rem; }

/* Intro / overview lead */
.intro-section { max-width: 820px; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.intro-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
  margin: 0;
}

/* Benefits grid */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.benefit-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gradient); color: #fff; margin-bottom: 0.9rem;
}
.benefit-mark svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 0.4rem; }
.benefit p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Collection (hub) hero */
.collection-hero { padding: 3.5rem 1.5rem 2.5rem; }
.collection-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.collection-hero .hero-sub { margin-left: auto; margin-right: auto; }
.collection-hero .hero-actions { justify-content: center; }

/* Section-level CTA (under a grid) */
.section-cta { text-align: center; margin-top: 2rem; }
