/* ==========================================================================
   Paid Survey Guide — editorial stylesheet
   Hanko paper, ink, brick accent. No external fonts, no frameworks.
   ========================================================================== */

:root {
  --paper: #F7F5EF;
  --surface: #FFFFFF;
  --ink: #15181B;
  --ink-2: #3C444A;
  --muted: #656D73;
  --rule: #DED7C8;
  --rule-soft: #EBE6DA;
  --accent: #A03D2C;
  --accent-tint: #F3E5DF;
  --deep: #16413B;
  --deep-tint: #E4EDEA;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --article: 748px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-tint); color: var(--ink); }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.article { max-width: var(--article); }
.wrap.article { max-width: var(--wrap); }
.wrap.article > * { max-width: var(--article); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 245, 239, .94);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky; top: 0; z-index: 40;
}

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 66px;
}

.brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.brand-mark {
  font-family: var(--serif);
  font-size: 21px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink);
}
.brand-mark:hover { text-decoration: none; }
.brand-sub {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14.5px; color: var(--ink-2); letter-spacing: .01em;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  font-size: 12.5px; letter-spacing: .04em;
}
.lang-switch a, .lang-switch span {
  padding: 4px 10px; color: var(--muted); line-height: 1.6;
}
.lang-switch a:hover { background: var(--surface); color: var(--accent); text-decoration: none; }
.lang-switch span { background: var(--ink); color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---------- hero ---------- */

.hero {
  padding: 74px 0 60px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(120% 90% at 88% -10%, #FBF9F4 0%, rgba(251,249,244,0) 62%),
    var(--paper);
}

.eyebrow {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); display: block;
}

h1, .h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.24; font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  max-width: 20em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.lede {
  font-size: 18.5px; line-height: 1.82; color: var(--ink-2);
  max-width: 34em; margin: 0 0 34px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; padding: 12px 22px; border-radius: 2px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: transform .12s ease, background .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn .arrow { font-family: var(--sans); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 54px; border-top: 1px solid var(--rule);
}
.stats div { padding: 20px 18px 4px 0; border-right: 1px solid var(--rule-soft); }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block; font-family: var(--serif); font-size: 34px; line-height: 1.1;
  font-weight: 700; color: var(--ink); letter-spacing: -.02em;
}
.stats span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ---------- breadcrumb ---------- */

.crumbs {
  font-size: 13px; color: var(--muted); padding: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs .sep { opacity: .5; }

/* ---------- page head ---------- */

.page-head { padding: 30px 0 44px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; }
.page-head .lede { margin-bottom: 0; font-size: 17.5px; }

.meta-line {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 13px; color: var(--muted); margin-top: 22px;
  letter-spacing: .02em;
}
.meta-line strong { color: var(--ink-2); font-weight: 600; }

/* ---------- sections ---------- */

.section { padding: 56px 0; border-bottom: 1px solid var(--rule-soft); }
.section:last-of-type { border-bottom: 0; }
.section.tight { padding: 28px 0 4px; border-bottom: 0; }
.section.tight .note { margin: 0; }
.section.tinted { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0)); }

.section-label {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.section h2, .article h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.36; margin: 0 0 18px; letter-spacing: -.005em;
}
.article h2 { margin-top: 46px; word-break: auto-phrase; }
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 17px; font-weight: 700; margin: 30px 0 8px;
  letter-spacing: .01em;
}

.article p { margin: 0 0 18px; color: var(--ink-2); }
/* English sets a slightly shorter column so the measure stays readable */
html[lang="en"] .wrap.article > * { max-width: 700px; }
.article strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 22px; color: var(--ink-2); }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--accent); }

.article blockquote {
  margin: 26px 0; padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink);
}
.article blockquote p:last-child { margin-bottom: 0; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; }

table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
th, td {
  text-align: left; padding: 12px 14px; vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}
