/* =========================================================
   SINSOD.com — Vanilla CSS (2026)
   โครงสร้าง: tokens → base → layout → components → pages → utilities
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f6efe7;
  --ink: #2b1a22;
  --ink-2: #4a3640;
  --muted: #6e5a63;
  --line: #eadfd6;

  --rose: #b8395f;
  --rose-600: #9e2b4f;
  --rose-soft: #f9e6ec;

  --gold: #94681f;
  --gold-2: #d4ad62;
  --gold-soft: #f6ecd8;

  --plum: #2a1220;
  --plum-2: #3b1a2d;

  --line-green: #06c755;
  --line-green-600: #05a948;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(43, 26, 34, .06), 0 2px 8px rgba(43, 26, 34, .05);
  --shadow: 0 2px 6px rgba(43, 26, 34, .06), 0 12px 32px rgba(43, 26, 34, .08);
  --shadow-l: 0 24px 60px rgba(42, 18, 32, .18);

  --font-sans: "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, system-ui, sans-serif;
  --font-serif: "Noto Serif Thai", "Noto Sans Thai", "Leelawadee UI", Georgia, serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@view-transition { navigation: auto; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-600); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rose-soft); color: var(--ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--alt { background: var(--surface-2); }
.section--white { background: var(--surface); }
.section--dark { background: radial-gradient(1200px 500px at 85% -10%, #5a2340 0%, transparent 60%), var(--plum); color: #f3e9ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #dccbd3; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section--dark .section-head p { color: #d6c3cc; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold-2); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid > *, .split > *, .article-layout > *, .builder > *, .hero-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--rose); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-sans);
  color: var(--_fg); background: var(--_bg); border: 1.5px solid var(--_bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--_fg); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184, 57, 95, .22); background: var(--rose-600); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--line { --_bg: var(--line-green); }
.btn--line:hover { background: var(--line-green-600); box-shadow: 0 8px 20px rgba(6, 199, 85, .25); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); border-color: #d9c9bc; }
.btn--light { --_bg: #fff; --_fg: var(--plum); }
.btn--light:hover { background: var(--gold-soft); color: var(--plum); }
.btn--outline-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 242, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(43, 26, 34, .05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand-name { font: 700 1.3rem/1 var(--font-sans); letter-spacing: .04em; }
.brand-name span { color: var(--rose); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--rose); background: var(--rose-soft); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 14px; font-size: 1.05rem; border-radius: 12px; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn--line { display: none; }
}
@media (min-width: 981px) { .nav .nav-mobile-only { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); background:
  radial-gradient(900px 480px at 95% 0%, var(--rose-soft) 0%, transparent 65%),
  radial-gradient(700px 400px at 0% 100%, var(--gold-soft) 0%, transparent 60%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-s); margin-bottom: 18px; }
.hero-badge b { background: var(--gold-soft); color: var(--gold); border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 560px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-2); line-height: 1.5; }
.hero-points svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 1px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 50px rgba(42, 18, 32, .18)); }
.hero-float { position: absolute; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.35; }
.hero-float strong { display: block; font-size: 1.05rem; color: var(--ink); }
.hero-float span { color: var(--muted); }
.hero-float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); flex: none; }
.hero-float .ico svg { width: 22px; height: 22px; }
.hero-float--a { left: -4%; bottom: 12%; }
.hero-float--b { right: -2%; top: 6%; }
.hero-float--b .ico { background: var(--gold-soft); color: var(--gold); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .hero-points { grid-template-columns: 1fr; }
  .hero-float { padding: 9px 12px; font-size: .82rem; }
  .hero-float .ico { width: 32px; height: 32px; }
  .hero-float--a { left: 0; bottom: 4%; }
  .hero-float--b { right: 0; top: 0; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(32px, 6vw, 72px) clamp(32px, 5vw, 56px); background: radial-gradient(800px 360px at 100% 0%, var(--rose-soft), transparent 65%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 860px; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 760px; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 24px; }

.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #c4b2ba; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--plum); color: #f3e9ee; }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .08); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-serif); color: var(--gold-2); }
.trust-item span { font-size: .92rem; color: #d9c6cf; }
@media (max-width: 760px) {
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-s); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); margin-bottom: 16px; }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--gold { background: var(--gold-soft); color: var(--gold); }
.section--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section--dark .card p { color: #d3c0c9; }
.section--dark .icon-badge { background: rgba(212, 173, 98, .14); color: var(--gold-2); }

/* ---------- Leader / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.check-list li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394681f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.section--dark .check-list li::before { background-color: rgba(212, 173, 98, .16); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface-2); font-weight: 700; font-size: .95rem; }
.compare thead th.is-us { background: var(--plum); color: #fff; }
.compare td.is-us { background: #fff8fa; font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-wrap .compare { min-width: 560px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card--featured { background: linear-gradient(180deg, #3b1a2d 0%, var(--plum) 100%); color: #f3e9ee; border-color: transparent; box-shadow: var(--shadow-l); }
.price-card--featured h3 { color: #fff; }
.price-card--featured .price-note, .price-card--featured .price-sub { color: #d6c3cc; }
.price-card--featured .price-list li { color: #f3e9ee; }
.price-card--featured .price-amount { color: var(--gold-2); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold-2); color: var(--plum); font-weight: 700; font-size: .82rem; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.price-amount { font: 700 clamp(2.2rem, 4vw, 2.8rem)/1 var(--font-serif); color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.price-amount small { font: 500 1rem var(--font-sans); color: inherit; opacity: .75; }
.price-note { font-size: .9rem; color: var(--muted); margin: 8px 0 18px; }
.price-list { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px dashed var(--line); display: grid; gap: 10px; flex: 1; }
.price-card--featured .price-list { border-top-color: rgba(255, 255, 255, .15); }
.price-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: var(--ink-2); }
.price-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.price-card--featured .price-list svg { color: var(--gold-2); }
.price-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow-s); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 1rem var(--font-sans); background: var(--plum); color: var(--gold-2); margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 64px; }
.timeline li::before { content: attr(data-time); position: absolute; left: 0; top: 0; width: 50px; font: 700 .9rem/1.4 var(--font-sans); color: var(--gold); }
.timeline li::after { content: ""; position: absolute; left: 54px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.08rem; margin: 0 0 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .96rem; }
.section--dark .chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #f3e9ee; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq--center { margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); transition: border-color .2s; }
.faq details[open] { border-color: #e2c9d2; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 600; font-size: 1.04rem; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8395f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-2); }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(32px, 5vw, 56px); background:
  radial-gradient(600px 300px at 100% 0%, rgba(212, 173, 98, .28), transparent 60%),
  radial-gradient(500px 300px at 0% 100%, rgba(184, 57, 95, .35), transparent 60%),
  var(--plum); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #e2d2da; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }
.qr-box { display: flex; gap: 16px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 14px; width: fit-content; }
.qr-box img { width: 108px; height: 108px; border-radius: 8px; }
.qr-box strong { display: block; font-size: 1.1rem; }
.qr-box span { color: var(--muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { margin-bottom: 4px; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e5a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(184, 57, 95, .12); }
.field input:user-invalid, .field select:user-invalid { border-color: #c0392b; }
.field .hint { font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: #e9f8ef; color: #17633a; border: 1px solid #bfe7cf; }
.form-status.is-err { display: block; background: #fdeeee; color: #8e2a2a; border: 1px solid #f2c7c7; }

/* Builder */
.builder { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.builder-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--plum); color: #f3e9ee; border-radius: var(--radius-l); padding: 26px; }
.builder-summary h3 { color: #fff; }
.builder-summary dl { margin: 0 0 20px; display: grid; gap: 10px; }
.builder-summary dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .15); padding-bottom: 10px; }
.builder-summary dt { color: #cdb8c2; }
.builder-summary dd { margin: 0; font-weight: 600; text-align: right; color: #fff; }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .96rem; background: #fff; transition: all .15s; }
.seg input:checked + label { border-color: var(--rose); background: var(--rose-soft); color: var(--rose-600); font-weight: 600; }
.seg input:focus-visible + label { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ---------- Prose (articles) ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.prose { max-width: 740px; font-size: 1.075rem; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--gold-2); background: var(--gold-soft); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose .table-wrap table { margin: 0; min-width: 520px; }
.tldr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 28px; box-shadow: var(--shadow-s); }
.tldr strong:first-child { display: block; color: var(--rose); margin-bottom: 6px; }
.tldr ul { margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc h2 { font-size: 1rem; font-family: var(--font-sans); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .95rem; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--rose); }
.aside-cta { margin-top: 16px; background: var(--plum); color: #f3e9ee; border-radius: var(--radius); padding: 20px; }
.aside-cta strong { display: block; color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.aside-cta p { font-size: .94rem; color: #d6c3cc; }
@media (max-width: 960px) { .toc { position: static; } }

.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; background: var(--surface-2); }
.post-card .post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.post-card .more { margin-top: auto; padding-top: 8px; color: var(--rose); font-weight: 600; font-size: .95rem; }

/* ---------- Founder ---------- */
.founder { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.founder .avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--rose)); color: #fff; font: 700 1.3rem var(--font-serif); flex: none; }
.founder strong { display: block; }
.founder span { color: var(--muted); font-size: .94rem; }
.section--dark .founder span { color: #cdb8c2; }

/* ---------- Footer ---------- */
.site-footer { background: #1f0d18; color: #cdb8c2; padding-block: 56px 28px; font-size: .96rem; }
.site-footer a { color: #e9dbe2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font: 700 1rem var(--font-sans); color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-name span { color: var(--gold-2); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #a38f99; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 247, 242, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding: 10px 12px; font-size: .98rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.note-box { background: var(--rose-soft); border-radius: var(--radius); padding: 16px 20px; color: var(--ink-2); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--gold-soft); color: var(--gold); }

@media print {
  .site-header, .mobile-cta, .site-footer, .cta-band, .toc, .aside-cta { display: none !important; }
  body { background: #fff; }
}
