/* =====================================================================
   Instant Data Scraper — stylesheet
   Palette taken from the logo: signal red, ice blue-grey, white, ink.
   No external fonts or CDNs (works offline / by double-click, no caching).
   ===================================================================== */
:root {
  --red: #d60808;
  --red-600: #b40606;
  --red-400: #ff1919;
  --red-50: #fdeeee;
  --ice: #d8e5eb;
  --ice-200: #c7d8e0;
  --ice-100: #e8f0f4;
  --ice-50: #f4f8fa;
  --ink: #16222b;
  --ink-2: #3c4f5c;
  --ink-3: #6a7d89;
  --line: #d3e0e7;
  --white: #fff;
  --ok: #137a3a;
  --ok-50: #e8f6ee;
  --warn: #8a5a00;
  --warn-50: #fff6e0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 34, 43, .06), 0 8px 24px rgba(22, 34, 43, .07);
  --shadow-lg: 0 20px 50px rgba(22, 34, 43, .14);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--red-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--ice-100); padding: .12em .4em; border-radius: 6px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; }
pre { background: var(--ink); color: #e6eef2; padding: 16px 18px; border-radius: var(--radius-sm); overflow: auto; font-size: .9rem; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
:focus-visible { outline: 3px solid rgba(214, 8, 8, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.req { color: var(--red); }
[hidden] { display: none !important; }

/* icons */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.ic-lg { width: 32px; height: 32px; }
.ic-xl { width: 40px; height: 40px; stroke-width: 1.6; }

/* buttons */
.btn { --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(214, 8, 8, .25); }
.btn-primary:hover { background: var(--red-600); color: #fff; box-shadow: 0 10px 22px rgba(214, 8, 8, .3); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ice-200); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--ice-50); color: var(--ink); }
.btn-light { background: #fff; color: var(--red-600); }
.btn-light:hover { color: var(--red); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-export { background: #fff; border-color: var(--ice-200); color: var(--ink); border-radius: 10px; padding: 9px 14px; font-size: .88rem; }
.btn-export:hover { border-color: var(--ok); color: var(--ok); }
.link-btn { background: none; border: 0; color: var(--red-600); font: inherit; font-size: .85rem; cursor: pointer; padding: 4px; text-decoration: underline; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--ink-2); }
.icon-btn:hover { background: var(--ice-100); }

/* announcement */
.announce { background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-size: .9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 36px; height: 36px; transition: transform .5s ease; }
.brand:hover img { transform: rotate(-200deg); }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-name b { color: var(--red); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav ul a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.main-nav ul a:hover { color: var(--ink); background: var(--ice-100); }
.main-nav ul a[aria-current="page"] { color: var(--red-600); background: var(--red-50); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: var(--ice-100); border: 0; border-radius: 10px; padding: 9px; cursor: pointer; color: var(--ink); }
@media (max-width: 1140px) {
  .main-nav ul a { padding: 8px 8px; font-size: .9rem; }
  .nav-actions [data-account-link] span { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; max-height: calc(100vh - 68px); overflow: auto; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 8px; }
  .nav-actions .btn { width: 100%; }
  .nav-actions [data-account-link] span { display: inline; }
}

/* breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .86rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ice-200); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

/* sections */
.section, .home-section { padding: clamp(56px, 8vw, 96px) 0; }
.alt { background: linear-gradient(180deg, var(--ice-50), var(--ice-100)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 800; color: var(--red-600); margin-bottom: 12px; }
.kicker .ic { width: 16px; height: 16px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); }

/* page hero (inner pages) */
.page-hero { padding: 48px 0 40px; background: radial-gradient(circle at 85% -20%, var(--ice) 0, transparent 45%), linear-gradient(180deg, var(--ice-50), #fff); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border: 26px solid var(--ice-100); border-radius: 50%; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero.slim { padding: 36px 0 28px; }

/* ---------------------------------------------------- HERO (home) */
.hero { background: radial-gradient(1200px 500px at 90% -10%, var(--ice) 0, transparent 60%), linear-gradient(180deg, var(--ice-50) 0, #fff 85%); position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); }
.hero::before { /* the logo's split line, as a subtle motif */
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--ice-200) 20%, var(--ice-200) 80%, transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero-form { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 26px 0 16px; max-width: 620px; }
.hero-form .url-field { flex: 1; border: 0; box-shadow: none; background: transparent; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-ctas .ic { color: var(--ok); }
.url-field { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 0 16px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.url-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.url-field .ic { color: var(--ink-3); }
.url-field input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 13px 0; width: 100%; min-width: 0; color: var(--ink); }

.hero-art { position: relative; }
.mock { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .4s ease; animation: rise .8s ease both; }
.hero-art:hover .mock { transform: none; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ice-100); border-bottom: 1px solid var(--line); }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--ice-200); }
.mock-bar > span:first-child { background: var(--red-400); }
.mock-url { margin-left: 10px; flex: 1; background: #fff; border-radius: 999px; font-size: .74rem; color: var(--ink-3); padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.mock-side { background: var(--ink); color: #c9d6de; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; }
.mock-side b { color: #fff; margin-bottom: 6px; font-size: .8rem; }
.mock-side i { font-style: normal; padding: 6px 8px; border-radius: 8px; }
.mock-side i.on { background: var(--red); color: #fff; }
.mock-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats div { background: var(--ice-50); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mock-stats small { display: block; font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.mock-stats strong { font-size: 1.15rem; }
.mock table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mock th { text-align: left; background: var(--ice-100); padding: 6px 8px; font-weight: 700; }
.mock td { padding: 6px 8px; border-bottom: 1px solid var(--ice-100); }
.mock tr:nth-child(odd) td { background: #fcfdfe; }
.mock-exports { display: flex; gap: 6px; margin-top: auto; }
.mock-exports span { font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ok-50); color: var(--ok); }
.mock-exports span:first-child { background: var(--red-50); color: var(--red-600); }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; animation: float 5s ease-in-out infinite; }
.chip-a { left: -18px; bottom: 32px; color: var(--ok); }
.chip-b { right: -10px; top: -14px; color: var(--ink-2); animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.chips li { background: var(--ice-100); color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; }
.trust-list { display: grid; gap: 14px; }
.trust { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.trust:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.trust > .ic { width: 38px; height: 38px; padding: 8px; background: var(--red-50); color: var(--red); border-radius: 10px; }
.trust h3 { margin-bottom: 4px; }
.trust p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* cards */
.cards { display: grid; gap: 18px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); transform: scaleX(0); transition: transform .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ice-200); }
.card:hover::before { transform: scaleX(1); }
.card-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ice-100); color: var(--red); margin-bottom: 14px; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.section .center, .home-section .center { margin-top: 28px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--ice-200) 0 8px, transparent 8px 14px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-art { position: relative; width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: linear-gradient(180deg, #fff 0 49%, var(--ice-100) 51%); border: 3px solid var(--ink); box-shadow: inset 0 0 0 6px #fff; }
.step-art::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--ink); transform: translateY(-50%); opacity: .12; }
.step-num { position: absolute; top: -6px; right: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(214, 8, 8, .35); }
.step p { color: var(--ink-2); font-size: .95rem; }

/* advanced */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.adv { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); transition: background .2s; }
.adv:hover { background: var(--ice-50); }
.adv > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--ink); color: #fff; }
.adv h3 { margin-bottom: 4px; }
.adv p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-hi { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 16px; }
.price .cur { font-size: 1.3rem; vertical-align: top; margin-right: 2px; }
.price .per { font-size: .95rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.checks .ic { color: var(--ok); margin-top: 3px; }

/* testimonials */
.testimonial { margin: 0; background: #fff; border: 2px dashed var(--ice-200); border-radius: var(--radius); padding: 24px; position: relative; }
.sample-label { position: absolute; top: 12px; right: 12px; background: var(--warn-50); color: var(--warn); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.ic-quote { width: 30px; height: 30px; color: var(--ice-200); }
.testimonial blockquote { margin: 10px 0 18px; color: var(--ink-3); font-style: italic; }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption small { display: block; color: var(--ink-3); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ice-100); display: grid; place-items: center; font-weight: 800; color: var(--ink-3); }
.responsible { display: flex; gap: 18px; margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #d6e1e7; }
.responsible h3 { color: #fff; }
.responsible a { color: #fff; }
.responsible .ic { color: var(--red-400); }
.responsible p { margin: 0; }

/* final CTA */
.final-cta { padding-top: 24px; padding-bottom: 0; }
.hero { padding-bottom: clamp(56px, 7vw, 88px); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: radial-gradient(circle at 100% 0, var(--red-400), var(--red) 45%, var(--red-600)); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .12); }
.cta-box h2 { color: #fff; }
.cta-box p { margin: 0; opacity: .92; font-size: 1.08rem; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* footer */
.site-footer { background: var(--ink); color: #b8c7d0; padding: 64px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d7e2e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-light { color: #fff; margin-bottom: 14px; }
.muted-light { color: #8ea2ae; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 26px; display: grid; gap: 10px; text-align: center; }
.footer-bottom p { margin: 0; font-size: 1.05rem; color: #b8c7d0; }
.footer-bottom .footer-brand-link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red-400); padding-bottom: 1px; }
.footer-bottom .footer-brand-link:hover { color: #fff; border-bottom-color: #fff; text-decoration: none; }
.footer-bottom .disclaimer { color: #8ea2ae; font-size: .98rem; }

/* ---------------------------------------------------- TOOL */
.tool-section { background: linear-gradient(180deg, #fff, var(--ice-50)); }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 32px); position: relative; }
.tool-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--red), var(--red-400)); }
.url-row { display: flex; gap: 12px; }
.url-row .url-field { flex: 1; }
.field-error { color: var(--red-600); font-weight: 600; font-size: .9rem; margin: 8px 4px 0; }
.url-field.invalid { border-color: var(--red); background: var(--red-50); }
.mode-group { border: 0; padding: 0; margin: 20px 0 0; }
.mode-group legend { font-weight: 700; font-size: .9rem; margin-bottom: 10px; color: var(--ink-2); }
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mode { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; }
.mode > span { display: grid; gap: 2px; height: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 12px; transition: .15s; background: #fff; }
.mode > span .ic { color: var(--ink-3); margin-bottom: 4px; }
.mode b { font-size: .92rem; }
.mode small { font-size: .78rem; color: var(--ink-3); line-height: 1.35; }
.mode:hover > span { border-color: var(--ice-200); background: var(--ice-50); }
.mode input:checked + span { border-color: var(--red); background: var(--red-50); box-shadow: 0 0 0 3px rgba(214, 8, 8, .08); }
.mode input:checked + span .ic { color: var(--red); }
.mode input:focus-visible + span { outline: 3px solid rgba(214, 8, 8, .45); outline-offset: 2px; }
.css-panel { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--ice-50); border: 1px solid var(--line); }
label { font-weight: 600; font-size: .9rem; display: block; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), textarea, select {
  width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
textarea { resize: vertical; font-family: var(--mono); font-size: .88rem; }
.hint { font-size: .8rem; color: var(--ink-3); margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.options { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.options summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.options summary::-webkit-details-marker { display: none; }
.options summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--ink-3); }
.options[open] summary::after { content: "–"; }
.options[open] { padding-bottom: 16px; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; margin-bottom: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.pag-panel { margin: 4px 0 8px; }

.progress-wrap { margin-top: 22px; padding: 18px; border-radius: 14px; background: var(--ice-50); border: 1px solid var(--line); }
.progress-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--ice-200); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 10px; border-radius: 999px; background: var(--ice); overflow: hidden; }
.progress span { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--red), var(--red-400)); border-radius: 999px; transition: width .4s ease; position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress-actions { margin-top: 12px; }

.tool-alert { margin-top: 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--red-50); border: 1px solid #f6c2c2; color: #7d0a0a; }
.tool-alert p { margin: 4px 0 0; }
.tool-alert.warn { background: var(--warn-50); border-color: #f1d9a3; color: var(--warn); }

.results { margin-top: 24px; }
.results-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.results-title { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.export-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dataset-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.dataset-tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--ink-2); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dataset-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dataset-tabs button .n { opacity: .7; margin-left: 4px; }
.results-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search-field { position: relative; flex: 1 1 240px; }
.search-field .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search-field input { padding-left: 38px; border-radius: 999px; }
.col-picker { position: relative; }
.col-picker summary { list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .88rem; background: #fff; }
.col-picker summary::-webkit-details-marker { display: none; }
.col-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; width: min(320px, 80vw); max-height: 320px; overflow: auto; }
.col-list .check { margin: 4px 0; font-size: .9rem; overflow-wrap: anywhere; }
.col-actions { display: flex; gap: 8px; border-bottom: 1px solid var(--ice-100); padding-bottom: 6px; margin-bottom: 6px; }
.row-count { font-size: .88rem; color: var(--ink-3); font-weight: 600; }
.table-scroll { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.data-table th { position: sticky; top: 0; z-index: 1; background: var(--ice-100); text-align: left; padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th button { all: unset; display: flex; align-items: center; gap: 6px; padding: 10px 12px; cursor: pointer; font-weight: 700; width: 100%; box-sizing: border-box; }
.data-table th button:focus-visible { outline: 3px solid rgba(214, 8, 8, .45); outline-offset: -3px; }
.data-table th .sort { opacity: .35; font-size: .75rem; }
.data-table th[aria-sort="ascending"] .sort, .data-table th[aria-sort="descending"] .sort { opacity: 1; color: var(--red); }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--ice-100); vertical-align: top; max-width: 360px; overflow-wrap: anywhere; }
.data-table td.rownum, .data-table th.rownum { color: var(--ink-3); width: 1%; text-align: right; padding: 9px 10px; }
.data-table tbody tr:hover td { background: var(--ice-50); }
.data-table td a { color: var(--red-600); }
.data-table mark { background: #ffe58a; padding: 0 1px; border-radius: 3px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty-state .ic { color: var(--ice-200); margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pager label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.pager select { width: auto; padding: 6px 8px; }
.pager-btns { display: flex; align-items: center; gap: 10px; }
.tool-idle { margin-top: 18px; text-align: center; font-size: .88rem; color: var(--ink-3); }
.tool-idle .ic { color: var(--ok); width: 18px; height: 18px; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 200; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: rise .25s ease both; font-size: .92rem; }
.toast.ok { border-left: 5px solid #3ac76f; }
.toast.err { border-left: 5px solid var(--red-400); }
.toast.info { border-left: 5px solid var(--ice); }
.toast button { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---------------------------------------------------- content / guide */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; position: relative; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h2 { font-size: 1.12rem; margin: 6px 0 8px; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-card h2 a:hover { color: var(--red); }
.guide-card p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.guide-num { font-weight: 800; color: var(--red); font-size: .85rem; letter-spacing: .08em; }

.article-head { padding: 40px 0 28px; background: linear-gradient(180deg, var(--ice-50), #fff); border-bottom: 1px solid var(--line); }
.article-head .meta { color: var(--ink-3); font-size: .9rem; margin: 0; }
.article-head .meta .ic { width: 16px; height: 16px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 36px 0 24px; max-width: 1120px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; }
.toc-title { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--ink-3); }
.toc ol { list-style: none; padding: 0; margin: 0 0 18px; border-left: 2px solid var(--ice-100); }
.toc a { display: block; padding: 5px 12px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--red-600); border-left-color: var(--red); }
.prose { font-size: 1.04rem; min-width: 0; }
.prose h2 { margin-top: 1.9em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose .note { background: var(--warn-50); border: 1px solid #f1d9a3; padding: 12px 16px; border-radius: 12px; font-size: .95rem; }
.howto { list-style: none; padding: 0 !important; counter-reset: h; }
.howto li { counter-increment: h; position: relative; padding: 2px 0 6px 54px; margin: 0 0 14px !important; }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--red-50); color: var(--red-600); font-weight: 800; display: grid; place-items: center; border: 2px solid var(--red); }
.howto h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.howto p { margin: 0; color: var(--ink-2); }
.best { list-style: none; padding: 0 !important; }
.best li { display: flex; gap: 10px; }
.best .ic { color: var(--ok); margin-top: 4px; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.data-example, .compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-example th, .compare th, .compare td, .data-example td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ice-100); vertical-align: top; }
.data-example thead th, .compare thead th { background: var(--ice-100); }
.compare td { text-align: center; }
.compare td.yes { color: var(--ok); }
.compare td.no { color: var(--ink-3); }
.cta-inline { display: flex; gap: 16px; align-items: center; background: var(--ink); color: #d6e1e7; border-radius: var(--radius); padding: 20px 22px; margin: 2em 0; }
.cta-inline strong { color: #fff; font-size: 1.05rem; }
.cta-inline p { margin: 2px 0 0; font-size: .94rem; }
.cta-inline .ic { color: var(--red-400); }
.cta-inline .btn { margin-left: auto; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: .2s; }
.related strong { display: block; line-height: 1.35; margin-top: 4px; }
.related:hover { border-color: var(--red); color: var(--red-600); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.prev-next a { text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; }
.prev-next a small { display: block; color: var(--ink-3); font-weight: 600; }
.prev-next a.right { text-align: right; }
.admin-notice { background: var(--ice-50); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 8px; margin-bottom: 1em; }
.timeline { list-style: none; padding: 0 !important; border-left: 3px solid var(--ice); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 8px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline h3 { margin-top: 0; }

/* accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item h3 { margin: 0; font-size: 1rem; }
.acc-btn { all: unset; box-sizing: border-box; display: flex; width: 100%; gap: 14px; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-weight: 700; line-height: 1.4; }
.acc-btn:hover { background: var(--ice-50); }
.acc-btn:focus-visible { outline: 3px solid rgba(214, 8, 8, .45); outline-offset: -3px; }
.acc-ic { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ice-200); position: relative; flex: none; transition: transform .2s, border-color .2s; }
.acc-ic::before, .acc-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--ink-2); transform: translate(-50%, -50%); }
.acc-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.acc-btn[aria-expanded="true"] .acc-ic { border-color: var(--red); }
.acc-btn[aria-expanded="true"] .acc-ic::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { padding: 0 20px 16px; color: var(--ink-2); }
.acc-panel p { margin: 0; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.faq-nav a { padding: 8px 14px; border-radius: 999px; background: var(--ice-100); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.faq-nav a:hover { background: var(--red-50); color: var(--red-600); }
.faq-cat { margin-bottom: 40px; }
.callout { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--ice-50); border: 1px solid var(--line); }
.callout .ic { color: var(--red); width: 28px; height: 28px; }
.callout p { margin: 0; }

/* forms & panels */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.form-card, .panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.form-card label, .panel label { margin-top: 14px; }
.form-card .btn, .panel .btn[type=submit] { margin-top: 18px; }
.form-status { margin: 12px 0 0; font-weight: 600; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--red-600); }
.hp { position: absolute; left: -9999px; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; }
.info-item .ic { width: 42px; height: 42px; padding: 10px; background: var(--red-50); color: var(--red); border-radius: 12px; }
.info-item h3 { margin: 0 0 2px; font-size: 1rem; }
.info-item p { margin: 0; color: var(--ink-2); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--warn-50); border: 1px solid #f1d9a3; color: var(--warn); margin-bottom: 20px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel { margin-bottom: 24px; box-shadow: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel h3 { display: flex; gap: 8px; align-items: center; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; background: var(--ice-100); color: var(--ink-2); }
.status.completed { background: var(--ok-50); color: var(--ok); }
.status.failed { background: var(--red-50); color: var(--red-600); }
.status.running, .status.queued { background: var(--warn-50); color: var(--warn); }
.modal { position: fixed; inset: 0; background: rgba(22, 34, 43, .55); z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 18px; width: min(980px, 100%); max-height: 90vh; overflow: auto; padding: 22px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* admin */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; align-self: start; }
.admin-tab { all: unset; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.admin-tab:hover { background: var(--ice-50); }
.admin-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.admin-tab:focus-visible { outline: 3px solid rgba(214, 8, 8, .45); }
.admin-main { min-width: 0; }
.admin-pane .pane-body { display: grid; gap: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat small { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -.02em; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ice-100); vertical-align: top; overflow-wrap: anywhere; }
.admin-table th { background: var(--ice-50); }
.admin-table select, .admin-table input { padding: 6px 8px; font-size: .85rem; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.plan-edit { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 14px; }
.plan-edit h3 { grid-column: 1 / -1; margin: 0; }
.plan-edit .full { grid-column: 1 / -1; }
.plan-edit label { margin: 0 0 4px; font-size: .82rem; }
.log-ctx { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }

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

/* ---------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .mock { transform: none; }
  .cards-3, .guide-grid, .pricing-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .steps::before { display: none; }
  .adv-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-tab { flex: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .pricing-grid { max-width: 640px; }
  .pricing-grid .plan:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .cards-4, .cards-3, .guide-grid, .pricing-grid, .related-grid, .grid-2, .auth-grid, .footer-grid, .steps { grid-template-columns: 1fr; }
  .pricing-grid .plan:last-child { grid-column: auto; }
  .modes { grid-template-columns: 1fr 1fr; }
  .url-row, .hero-form { flex-direction: column; }
  .hero-form { border-radius: 18px; }
  .hero-form .btn, .url-row .btn { width: 100%; }
  .url-row .url-field { border-radius: 14px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; overflow-x: auto; }
  .mock-side b { display: none; }
  .float-chip { display: none; }
  .tool-alert, .cta-inline { flex-direction: column; align-items: flex-start; }
  .cta-inline .btn { margin-left: 0; }
  .export-btns { width: 100%; }
  .export-btns .btn { flex: 1; }
  .results-toolbar > * { flex: 1 1 100%; }
  .col-picker summary { width: 100%; justify-content: center; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next a.right { text-align: left; }
  .responsible { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .cta-inline, .toasts { display: none; }
}
.page-hero + .section { padding-top: clamp(32px, 5vw, 56px); }

/* contact card */
.contact-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); max-width: 680px; margin: 0 auto; }
.contact-ic { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; background: var(--red-50); color: var(--red); margin-bottom: 14px; }
.contact-mail { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; overflow-wrap: anywhere; }
.contact-mail a { text-decoration: none; }

/* scroll to top */
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: 120; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(214, 8, 8, .35); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s, background .15s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--red-600); }
.to-top .ic { width: 22px; height: 22px; stroke-width: 2.4; }

/* =====================================================================
   Light theme — no dark backgrounds anywhere on the site
   ===================================================================== */
pre { background: var(--ice-50); color: var(--ink); border: 1px solid var(--line); }
.announce { background: var(--ice-100); color: var(--ink); border-bottom: 1px solid var(--line); }
.mock-side { background: var(--ice-100); color: var(--ink-2); border-right: 1px solid var(--line); }
.mock-side b { color: var(--ink); }
.step-art { border-color: var(--ice-200); }
.step-art::after { background: var(--ice-200); opacity: 1; }
.adv > .ic { background: var(--red-50); color: var(--red); }
.responsible { background: var(--ice-50); color: var(--ink-2); border: 1px solid var(--line); }
.responsible h3 { color: var(--ink); }
.responsible a { color: var(--red-600); }
.responsible .ic { color: var(--red); }

/* final CTA: plain light section, no red box */
.final-cta { padding: clamp(48px, 7vw, 80px) 0; background: linear-gradient(180deg, #fff, var(--ice-50)); border-top: 1px solid var(--line); }
.cta-box { display: block; text-align: center; background: none; color: var(--ink); border-radius: 0; padding: 0; overflow: visible; }
.cta-box::after { display: none; }
.cta-box h2 { color: var(--ink); }
.cta-box p { color: var(--ink-2); opacity: 1; margin: 0 auto 22px; max-width: 620px; }
.cta-btns { justify-content: center; }

/* footer */
.site-footer { background: var(--ice-50); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 0; }
.site-footer h3 { color: var(--ink); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--red-600); }
.brand-light { color: var(--ink); }
.muted-light { color: var(--ink-3); }
.footer-bottom { border-top-color: var(--line); }
.footer-bottom p { color: var(--ink-2); }
.footer-bottom .footer-brand-link { color: var(--ink); border-bottom-color: var(--red); }
.footer-bottom .footer-brand-link:hover { color: var(--red-600); border-bottom-color: var(--red-600); }
.footer-bottom .disclaimer { color: var(--ink-3); }

/* tool, guides, admin, notifications */
.dataset-tabs button[aria-selected="true"] { background: var(--red-50); color: var(--red-600); border-color: var(--red); }
.cta-inline { background: var(--ice-50); color: var(--ink-2); border: 1px solid var(--line); }
.cta-inline strong { color: var(--ink); }
.cta-inline .ic { color: var(--red); }
.admin-tab[aria-selected="true"] { background: var(--red-50); color: var(--red-600); }
.toast { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.toast button { color: var(--ink-3); }
.skip { background: #fff; color: var(--ink); border: 2px solid var(--red); }

/* guide feature images */
.feature-img { margin: 24px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.feature-img img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: var(--ice-50); }
.guide-card { padding-top: 0; overflow: hidden; }
.guide-thumb { display: block; max-width: none; width: calc(100% + 44px); margin: 0 -22px 16px; aspect-ratio: 16 / 9; object-fit: contain; border-bottom: 1px solid var(--line); background: var(--ice-50); }
