@font-face {
  font-family: 'LiterataCustom';
  src: local('Literata');
  font-display: swap;
}

:root {
  --ink: #17140f;
  --muted: #655f56;
  --paper: #f4ecd9;
  --paper-2: #fff8e9;
  --acid: #baff29;
  --red: #ff4d2e;
  --blue: #1924ff;
  --line: rgba(23, 20, 15, 0.16);
  --shadow: 0 28px 80px rgba(23, 20, 15, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(186, 255, 41, 0.55), transparent 24rem),
    radial-gradient(circle at 10% 28%, rgba(255, 77, 46, 0.16), transparent 20rem),
    linear-gradient(135deg, #fff8e9 0%, #f4ecd9 45%, #e6dcc7 100%);
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
}
.brand, .nav-actions a { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 2px solid var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.pill-link { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,0.35); }

.hero { min-height: 760px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
  padding: 58px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 700;
}
.live-dot { width: 9px; height: 9px; background: var(--red); border-radius: 999px; box-shadow: 0 0 0 6px rgba(255,77,46,.12); }
h1, h2, h3 { margin: 0; letter-spacing: -0.07em; line-height: 0.94; }
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(58px, 8vw, 116px);
  max-width: 880px;
  margin: 18px 0 24px;
}
.lede { font-size: 20px; line-height: 1.55; color: #332c22; max-width: 680px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  font-family: inherit;
  font-size: 15px;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.primary { background: var(--ink); color: var(--paper-2); }
.secondary { background: var(--acid); color: var(--ink); }
.microcopy { color: var(--muted); font-size: 13px; margin-top: 16px; }

.feed-card {
  background: rgba(255, 248, 233, 0.72);
  backdrop-filter: blur(12px);
  border: 2px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow), 10px 10px 0 var(--ink);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.feed-topbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 2px solid var(--ink); background: #fff3d0; }
.window-dot { width: 12px; height: 12px; border-radius: 99px; border: 1px solid var(--ink); }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.feed-label { margin-left: auto; font-size: 12px; color: var(--muted); }
.post { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.score { color: var(--muted); font-size: 13px; padding-top: 5px; }
.post h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 8px; }
.post p { margin: 0; color: #4a4238; line-height: 1.45; }
.tag { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 900; margin-bottom: 8px !important; border: 1px solid var(--ink); }
.human { background: var(--acid); color: var(--ink) !important; }
.review { background: #d9dbff; color: var(--blue) !important; }
.slop { background: rgba(255, 77, 46, 0.08); }
.slop h2, .slop p { filter: blur(2px); opacity: 0.52; user-select: none; }
.folded-banner { display: grid; gap: 4px; background: var(--ink); color: var(--paper-2); border-radius: 16px; padding: 13px 14px; margin-bottom: 12px; }
.folded-banner span { color: #d7cdb8; font-size: 12px; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 96px;
}
.proof-strip div { padding: 24px; border-right: 1px solid rgba(255,255,255,.22); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { display: block; font-family: Georgia, serif; font-size: 30px; letter-spacing: -0.06em; }
.proof-strip span { display: block; color: #d8d1c4; font-size: 13px; margin-top: 6px; line-height: 1.35; }

.section { margin: 0 0 96px; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.section h2 { font-family: Georgia, serif; font-size: clamp(42px, 5vw, 72px); }
.steps { display: grid; gap: 16px; }
.step, .card, .interest-form {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255,248,233,.72);
  padding: 24px;
  box-shadow: 5px 5px 0 rgba(23,20,15,.9);
}
.step span { color: var(--red); font-weight: 900; }
.step h3, .card h3 { font-family: Georgia, serif; font-size: 30px; margin: 8px 0 10px; }
.step p, .card p, .form-copy p { color: var(--muted); line-height: 1.55; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.form-copy h2 { font-family: Georgia, serif; font-size: clamp(42px, 5vw, 74px); margin: 12px 0 18px; }
.interest-form { display: grid; gap: 18px; }
label, legend { font-weight: 900; }
input, textarea {
  width: 100%;
  margin-top: 8px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: #fffdf5;
  color: var(--ink);
}
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.checkbox-grid label { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.35); }
.checkbox-grid input { width: auto; margin: 0 8px 0 0; }
.form-status { min-height: 22px; margin: 0; font-weight: 900; color: var(--blue); }
.local-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.text-button { background: transparent; border: 0; color: var(--blue); font-weight: 900; cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.text-button.danger { color: var(--red); }
footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 46px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .split, .form-section { grid-template-columns: 1fr; }
  .proof-strip, .cards { grid-template-columns: 1fr 1fr; }
  .feed-card { transform: none; }
}
@media (max-width: 620px) {
  main, footer { width: min(100% - 22px, 1180px); }
  .nav { align-items: flex-start; gap: 16px; }
  .nav-actions { display: none; }
  h1 { font-size: 54px; }
  .proof-strip, .cards, .checkbox-grid { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; }
}

/* Homepage v2: first-screen research form + SEO content hub */
.hero-grid-survey {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  align-items: start;
  padding-top: 38px;
}
.survey-card {
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: rgba(255, 248, 233, 0.82);
  box-shadow: var(--shadow), 10px 10px 0 var(--ink);
  padding: 26px;
  position: sticky;
  top: 18px;
}
.survey-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: .98;
  margin: 12px 0 12px;
}
.survey-intro,
.privacy-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  font-size: 14px;
}
.interest-form.compact {
  box-shadow: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
button[disabled] {
  opacity: .62;
  cursor: wait;
}
.form-status[data-type="success"] { color: #0d7a38; }
.form-status[data-type="error"] { color: var(--red); }
.demo-section .feed-card {
  max-width: 900px;
  margin: 0 auto;
  transform: rotate(-.6deg);
}
.faq-section h2,
.blog-teaser h2,
.blog-home h1 {
  font-family: Georgia, 'Times New Roman', serif;
}
.faq-section h2 { margin: 12px 0 22px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
details {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255,248,233,.72);
  padding: 20px;
  box-shadow: 5px 5px 0 rgba(23,20,15,.9);
}
summary { font-weight: 900; cursor: pointer; }
details p { color: var(--muted); line-height: 1.55; }
.blog-teaser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius);
  padding: 28px;
}
.blog-teaser p { color: #d8d1c4; max-width: 720px; line-height: 1.55; }
.blog-home { margin-top: 42px; }
.blog-home h1 {
  font-size: clamp(52px, 7vw, 96px);
  max-width: 980px;
}
.blog-list .card h3 { line-height: 1.02; }
footer a { color: inherit; font-weight: 900; }

@media (max-width: 900px) {
  .hero-grid-survey, .faq-grid { grid-template-columns: 1fr; }
  .survey-card { position: static; }
  .blog-teaser { flex-direction: column; align-items: flex-start; }
}

.seo-depth {
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: rgba(255,248,233,.72);
  padding: 30px;
  box-shadow: 8px 8px 0 rgba(23,20,15,.9);
}
.guide-intro {
  max-width: 900px;
}
.guide-intro h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 5vw, 72px);
  margin: 12px 0 18px;
}
.guide-intro p,
.guide-card p,
.guide-card li {
  color: var(--muted);
  line-height: 1.6;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.guide-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.34);
  padding: 20px;
}
.guide-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  margin-bottom: 10px;
}
.guide-card ul {
  margin: 0;
  padding-left: 20px;
}
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.competitor-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 28px;
  align-items: start;
}
.competitor-copy h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.6vw, 64px);
  margin: 12px 0 16px;
}
.competitor-copy p {
  color: var(--muted);
  line-height: 1.6;
}
.comparison-table {
  display: grid;
  border: 2px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,248,233,.82);
  box-shadow: 6px 6px 0 rgba(23,20,15,.9);
}
.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: .72fr 1fr 1.25fr;
  border-bottom: 1px solid var(--line);
}
.comparison-table [role="row"]:last-child { border-bottom: 0; }
.comparison-table span {
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}
.comparison-table span:last-child { border-right: 0; }
.comparison-table .table-head {
  background: var(--ink);
}
.comparison-table .table-head span {
  color: var(--paper-2);
  font-weight: 900;
}
.comparison-table [role="row"] span:first-child {
  color: var(--ink);
  font-weight: 900;
}
@media (max-width: 900px) {
  .competitor-section { grid-template-columns: 1fr; }
  .comparison-table [role="row"] { grid-template-columns: 1fr; }
  .comparison-table span { border-right: 0; border-bottom: 1px solid var(--line); }
  .comparison-table span:last-child { border-bottom: 0; }
}

