/* ============================================================
   sinytraconnector.org — stylesheet
   Tokens → base → layout → components → sections → responsive
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --primary:      #FE785F;   /* Forge side / CTA */
  --primary-dark: #E8543A;
  --primary-soft: #FFF0EC;
  --secondary:    #010101;   /* ink */
  --tertiary:     #0483F0;   /* Fabric side / links */
  --tertiary-soft:#E8F3FE;
  --accent:       #F5F6F7;   /* surface */

  --ink:      #010101;
  --body:     #4B5158;
  --muted:    #767E87;
  --line:     #E4E7EA;
  --white:    #FFFFFF;
  --ok:       #1E9E6A;
  --warn:     #C9821B;

  --radius:    16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(1,1,1,.05), 0 2px 8px rgba(1,1,1,.04);
  --shadow-md: 0 4px 12px rgba(1,1,1,.05), 0 12px 32px rgba(1,1,1,.06);
  --shadow-lg: 0 10px 24px rgba(1,1,1,.06), 0 28px 64px rgba(1,1,1,.09);

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: 'Antonio', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .2px;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.9vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--tertiary); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--primary); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.15rem; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--tertiary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

section { padding: 84px 0; }
section.alt { background: var(--accent); }

.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }
.sec-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.eyebrow.blue { color: var(--tertiary); background: var(--tertiary-soft); }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn .ico {
  width: 18px; height: 18px; flex: 0 0 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(254,120,95,.32); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 26px rgba(254,120,95,.40); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #23262a; color: #fff; }

.btn-blue { background: var(--tertiary); color: #fff; box-shadow: 0 6px 18px rgba(4,131,240,.28); }
.btn-blue:hover { background: #036AC4; color: #fff; }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

.btn-sm { padding: 11px 18px; font-size: .88rem; }
.btn-lg { padding: 18px 34px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { display: inline-flex; }
.logo-text { font-family: var(--font-head); font-size: 1.32rem; line-height: 1; color: var(--ink); letter-spacing: .3px; }
.logo-text strong { font-weight: 700; }
.logo-text span { font-weight: 400; color: var(--primary); }
.logo-text--invert { color: #fff; }
.logo-text--invert span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  position: relative;
  font-size: .92rem; font-weight: 500; color: var(--body);
  padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width .22s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a:hover::after, .nav a.is-current::after { width: 100%; }
.nav-cta::after { display: none; }
.nav-cta, .nav-cta:hover { color: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 68px;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(4,131,240,.10), transparent 62%),
    radial-gradient(760px 380px at 4% 0%, rgba(254,120,95,.13), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--primary); }
.hero-lead { font-size: 1.09rem; color: var(--body); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 500; color: var(--muted); margin: 0; }
.hero-trust svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; }
.hero-visual .shot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

/* ---------- 7. Trust bar ---------- */
.trustbar { background: var(--ink); padding: 26px 0; }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.trustbar .tb-item { display: flex; align-items: baseline; gap: 9px; color: #fff; }
.trustbar .tb-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1; }
.trustbar .tb-lab { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 400; }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6DBE0; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--body); margin: 0; }

.card-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  margin-bottom: 18px;
}
.card-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .card-ico { background: var(--tertiary-soft); }
.card:nth-child(3n+2) .card-ico svg { stroke: var(--tertiary); }

/* ---------- 9. About ---------- */
.about-grid { display: grid; grid-template-columns: 500px 1fr; gap: 56px; align-items: center; }
.about-img {
  width: 100%; max-width: 500px; aspect-ratio: 1/1;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.about-img img, .about-img svg { width: 100%; height: 100%; object-fit: cover; }
.about-block { margin-bottom: 22px; }
.about-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.35rem; }
.about-block h3 svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.about-block p { font-size: .96rem; margin: 0; }

