/* PraiseClip design system — "Warm Trust + Editorial Utility".
   Mobile-first (most testimonials are recorded on a phone). Plain CSS, no
   build step, no icon font — inline SVG only. Legacy --ink/--muted/--line/
   --bg/--danger/--ok names are kept as aliases so existing inline styles
   across the PHP templates keep working unchanged (--accent/--accent-ink
   are NOT among them — see the :root block below for why). */

:root {
  /* Premium dark identity — "Warm Graphite": a warm brown-black neutral
     rather than a true or green-tinted black. Chosen specifically because
     this product's central content unit is a video thumbnail with a human
     face (wall, dashboard, embed widget) — a warm-neutral dark is the same
     principle video/photo tools use for their chrome, since a cool- or
     green-tinted background can visibly bias skin tones sitting on top of
     it. Site-wide default (not page-scoped), so every page sharing this
     stylesheet picks it up through the existing --pc-* tokens. Contrast
     checked with the same relative-luminance method used throughout. */
  --pc-ink: #F7F5EF;
  --pc-ink-soft: #DCD9D1;
  --pc-muted: #AAA59B;
  --pc-bg: #171614;
  --pc-surface: #211F1C;
  --pc-line: rgba(255,255,255,.10);

  /* Decorative/brand green — stars, focus rings, tenant brand color on r.php.
     Not used for button text-on-fill; see --pc-btn-bg below. */
  --pc-accent: #22C55E;
  --pc-accent-dark: #16A34A;
  --pc-accent-soft: rgba(34,197,94,.14);
  --pc-btn-bg: #15803D;
  --pc-btn-bg-hover: #0F6B31;
  --pc-mint: #86EFAC;

  /* Brightened vs. a light-theme palette so each clears 4.5:1 against its
     own "soft" pill background below (e.g. plain #287A55 on #17301F is only
     2.71:1) — these are text/icon colors, not fill colors; badges and
     .error/.success boxes are the callers. */
  --pc-success: #4ADE80;
  --pc-success-soft: #17301F;
  --pc-warning: #FBBF24;
  --pc-warning-soft: #332512;
  --pc-danger: #F87171;
  --pc-danger-soft: #331B1B;
  --pc-on-accent: #F7F5EF;

  --pc-radius-sm: 8px;
  --pc-radius-md: 12px;
  --pc-radius-btn: 14px;
  --pc-radius-card: 24px;
  --pc-radius-video: 18px;

  --pc-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Built-in CSS easings are too weak to feel intentional. These give
     buttons/cards a snappier, more deliberate feel at the same duration. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Legacy aliases used throughout the existing templates. No --accent or
     --accent-ink here on purpose: white text on --pc-accent fails WCAG AA —
     that pairing was deliberately split into --pc-btn-bg for anything that
     renders text on a filled background. Recreating --accent/--accent-ink
     would silently reopen that contrast bug for whoever reaches for the old
     names out of habit. */
  --ink: var(--pc-ink);
  --muted: var(--pc-muted);
  --line: var(--pc-line);
  --bg: var(--pc-bg);
  --danger: var(--pc-danger);
  --ok: var(--pc-success);
  --radius: var(--pc-radius-card);
}

* { box-sizing: border-box; }

/* Author rules like `button{display:inline-flex}` otherwise beat the
   user-agent's [hidden]{display:none} regardless of specificity — every
   record/stop, mode-tab, and status toggle in r.php relies on the
   `hidden` attribute actually hiding things. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0; background: var(--pc-bg); color: var(--pc-ink);
  font: 15px/1.5 var(--pc-font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--pc-accent-soft); color: var(--pc-ink); }

.wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 64px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }
.wrap-narrow { max-width: 400px; margin: 0 auto; padding: 48px 20px; }
.wrap-review { max-width: 520px; margin: 0 auto; padding: 22px 16px 64px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 8px; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; letter-spacing: -0.01em; }

.pc-metric { font-size: 36px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }

.card {
  background: var(--pc-surface); border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-card); padding: 20px; margin-bottom: 16px;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
/* input + copy button: side by side when there's room, stacked (button full width) on phones */
.copy-row input { flex: 1 1 260px; min-width: 0; text-overflow: ellipsis; }
.copy-row button { flex: 0 0 auto; min-width: 128px; }
@media (max-width: 520px) { .copy-row button { flex: 1 1 100%; } }
.stack { display: flex; flex-direction: column; gap: 4px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--pc-ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-md); font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  font-family: inherit; background: var(--pc-surface); color: var(--pc-ink);
  transition: border-color 120ms ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pc-btn-bg); }
