/* CleanComments for YouTube (working name) — shared styles
   Design baseline: Decide design rules — OpenAI-style black/white/gray minimal.
   Light #f7f7f8 base, system sans stack, no color decoration, no gradients. */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #17171b;
  --ink-2: #55555c;
  --ink-3: #8a8a93;
  --line: #e6e6ea;
  --soft: #efeff1;
  --field-bg: #f6f6f8;
  --field-line: #e9e9ef;
  --field-focus: #c4c4ce;
  --radius-card: 20px;
  --radius-ctl: 11px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Header: 72px, three zones, 1120px container ---------- */
.site-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wordmark .wm-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

/* Segmented nav */
.seg-nav {
  display: flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.seg-nav a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.seg-nav a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.header-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.narrow { max-width: 760px; }

section { margin-top: 56px; }
section:first-child { margin-top: 48px; }

h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 0 0 16px;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  font-weight: 600;
  margin: 0 0 12px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
p { margin: 0 0 12px; }
.lede { font-size: 16px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 12px; color: var(--ink-3); }
strong { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-ctl);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-align: center;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--field-line);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Cards & tables ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.stat-num {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.15;
}
.stat-label { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 13px; font-weight: 500; color: var(--ink-2); }
tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- Lists ---------- */
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.clean li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.clean li:last-child { border-bottom: none; }
ol.steps { margin: 0; padding-left: 20px; }
ol.steps li { margin-bottom: 10px; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Honesty / demo banners ---------- */
.note-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.demo-banner {
  border: 1.5px solid var(--ink);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font-size: 14px;
  margin-top: 32px;
}
.demo-banner strong { letter-spacing: 0.2px; }

/* ---------- Forms (Decide spec) ---------- */
form .field { margin-bottom: 16px; }
form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 7px;
}
form input[type="url"],
form input[type="email"],
form input[type="text"],
form select {
  width: 100%;
  height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-ctl);
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
form input:focus, form select:focus {
  outline: none;
  border-color: var(--field-focus);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23,23,27,.06);
}
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
}
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-row label { margin: 0; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.field-error {
  display: none;
  font-size: 12px;
  color: var(--ink);
  margin-top: 6px;
  font-weight: 500;
}
.field-error.show { display: block; }
.form-status {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius-ctl);
  padding: 14px 16px;
  font-size: 14px;
}
.form-status.show { display: block; }
form .btn { width: 100%; }

/* ---------- Demo page ---------- */
.filter-bar {
  display: flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
}
.filter-bar button {
  padding: 7px 14px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.filter-bar button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.comment-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.comment-cat { font-weight: 600; color: var(--ink-2); }
.comment-text { font-size: 14px; margin: 0 0 6px; overflow-wrap: break-word; }
.comment-action { font-size: 12px; color: var(--ink-2); margin: 0; }
.risk { font-weight: 600; }
.page-note {
  margin-top: 64px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header { height: auto; }
  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 14px 16px 12px;
    gap: 10px;
  }
  .wordmark { font-size: 18px; text-align: center; white-space: normal; }
  .header-cta { display: none; }
  .wrap { padding: 0 16px 56px; }
  h1 { font-size: 26px; }
  section { margin-top: 44px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .card { padding: 20px; }
}

.payhip-row{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.payhip-row:last-of-type{border-bottom:none}
.payhip-row .ph-price{font-size:20px;font-weight:700}
.payhip-row p{margin:4px 0 0}

/* ---- floating tip (Sweet Hub shared PayPal tip component) ---- */
/* Sweet Hub tip jar styles — append to the site's stylesheet.
 * OpenAI-style minimal: white card, hairline border, black accents. */
.tip-jar {
  max-width: 440px; margin: 40px auto; padding: 28px 28px 24px;
  border: 1px solid var(--border, #e5e5e5); border-radius: 16px;
  text-align: center; background: #fff;
}
.tip-title { font-size: 18px; font-weight: 650; margin: 0 0 6px; color: #111; }
.tip-sub { font-size: 14px; color: var(--muted, #6e6e73); margin: 0 0 18px; line-height: 1.5; }
.tip-amounts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.tip-pill {
  border: 1px solid var(--border, #e5e5e5); background: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; color: #333;
  cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s;
}
.tip-pill:hover { border-color: #111; }
.tip-pill.on { background: #111; border-color: #111; color: #fff; }
.tip-custom { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
.tip-cur { font-size: 16px; font-weight: 600; color: #111; }
.tip-amount {
  width: 100px; padding: 9px 12px; font-size: 16px; text-align: center;
  border: 1px solid var(--border, #e5e5e5); border-radius: 10px;
  font-family: inherit; color: #111; background: #fff;
}
.tip-amount:focus { outline: none; border-color: #111; }
#tip-paypal-btn { max-width: 320px; margin: 0 auto; }
.tip-thanks { font-size: 15px; font-weight: 600; color: #111; margin: 14px 0 0; }

/* Floating tip button — append after tip.css.
 * Bottom-right black gift button; click opens the tip card as a popover.
 * Black/white minimal to match the tip card. */
#tip-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 9000;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 1px solid #e5e5e5; color: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit; padding: 0;
}
#tip-fab:hover { transform: scale(1.06); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
#tip-fab svg { display: block; }
#tip-popover {
  position: fixed; right: 24px; bottom: 88px; z-index: 9001;
  width: 340px; max-width: calc(100vw - 48px);
  background: #fff; border: 1px solid var(--border, #e5e5e5);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 8px 8px 4px;
}
#tip-popover[hidden] { display: none; }
#tip-popover .tip-jar { margin: 0; border: none; box-shadow: none; max-width: none; }
#tip-popover-close {
  position: absolute; top: 6px; right: 10px; z-index: 2;
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--muted, #6e6e73); cursor: pointer; padding: 4px;
  font-family: inherit;
}
#tip-popover-close:hover { color: #111; }
@media (max-width: 480px) {
  #tip-fab { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  #tip-popover { right: 16px; bottom: 76px; }
}
/* Tip card is ALWAYS light — pin the light-theme tokens inside the card so
 * the dark site theme can never leak in. The PayPal button area is white by
 * design; the card around it now stays white in both site themes.
 * (Values = this snippet's own light design fallbacks; a host site whose
 * light theme defines different tokens should pin its own light values.) */
#tip-popover, .tip-jar {
  color-scheme: light;
  --border: #e5e5e5;
  --muted: #6e6e73;
}