/* ---------- 10. Download ---------- */
.dl-panel {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  background: #fff;
}
.dl-main { padding: 44px; }
.dl-main h2 { margin-bottom: 10px; }
.dl-meta { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dl-meta li { margin: 0; background: #fff; padding: 13px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.dl-meta .k { color: var(--muted); }
.dl-meta .v { color: var(--ink); font-weight: 600; text-align: right; }

.dl-side { background: var(--ink); color: rgba(255,255,255,.78); padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; }
.dl-side h3 { color: #fff; font-size: 1.5rem; }
.dl-side p { font-size: .9rem; margin-bottom: 22px; }
.dl-side .btn + .btn { margin-top: 12px; }
.dl-side .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.dl-side .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.dl-note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 20px; }
.dl-note a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* ---------- 11. Steps / How it works ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 26px 82px;
  box-shadow: var(--shadow-sm);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.step:hover { border-color: var(--primary); transform: translateX(3px); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 26px; top: 24px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--primary);
}
.step h3 { font-size: 1.25rem; margin-bottom: 5px; }
.step p { font-size: .94rem; margin: 0; }
.step code, .inline-code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .85em; background: var(--accent); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; color: var(--ink);
}

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm);
  position: relative;
}
.flow-node .n {
  font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em;
  color: var(--tertiary); text-transform: uppercase; display: block; margin-bottom: 10px;
}
.flow-node h3 { font-size: 1.12rem; margin-bottom: 6px; }
.flow-node p { font-size: .87rem; margin: 0; }
.flow-node:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 50%;
  width: 8px; height: 8px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- 12. Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.compat { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compat th, table.compat td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.compat thead th {
  background: var(--accent); font-family: var(--font-head); font-size: 1rem;
  letter-spacing: .04em; color: var(--ink); font-weight: 600; text-transform: uppercase;
}
table.compat tbody tr:last-child td { border-bottom: 0; }
table.compat tbody tr:hover { background: #FCFCFD; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag-ok   { background: #E7F6EF; color: #157A51; }
.tag-part { background: #FDF3E2; color: #9A6510; }
.tag-no   { background: #FBEBE8; color: #B44430; }

/* ---------- 13. Pros & cons ---------- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pc-col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.pc-col h3 { display: flex; align-items: center; gap: 10px; }
.pc-col ul { list-style: none; padding: 0; margin: 0; }
.pc-col li { position: relative; padding-left: 30px; font-size: .94rem; margin-bottom: 12px; color: var(--body); }
.pc-col li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
}
.pc-pros { border-top: 3px solid var(--ok); }
.pc-pros li::before { background: #E7F6EF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E6A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.pc-cons { border-top: 3px solid var(--primary); }
.pc-cons li::before { background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FE785F' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/9px no-repeat; }

/* ---------- 14. Use cases ---------- */
.uc { border-left: 3px solid var(--tertiary); padding: 4px 0 4px 24px; }
.uc h3 { font-size: 1.2rem; margin-bottom: 6px; }
.uc p { font-size: .93rem; margin: 0; }

/* ---------- 15. Troubleshooting ---------- */
.trouble { display: grid; gap: 16px; }
.tr-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.tr-item h3 { font-size: 1.14rem; margin-bottom: 6px; }
.tr-item p { font-size: .93rem; margin: 0; }
.tr-item .fix { display: block; margin-top: 8px; font-size: .9rem; color: var(--ink); }
.tr-item .fix strong { color: var(--ok); font-weight: 600; }

/* ---------- 16. Reviews ---------- */
.rev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.rev:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 2px; margin-bottom: 12px; }
.stars svg { width: 15px; height: 15px; fill: var(--primary); stroke: none; }
.rev p { font-size: .94rem; color: var(--body); margin-bottom: 16px; }
.rev-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1rem; color: #fff; background: var(--ink);
}
.rev-who b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; line-height: 1.3; }
.rev-who span { font-size: .78rem; color: var(--muted); }

/* ---------- 17. FAQ ---------- */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.faq-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.faq-cat-head .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); flex: 0 0 42px; }
.faq-cat-head .fi svg { width: 21px; height: 21px; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.faq-cat-head h3 { margin: 0; font-size: 1.4rem; }
.faq-cat-head span { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--muted); font-weight: 400; }
.faq-cols > div:nth-child(2) .faq-cat-head .fi { background: var(--tertiary-soft); }
.faq-cols > div:nth-child(2) .faq-cat-head .fi svg { stroke: var(--tertiary); }