th {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: #FBF9F4;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
td { color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- facts list ---------- */

.facts { border-top: 1px solid var(--rule); margin: 30px 0 34px; }
.facts dl {
  display: grid; grid-template-columns: 190px 1fr; gap: 0;
  margin: 0; border-bottom: 1px solid var(--rule-soft); padding: 11px 0;
}
.facts dt { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.facts dd { margin: 0; font-size: 14.5px; color: var(--ink); }

/* ---------- pros / cons ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0;
}
.panel {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 22px 24px;
}
.panel h3 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.panel.up h3 { color: var(--deep); }
.panel.down h3 { color: var(--accent); }
.panel ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.panel li { margin-bottom: 8px; }
.panel li:last-child { margin-bottom: 0; }

/* ---------- platform cards ---------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}

.card {
  display: flex; flex-direction: column;
  padding: 26px 26px 22px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background .18s ease;
  position: relative;
}
.card:hover { background: var(--surface); text-decoration: none; }
.card h3 {
  font-family: var(--serif); font-size: 21px; margin: 0 0 4px;
  color: var(--ink); letter-spacing: -.01em;
}
.card .card-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.card .card-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--rule-soft);
  padding-top: 12px; letter-spacing: .02em;
}
.card .card-meta > span:first-child {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .card-meta .go { flex: 0 0 auto; white-space: nowrap; }
.card:hover .card-meta .go { color: var(--accent); }
.card .go { transition: color .18s ease; }

.badge {
  position: absolute; top: 0; right: 0;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; background: var(--accent-tint); color: var(--accent);
}

.score {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: var(--serif); color: var(--ink);
}
.score b { font-size: 15px; font-weight: 700; }
.score i { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---------- hub list ---------- */

.hub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hub-list li { border-bottom: 1px solid var(--rule-soft); }
.hub-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  padding: 18px 4px; color: var(--ink); align-items: baseline;
}
.hub-list a:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.hub-list .t { font-size: 16.5px; font-weight: 600; }
.hub-list .d { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.hub-list .r { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- note / callout ---------- */

.note {
  margin: 30px 0; padding: 20px 24px;
  background: var(--accent-tint);
  border-left: 2px solid var(--accent);
  font-size: 14.5px; color: #7A2B1E;
}
.note strong { color: #5E1F14; }

.callout-deep {
  margin: 30px 0; padding: 20px 24px;
  background: var(--deep-tint);
  border-left: 2px solid var(--deep);
  font-size: 14.5px; color: #12332E;
}

/* ---------- guide links ---------- */

.guide-list { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 26px; }
.guide-item {
  display: block; padding: 22px 4px; border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
.guide-item:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.guide-item .n {
  font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .04em;
}
.guide-item h3 { font-family: var(--serif); font-size: 20px; margin: 4px 0 6px; }
.guide-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- faq ---------- */

.faq-item { border-bottom: 1px solid var(--rule-soft); padding: 20px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; }
.faq-item p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: #F1EEE5;
  padding: 52px 0 40px;
  margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px;
}
.footer-grid h4 {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 600;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 14px; color: var(--ink-2); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; max-width: 30em; line-height: 1.7; }

.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
}

/* ---------- ad slot (enabled after AdSense approval) ---------- */

.ad-slot {
  margin: 40px 0; padding: 0; text-align: center; min-height: 0;
}
.ad-slot[data-enabled="false"] { display: none; }

/* ---------- 404 ---------- */

.center-page {
  min-height: 58vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(1), .stats div:nth-child(2) { border-bottom: 1px solid var(--rule-soft); }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 46px 0 40px; }
  .lede { font-size: 17px; }
  .brand-sub { display: none; }
  .brand { min-width: 0; }
  .brand-mark { font-size: 18px; white-space: nowrap; }
  .header-inner { gap: 10px; min-height: 58px; }
  .lang-switch { font-size: 11.5px; flex: none; }
  .lang-switch a, .lang-switch span { padding: 3px 8px; }
  .nav { display: none; }
  .nav-toggle-label {
    display: block; margin-left: auto; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-2); cursor: pointer;
    border: 1px solid var(--rule); padding: 5px 10px; border-radius: 2px;
    white-space: nowrap; flex: none;
  }
  .nav-toggle:checked ~ .nav {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 10px 18px 18px;
  }
  .nav-toggle:checked ~ .nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--rule-soft); }
  .split { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .article h2 { margin-top: 36px; }
  .section { padding: 42px 0; }
}

@media (max-width: 400px) {
  .brand-mark { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .stats b { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
