/* PulveCast marketing site.
   One stylesheet, no framework, no webfont request: the CSP on this site is
   `self`-only and every page must render fully without JavaScript. */

:root {
  color-scheme: light dark;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #eaf0ec;
  --text: #0f1a14;
  --muted: #4a5a50;
  --border: #d7e0da;
  --primary: #1f7a3a;
  --primary-ink: #ffffff;
  --primary-soft: #e1f3e7;
  --ok: #178a4c;
  --ok-soft: #dff5e8;
  --warn: #b07a00;
  --warn-soft: #fff1cc;
  --nok: #b42332;
  --nok-soft: #fbe1e5;
  --shadow: 0 10px 30px rgba(15, 26, 20, 0.08);
  --radius: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1410;
    --surface: #121d17;
    --surface-2: #182520;
    --text: #e7efe9;
    --muted: #a6b5ab;
    --border: #24342b;
    --primary: #5ccf83;
    --primary-ink: #0b1410;
    --primary-soft: #173224;
    --ok: #3ad088;
    --ok-soft: #12352a;
    --warn: #f5c451;
    --warn-soft: #3a3012;
    --nok: #ff7b8a;
    --nok-soft: #3d1a20;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }
a { color: var(--primary); text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.muted { color: var(--muted); }
.tight { margin: 0; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--text); font-size: 1.05rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; display: inline-block; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.lang-menu { position: relative; margin-inline-start: 6px; }
.lang-menu summary {
  list-style: none; cursor: pointer; color: var(--muted); padding: 7px 10px; border-radius: 8px;
  font-weight: 600; font-size: .92rem; border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu details[open] summary { color: var(--text); background: var(--surface-2); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 210px; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; display: block;
}
.lang-menu ul a { display: block; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.lang-menu ul a[aria-current="true"] { color: var(--primary); font-weight: 700; background: var(--primary-soft); }

.brand, .brand img { flex: none; }
.site-nav { min-width: 0; }
@media (max-width: 720px) {
  .brand span { display: none; }
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 7px 8px; font-size: .9rem; white-space: nowrap; }
  .lang-menu { position: sticky; inset-inline-end: 0; margin-inline-start: 2px; padding-inline-start: 6px; background: var(--bg); }
  .lang-menu summary { padding: 6px 8px; font-size: .88rem; }
  .lang-menu ul { position: fixed; left: 12px; right: 12px; top: auto; margin-top: 8px; max-height: 60vh; }
  .hide-sm { display: none; }
}

/* ---------- buttons ---------- */

.btn { display: inline-block; text-decoration: none; background: var(--primary); color: var(--primary-ink); font-weight: 700; padding: 12px 20px; border-radius: 12px; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none;
  padding: 9px 16px 9px 12px; border-radius: 12px; border: 1px solid #333; min-width: 180px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.store svg { width: 28px; height: 28px; flex: none; }
.store .l { display: flex; flex-direction: column; line-height: 1.1; }
.store .s { font-size: .68rem; letter-spacing: .03em; opacity: .85; }
.store .b { font-size: 1.15rem; font-weight: 700; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.hero .note { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
.stats div { min-width: 96px; }
.stats dt { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stats dd { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.phone { margin: 0; justify-self: center; width: min(300px, 80vw); }
.phone img { border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { order: -1; width: min(240px, 70vw); }
  .stats { gap: 10px 22px; }
  .stats dt { font-size: 1.35rem; }
}

/* ---------- blocks ---------- */

.block { padding: 52px 0; border-top: 1px solid var(--border); }
.block.tinted { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 26px; }
.section-head p { margin-bottom: 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .96rem; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* verdict */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.verdict { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border); background: var(--surface); }
.verdict .pill { display: inline-block; font-weight: 800; padding: 6px 14px; border-radius: 10px; margin-bottom: 10px; }
.verdict.ok .pill { background: var(--ok-soft); color: var(--ok); }
.verdict.warn .pill { background: var(--warn-soft); color: var(--warn); }
.verdict.nok .pill { background: var(--nok-soft); color: var(--nok); }
.verdict p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 720px) { .verdicts { grid-template-columns: 1fr; } }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* carousel */
.carousel { position: relative; }
.shots {
  list-style: none; margin: 0; padding: 4px 4px 12px; display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 4px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { flex: 0 0 min(230px, 68vw); scroll-snap-align: start; margin: 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.shots figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.car-btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); cursor: pointer; font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn:hover:not(:disabled) { color: var(--primary); }
.dots { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 6px 0 0; }
.dots li { margin: 0; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--primary); transform: scale(1.25); }
@media (max-width: 1200px) { .car-btn.prev { left: 4px; } .car-btn.next { right: 4px; } }

/* pro */
.pro { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 34px; }
.pro ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.pro li { padding-left: 28px; position: relative; margin: 0; }
.pro li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.4 4.4a1 1 0 0 1-1.4 0L4.3 9a1 1 0 1 1 1.4-1.4l.9.9 3.7-3.7a1 1 0 0 1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.4 4.4a1 1 0 0 1-1.4 0L4.3 9a1 1 0 1 1 1.4-1.4l.9.9 3.7-3.7a1 1 0 0 1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pro .price { font-weight: 700; margin: 8px 0 4px; }
.pro .actions { margin-top: 18px; }
@media (max-width: 720px) { .pro { padding: 24px; } .pro ul { grid-template-columns: 1fr; } }

/* sources */
.sources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.sources li { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 0; font-size: .96rem; }
.sources a { font-weight: 700; }
@media (max-width: 720px) { .sources { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* sibling-app banner */
.banner { background: linear-gradient(135deg, #1e3a8a, #2846dd); color: #eef2ff; border-radius: 24px; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.banner h2 { color: #fff; margin-bottom: 8px; }
.banner p { color: rgba(238, 242, 255, .88); margin: 0; }
.banner .stores { margin: 0; }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; } }

/* final cta */
.cta { text-align: center; padding: 64px 0 72px; border-top: 1px solid var(--border); }
.cta .lead { margin-inline: auto; }
.cta .stores { justify-content: center; }
.cta .note { color: var(--muted); font-size: .92rem; }

/* callout */
.callout, .warning-box { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 12px; padding: 14px 18px; margin: 22px 0; font-size: .95rem; }
.callout p:last-child, .warning-box p:last-child { margin-bottom: 0; }

/* ---------- article pages ---------- */

.article { padding: 44px 0 40px; }
.article .wrap { max-width: 820px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article h2 { font-size: 1.45rem; margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article .section-body h1 { font-size: 1.5rem; margin-top: 2em; }
.article .section { padding: 0; border: 0; }
.meta-line { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; margin: 26px 0; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.3rem; margin: 0 0 4px; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.plan .price-note { color: var(--muted); font-size: .93rem; margin: 4px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding-left: 26px; position: relative; font-size: .95rem; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.4 4.4a1 1 0 0 1-1.4 0L4.3 9a1 1 0 1 1 1.4-1.4l.9.9 3.7-3.7a1 1 0 0 1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.4 4.4a1 1 0 0 1-1.4 0L4.3 9a1 1 0 1 1 1.4-1.4l.9.9 3.7-3.7a1 1 0 0 1 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 28px; margin-top: 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.brand-desc { margin-top: 12px; color: var(--muted); }
.langs { margin-top: 26px; }
.langs ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.copy p { margin: 0 0 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 72px 0; }
.err ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }

/* ---------- consent banner ---------- */
/* Shown only to visitors whose Consent Mode default is denied (see analytics.js). */
.consent { position: fixed; inset: auto 16px 16px; z-index: 50; max-width: 520px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; font-size: .92rem; }
.consent p { margin: 0 0 12px; color: var(--text); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 0; }
.consent .btn { padding: 8px 16px; font-size: .9rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.consent .btn.ghost { cursor: pointer; }
@media (max-width: 520px) { .consent { inset: auto 12px 12px; } .consent-actions { justify-content: stretch; } .consent .btn { flex: 1; text-align: center; } }