.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.acc-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .94rem; font-weight: 500; color: var(--ink);
  padding: 16px 46px 16px 18px; position: relative; line-height: 1.5;
}
.acc-q::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease), border-color .2s;
}
.acc-item.open .acc-q::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--primary); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-a p { padding: 0 18px 16px; font-size: .9rem; color: var(--body); margin: 0; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { font-size: .88rem; margin: 16px 0 18px; max-width: 380px; }
.footer-col h3 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; letter-spacing: .06em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .89rem; }
.footer-col a:hover { color: var(--primary); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .72rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px; text-align: center; }
.footer-bottom p { font-size: .85rem; margin: 0; }
.footer-bottom a { color: var(--primary); font-weight: 600; }
.footer-note { font-size: .76rem !important; color: rgba(255,255,255,.4); margin-top: 8px !important; }

/* ---------- 19. Scroll to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--primary);
  box-shadow: 0 6px 20px rgba(254,120,95,.4);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 20. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 21. Page hero (inner pages) ---------- */
.page-hero { background: var(--accent); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .82rem; }
.crumbs li { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; color: #C7CCD1; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* ---------- 22. Prose (legal + post body) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 44px; font-size: 1.9rem; }
.prose h3 { margin-top: 30px; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { font-size: 1rem; }
.prose figure { margin: 34px 0; }
.prose figure img, .prose figure svg { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prose figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }
.callout { background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 18px 22px; margin: 28px 0; }
.callout p { font-size: .94rem; margin: 0; }
.callout strong { color: var(--ink); }

/* ---------- 23. Blog / post layout ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 56px; align-items: start; padding: 60px 0 84px; }
.post-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); margin-bottom: 34px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.post-meta .cat { color: var(--primary); font-weight: 600; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 1.15rem; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { margin-bottom: 10px; font-size: .89rem; line-height: 1.5; }
.side-card li a { color: var(--body); }
.side-card li a:hover { color: var(--primary); }
.side-promo { background: var(--ink); border-color: var(--ink); text-align: center; }
.side-promo h3 { color: #fff; }
.side-promo p { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 18px; }
.toc { counter-reset: toc; }
.toc li { padding-left: 26px; position: relative; }
.toc li::before { counter-increment: toc; content: counter(toc); position: absolute; left: 0; top: 0; font-family: var(--font-head); font-size: .8rem; color: var(--primary); font-weight: 700; }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: .89rem; color: var(--body); margin: 0 0 16px; }
.post-card .more { margin-top: auto; font-size: .84rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.post-card .more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 24. CTA strip ---------- */
.cta-strip { background: var(--ink); border-radius: var(--radius-lg); padding: 52px 44px; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.66); max-width: 560px; margin: 0 auto 26px; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img { max-width: 420px; margin-inline: auto; }
  .dl-panel { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-node:nth-child(2)::after { display: none; }
  .post-layout { grid-template-columns: 1fr; gap: 44px; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 22px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 14px 2px; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; }
  .g-3, .g-2, .pc, .faq-cols { grid-template-columns: 1fr; }
  .faq-cols { gap: 34px; }
}

@media (max-width: 620px) {
  section { padding: 60px 0; }
  .hero { padding: 48px 0 54px; }
  .flow { grid-template-columns: 1fr; }
  .flow-node::after { display: none !important; }
  .dl-main, .dl-side { padding: 30px 24px; }
  .dl-meta { grid-template-columns: 1fr; }
  .trustbar .wrap { justify-content: flex-start; gap: 18px 28px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 40px 24px; }
  .hero-cta .btn { width: 100%; }
  .step { padding: 22px 20px 22px 20px; }
  .step::before { position: static; display: block; margin-bottom: 4px; }
}

/* ---------- 26. Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 27. Print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .sidebar { display: none; }
}

/* Header download CTA — keep button styles from being overridden by generic nav links */
.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(254,120,95,.30);
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible,
.nav a.nav-cta.is-current {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgba(254,120,95,.38);
}
.nav a.nav-cta .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 880px) {
  .nav a.nav-cta {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
  }
}
