/* StarCrew Reviews — brand-aligned design system
   Gold #FBBC04 · Ink #191919 · frictionless, intuitive, low cognitive load */

:root {
  --gold: #FBBC04;
  --gold-deep: #e0a400;
  --ink: #191919;
  --ink-soft: #3d3d3d;
  --muted: #6f6a5e;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e9e4d8;
  --line-soft: #f1ede3;
  --green: #2e9e5b;
  --green-bg: #e6f6ec;
  --red: #c0392b;
  --red-bg: #fdecea;
  --amber-bg: #fff8e1;
  --blue-bg: #eef4ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(25,25,25,.05), 0 8px 24px -12px rgba(25,25,25,.18);
  --shadow-lg: 0 2px 4px rgba(25,25,25,.06), 0 20px 44px -16px rgba(25,25,25,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin: 0 auto; }
.center { text-align: center; }
img { max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 64px; width: auto; display: block; }
.topbar nav { display: flex; gap: 6px; align-items: center; }
.topbar nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.topbar nav a:hover { background: var(--line-soft); color: var(--ink); }

/* ---------- type ---------- */
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 32px 0 12px; }
h2 { font-size: 26px; letter-spacing: -0.01em; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 8px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.center .lede { margin-left: auto; margin-right: auto; }
.fine, .hint { font-size: 13px; color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--gold); border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--gold); color: var(--ink);
  border: none; border-radius: 12px; padding: 12px 24px;
  font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 2px 0 var(--gold-deep);
}
.btn:hover { filter: brightness(1.03); transform: translateY(-1px); box-shadow: 0 3px 0 var(--gold-deep), var(--shadow); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-lg { padding: 16px 32px; font-size: 18px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; box-shadow: none; }
.btn-secondary { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-secondary:hover { border-color: var(--ink); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cta-row { margin: 26px 0 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.center .cta-row { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; margin-top: 0; }
.hero .lede { font-size: 20px; }

/* phone mockup — the customer screen, as it looks on a real phone */
.hero-phone { margin-top: 44px; }
.phone {
  width: 320px; margin: 0 auto; background: #111; border-radius: 48px; padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--bg); border-radius: 38px; overflow: hidden; padding: 0 0 8px;
}
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 26px 2px; font-size: 14px; font-weight: 700;
}
.safari-bar {
  background: #ece7da; border-radius: 999px; margin: 8px 14px 0; padding: 8px 14px;
  font-size: 12.5px; color: var(--muted); text-align: center; font-weight: 600;
}
.mock-page { padding: 18px 14px 22px; text-align: center; }
.mock-q { font-weight: 800; font-size: 19px; margin: 14px 0 4px; letter-spacing: -0.01em; }
.mock-faces { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.mock-face {
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  font-size: 34px; padding: 12px 14px 10px; line-height: 1; flex: 1; max-width: 88px;
}
.mock-face span { display: block; font-size: 11px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.mock-face.pick { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(251,188,4,.28); }
.mock-cap { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------- sections ---------- */
.section { padding: 36px 0; }
.section h2 { text-align: center; }
.section .lede { text-align: center; }

/* how it works */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; counter-reset: step; }
.stepcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow); position: relative;
}
.step {
  width: 40px; height: 40px; aspect-ratio: 1 / 1; flex: none; border-radius: 999px;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; margin-bottom: 12px;
}
.stepcard h3 { margin: 0 0 6px; font-size: 17px; }
.stepcard p { margin: 0; color: var(--muted); font-size: 15px; }

/* why it matters */
.checks { list-style: none; padding: 0; max-width: 720px; margin: 20px auto 0; }
.checks li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px 16px 52px; margin: 12px 0; position: relative; box-shadow: var(--shadow);
}
.checks li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px;
  width: 26px; height: 26px; aspect-ratio: 1/1; border-radius: 999px;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}

/* pricing */
.price-card {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 36px 32px;
  text-align: center; max-width: 460px; margin: 24px auto; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; top: -70px; right: -70px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(251,188,4,.28), transparent 70%);
}
.price-card p { color: #c9c4b8; }
.price { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 18px; font-weight: 400; color: #c9c4b8; }
.price-feats { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; display: inline-block; }
.price-feats li { padding: 5px 0 5px 30px; position: relative; color: #e8e4da; font-size: 15px; }
.price-feats li::before { content: "✓"; position: absolute; left: 6px; color: var(--gold); font-weight: 800; }

/* faq */
.faq-list { max-width: 720px; margin: 20px auto 0; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 10px 0;
}
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); flex: none; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 2px; }

/* final cta */
.final-cta {
  background: var(--ink); border-radius: 24px; padding: 56px 32px; text-align: center;
  margin: 48px 0; color: #fff; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 220px; background: radial-gradient(ellipse, rgba(251,188,4,.22), transparent 70%);
}
.final-cta h2 { color: #fff; margin-top: 0; position: relative; }
.final-cta .lede { color: #c9c4b8; position: relative; }
.final-cta .fine { color: #8f8a7d; position: relative; }

/* ---------- forms ---------- */
.form label { display: block; margin: 16px 0; font-weight: 650; font-size: 15px; }
.form input, .form textarea, .form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit;
  background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(251,188,4,.22);
}
.form textarea { resize: vertical; }
.radio {
  display: block; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0; font-weight: 400; cursor: pointer;
}
.radio:hover { border-color: var(--gold-deep); }
.radio input { width: auto; display: inline; margin-right: 10px; accent-color: var(--gold-deep); }
.linkbox {
  background: #fff; border: 1.5px dashed var(--gold-deep); border-radius: var(--radius-sm);
  padding: 12px 16px; word-break: break-all; font-family: ui-monospace, monospace; font-size: 14px;
}
.copybtn { margin-top: 10px; }

/* ---------- banners & alerts ---------- */
.alert { background: var(--red-bg); border: 1px solid #f5c6cb; color: #8a1f15; border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; }
.ok { background: var(--green-bg); border: 1px solid #bfe6cd; color: #1c6b3a; border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; font-weight: 600; }
.banner { background: var(--amber-bg); border: 1px solid #ffe08a; border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; }
.banner.blue { background: var(--blue-bg); border-color: #c9dcff; }

/* ---------- dashboard ---------- */
.pagehead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .num .star { color: var(--gold-deep); }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 16px 0; box-shadow: var(--shadow);
}
.card.highlight { border: 1.5px solid var(--gold-deep); }
.card h3 { margin-top: 0; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trend { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin-top: 8px; }
.trend .bar { flex: 1; background: linear-gradient(to top, var(--gold-deep), var(--gold)); border-radius: 4px 4px 0 0; min-width: 10px; }
.feedback { border-left: 4px solid var(--line); padding: 12px 16px; margin: 12px 0; background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.feedback.unread { border-left-color: var(--red); background: #fff7f6; }
.pill { display: inline-block; background: var(--line-soft); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: capitalize; }

/* ---------- reviews ---------- */
.review .stars { color: var(--gold-deep); font-size: 19px; letter-spacing: 2px; }
.review .stars .dim { color: #ddd; }
.reply { background: var(--blue-bg); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- smart link (customer) ---------- */
.customer-hero { padding: 40px 0 8px; }
.sentiment { display: flex; gap: 12px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.face {
  display: flex; flex-direction: column; align-items: center; font-size: 54px;
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 20px 30px; cursor: pointer; transition: transform .1s ease, border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.face span { font-size: 14px; margin-top: 8px; color: var(--ink); font-weight: 700; }
.face:hover { border-color: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.face:active { transform: translateY(0); }
.biz-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 10px;
  font-weight: 700; box-shadow: var(--shadow); margin-bottom: 8px;
}
.biz-badge .dot { width: 34px; height: 34px; border-radius: 999px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }

/* ---------- onboarding steps ---------- */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0; }
.steps li { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 10px; }
.steps li.on { color: var(--ink); border-top-color: var(--gold-deep); }

/* ---------- widget ---------- */
.widget-preview { background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.code { background: #14202e; color: #d7e3f4; border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: var(--ink); color: #fff; }

/* ---------- footer ---------- */
.footer { margin: 56px auto 0; padding: 32px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1040px; margin: 0 auto; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 44px 0 12px; }
  .hero h1 { font-size: 34px; }
  .phone { width: 280px; }
}
@media (max-width: 640px) {
  .topbar nav { gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar nav a { font-size: 13px; padding: 8px 9px; }
  .btn { min-height: 44px; }
  .cta-row .btn, .form .btn-lg { width: 100%; text-align: center; }
  .steps3 { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  h1 { font-size: 28px; }
  .face { padding: 16px 20px; font-size: 46px; }
  .final-cta { padding: 40px 22px; border-radius: 20px; }
}