.legal-page {
  max-width: 880px;
  margin: 44px auto 96px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: rgba(255,248,233,.78);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 8px 8px 0 rgba(23,20,15,.9);
}
.legal-page h1,
.legal-page h2 {
  font-family: Georgia, 'Times New Roman', serif;
}
.legal-page h1 {
  font-size: clamp(54px, 7vw, 96px);
  margin: 12px 0 20px;
}
.legal-page h2 {
  font-size: 34px;
  margin: 34px 0 10px;
}
.legal-page p {
  color: var(--muted);
  line-height: 1.65;
}
.legal-page strong { color: var(--ink); }

.article-card {
  color: inherit;
  text-decoration: none;
  display: block;
}
.article-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(23,20,15,.95);
}
.read-more {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}
.article-page ul {
  color: var(--muted);
  line-height: 1.65;
}

.article-page a:not(.button) { color: var(--blue); font-weight: 800; }
.article-page ol,
.article-page ul { color: var(--muted); line-height: 1.65; }
.article-cta {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.lang-switcher {
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
.lang-switcher a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
.lang-switcher a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* Gefei-style homepage SEO refinement: direct answer block near top */
.answer-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 34px;
  align-items: start;
}
.answer-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 4.8vw, 68px);
}
.answer-card {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: rgba(255,248,233,.82);
  padding: 26px;
  box-shadow: 7px 7px 0 rgba(23,20,15,.9);
}
.answer-card p,
.answer-card li {
  color: var(--muted);
  line-height: 1.62;
}
.answer-card p:first-child {
  margin-top: 0;
  color: #332c22;
  font-size: 18px;
}
.answer-card strong { color: var(--ink); }
@media (max-width: 900px) {
  .answer-section { grid-template-columns: 1fr; }
}