textarea { min-height: 110px; resize: vertical; }

/* --pc-btn-bg, not --pc-accent: this control's own color IS its contrast
   (browsers render the checkmark/knob against it), and --pc-accent is
   tenant-brandable on r.php — a business picking a very light brand color
   must not be able to make their own consent checkbox unreadable. */
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pc-btn-bg); flex: none; }

/* ---- Brand color picker (dashboard/settings.php) ---- */
/* Strips the browser's default swatch chrome (a rectangle with a border/
   padding that looks inconsistent across OSes) down to a plain circle —
   the color itself is the only thing that needs to show. */
input[type=color].pc-color-swatch {
  -webkit-appearance: none; appearance: none; width: 44px; height: 44px; min-height: 0;
  padding: 0; border: 2px solid var(--pc-line); border-radius: 50%; cursor: pointer; flex: none;
}
input[type=color].pc-color-swatch::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
input[type=color].pc-color-swatch::-webkit-color-swatch { border: none; border-radius: 50%; }
input[type=color].pc-color-swatch::-moz-color-swatch { border: none; border-radius: 50%; }

.pc-color-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-color-preset {
  width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%;
  border: 2px solid var(--pc-line); cursor: pointer; transition: transform 100ms var(--ease-out);
}
.pc-color-preset:hover { transform: scale(1.12); }

.pc-mono { font-family: var(--pc-mono); }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--pc-radius-btn); border: none;
  background: var(--pc-btn-bg); color: var(--pc-on-accent); font-size: 15px;
  font-weight: 650; cursor: pointer; text-decoration: none; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms var(--ease-out), transform 100ms var(--ease-out);
}
button:hover, .btn:hover { background: var(--pc-btn-bg-hover); }
button:active, .btn:active { transform: scale(.98); }
.btn-outline { background: var(--pc-surface); color: var(--pc-ink); border: 1px solid var(--pc-line); }
.btn-outline:hover { background: var(--pc-bg); }
.btn-dark { background: var(--pc-ink); color: var(--pc-bg); }
.btn-dark:hover { background: var(--pc-ink-soft); }
/* Fixed darker red, not var(--pc-danger) — that token is now a bright
   badge-text color (needs to clear 4.5:1 against --pc-danger-soft), and
   white text on it would only be 2.77:1. Same split as --pc-accent/--pc-btn-bg. */
.btn-danger { background: #B43D3D; color: #fff; }
.btn-danger:hover { background: #9E3232; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; justify-content: flex-end; }
td.muted { white-space: nowrap; } /* dates: don't break '2026-10-' / '03' */
.row-actions .btn-outline, .row-actions .btn-ghost, .row-actions .link-btn, .row-actions .btn { white-space: nowrap; }
/* compact: five full-size 48px buttons can't share a table cell, so Delete dropped to its own line */
.row-actions .btn-outline, .row-actions .btn-ghost, .row-actions .btn { min-height: 38px; padding: 0 12px; font-size: 14px; }
.pc-dialog {
  max-width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-md); background: var(--pc-surface); color: var(--pc-ink);
}
.pc-dialog::backdrop { background: rgba(0,0,0,.6); }
.pc-dialog p { margin: 8px 0 0; line-height: 1.5; }
.btn-ghost { background: transparent; color: var(--pc-muted); min-height: 44px; padding: 0 10px; }
.btn-ghost:hover { background: transparent; color: var(--pc-ink); }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --pc-btn-bg, not --pc-accent — same reasoning as the checkbox above: the
   keyboard focus indicator can't be allowed to disappear because a tenant
   picked a light brand color on r.php. */
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--pc-btn-bg); outline-offset: 2px;
}

.badge {
  display: inline-flex; align-items: center; height: 28px; font-size: 12px; font-weight: 650;
  padding: 0 10px; border-radius: 999px; white-space: nowrap;
}
.badge-req { background: var(--pc-bg); color: var(--pc-muted); border: 1px solid var(--pc-line); }
.badge-sub { background: var(--pc-warning-soft); color: var(--pc-warning); }
.badge-pub { background: var(--pc-success-soft); color: var(--pc-success); }
.badge-rej { background: var(--pc-danger-soft); color: var(--pc-danger); }
.badge-exp { background: var(--pc-bg); color: var(--pc-muted); border: 1px solid var(--pc-line); }

