/* PostaraMail marketing site — design system (Phase 13, step 1)
   Ink + signal orange from the logo, on plain white paper.
   Display: Bricolage Grotesque (variable). Text: Instrument Sans. */

@font-face {
  font-family: 'Bricolage';
  src: url('/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face { font-family: 'Instrument'; src: url('/instrument-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/instrument-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/instrument-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #14161f;
  --orange: #ff6a0d;
  --orange-deep: #e5590a;
  --orange-text: #c24700;   /* orange that passes contrast on white */
  --envelope: #fff1e6;      /* light orange tint for panels */
  --paper: #ffffff;
  --slate: #5a6070;
  --rule: #e6e7ec;
  --mist: #f5f6f8;
  --display: 'Bricolage', 'Instrument', system-ui, sans-serif;
  --text: 'Instrument', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site img, .site svg { max-width: 100%; height: auto; }
.site a { color: var(--orange-text); text-underline-offset: 3px; }
.site a:focus-visible, .site button:focus-visible, .site input:focus-visible, .site summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Type scale (1.25 ratio, display tightened) ---------- */
.site h1, .site h2, .site h3 { font-family: var(--display); color: var(--ink); margin: 0; }
.site h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 750; letter-spacing: -0.035em; font-variation-settings: 'wdth' 88; }
.site h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; font-weight: 720; letter-spacing: -0.028em; }
.site h3 { font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -0.012em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 34em; margin: 20px 0 0; }
.section-intro { color: var(--slate); max-width: 36em; margin: 14px 0 0; }

