/* Public site. Same palette and typeface as the panel (brand «moadiyar»: #007aad / #003974 / #004a8f / #009fda, Vazirmatn).
   No inline styles anywhere (the host's CSP is style-src 'self'); everything the pages need is in this file. */
@font-face { font-family: "Vazirmatn"; src: url("/brand/fonts/Vazirmatn-Regular.woff2?v=fa1") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/brand/fonts/Vazirmatn-Medium.woff2?v=fa1") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/brand/fonts/Vazirmatn-SemiBold.woff2?v=fa1") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/brand/fonts/Vazirmatn-Bold.woff2?v=fa1") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #007aad; --primary-dark: #006a96; --navy: #003974; --navy-2: #004a8f; --sky: #009fda;
  --ink: #1b2533; --muted: #4b5a6d; --line: #d9e1ea; --bg-alt: #f3f6f9; --card: #fff; --warn-bg: #fff4e3; --warn-ink: #6b4200;
  --radius: 10px; --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 17px; line-height: 1.95; color: var(--ink); background: #fff; overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.5; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.text-center { text-align: center; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }

.test-banner { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-size: .9rem; padding: 8px 16px; border-bottom: 1px solid #f0d9ad; line-height: 1.7; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.15rem; margin-inline-end: auto; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { background: var(--bg-alt); color: var(--navy); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 30, 70, .14); padding: 8px; display: grid; }
.menu-list a { padding: 12px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.menu-list a:hover { background: var(--bg-alt); }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } .brand { margin-inline-end: 0; } .bar { gap: 24px; } .nav { margin-inline-end: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e8f1f8; color: var(--navy); }

/* hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 48px 0 56px; }
.hero h1, .hero .lead { color: #fff; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: 0; padding: 2px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-note { font-size: .9rem; color: #d3e3f3; margin: 0; }
@media (min-width: 960px) { .hero { padding: 72px 0; } .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

/* screenshot frame (a plain window outline; the image is a real screenshot of the panel) */
.frame { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 30, 70, .18); }
.frame-bar { display: flex; gap: 6px; padding: 8px 12px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #b9c4d0; }
.frame img { width: 100%; }

/* sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--muted); margin-bottom: 1.6em; }
.more { margin-top: 1.4em; font-weight: 600; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card h2, .card h3 { margin-bottom: .4em; }
.link-card { display: block; text-decoration: none; color: inherit; }
.link-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0, 60, 110, .1); }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #e5f2f9; color: var(--navy); font-size: 1.3rem; margin-bottom: 12px; }

/* feature tour: radio buttons pick the screenshot; no script */
.tour { margin-bottom: 32px; }
.tour-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.tour-tabs label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .15s; }
.tour-tabs label i { font-size: 1.1rem; }
.tour-tabs label:hover { border-color: var(--primary); }
.tour-tabs label:active { transform: scale(.97); }
#tour-0:checked ~ .tour-tabs label[for="tour-0"], #tour-1:checked ~ .tour-tabs label[for="tour-1"], #tour-2:checked ~ .tour-tabs label[for="tour-2"], #tour-3:checked ~ .tour-tabs label[for="tour-3"], #tour-4:checked ~ .tour-tabs label[for="tour-4"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(0, 57, 116, .25); }
#tour-0:focus-visible ~ .tour-tabs label[for="tour-0"], #tour-1:focus-visible ~ .tour-tabs label[for="tour-1"], #tour-2:focus-visible ~ .tour-tabs label[for="tour-2"], #tour-3:focus-visible ~ .tour-tabs label[for="tour-3"], #tour-4:focus-visible ~ .tour-tabs label[for="tour-4"] { outline: 3px solid var(--sky); outline-offset: 2px; }
.tour-panel { display: none; gap: 20px; align-items: center; }
#tour-0:checked ~ .tour-panels .tour-panel:nth-child(1), #tour-1:checked ~ .tour-panels .tour-panel:nth-child(2), #tour-2:checked ~ .tour-panels .tour-panel:nth-child(3), #tour-3:checked ~ .tour-panels .tour-panel:nth-child(4), #tour-4:checked ~ .tour-panels .tour-panel:nth-child(5) { display: grid; }
#tour-0:checked ~ .tour-panels .tour-panel:nth-child(1) .tour-text, #tour-1:checked ~ .tour-panels .tour-panel:nth-child(2) .tour-text, #tour-2:checked ~ .tour-panels .tour-panel:nth-child(3) .tour-text, #tour-3:checked ~ .tour-panels .tour-panel:nth-child(4) .tour-text, #tour-4:checked ~ .tour-panels .tour-panel:nth-child(5) .tour-text { animation: tour-text .45s ease-out both; }
#tour-0:checked ~ .tour-panels .tour-panel:nth-child(1) .frame, #tour-1:checked ~ .tour-panels .tour-panel:nth-child(2) .frame, #tour-2:checked ~ .tour-panels .tour-panel:nth-child(3) .frame, #tour-3:checked ~ .tour-panels .tour-panel:nth-child(4) .frame, #tour-4:checked ~ .tour-panels .tour-panel:nth-child(5) .frame { animation: tour-frame .55s cubic-bezier(.2, .7, .2, 1) both; }
.tour-text h3 { margin-bottom: .4em; }
.tour-text p { margin: 0; color: var(--muted); }
@keyframes tour-text { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tour-frame { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .tour-tabs { gap: 6px; } .tour-tabs label { padding: 0 12px; font-size: .9rem; gap: 6px; } .tour-panel .frame { order: -1; } }
@media (min-width: 900px) { .tour-panel { grid-template-columns: 1fr 1.6fr; gap: 40px; } .tour-tabs { margin-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .tour-panel .tour-text, .tour-panel .frame { animation: none !important; } .tour-tabs label { transition: none; } }
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat-grid li { transition: transform .2s, box-shadow .2s, border-color .2s; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.feat-grid li:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 60, 110, .1); }
.feat-grid .ico { grid-row: span 2; margin: 0; }
.feat-grid span:not(.ico) { color: var(--muted); font-size: .95rem; line-height: 1.7; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps li::before { content: counter(s, persian); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.steps strong { color: var(--navy); }
.steps span { color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps li { grid-template-columns: 1fr; row-gap: 8px; text-align: center; justify-items: center; padding: 20px 14px; } .steps li::before { grid-row: auto; } }

.video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); border: 1px solid var(--line); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.7; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #eaf1f7; color: var(--navy); font-weight: 600; }
tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.fine { font-size: .9rem; color: var(--muted); line-height: 1.8; }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 56px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); flex: none; }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding: 0 18px; margin: 0 0 1em; color: var(--ink); }
details.faq p.fine { padding-bottom: 4px; }