.muted { color: var(--pc-muted); }
.error { background: var(--pc-danger-soft); color: var(--pc-danger); padding: 12px 14px; border-radius: var(--pc-radius-md); margin-bottom: 16px; font-size: 14px; }
.success { background: var(--pc-success-soft); color: var(--pc-success); padding: 12px 14px; border-radius: var(--pc-radius-md); margin-bottom: 16px; font-size: 14px; }

nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px; border-bottom: 1px solid var(--pc-line); background: var(--pc-surface);
  gap: 8px 16px; flex-wrap: wrap;
}
nav.top .brand { font-weight: 700; letter-spacing: -0.01em; color: var(--pc-ink); text-decoration: none; }
nav.top .nav-links { display: flex; align-items: center; gap: 2px; }
nav.top .nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--pc-radius-md); color: var(--pc-muted); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: color 120ms ease, background-color 120ms ease;
}
nav.top .nav-links a:hover { color: var(--pc-ink); background: rgba(255,255,255,.06); }
nav.top .nav-links a[aria-current="page"] { color: var(--pc-ink); background: rgba(255,255,255,.09); }
nav.top .nav-links a:focus-visible { outline: 2px solid var(--pc-btn-bg); outline-offset: 2px; }
nav.top .nav-sep { width: 1px; height: 20px; background: var(--pc-line); margin: 0 6px; }
nav.top .plan-pill { border: 1px solid var(--pc-line); padding: 0 14px; min-height: 36px; border-radius: 999px; }
nav.top .plan-pill.is-free { color: #86EFAC; border-color: rgba(134,239,172,.35); }
/* phones: brand on its own line, links in one swipeable row instead of wrapping into a pile */
@media (max-width: 720px) {
  nav.top { padding: 10px 0 0; }
  nav.top .brand { padding: 0 16px; }
  nav.top .nav-links { width: 100%; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
  nav.top .nav-links::-webkit-scrollbar { display: none; }
  nav.top .nav-sep { display: none; }
  nav.top .plan-pill { order: -1; margin-right: 6px; }
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--pc-line); font-size: 14px; }
th { color: var(--pc-muted); font-weight: 650; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.stars { color: var(--pc-accent); letter-spacing: 1px; }

/* ---- Stat tiles (dashboard overview) ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-tile { background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-radius-card); padding: 16px 18px; }
.stat-tile .pc-metric { display: block; }
.stat-tile .muted { font-size: 13px; }

/* ---- Segmented control (Record / Upload / Write) ---- */
.mode-tabs { display: flex; gap: 4px; background: var(--pc-line); border-radius: var(--pc-radius-md); padding: 4px; margin-bottom: 16px; }
.mode-tabs button {
  /* min-width: 0 overrides the flex default (min-width: auto), which
     refuses to shrink a flex item below its own content+padding width —
     without it, a narrow-enough container can't fit all 3 tabs and the
     last one (Write) overflows outside the pill instead of shrinking.
     Tighter padding than the base button rule's 20px, plus ellipsis as a
     last resort at extreme widths. */
  flex: 1; min-width: 0; min-height: 44px; padding: 0 8px; background: transparent; color: var(--pc-muted);
  border-radius: calc(var(--pc-radius-md) - 4px); font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out), transform 100ms var(--ease-out);
}
.mode-tabs button:hover { background: transparent; color: var(--pc-ink); }
.mode-tabs button.active { background: var(--pc-surface); color: var(--pc-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ---- Public wall ---- */
.wall-head { margin-bottom: 24px; }
.wall-head .rating-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.wall-head .rating-line .stars { font-size: 18px; }

.grid-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  align-items: start; /* mixed portrait/landscape cards keep their own height */
}
@media (max-width: 1024px) { .grid-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .grid-wall { grid-template-columns: 1fr; } }

.wall-card { padding: 0; overflow: hidden; }
.wall-card .wall-media { position: relative; background: #000; aspect-ratio: 16/9; }
.wall-card .wall-media video, .wall-card .wall-media img {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}
/* Phone-shot (portrait) videos: keep their 9:16 shape, but cap the height so a
   wide card (dashboard preview, one-column page) doesn't become a tower; the
   black bars at the sides are the rest of the frame, not cropping. */
.wall-card .wall-media.portrait { aspect-ratio: 9/16; width: 100%; max-height: 520px; }
.wall-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  /* Fixed white circle + fixed dark icon, not var(--pc-ink) — this sits
     over an arbitrary video thumbnail, and --pc-ink is now near-white in
     the dark theme, which would make the icon invisible on its own circle. */
  background: rgba(255,255,255,.92); color: #171717; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.wall-play:hover { background: #fff; }
/* length badge on the poster; gone once playback starts (the native controls show time) */
.wall-duration {
  position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 6px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.wall-play[hidden] ~ .wall-duration { display: none; }
.wall-card .wall-body { padding: 20px; }
.wall-card.text-only .wall-body { padding: 24px; }
.wall-card.text-only .wall-quote { font-size: 17px; line-height: 1.55; font-weight: 500; margin: 10px 0 14px; }
.wall-card .wall-name { font-size: 13px; font-weight: 650; color: var(--pc-ink); }
.wall-card .wall-meta { font-weight: 400; color: var(--pc-muted); }

.grid-wall.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; }
.grid-wall.carousel .wall-card { min-width: 260px; scroll-snap-align: start; }

/* ---- Recorder (r.php) ---- */
/* Optional, collapsed-by-default talking-point prompts — helps a nervous
   first-time customer past "what do I even say" without adding weight to
   the form for anyone who doesn't need it. */
.pc-tips { margin-bottom: 12px; }
.pc-tips summary {
  cursor: pointer; font-size: 13px; color: var(--pc-muted); font-weight: 600;
  list-style: none; padding: 4px 0;
}
.pc-tips summary::-webkit-details-marker { display: none; }
.pc-tips summary::before { content: "+ "; }
.pc-tips[open] summary::before { content: "– "; }
.pc-tips ul, .pc-tips ol { margin: 8px 0 0; padding-left: 20px; font-size: 13px; color: var(--pc-ink-soft); line-height: 1.6; }
.pc-tips li + li { margin-top: 4px; }
/* "What to say" help on the customer review page: always visible, because a
   collapsed one-line link looked like muted text and nobody tapped it. */
.pc-prompts {
  margin-bottom: 14px; padding: 12px 14px; border-radius: var(--pc-radius-md);
  background: rgba(255,255,255,.04); border-left: 3px solid var(--pc-accent, var(--pc-btn-bg));
}
.pc-prompts-title { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--pc-ink); }
.pc-prompts ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--pc-ink-soft); line-height: 1.6; }
.pc-prompts li + li { margin-top: 2px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pc-chip {
  min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--pc-ink); border: 1px solid var(--pc-line);
}
.pc-chip:hover { background: rgba(255,255,255,.08); }
.step-label {
  font-size: 12px; font-weight: 650; color: var(--pc-muted); text-transform: uppercase;
  letter-spacing: .06em; margin: 24px 0 10px;
}
.link-btn {
  background: none; border: none; color: #86EFAC; text-decoration: underline; /* brand green is only 3.3:1 on the dark surface */
  font-size: 14px; padding: 10px 4px; cursor: pointer; font-family: inherit; min-height: 44px;
}
.link-btn:hover { background: none; color: #BBF7D0; }

.pc-stars-input { display: flex; gap: 4px; justify-content: center; }
.pc-stars-input span {
  font-size: 32px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--pc-line); line-height: 1;
  transition: color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.pc-stars-input span.on { transform: scale(1.08); }
.pc-stars-input span.on { color: var(--pc-accent); }
.pc-rating-feedback { text-align: center; font-size: 13px; color: var(--pc-muted); min-height: 18px; margin-top: 2px; }

.viewfinder {
  position: relative; width: 100%; aspect-ratio: 4/3; background: #111111;
  border-radius: var(--pc-radius-video); overflow: hidden;
}
.viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.rec-dot {
  position: absolute; top: 12px; left: 12px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--pc-accent); animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: .2; } }
