/* ReviewRamp — shared styles
   Palette: evergreen ink #1D2B24, paper #F7F4ED, leaf #4C7A5E,
   star amber #E9A23B, brick #C2543B */

:root {
  --ink: #1d2b24;
  --paper: #f7f4ed;
  --card: #ffffff;
  --leaf: #4c7a5e;
  --leaf-dark: #3a5f49;
  --amber: #e9a23b;
  --brick: #c2543b;
  --line: #e3ded2;
  --muted: #6b7570;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 43, 36, 0.06), 0 8px 24px rgba(29, 43, 36, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.good {
  color: var(--leaf-dark);
}
.warn {
  color: var(--brick);
}
a {
  color: var(--leaf-dark);
}
code {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.85rem;
  word-break: break-all;
}

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-block;
  font:
    600 0.95rem "Inter",
    sans-serif;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--leaf);
  color: #fff;
}
.btn-primary:hover {
  background: var(--leaf-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: #fff;
}
.btn-danger {
  background: transparent;
  color: var(--brick);
  border: 1px solid var(--brick);
}
.btn-danger:hover {
  background: var(--brick);
  color: #fff;
}
.btn-small {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}
.btn-big {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
label .muted {
  font-weight: 400;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  width: 100%;
  font:
    400 1rem "Inter",
    sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-top: 0.3rem;
}
input:focus,
textarea:focus,
.btn:focus-visible,
.star:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.grid-form .span2,
.grid-form button {
  grid-column: span 2;
}
.grid-form.narrow {
  max-width: 380px;
  grid-template-columns: 1fr;
}
.grid-form.narrow button,
.grid-form.narrow label {
  grid-column: span 1;
}
.grid-form button {
  justify-self: start;
}

.notice,
.error {
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.notice {
  background: #e7f0e9;
  color: var(--leaf-dark);
  border: 1px solid #c8dccd;
}
.error {
  background: #f8e9e4;
  color: var(--brick);
  border: 1px solid #ecccc2;
}

/* ---------- App chrome (admin & dashboard) ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--ink);
  color: #fff;
}
.topbar .muted {
  color: #b9c4be;
}
.topbar .btn-ghost {
  color: #fff;
  border-color: #46554d;
}
.topbar .btn-ghost:hover {
  background: #2a3a31;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.brand-mark {
  color: var(--amber);
  font-size: 1.3rem;
  line-height: 1;
}
.tag {
  font:
    600 0.7rem "Inter",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  text-align: center;
  margin-bottom: 0;
  padding: 1.1rem 0.5rem;
}
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--line);
}
.table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.actions form {
  display: inline;
}

.kv td {
  padding: 0.4rem 0.8rem 0.4rem 0;
  vertical-align: top;
}
.kv td:first-child {
  font-weight: 600;
  white-space: nowrap;
}
.creds {
  border-left: 5px solid var(--amber);
}

.link-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.link-row input {
  flex: 1;
  margin-top: 0;
}
.qr-block {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
#qrcode img {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.feedback-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  background: #fcfbf8;
}
.feedback-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.stars-inline {
  color: var(--amber);
  letter-spacing: 2px;
}

/* ---------- Auth ---------- */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.auth-card .brand {
  margin-bottom: 1.25rem;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ---------- Public rating page ---------- */

body.public {
  background:
    radial-gradient(1200px 500px at 50% -10%, #efe9db 0%, transparent 60%),
    var(--paper);
}
.rate-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.rate-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem;
  text-align: center;
}
.rate-card .grid-form {
  grid-template-columns: 1fr;
  text-align: left;
}
.rate-card .grid-form button {
  grid-column: span 1;
  justify-self: stretch;
}
.rate-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  margin-bottom: 0.4rem;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
}
.star {
  font-size: 3rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #ddd6c6;
  padding: 0.15rem;
  transition:
    color 0.12s,
    transform 0.12s;
}
.star.lit {
  color: var(--amber);
  transform: scale(1.12);
}
.big-stars {
  font-size: 2.6rem;
  color: var(--amber);
  letter-spacing: 4px;
  margin-bottom: 0.75rem;
}
.rate-credit {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .btn {
    transition: none;
  }
  .star.lit {
    transform: none;
  }
}

@media (max-width: 640px) {
  .grid-form {
    grid-template-columns: 1fr;
  }
  .grid-form .span2,
  .grid-form button {
    grid-column: span 1;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .qr-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .table {
    display: block;
    overflow-x: auto;
  }
  .star {
    font-size: 2.5rem;
  }
}

/* ---------- Billing controls (1.1) ---------- */

.pill {
  display: inline-block;
  font:
    600 0.72rem "Inter",
    sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pill-on {
  background: #e7f0e9;
  color: var(--leaf-dark);
}
.pill-grace {
  background: #fbf1de;
  color: #9a6b14;
}
.pill-off {
  background: #f8e9e4;
  color: var(--brick);
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.inline-form label {
  margin-bottom: 0;
}
.date-input {
  font:
    400 0.85rem "Inter",
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: #fff;
  color: var(--ink);
}
.paused {
  border-left: 5px solid var(--brick);
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  margin-bottom: 0;
}
.check-label input {
  width: auto;
  margin: 0;
}

/* ---------- Self-service signup (1.3) ---------- */

.pill-pending {
  background: #e4ebf5;
  color: #3b5a85;
}
.pending-card {
  border-left: 5px solid #3b5a85;
}
.auth-card.wide {
  max-width: 480px;
}
.match-note {
  background: #fbf1de;
  border: 1px solid #ecd9ae;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  margin: 0 0 1.1rem;
}

/* ---------- Landing page & new brand mark (1.4) ---------- */

svg.brand-mark {
  flex-shrink: 0;
}
.brand svg.brand-mark {
  display: inline-block;
  vertical-align: middle;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.site-nav nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav nav a.btn {
  font-weight: 600;
}

.landing h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(900px 420px at 50% -10%, #efe7d4 0%, transparent 65%),
    var(--paper);
}
.hero-mark {
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.band {
  padding: 3.5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.band.alt {
  max-width: none;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band.alt > * {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.band.alt h2 {
  margin-bottom: 1.75rem;
}

.steps,
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.features {
  grid-template-columns: repeat(2, 1fr);
}
.step,
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.band.alt .step,
.band.alt .feature {
  background: var(--paper);
  box-shadow: none;
}
.step h3,
.feature h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.step p,
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--amber);
  font:
    700 1rem "Bricolage Grotesque",
    sans-serif;
  border-radius: 50%;
  margin-bottom: 0.8rem;
}

.price-card {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.price-amount {
  font:
    700 2.4rem "Bricolage Grotesque",
    sans-serif;
  margin-bottom: 1rem;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}
.price-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--paper);
}
.price-list li::before {
  content: "★";
  color: var(--amber);
  position: absolute;
  left: 0;
}

.disclosure {
  text-align: center;
}
.disclosure p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
}
.site-footer .brand {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.script-quote {
  margin: 0 0 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--paper);
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .site-nav {
    padding: 0.8rem 1rem;
  }
}

a.brand {
  text-decoration: none;
  color: inherit;
}
a.brand:hover {
  opacity: 0.85;
}
