:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --ink: #0e1013;
  --muted: #5f6368;
  --line: #e4e2dd;
  --accent: #b8923a;
  --accent-soft: #f4ecda;
  --btn: #0e1013;
  --btn-ink: #ffffff;
  --field: #f7f6f3;
  --danger: #b3261e;
  --ok: #1e7d4a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090b;
    --surface: #131519;
    --ink: #f2f1ee;
    --muted: #a0a4ab;
    --line: #25282e;
    --accent: #d8b25e;
    --accent-soft: #2a2417;
    --btn: #f2f1ee;
    --btn-ink: #0e1013;
    --field: #1b1e23;
    --danger: #f2887f;
    --ok: #6fcf97;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.card {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
@media (min-width: 520px) {
  body { padding: 32px 16px; }
  .card { min-height: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08); }
}

.hero { position: relative; height: 150px; margin-bottom: 64px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(216,178,94,.55), transparent 55%),
    radial-gradient(90% 120% at 0% 120%, rgba(216,178,94,.18), transparent 60%),
    linear-gradient(160deg, #1a1d22, #0b0c0e);
}
.hero-bg.has-img { background-size: cover; background-position: center; }
.avatar {
  position: absolute; left: 50%; bottom: -56px; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid var(--surface);
  background: #1f2227; color: #f2f1ee;
  display: grid; place-items: center; overflow: hidden;
  font-size: 40px; font-weight: 600; letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.who { text-align: center; padding: 0 24px; }
.who h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.role { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.actions { display: flex; justify-content: center; gap: 10px; padding: 22px 16px 0; flex-wrap: wrap; }
.actions a {
  flex: 1 1 0; min-width: 72px; max-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px 10px; border-radius: 16px;
  background: var(--field); text-decoration: none; font-size: 13px; font-weight: 500;
}
.actions svg { width: 22px; height: 22px; fill: var(--accent); }
.actions a:active { transform: scale(.97); }

.save {
  display: block; margin: 16px 20px 0; padding: 15px;
  border-radius: 14px; text-align: center; text-decoration: none;
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 16px;
}

.details { list-style: none; margin: 22px 20px 0; padding: 0; border-top: 1px solid var(--line); }
.details li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.details span { color: var(--muted); }
.details a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; text-align: right; }

.bio { padding: 20px 24px 0; color: var(--ink); font-size: 15px; }
.bio p { margin: 0; }

.lead { margin: 28px 20px 0; padding: 20px; border-radius: 18px; background: var(--accent-soft); }
.lead h2 { margin: 0 0 14px; font-size: 18px; }
.lead label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.lead em { font-style: normal; font-weight: 400; }
.lead input, .lead textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 12px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.lead input:focus, .lead textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.lead button {
  width: 100%; margin-top: 4px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--btn); color: var(--btn-ink); font: inherit; font-weight: 600; cursor: pointer;
}
.lead button:disabled { opacity: .6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.err { color: var(--danger); font-size: 14px; margin: 0 0 10px; }
.thanks { text-align: center; padding: 8px 0; }
.thanks strong { font-size: 18px; }
.thanks p { margin: 4px 0 0; color: var(--muted); }

/* ---- reviews ---- */
.rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.rating b { color: var(--ink); }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 15px; }
.stars i { font-style: normal; color: var(--line); }
.reviews, .google { margin: 28px 20px 0; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rev-head h2 { margin: 0; font-size: 18px; }
.rev-head span, .rev-head a { font-size: 14px; color: var(--muted); text-decoration: none; }
.rev-head b { color: var(--ink); }
.rev-head .stars, .rating .stars { color: var(--accent); }
[hidden] { display: none !important; }
.rev-list { list-style: none; margin: 12px 0 0; padding: 0; }
.rev-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.rev-list li:first-child { border-top: 0; }
.rev-top { display: flex; justify-content: space-between; align-items: center; }
.rev-top time { font-size: 12px; color: var(--muted); }
.rev-list p { margin: 6px 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.rev-by { font-size: 13px; color: var(--muted); font-weight: 600; }
.rev-by a { text-decoration: none; }
.rev-empty { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.ghost {
  display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 15px; text-align: center; text-decoration: none; cursor: pointer;
}
#reviewForm { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--field); }
#reviewForm label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
#reviewForm em { font-style: normal; font-weight: 400; }
#reviewForm input:not([type=radio]), #reviewForm textarea {
  display: block; width: 100%; margin-top: 5px; padding: 12px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
#reviewForm button[type=submit] {
  width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--btn); color: var(--btn-ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.star-pick { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pick-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 34px !important; line-height: 1; color: var(--line) !important; cursor: pointer; margin: 0 !important; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--accent) !important; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.g-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.g-attr { margin: 8px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.rev-only { font-weight: 400; font-style: italic; }
.rev-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* owner-only return bar (inside the Home Screen app there's no browser back button) */
.owner-bar {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: #0e1013; color: #f2f1ee; text-decoration: none;
  font-size: 15px; font-weight: 700; border-bottom: 1px solid rgba(216,178,94,.35);
}
.owner-bar em { font-style: normal; font-weight: 500; font-size: 12px; color: #d8b25e; text-align: right; }
@media (min-width: 520px) { .owner-bar { margin: -32px -16px 24px; } }

/* "Digital card by cleanform" byline (the CleanForm ad) */
.cf-byline { text-align: center; padding: 28px 0 8px; }
.cf-byline a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: .01em; }
.cf-byline b { font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.cf-byline svg { width: 13px; height: 13px; fill: var(--muted); }
.cf-byline svg .new { fill: #19D3BE; }

/* Leave a Google review (reviews go to Onyx Fiber's Google listing) */
a.g-review { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
a.g-review svg { width: 18px; height: 18px; fill: #F4B400; }
.g-review-note { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