.cta-band { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.cta-band h2, .cta-band p { color: #fff; }

/* article pages */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 18px 0 0; margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { padding: 20px 0 12px; }
.prose-wrap { display: grid; gap: 32px; padding-bottom: 48px; }
@media (min-width: 960px) { .prose-wrap { grid-template-columns: minmax(0, 1fr) 280px; } .prose-wrap .crumbs { grid-column: 1 / -1; } }
.prose { max-width: 760px; padding: 16px 0 24px; }
.prose h1 { margin-bottom: .4em; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .9rem; }
.note { background: #eaf4fa; border-inline-start: 4px solid var(--primary); padding: 12px 16px; border-radius: 6px; color: var(--ink); }
.ref a { text-decoration: none; font-weight: 600; padding: 0 2px; }
sup.ref { font-size: .72em; line-height: 0; }
.related { align-self: start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.related h2 { font-size: 1.1rem; }
.related ul { padding: 0; margin: 0 0 14px; list-style: none; display: grid; gap: 8px; }
.sources { margin-top: 2.4em; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; line-height: 1.8; }
.sources h2 { font-size: 1.05rem; margin: 0 0 .5em; }
.sources ol { margin: 0; padding-inline-start: 1.3em; }
.sources li { margin-bottom: .6em; overflow-wrap: anywhere; }
.sources a { direction: ltr; unicode-bidi: plaintext; }

/* features, status */
.feature-groups { margin: 8px 0 32px; }
.feature-groups .card h2 { font-size: 1.2rem; }
.feature-groups ul { margin: 0; padding-inline-start: 1.2em; }
.feature-groups li { margin-bottom: .5em; }
.page-head .note { max-width: 760px; }
.status-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0; }
.status-list .st { font-weight: 600; padding: 2px 12px; border-radius: 999px; white-space: nowrap; }
.status-list .st-ok { background: #e3f4ea; color: #14532d; }
.status-list .st-bad { background: #fde8e8; color: #7f1d1d; }
.status-list .st-time { color: var(--muted); font-size: .9rem; justify-content: flex-start; border-style: dashed; }

/* footer */
.site-footer { background: #0b2447; color: #cdd8e6; padding: 40px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid strong { display: block; color: #fff; margin-bottom: 8px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; font-size: .95rem; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { margin: 0; font-size: .95rem; }
.foot-note { margin: 24px 0 12px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }
.powered-by { font-size: .9rem; }
.powered-by-link { color: inherit; }
.site-footer .powered-by-link { color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- phones ---------- */
.phone { margin: 0 auto; width: 100%; max-width: 250px; border: 7px solid #0b2447; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px rgba(0, 20, 60, .28); }
.phone img { width: 100%; }
.hero-points { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li { font-size: .88rem; line-height: 1.6; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.hero-points li::before { content: "✓"; margin-inline-end: 6px; color: #7fd4f5; font-weight: 700; }
.hero-phone, .m-tour { display: none; }
.src-fold { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.src-fold summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy); min-height: 48px; }
.src-fold .sources { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.src-fold .sources h2 { display: none; }
.foot-site a[href="/help"], .foot-site a[href="/blog"] { display: none; }

@media (max-width: 699px) {
  body { font-size: 16px; line-height: 1.85; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }
  .section { padding: 36px 0; }
  .sub { margin-bottom: 1.1em; font-size: .95rem; }
  .bar { min-height: 60px; gap: 10px; }
  .brand { font-size: 1.05rem; }

  /* hero: the message, one big button, and the panel as it looks on this very phone */
  .hero { padding: 28px 0 0; overflow: hidden; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: 1.6rem; line-height: 1.55; }
  .hero .lead { font-size: 1rem; color: #dbe8f5; margin-bottom: 0; }
  .eyebrow { font-size: .8rem; margin-bottom: 12px; }
  .cta-row { flex-direction: column; gap: 10px; margin: 20px 0 16px; }
  .cta-row .btn { width: 100%; }
  .hero-note, .hero-shot { display: none; }
  .hero-phone { display: block; }
  .hero-phone .phone { max-width: 270px; border-bottom: 0; border-radius: 30px 30px 0 0; max-height: 330px; box-shadow: 0 -6px 34px rgba(0, 10, 40, .35); }

  /* side-by-side cards you swipe, instead of a tall pile */
  .swipe { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: center; }
  .card { padding: 18px; }

  /* the wide screenshots cannot be read on a phone: phone screenshots take their place */
  .tour-r, .tour-tabs, .tour-panels { display: none !important; }
  .m-tour { display: flex; margin-bottom: 24px; }
  .m-tour > .m-shot { flex: 0 0 68%; text-align: center; }
  .m-shot .phone { max-width: 230px; border-width: 6px; border-radius: 26px; box-shadow: 0 8px 20px rgba(0, 30, 70, .18); }
  .m-shot strong { display: block; margin-top: 12px; color: var(--navy); font-size: .98rem; line-height: 1.6; }

  .feat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat-grid li { display: block; padding: 14px 12px; }
  .feat-grid li:hover { transform: none; }
  .feat-grid .ico { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 8px; }
  .feat-grid strong { display: block; font-size: .95rem; line-height: 1.6; color: var(--navy); }
  .feat-grid span:not(.ico) { display: block; font-size: .84rem; line-height: 1.65; margin-top: 2px; }

  /* steps: a plain numbered path, no boxes */
  .steps { gap: 0; position: relative; }
  .steps li { background: none; border: 0; border-radius: 0; padding: 10px 0; grid-template-columns: 38px 1fr; position: relative; }
  .steps li::before { width: 38px; height: 38px; font-size: 1rem; position: relative; z-index: 1; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 18px; top: 50%; height: 100%; width: 2px; background: #c9d8e6; }
  .steps strong { font-size: 1rem; }
  .steps span { font-size: .9rem; line-height: 1.7; }

  .cols.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cols.four .card { padding: 14px 12px; }
  .cols.four .ico { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 8px; }
  .cols.four h3 { font-size: .98rem; }
  .cols.four p { font-size: .85rem; line-height: 1.7; }

  /* the deadlines table as one card per season */
  .table-wrap:has(.stack) { border: 0; background: none; overflow: visible; }
  table.stack, table.stack tbody { display: block; }
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  table.stack th, table.stack td { border: 0; padding: 0; }
  table.stack tbody th { grid-column: 1 / -1; font-size: 1.02rem; margin-bottom: 6px; }
  table.stack td { font-size: .92rem; font-weight: 600; color: var(--ink); }
  table.stack td::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 400; color: var(--muted); }
  .fine { font-size: .82rem; }

  details.faq summary { padding: 14px 16px; font-size: .98rem; }
  details.faq p { padding: 0 16px; font-size: .95rem; }
  .cta-band .btn { width: 100%; }

  /* footer: short, two columns of links */
  .site-footer { padding: 28px 0 20px; }
  .foot-long { display: none; }
  .foot-grid { gap: 18px; grid-template-columns: 1fr; }
  .foot-site { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .foot-site strong, .foot-site p { grid-column: 1 / -1; }
  .foot-site a { padding: 8px 0; }
  .foot-site a[href^="mailto"] { grid-column: 1 / -1; }
  .foot-site a[href="/help"], .foot-site a[href="/blog"] { display: block; }
  .foot-note { margin: 18px 0 10px; font-size: .82rem; }
}

/* ---------- features page ---------- */
.feat-hero { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 70%, #0a6aa8 100%); color: #fff; border-radius: 18px; padding: 44px 40px 36px; margin: 14px 0 12px; }
.feat-hero h1 { color: #fff; margin-bottom: .3em; }
.feat-hero .lead { color: #dbe8f5; margin-bottom: .5em; max-width: 640px; }
.feat-note { font-size: .92rem; color: #b9d2ea; margin: 0; max-width: 640px; }
.feat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.feat-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-size: .93rem; font-weight: 500; transition: background-color .2s; }
.feat-jump a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.fg { display: grid; gap: 20px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.fg:first-of-type { border-top: 0; }
.fg-head .ico { width: 54px; height: 54px; border-radius: 14px; font-size: 1.5rem; background: linear-gradient(150deg, #e5f2f9, #d3e9f6); margin-bottom: 14px; }
.fg-head h2 { font-size: 1.4rem; margin-bottom: .3em; }
.fg-head p { color: var(--muted); margin: 0; font-size: .98rem; line-height: 1.8; }
.fg-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-content: start; }
.fg-items li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; padding-inline-start: 50px; transition: border-color .2s, box-shadow .2s; }
.fg-items li:hover { border-color: #b7d3e6; box-shadow: 0 6px 18px rgba(0, 60, 110, .08); }
.fg-items li::before { content: "✓"; position: absolute; inset-inline-start: 16px; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: #e1f1f9; color: var(--primary-dark); font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: center; line-height: 1; }
.fg-items strong { display: block; color: var(--navy); font-weight: 600; line-height: 1.7; }
.fg-items span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.8; margin-top: 2px; }
.feat-cta { margin-top: 8px; }
@media (min-width: 900px) {
  .fg { grid-template-columns: 290px 1fr; gap: 48px; }
  .fg-head { position: sticky; top: 92px; align-self: start; }
}
@media (max-width: 699px) {
  .feat-hero { border-radius: 14px; padding: 28px 18px 22px; margin-top: 10px; }
  .feat-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
  .feat-jump::-webkit-scrollbar { display: none; }
  .feat-jump a { flex: none; }
  .fg { padding: 28px 0; gap: 14px; }
  .fg-head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .fg-head .ico { grid-row: span 2; width: 46px; height: 46px; font-size: 1.25rem; margin: 0; }
  .fg-head h2 { font-size: 1.2rem; margin: 0; }
  .fg-head p { font-size: .9rem; }
  .fg-items { grid-template-columns: 1fr; gap: 10px; }
  .fg-items li { padding: 14px 14px; padding-inline-start: 46px; }
  .fg-items li::before { inset-inline-start: 13px; top: 16px; }
}

/* ---------- inner pages: one band on top, then the content ---------- */
.page-hero { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 70%, #0a6aa8 100%); color: #fff; padding: 0 0 44px; }
.page-hero .crumbs ol { color: #a9c6e2; padding-top: 18px; }
.page-hero .crumbs a { color: #cfe1f2; }
.page-hero .crumbs li + li::before { color: #7fa6cb; }
.page-hero h1 { color: #fff; margin: 22px 0 .35em; max-width: 820px; }
.page-hero .lead { color: #dbe8f5; margin: 0; max-width: 720px; }
.hero-tag { display: inline-block; margin: 16px 0 0; padding: 3px 14px; border-radius: 999px; font-size: .86rem; background: rgba(255, 255, 255, .12); color: #e3eefa; }
.page-hero .feat-note { margin-top: 10px; }
.page-body { padding-top: 40px; padding-bottom: 56px; }
.btn-outline { border-color: var(--primary); color: var(--primary-dark); background: #fff; }
.btn-outline:hover { background: #e9f4fa; color: var(--navy); }
.prose-wrap { padding-top: 12px; }
.prose-wrap .prose { padding-top: 24px; }
.related { margin-top: 36px; position: sticky; top: 92px; }
.related li a { text-decoration: none; display: block; padding: 6px 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.related li:last-child a { border-bottom: 0; }
.related .btn { width: 100%; }
.next-step { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; margin: 2em 0 0; padding: 18px 20px; border: 1px solid #b7d3e6; background: #f1f8fc; border-radius: 12px; text-decoration: none; }
.next-step span { color: var(--muted); font-size: .88rem; }
.next-step strong { color: var(--navy); grid-column: 1; }
.next-step i { grid-row: 1 / span 2; grid-column: 2; font-size: 1.6rem; color: var(--primary); }
.next-step:hover { border-color: var(--primary); }

.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 22px 24px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.ask strong { display: block; color: var(--navy); font-size: 1.1rem; }
.ask span { color: var(--muted); font-size: .95rem; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* help index: a numbered path */
.guide-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.guide-list a { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.guide-list a:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(0, 60, 110, .1); transform: translateY(-1px); }
.guide-list .num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.gl-text strong { display: block; color: var(--navy); font-size: 1.12rem; line-height: 1.7; }
.gl-text span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.guide-list a > i { font-size: 1.5rem; color: var(--primary); }

/* articles index */
.post-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(0, 60, 110, .1); transform: translateY(-2px); color: inherit; }
.post .ico { width: 48px; height: 48px; margin-bottom: 14px; }
.post h2 { font-size: 1.15rem; line-height: 1.7; margin-bottom: .4em; }
.post p { color: var(--muted); font-size: .95rem; line-height: 1.85; margin: 0 0 16px; }
.post-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--primary-dark); font-weight: 600; font-size: .95rem; }
.post-more i { font-size: 1.2rem; }

/* faq */
.faq-cat { margin-bottom: 34px; scroll-margin-top: 84px; }
.faq-cat h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 14px; }
.faq-cat h2 .ico { width: 40px; height: 40px; font-size: 1.15rem; margin: 0; }
details.faq { transition: border-color .2s, box-shadow .2s; }
details.faq[open] { border-color: #b7d3e6; box-shadow: 0 6px 18px rgba(0, 60, 110, .07); }
details.faq[open] summary { color: var(--primary-dark); }

/* about, contact */
.value-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 36px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.value .ico { width: 50px; height: 50px; font-size: 1.4rem; }
.value h2 { font-size: 1.15rem; margin-bottom: .3em; }
.value p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.85; }
.about-prose { max-width: 820px; padding-top: 0; }
.about-prose h2:first-of-type { margin-top: 1em; }
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card .ico { width: 54px; height: 54px; font-size: 1.5rem; }
.contact-card h2 { font-size: 1.25rem; margin-bottom: .3em; }
.contact-card p { color: var(--muted); margin: 0 0 18px; }
.contact-card .btn, .contact-mail { margin-top: auto; }
.contact-mail { font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--primary-dark); }
.quick-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 22px; }
.quick-links a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); text-decoration: none; transition: border-color .2s; }
.quick-links a:hover { border-color: var(--primary); }
.quick-links .ico { margin: 0; flex: none; background: #fff; }
.quick-links strong { display: block; color: var(--navy); }
.quick-links span span { color: var(--muted); font-size: .9rem; }

/* changelog */
.timeline { border-inline-start: 2px solid #c9d8e6; padding-inline-start: 26px; }
.timeline section { position: relative; padding-bottom: 26px; }
.timeline section::before { content: ""; position: absolute; inset-inline-start: -34px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px #e1f1f9; }
.timeline h2 { font-size: 1.15rem; }
.timeline ul { margin: 0; padding-inline-start: 1.2em; }
.timeline li { margin-bottom: .4em; }

/* the features page now uses the shared band */
.feat-hero { display: none; }

@media (max-width: 699px) {
  .page-hero { padding-bottom: 28px; }
  .page-hero h1 { font-size: 1.5rem; margin-top: 16px; }
  .page-hero .lead { font-size: .98rem; }
  .page-hero .feat-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .page-hero .feat-jump::-webkit-scrollbar { display: none; }
  .page-body { padding-top: 26px; padding-bottom: 40px; }
  .guide-list a { grid-template-columns: 42px 1fr auto; gap: 12px; padding: 14px; }
  .guide-list .num { width: 42px; height: 42px; font-size: 1.05rem; }
  .gl-text strong { font-size: 1.02rem; }
  .gl-text span { font-size: .88rem; }
  .post-grid { grid-template-columns: 1fr; gap: 12px; }
  .post { padding: 18px; }
  .ask { padding: 18px; }
  .ask-actions, .ask-actions .btn { width: 100%; }
  .related { position: static; }
  .contact-card { padding: 20px; }
  .contact-card .btn { width: 100%; }
  .value { padding: 18px; }
}
@media (min-width: 960px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 20px; background: linear-gradient(150deg, #f1f8fc, #fff); }
  .post:first-child .ico { grid-row: span 2; width: 60px; height: 60px; font-size: 1.6rem; margin: 0; }
  .post:first-child h2 { font-size: 1.3rem; margin: 0; }
  .post:first-child p { grid-column: 2; margin: 0; }
  .post:first-child .post-more { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}