/* ---------- Buttons ---------- */
.btn-main, .btn-quiet, .btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; border: 0;
  transition: background .15s ease, transform .1s ease;
}
.site .btn-main { background: var(--orange); color: var(--ink); }
.site .btn-main:hover { background: var(--orange-deep); }
.site .btn-main:active { transform: translateY(1px); }
.site .btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.site .btn-quiet:hover { background: var(--mist); }
.site .btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.fine { font-size: 14px; color: var(--slate); margin-top: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-logo img { height: 26px; width: auto; display: block; }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site .site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site .site-nav a:hover { color: var(--orange-text); }
.site-actions { display: flex; gap: 10px; align-items: center; }
.site .site-actions .login { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 0 8px; }
.site-actions .btn-main { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span, .mobile-nav summary span::before, .mobile-nav summary span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ''; }
.mobile-nav summary span::before { position: absolute; top: -6px; }
.mobile-nav summary span::after { position: absolute; top: 6px; }
.mobile-panel { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--rule); padding: 12px 24px 24px; display: grid; gap: 4px; box-shadow: 0 12px 24px rgba(20,22,31,.08); }
.site .mobile-panel a { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mobile-panel .btn-main { margin-top: 14px; border-bottom: 0; }

@media (max-width: 860px) {
  .site-nav, .site-actions { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero-art { position: relative; }
.hero-art::before { content: ''; position: absolute; inset: 8% -30% -10% 12%; background: var(--envelope); border-radius: 48px 48px 48px 160px; z-index: -1; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art::before { inset: 10% -40% -8% 20%; }
}

/* ---------- Sections ---------- */
.band { padding: 96px 0; }
.band-tight { padding: 64px 0; }
.band-mist { background: var(--mist); }
@media (max-width: 700px) { .band { padding: 64px 0; } .band-tight { padding: 48px 0; } }

/* Use-case picker */
.picker { margin-top: 40px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.picker-tabs { display: grid; gap: 6px; }
.picker-tabs button {
  text-align: left; font: 600 17px/1.2 var(--text); color: var(--slate); background: transparent;
  border: 0; border-left: 3px solid var(--rule); padding: 14px 16px; cursor: pointer;
}
.picker-tabs button[aria-selected="true"] { color: var(--ink); border-left-color: var(--orange); background: #fff; }
.picker-panel { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.picker-panel h3 { margin-bottom: 8px; }
.mock-email { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; font-size: 15px; background: #fff; }
.mock-email .subj { padding: 14px 16px; border-bottom: 1px solid var(--rule); font-weight: 600; }
.mock-email .subj small { display: block; color: var(--slate); font-weight: 400; font-size: 13px; }
.mock-email p { margin: 0; padding: 14px 16px; color: var(--slate); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; padding: 0 0 18px 26px; font-size: 15px; }
.flow li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.flow li::after { content: ''; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 2px; background: var(--rule); }
.flow li:last-child::after { display: none; }
.flow .wait { color: var(--slate); font-size: 13px; display: block; }
.plan-hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; }
.plan-hint strong { font-family: var(--display); font-size: 22px; }
@media (max-width: 900px) {
  .picker { grid-template-columns: 1fr; gap: 16px; }
  .picker-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .picker-tabs button { border-left: 0; border-radius: 999px; background: #fff; border: 1.5px solid var(--rule); padding: 10px 16px; font-size: 15px; }
  .picker-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
  .picker-panel { grid-template-columns: 1fr; padding: 22px; }
}

/* How it works: a real sequence, so it gets numbers */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: 700 56px/1 var(--display); color: var(--orange); letter-spacing: -0.04em; margin-bottom: 14px; }
.steps p { color: var(--slate); margin: 8px 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Features: one lead feature, then a compact list */
.feature-lead { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--envelope); border-radius: 28px; padding: 44px; }
.feature-lead p { color: var(--slate); }
.ai-demo { background: #fff; border-radius: 16px; padding: 20px; font-size: 15px; box-shadow: 0 1px 0 var(--rule); }
.ai-demo .prompt { color: var(--slate); border-bottom: 1px dashed var(--rule); padding-bottom: 12px; margin-bottom: 12px; }
.ai-demo .prompt b { color: var(--ink); font-weight: 600; }
.ai-demo .out b { display: block; margin-bottom: 6px; }
.feature-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-list div { position: relative; padding-left: 46px; }
.feature-list svg { position: absolute; left: 0; top: 0; width: 28px; height: 28px; color: var(--orange-text); }
.feature-list h3 { font-size: 18px; }
.feature-list p { margin: 4px 0 0; color: var(--slate); font-size: 15px; }
@media (max-width: 900px) {
  .feature-lead { grid-template-columns: 1fr; padding: 26px; border-radius: 22px; }
  .feature-list { grid-template-columns: 1fr; gap: 24px; }
}

/* Price calculator */
.calc { margin-top: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; }
.calc-input { padding: 36px; }
.calc-input label { font-weight: 600; display: block; }
.calc-count { font: 700 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -0.04em; margin: 12px 0 18px; }
.calc-count small { font: 500 17px var(--text); color: var(--slate); letter-spacing: 0; }
.calc input[type=range] { width: 100%; accent-color: var(--orange); height: 28px; }
.calc-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate); }
.calc-out { background: var(--ink); color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.calc-out .calc-plan { color: #c9ccd6; font-size: 15px; }
.calc-out .price { font: 700 56px/1 var(--display); letter-spacing: -0.04em; margin: 8px 0; color: #fff; }
.calc-out .price small { font: 500 17px var(--text); color: #c9ccd6; letter-spacing: 0; }
.calc-out .meta { color: #c9ccd6; font-size: 15px; margin: 0 0 20px; }
.calc-out .btn-main { align-self: flex-start; }
@media (max-width: 800px) {
  .calc { grid-template-columns: 1fr; }
  .calc-input, .calc-out { padding: 26px; }
}

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.trust div { border-left: 2px solid var(--orange); padding-left: 16px; }
.trust strong { display: block; font-weight: 600; }
.trust span { color: var(--slate); font-size: 15px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 600 19px/1.35 var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 400 28px/1 var(--display); color: var(--orange-text); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 22px; color: var(--slate); max-width: 44em; }

/* Closing band */
.closing { background: var(--ink); color: #fff; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.site .closing h2 { color: #fff; }
.closing p { color: #c9ccd6; margin: 14px 0 0; }
.closing .cta-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 800px) { .closing { grid-template-columns: 1fr; padding: 36px 26px; border-radius: 24px; } .closing .cta-row { justify-content: flex-start; } }

/* ---------- Pricing page ---------- */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 13em; }
.billing-toggle { display: inline-flex; margin-top: 28px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 4px; gap: 4px; }
.billing-toggle button { border: 0; background: transparent; font: 600 15px/1 var(--text); padding: 11px 16px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
.plan { padding: 28px 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; background: #fff; }
.plan:last-child { border-right: 0; }
.plan.popular { background: var(--envelope); }
.plan .tag { font-size: 13px; font-weight: 600; color: var(--orange-text); min-height: 20px; }
.plan h2 { font-size: 24px; margin-top: 4px; }
.plan .who { color: var(--slate); font-size: 14px; margin: 6px 0 18px; min-height: 42px; }
.plan .amount { font: 700 44px/1 var(--display); letter-spacing: -0.04em; }
.plan .amount small { font: 500 15px var(--text); color: var(--slate); letter-spacing: 0; }
.plan .billed { font-size: 13px; color: var(--slate); min-height: 20px; margin: 6px 0 18px; }
.plan .limits { font-size: 15px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.plan .limits div + div { margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; display: grid; gap: 8px; }
.plan > ul { flex: 1; align-content: start; }
.soon-list { font-size: 13px; color: var(--slate); margin: 0 0 20px; }
.soon-list summary { cursor: pointer; color: var(--orange-text); font-weight: 600; margin-bottom: 10px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--orange-text); border-bottom: 2px solid var(--orange-text); transform: rotate(-45deg); }
.plan li.soon { color: var(--slate); }
.plan li.soon::before { border-color: var(--rule); }
.plan li.soon em { font-style: normal; font-size: 12px; background: var(--mist); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.plan form { margin: 0; }
.plan .btn-main, .plan .btn-quiet { width: 100%; }
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); border: 0; gap: 14px; overflow: visible; }
  .plan { border: 1px solid var(--rule); border-radius: 20px; }
  .plan:last-child { border-right: 1px solid var(--rule); }
}
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } .plan .who { min-height: 0; } }

.compare-wrap { margin-top: 36px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.compare th, table.compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule); }
table.compare thead th { font: 650 16px var(--display); position: sticky; top: 0; background: #fff; }
table.compare tbody th { font-weight: 500; color: var(--slate); }
table.compare .yes { color: var(--orange-text); font-weight: 600; }
table.compare .no { color: #9aa0ad; }

/* ---------- Legal / long text ---------- */
.prose { max-width: 720px; padding: 56px 0 88px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); }
.prose .updated { color: var(--slate); margin: 14px 0 36px; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose p, .prose li { color: #2a2d38; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ccd6; margin-top: 40px; padding: 72px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 32px; }
.footer-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin: 16px 0 0; max-width: 22em; }
.footer-col h2 { font: 600 15px var(--text); color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site .footer-col a, .site .footer-bottom a { color: #c9ccd6; text-decoration: none; }
.site .footer-col a:hover, .site .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2a2e3b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan .btn-main, .plan .btn-quiet { padding: 0 12px; font-size: 15px; white-space: nowrap; }

/* ===================== Step 2: inner pages ===================== */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--slate); padding-top: 24px; }
.site .crumbs a { color: var(--slate); text-decoration: none; }
.site .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.hero-sub { padding: 40px 0 72px; }
.hero-sub h1 { font-size: clamp(36px, 5vw, 60px); max-width: 14em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse > div:first-child { order: 2; }
.split-p { color: var(--slate); max-width: 34em; margin: 16px 0 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split-reverse > div:first-child { order: 0; } }

.points { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.points > div { border-top: 1px solid var(--rule); padding-top: 18px; }
.points h3 { font-size: 18px; }
.points p { color: var(--slate); font-size: 15px; margin: 6px 0 0; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }

.flow-card, .price-card { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 28px; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.price-row small { color: var(--slate); }
.price-num { font: 700 32px/1 var(--display); letter-spacing: -0.03em; }
.price-num small { font: 500 14px var(--text); }
.price-card > a { display: inline-block; margin-top: 16px; font-weight: 600; }

.tpl-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site a.tpl-card { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.site a.tpl-card:hover { border-color: var(--ink); }
.tpl-card h2, .tpl-card h3 { font-size: 19px; margin: 8px 0 6px; }
.tpl-card p { color: var(--slate); font-size: 15px; margin: 0; }
.tpl-cat { display: inline-block; font-size: 12px; font-weight: 600; color: var(--orange-text); background: var(--envelope); padding: 3px 9px; border-radius: 999px; }
.tpl-subj { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--slate); }
.tpl-card[hidden] { display: none; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: 1fr; } }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--text); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tpl-show { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.tpl-preview { background: #fff; }
.tpl-preview pre { margin: 0; padding: 18px; white-space: pre-wrap; word-wrap: break-word; font: 400 16px/1.65 var(--text); color: var(--ink); }
.tpl-show .cta-row { margin-top: 20px; }
.tpl-show form { margin: 0; }
.tpl-side { background: var(--mist); border-radius: 20px; padding: 28px; }
.tpl-side h2 { font-size: 18px; margin: 0 0 8px; }
.tpl-side h2 + p, .tpl-side ul { margin: 0 0 22px; color: var(--slate); font-size: 15px; }
.tpl-side ul { padding-left: 18px; }
.tpl-side code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: 14px; }
@media (max-width: 860px) { .tpl-show { grid-template-columns: 1fr; gap: 28px; } }

.plan-strip { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.plan-strip-price { background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: 28px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-strip-price span { font: 700 56px/1 var(--display); letter-spacing: -0.04em; }
.plan-strip-price small { color: var(--slate); margin-right: auto; }
@media (max-width: 760px) { .plan-strip { grid-template-columns: 1fr; } }

/* Header dropdowns */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav-drop[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-menu { position: absolute; top: calc(100% + 18px); left: -18px; min-width: 280px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 10px; box-shadow: 0 16px 40px rgba(20,22,31,.12); display: grid; }
.site .nav-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.site .nav-menu a:hover { background: var(--mist); color: var(--ink); }
.nav-menu small { display: block; color: var(--slate); font-weight: 400; font-size: 13px; margin-top: 2px; }
.mobile-panel .mobile-group { font-size: 13px; font-weight: 600; color: var(--slate); margin: 14px 0 0; }

/* ===================== Template articles ===================== */
.read-progress { position: sticky; top: 68px; z-index: 40; height: 3px; background: transparent; }
.read-progress span { display: block; height: 3px; width: 0; background: var(--orange); }
.art-head { padding: 28px 0 8px; max-width: 820px; }
.art-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.art-meta { color: var(--slate); font-size: 14px; margin: 16px 0 0; line-height: 1.7; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; margin-top: 24px; }
.art-main { max-width: 720px; }
.art-p { color: #2a2d38; margin: 0 0 18px; }
.takeaways { background: var(--envelope); border-radius: 18px; padding: 22px 26px; margin-bottom: 28px; }
.takeaways h2 { font-size: 19px; margin-bottom: 8px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin: 6px 0; }
.art-section { margin-top: 44px; scroll-margin-top: 90px; }
.art-section h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.art-section h3 { font-size: 19px; margin: 22px 0 6px; }
.answer { font-size: 18px; line-height: 1.6; border-left: 3px solid var(--orange); padding: 2px 0 2px 16px; margin: 0 0 18px; color: var(--ink); }
.art-steps, .art-list { padding-left: 22px; }
.art-steps li, .art-list li { margin: 10px 0; color: #2a2d38; }
.art-sources { font-size: 14px; color: var(--slate); }
.art-cta { margin: 36px 0 0; padding: 22px 24px; border: 1.5px solid var(--ink); border-radius: 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.art-cta p { margin: 0; max-width: 30em; }
.use-form { margin: 0; }
.insight { margin-top: 44px; background: var(--ink); color: #e6e7ec; border-radius: 22px; padding: 28px; }
.site .insight h2 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.insight p { margin: 0 0 10px; }
.insight-by { color: #c9ccd6; font-size: 14px; }
.faq-tight { margin-top: 8px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; padding: 22px; border: 1px solid var(--rule); border-radius: 18px; }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 0; color: var(--slate); font-size: 15px; }
.author-box .author-name { font-weight: 600; margin-bottom: 4px; }
.art-sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.preview-frame { max-height: 520px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 18px; background: var(--mist); }
.preview-frame img { display: block; width: 100%; height: auto; }
.art-figure { margin: 0; }
.art-figure-mobile { display: none; margin: 8px 0 24px; }
.art-figure-mobile img { width: 100%; border-radius: 16px; border: 1px solid var(--rule); max-height: 640px; object-fit: cover; object-position: top; }
.art-figure figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.art-sticky .btn-main { width: 100%; }
.toc { border-top: 1px solid var(--rule); padding-top: 12px; }
.toc-title { font-weight: 600; margin: 0 0 6px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin: 6px 0; }
.site .toc a { color: var(--slate); text-decoration: none; }
.site .toc a:hover { color: var(--ink); }
@media (max-width: 960px) {
  .art-grid { grid-template-columns: 1fr; gap: 0; }
  .art-side { display: none; }
  .art-figure-mobile { display: block; }
}
.tpl-grid-4 { grid-template-columns: repeat(4, 1fr); }
.site a.tpl-card-img { padding: 0 0 18px; overflow: hidden; }
.tpl-card-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.tpl-card-img .tpl-cat, .tpl-card-img h2, .tpl-card-img h3, .tpl-card-img p { margin-left: 18px; margin-right: 18px; }
.chip-links { margin-bottom: 8px; }
.site a.chip { text-decoration: none; }
.site a.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 1000px) { .tpl-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tpl-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .tpl-grid-4 { grid-template-columns: 1fr; } }

/* ===================== Step 3: contact & forms ===================== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding: 56px 0 72px; align-items: start; }
.contact-grid h1 { font-size: clamp(36px, 5vw, 56px); }
.site-form { margin-top: 24px; display: grid; gap: 6px; max-width: 560px; }
.site-form label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.site-form input, .site-form select, .site-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 10px; font: 400 16px var(--text); color: var(--ink); background: #fff; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus { border-color: var(--ink); outline: none; }
.site-form .btn-main { margin-top: 16px; justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-ok, .form-err { margin-top: 20px; padding: 14px 16px; border-radius: 12px; }
.form-ok { background: #ecfdf3; color: #14532d; }
.form-err { background: #fef2f2; color: #991b1b; }
.contact-side { background: var(--mist); border-radius: 22px; padding: 28px; }
.contact-side h2 { font-size: 20px; margin-bottom: 14px; }
.contact-side p { margin: 0 0 16px; color: var(--slate); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 56px; } }
.legal-notes { margin-top: 36px; padding: 20px 22px; background: var(--mist); border-radius: 16px; font-size: 14px; color: var(--slate); }
.legal-notes p { margin: 0 0 10px; }
.legal-notes p:last-child { margin: 0; }

/* ===================== Blog ===================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 16px 0 24px; }
.site a.post-card { display: block; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; padding-bottom: 20px; }
.site a.post-card:hover { border-color: var(--ink); }
.post-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.post-card .tpl-cat, .post-card h2, .post-card h3, .post-card p, .post-card .post-date { margin-left: 20px; margin-right: 20px; }
.post-card h2, .post-card h3 { font-size: 20px; margin-top: 10px; margin-bottom: 6px; }
.post-card p { color: var(--slate); font-size: 15px; margin-top: 0; }
.post-date { display: block; font-size: 13px; color: var(--slate); }
.post-card-lead { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1.2fr 1fr; align-items: center; padding-bottom: 0 !important; }
.post-card-lead img { margin: 0; border: 0; height: 100%; }
.post-card-lead h2 { font-size: clamp(24px, 3vw, 34px); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-card-lead { grid-template-columns: 1fr; padding-bottom: 20px !important; } .post-card-lead img { margin-bottom: 14px; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-cover { margin: 18px 0 0; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; display: block; }
.post-body > p, .post-body li { color: #2a2d38; }
.post-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 44px 0 14px; scroll-margin-top: 90px; }
.post-body h3 { font-size: 20px; margin: 26px 0 8px; scroll-margin-top: 90px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 8px 0; }
.post-body code { background: var(--mist); padding: 1px 6px; border-radius: 5px; font-size: 15px; }
.post-body hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
.post-figure { margin: 28px 0; }
.post-figure img { width: 100%; border-radius: 16px; display: block; border: 1px solid var(--rule); }
.post-figure figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.post-table { overflow-x: auto; margin: 22px 0; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.post-table th, .post-table td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.post-table th { font-family: var(--display); }
.newsletter { margin-top: 36px; background: var(--envelope); border-radius: 20px; padding: 26px; }
.newsletter h2 { font-size: 22px; margin-bottom: 12px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-form input[type=email] { flex: 1 1 220px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 10px; font: 16px var(--text); }
.nl-consent { flex-basis: 100%; font-size: 14px; color: var(--slate); display: flex; gap: 8px; align-items: flex-start; }
.post-body .takeaways h2 { margin: 0 0 8px; font-size: 19px; }
.post-body .newsletter h2 { margin: 0 0 12px; font-size: 22px; }
.post-body .art-section h2 { margin-top: 0; }
.post-card-lead .post-text { padding: 28px 8px; }
.post-card .tpl-cat { margin-top: 2px; }
/* Let the sidebar column span the full article height so the TOC stays sticky. */
.art-grid > .art-side { align-self: stretch; }
.api-doc pre { background: var(--ink); color: #e6e7ec; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 12px 0 20px; }
.api-doc pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.api-doc h3 { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; }

/* Mobile fix: stop wide code blocks and tables from stretching the page.
   A plain 1fr column grows to fit its widest child; minmax(0, 1fr) lets
   the column shrink so long lines scroll inside their own box instead. */
.art-main, .art-grid > * { min-width: 0; }
.api-doc pre { max-width: 100%; white-space: pre; -webkit-overflow-scrolling: touch; }
.api-doc code { overflow-wrap: anywhere; }
.api-doc pre code { overflow-wrap: normal; }
.post-table { max-width: 100%; }
@media (max-width: 960px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .api-doc pre, .api-doc pre code { font-size: 12.5px; }
  .api-doc pre { padding: 14px; border-radius: 12px; }
  .post-table table { min-width: 0; }
}
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 36px; }
.site a.res-card { display: block; padding: 22px; border: 1px solid var(--rule); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; }
.site a.res-card:hover { border-color: var(--ink); }
.res-card h2 { font-size: 20px; margin: 10px 0 6px; }
.res-card p { margin: 0; color: var(--slate); font-size: 15px; }
.faq-page h2 { margin-top: 36px; font-size: 26px; }
.footer-permission { font-size: 13px; color: #9aa0ad; margin-top: 10px; }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } }
/* Longer positioning headline: keep it bold but not overwhelming. */
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; }

/* ---- Tutorials and glossary (moved here: the public pages load site.css, not style.css) ---- */
/* Tutorials */
.tut-search { width: 100%; max-width: 520px; padding: 12px 16px; border: 1.5px solid var(--rule); border-radius: 12px; font-size: 16px; margin-top: 8px; }
.tut-group { margin: 30px 0 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.tut { max-width: 980px; margin: 0 auto; }
.tut-head h1 { margin: 6px 0 8px; } .tut-toc { margin: 14px 0 6px; font-size: 14px; } .tut-toc summary { cursor: pointer; font-weight: 600; } .tut-toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.tut-step { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding: 26px 0; border-top: 1px solid var(--rule); }
.tut-step h2 { font-size: 20px; margin: 0 0 8px; display: flex; gap: 12px; align-items: center; }
.tut-n { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.tut-text p { margin: 0 0 10px; line-height: 1.65; font-size: 16px; }
.tut-tip { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 14px; font-size: 14.5px !important; }
.tut-shot { margin: 0; text-align: center; }
.tut-shot img { width: 100%; max-width: 300px; height: auto; border-radius: 20px; border: 6px solid #14161f; box-shadow: 0 10px 30px rgba(20,22,31,.18); background: #fff; }
.tut-shot figcaption { font-size: 12.5px; color: var(--slate); margin-top: 8px; }
.tut-tips { background: #f6f7f9; border-radius: 16px; padding: 14px 20px; margin: 10px 0 20px; } .tut-tips h2 { font-size: 17px; margin: 0 0 6px; } .tut-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tut-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; } .tut-nav a { padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--ink); } .tut-nav .tut-next { background: var(--orange); border-color: var(--orange); }
.gloss dt { font-weight: 700; margin-top: 16px; } .gloss dd { margin: 4px 0 0; color: #3b4150; line-height: 1.6; }
@media (max-width: 760px) { .tut-step { grid-template-columns: 1fr; gap: 14px; } .tut-shot img { max-width: 260px; } }
.tut-hosts { border-top: 1px solid var(--rule); padding: 26px 0; } .tut-hosts h2 { font-size: 20px; margin: 0 0 8px; }
.tut-general { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.tut-host { border: 1px solid var(--rule); border-radius: 12px; background: #fff; margin: 0 0 8px; padding: 0 16px; }
.tut-host summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.tut-host[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: 10px; }
.tut-host ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; } .tut-where { margin: 0 0 8px; font-size: 14.5px; }