.timer {
  position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.6);
  color: #fff; font-variant-numeric: tabular-nums; padding: 4px 9px; border-radius: 6px; font-size: 14px;
}
.pc-record-controls { display: flex; justify-content: center; margin-top: 14px; }
/* var(--pc-bg), not a hardcoded #fff — same inverted pairing as .btn-dark;
   --pc-ink is near-white in the dark theme, so a hardcoded white label
   would disappear against it. */
.pc-btn-record { min-height: 52px; padding: 0 32px; border-radius: var(--pc-radius-btn); background: var(--pc-ink); color: var(--pc-bg); font-size: 16px; }
.pc-btn-record:hover { background: var(--pc-ink-soft); }
.pc-btn-stop { min-height: 56px; padding: 0 32px; border-radius: var(--pc-radius-btn); background: var(--pc-btn-bg); color: #fff; font-size: 16px; }
.pc-btn-stop:hover { background: var(--pc-btn-bg-hover); }
.pc-hint { text-align: center; font-size: 12px; color: var(--pc-muted); margin-top: 10px; }

.pc-upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed var(--pc-line); border-radius: var(--pc-radius-card);
  padding: 32px 20px; text-align: center; cursor: pointer; background: var(--pc-bg);
  transition: border-color 200ms var(--ease-out);
}
.pc-upload-drop:hover { border-color: var(--pc-accent); }
.pc-upload-drop input[type=file] { display: none; }
.pc-upload-drop .pc-upload-title { font-weight: 650; font-size: 15px; }
.pc-upload-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; margin-top: 10px; }

