/* Shared styles for shovoy.com pages (home, legal, support, organizers, portal).
   e.html and u.html keep their own inline styles.
   Brand v4: Persimmon signature, honey and apricot accents, plum ink instead of
   black, warm white ground. Persimmon-led accents: --accent is Ember (#d63400)
   for links, focus, meters and small accent text (4.59 on warm white);
   --accent-fill is Persimmon for filled buttons and tags, labelled with
   --on-accent plum ink (white on Persimmon fails contrast). */
@import url("/fonts/fonts.css");
:root {
  --bg: #fff8f1;
  --card: #ffffff;
  --text: #2a1a2e;
  --muted: #6e5f6b;
  --accent: #d63400;
  --accent-fill: #ff5b2e;
  --on-accent: #2a1a2e;
  --accent-wash: #ffe7d2;
  --meter-track: #ffd2a8;
  --persimmon: #ff5b2e;
  --sun: #ffb938;
  --apricot: #ffd2a8;
  --teal: #17716c;
  --border: #f0e4d8;
  --pill-text: var(--text);
  --ok: #1f7a46;
  --warn: #9a5200;
  --danger: #b3261e;
  --radius: 20px;
  --shadow: 0 4px 16px rgb(42 26 46 / 0.08);
  --head: "Gabarito", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wordmark: "Nunito", ui-rounded, "Gabarito", -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1220; --card: #251a2c; --text: #fff3e8; --muted: #bba9b6;
    --accent: #ff7a52; --accent-fill: #ff7a52; --on-accent: #2a1a2e; --accent-wash: #3a1f24; --meter-track: #3a2e36; --persimmon: #ff7a52; --sun: #ffc75e; --apricot: #4a2e2a;
    --teal: #4fc7bf; --border: #3a2b40; --pill-text: var(--accent);
    --ok: #6ccb86; --warn: #ffc75e; --danger: #ff8a80;
    --shadow: 0 4px 16px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #1a1220; --card: #251a2c; --text: #fff3e8; --muted: #bba9b6;
  --accent: #ff7a52; --accent-fill: #ff7a52; --on-accent: #2a1a2e; --accent-wash: #3a1f24; --meter-track: #3a2e36; --persimmon: #ff7a52; --sun: #ffc75e; --apricot: #4a2e2a;
  --teal: #4fc7bf; --border: #3a2b40; --pill-text: var(--accent);
  --ok: #6ccb86; --warn: #ffc75e; --danger: #ff8a80;
  --shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--body);
}
a { color: var(--accent); }
:where(p, li, .lede, .legal) a:where(:not(.button)) {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }

/* Header and footer */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Wordmark: Nunito Black (logo style 01, rounded bold sans) next to the one-line SV icon. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--wordmark); font-weight: 900; font-size: 24px; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.brand span { color: var(--persimmon); }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

/* Type */
h1, h2, h3 { font-family: var(--head); text-wrap: balance; }
h1 { font-size: clamp(34px, 6.5vw, 52px); font-weight: 800; line-height: 1.05; margin: 12px 0 14px; letter-spacing: -0.03em; }
h2 { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 48px 0 12px; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 700; margin: 24px 0 6px; letter-spacing: -0.01em; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); max-width: 36em; }
.small { font-size: 14px; }

/* Blocks */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  color: var(--pill-text); background: var(--accent-wash);
}
.pill.sun { color: var(--text); background: color-mix(in srgb, var(--sun) 40%, transparent); }

.button {
  display: inline-block; text-align: center; padding: 14px 24px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
}
.button.primary { background: var(--accent-fill); color: var(--on-accent); font-weight: 700; }
.button.secondary { background: color-mix(in srgb, var(--apricot) 55%, transparent); color: var(--text); border-color: transparent; }
.button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button.small { padding: 9px 16px; font-size: 15px; border-radius: 999px; }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Legal pages */
.legal h2 { font-size: 21px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.toc { font-size: 15px; }
.toc ol { padding-left: 20px; margin: 6px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Forms */
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"],
input[type="datetime-local"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.notice { border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 15px; border: 1px solid var(--border); }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.ok { border-color: var(--ok); color: var(--ok); }

/* Home */
.hero { padding: 36px 0 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.feature h3 { margin-top: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .icon { font-size: 26px; line-height: 1; }
.band { margin-top: 48px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.band h2 { margin-top: 0; }
.name-note { border-left: 4px solid var(--sun); padding: 4px 0 4px 14px; margin: 28px 0 0; }

/* Pricing */
.price { font-family: var(--head); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier ul { padding-left: 20px; margin: 8px 0 0; font-size: 15px; }
.tier.featured { border-color: var(--accent-fill); border-width: 2px; }

/* Portal */
.meter { height: 10px; border-radius: 999px; background: var(--meter-track); overflow: hidden; margin: 8px 0; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.stat { font-family: var(--head); font-size: 28px; font-weight: 800; }
.post { border-top: 1px solid var(--border); padding: 14px 0; }
.post:first-child { border-top: 0; }
.status { font-size: 13px; font-weight: 600; }
.status.pending { color: var(--warn); }
.status.approved { color: var(--ok); }
.status.rejected { color: var(--danger); }