.pc-counter { text-align: right; font-size: 12px; color: var(--pc-muted); margin-top: 4px; }
.pc-counter.over { color: var(--pc-warning); }

.pc-consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--pc-ink-soft); }

.pc-success-state { text-align: center; padding-top: 40px; }
.pc-success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--pc-success-soft); color: var(--pc-success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}

progress { accent-color: var(--pc-btn-bg); }

/* ---- Suggested-review picker (thanks.php fallback) ---- */
.pc-suggestion-pick {
  display: block; width: 100%; text-align: left; background: var(--pc-bg);
  border: 1px solid var(--pc-line); border-radius: var(--pc-radius-md);
  padding: 10px 14px; font-size: 13px; line-height: 1.5; color: var(--pc-ink-soft);
  font-weight: 400; min-height: 0; cursor: pointer;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.pc-suggestion-pick:hover { background: var(--pc-bg); border-color: var(--pc-accent-dark); }
.pc-suggestion-pick.active { border-color: var(--pc-accent); background: var(--pc-accent-soft); color: var(--pc-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Screen-reader-only text — keeps a real <h1> on pages whose visible heading is a card title. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Site footer (dashboard, account and policy pages) ---- */
.site-footer { margin-top: 48px; padding: 24px 20px 32px; border-top: 1px solid var(--pc-line); text-align: center; font-size: 13px; color: var(--pc-muted); }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-bottom: 10px; }
.site-footer a { color: var(--pc-muted); text-decoration: none; padding: 8px 8px; }
.site-footer a:hover { color: var(--pc-ink); }
.site-footer p { margin: 0; }
.site-footer p a { padding: 0; text-decoration: underline; text-underline-offset: 2px; }

/* Login <-> signup switch: the old one-line muted text with an inherit-coloured link
   was easy to miss, so people who landed on the wrong page didn't notice the other. */
.auth-link { color: var(--pc-ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.auth-link:hover { color: var(--pc-btn-bg-hover); }
.auth-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--pc-line); text-align: center; }
.auth-switch p { margin: 0 0 12px; color: var(--pc-ink-soft); font-size: 15px; }
.auth-switch .btn { width: 100%; }

/* Logo cropper (settings): sized to the 240px canvas instead of the whole card */
.logo-crop { max-width: 240px; margin-top: 16px; }
.logo-crop canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--pc-radius-md); background: var(--pc-bg); touch-action: none; cursor: move; }
.logo-zoom-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--pc-muted); font-size: 20px; line-height: 1; }
.logo-zoom-row input[type=range] { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--pc-btn-bg); cursor: pointer; }
.logo-crop-hint { font-size: 13px; margin: 6px 0 14px; }
.logo-crop-actions { display: flex; gap: 10px; }
.logo-crop-actions button { flex: 1; padding: 0 12px; }

/* Billing: usage meters in the current-plan card, highlighted current plan */
.plan-usage { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 10px; }
.plan-usage li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; align-items: baseline; }
.plan-meter { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.plan-meter i { display: block; height: 100%; border-radius: 999px; background: var(--pc-btn-bg); }
.plan-card.is-current { border-color: var(--pc-btn-bg); }

nav.top .nav-links a.btn { background: var(--pc-btn-bg); color: var(--pc-on-accent); padding: 0 16px; }
nav.top .nav-links a.btn:hover { background: var(--pc-btn-bg-hover); color: var(--pc-on-accent); }

/* ---- Guides (content pages) ---- */
.guide { max-width: 720px; margin: 0 auto; padding: 32px 20px 0; }
.guide .crumbs { font-size: 13px; color: var(--pc-muted); margin-bottom: 20px; }
.guide .crumbs a { color: var(--pc-muted); }
.guide h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.guide .lead { font-size: 18px; color: var(--pc-ink-soft); line-height: 1.6; margin: 0 0 8px; }
.guide .meta { font-size: 13px; color: var(--pc-muted); margin: 0 0 28px; }
.guide h2 { font-size: 24px; letter-spacing: -.01em; margin: 40px 0 10px; }
.guide p, .guide li { line-height: 1.7; color: var(--pc-ink-soft); }
.guide li + li { margin-top: 6px; }
.guide a { color: #86EFAC; text-decoration: underline; text-underline-offset: 3px; } /* light green: the brand green is too dark to read as a link on this background */
.guide .template { margin: 14px 0 20px; }
.guide .template label { margin: 0 0 6px; }
.guide .template textarea { min-height: 110px; font-size: 15px; line-height: 1.55; }
.guide .template .btn-outline { margin-top: 8px; min-height: 40px; }
.guide .callout { border-left: 3px solid var(--pc-btn-bg); background: rgba(255,255,255,.04); padding: 12px 16px; border-radius: 0 var(--pc-radius-md) var(--pc-radius-md) 0; margin: 20px 0; }
.guide .callout p { margin: 0; }
.guide .faq details { border-bottom: 1px solid var(--pc-line); padding: 12px 0; }
.guide .faq summary { cursor: pointer; font-weight: 650; color: var(--pc-ink); }
.guide .cta { margin: 44px 0 8px; padding: 28px 24px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius-card); background: var(--pc-surface); text-align: center; }
.guide .cta h2 { margin-top: 0; }
.guide .cta a.btn { text-decoration: none; color: var(--pc-on-accent); }
.guide .related { margin-top: 32px; }
.guide .related ul { padding-left: 20px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.guide-list a { display: block; padding: 18px 20px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius-card); background: var(--pc-surface); text-decoration: none; }
.guide-list a:hover { border-color: var(--pc-btn-bg); }
.guide-list strong { display: block; color: var(--pc-ink); font-size: 17px; margin-bottom: 4px; }
.guide-list span { color: var(--pc-ink-soft); font-size: 14px; line-height: 1.5; }

/* card headings are h2 for outline order (h1 > h2), styled like the former h3 */
.card-title { font-size: 17px; letter-spacing: -0.01em; }

/* Wide data tables on a phone become one card per row, each cell labelled from its
   data-label (used by the admin console). */
@media (max-width: 720px) {
  .stack-table, .stack-table tbody { display: block; width: 100%; }
  .stack-table thead { display: none; }
  .stack-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--pc-line); }
  .stack-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  .stack-table td::before { content: attr(data-label); flex: none; color: var(--pc-muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .stack-table td:first-child { font-weight: 650; }
}


/* Reviews: one card-like row per review. Left: who, what they said, when. Right: what you can do.
   On phones the actions drop below the text. */
.review-list { list-style: none; margin: 0; padding: 0; }
.review-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--pc-line); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review-name { font-weight: 650; font-size: 16px; color: var(--pc-ink); }
.review-quote { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--pc-ink-soft); max-width: 62ch; }
.review-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--pc-muted); }
.review-meta .stars { font-size: 14px; }
.review-item .row-actions { justify-content: flex-end; align-self: start; max-width: 460px; }
.review-preview { grid-column: 1 / -1; background: var(--pc-bg); border-radius: var(--pc-radius-md); padding: 14px; }
@media (max-width: 720px) {
  .review-item { grid-template-columns: 1fr; }
  .review-item .row-actions { justify-content: flex-start; max-width: none; }
  .review-item .row-actions .btn-outline, .review-item .row-actions .btn { flex: 1 1 auto; }
}
