/* ============================================================
   Site stylesheet. Brand colors and fonts come from /assets/css/theme.css
   (generated from site.config.json "theme"): --primary, --accent, --ink, --bg,
   --font-heading, --font-body. Everything else is derived here.
   ============================================================ */

:root {
  --paper: #ffffff;
  --text: color-mix(in srgb, var(--ink) 90%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 62%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 20%, transparent);
  --surface: color-mix(in srgb, var(--bg) 55%, var(--paper));
  --primary-soft: color-mix(in srgb, var(--primary) 9%, var(--paper));
  --primary-pale: color-mix(in srgb, var(--primary) 16%, var(--paper));
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--paper));
  --on-ink: color-mix(in srgb, var(--bg) 92%, var(--paper));
  --on-ink-muted: color-mix(in srgb, var(--bg) 62%, var(--ink));
  --line-on-ink: color-mix(in srgb, var(--bg) 14%, transparent);
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 4px 14px -6px color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow-md: 0 18px 40px -22px color-mix(in srgb, var(--ink) 35%, transparent);
  --shadow-lg: 0 40px 90px -40px color-mix(in srgb, var(--ink) 45%, transparent);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 11px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 em, h2 em { font-style: italic; color: var(--primary); font-weight: 500; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 0.94rem; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: var(--paper); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px color-mix(in srgb, var(--ink) 40%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-weight: 650; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-mark {
  position: relative; width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary); color: var(--bg);
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; line-height: 1;
}
.brand-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 0.94rem; font-weight: 550; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.nav-login:hover { color: var(--primary); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: -15%; bottom: -40%; width: 55%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); margin: 22px 0 24px; }
.hero h1 em { display: block; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 560px; }
.product-hero .lead { color: var(--text); font-size: 1.22rem; margin-bottom: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

.hero-visual { position: relative; }
.app-mock {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: rotate(-1.2deg);
}
.app-mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.app-mock-bar em { margin-left: 12px; font-style: normal; font-size: 0.74rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mock-body { display: grid; grid-template-columns: 0.95fr 1.3fr; min-height: 330px; }
.app-mock-side { background: var(--ink); color: var(--on-ink); padding: 20px 18px; }
.app-mock-side strong { display: block; font-family: var(--font-heading); font-size: 1rem; line-height: 1.25; margin-bottom: 14px; }
.app-mock-progress { height: 6px; border-radius: 6px; background: var(--line-on-ink); overflow: hidden; }
.app-mock-progress i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.app-mock-side small { display: block; font-size: 0.7rem; color: var(--on-ink-muted); margin: 7px 0 16px; }
.app-mock-side li { display: flex; gap: 9px; align-items: center; font-size: 0.76rem; color: var(--on-ink-muted); padding: 7px 8px; border-radius: 8px; margin-bottom: 3px; line-height: 1.3; }
.app-mock-side li b { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--on-ink-muted); flex-shrink: 0; }
.app-mock-side li.is-done b { background: var(--accent); border-color: var(--accent); }
.app-mock-side li.is-active { background: color-mix(in srgb, var(--primary) 65%, var(--ink)); color: var(--on-ink); }
.app-mock-main { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.app-mock-eyebrow { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.app-mock-main strong { font-family: var(--font-heading); font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.app-mock-table { display: grid; gap: 8px; margin-top: 6px; }
.app-mock-table div { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr; gap: 8px; }
.app-mock-table i { height: 26px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.app-mock-table div:first-child i { background: var(--primary-soft); }
.app-mock-total { margin-top: auto; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.app-mock-total span { height: 12px; width: 34%; border-radius: 6px; background: var(--primary-pale); }
.app-mock-total span + span { width: 22%; background: var(--accent-soft); }

.floating-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  font-size: 0.82rem; font-weight: 650; color: var(--ink); box-shadow: var(--shadow-md); white-space: nowrap;
}
.floating-chip svg { width: 16px; height: 16px; color: var(--primary); }
.chip-1 { left: -26px; bottom: -20px; }
.chip-2 { right: -12px; top: -18px; }
.chip-3 { left: -20px; top: 32px; }

/* ---------- Trust bar ---------- */

.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 22px 18px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ---------- Section heads ---------- */

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 16px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Products ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.product-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, opacity 0.8s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.product-card-cover { aspect-ratio: 4 / 3; background: var(--primary-soft); overflow: hidden; }
.product-card-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.product-card h3 { font-size: 1.5rem; margin: 10px 0 10px; }
.product-card p { color: var(--muted); font-size: 0.97rem; }
.product-card-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 650; color: var(--ink); }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 0.92rem; color: var(--ink); }
.product-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.product-card:hover .product-link svg { transform: translateX(4px); }

/* Cover: the rendered PNG when present, otherwise a typographic cover in brand colors. */
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-art {
  position: relative; width: 100%; height: 100%; min-height: 220px; padding: 26px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
    linear-gradient(160deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--ink)));
  color: var(--bg);
}
.cover-art::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); }
.cover-art::after { content: ""; position: absolute; right: 30px; top: 30px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.cover-brand { position: absolute; top: 22px; left: 26px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.cover-num { font-family: var(--font-heading); font-size: 0.95rem; opacity: 0.75; }
.cover-title { font-family: var(--font-heading); font-size: 1.85rem; line-height: 1.08; font-weight: 600; max-width: 85%; }
.cover-format { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; margin-top: 6px; }

/* ---------- About ---------- */

.about { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start; }
.about-copy h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin: 16px 0 10px; }
.about-sub { font-family: var(--font-heading); font-size: 1.2rem; color: var(--muted); margin-bottom: 26px; font-style: italic; }
.about-copy p + p { margin-top: 16px; }
.about-copy > p:not(.about-sub) { font-size: 1.04rem; }
.about-side { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.about-side h3 { font-size: 1.3rem; margin-bottom: 22px; }
.diff-list { display: grid; gap: 22px; }
.diff-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.diff-num { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--primary); color: var(--bg); font-family: var(--font-heading); font-weight: 650; font-size: 0.95rem; }
.diff-list strong { display: block; font-size: 1.02rem; color: var(--ink); margin-bottom: 4px; }
.diff-list p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Values ---------- */

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px 26px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.8s var(--ease); }
.value-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-num { font-family: var(--font-heading); font-size: 2.2rem; color: color-mix(in srgb, var(--primary) 40%, var(--paper)); font-weight: 650; line-height: 1; }
.value-card h3 { font-size: 1.28rem; margin: 18px 0 10px; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */

.cta-banner {
  position: relative; overflow: hidden; text-align: center; padding: 84px 32px; border-radius: 32px;
  background:
    radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    var(--ink);
}
.cta-banner h2 { color: var(--on-ink); font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 16px; }
.cta-banner p { color: var(--on-ink-muted); max-width: 560px; margin: 0 auto 32px; font-size: 1.06rem; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 84px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--primary-soft), var(--bg)); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin: 18px 0 14px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.page-hero--compact { padding: 56px 0 40px; }
.page-hero--compact h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }

/* ---------- Product page ---------- */

.product-hero { padding: 64px 0 88px; background: linear-gradient(180deg, var(--primary-soft), var(--bg) 85%); }
.product-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.product-hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); margin: 18px 0 18px; }
.product-hero p { color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--ink); }
.check-list { display: grid; gap: 11px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--primary-pale); color: var(--primary); }
.product-hero-visual { position: relative; }
.product-hero-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--primary-soft); transform: rotate(1.2deg); }
.product-hero-cover .cover-art { padding: 36px; }
.product-hero-cover .cover-title { font-size: 2.5rem; }

.platform { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.feature-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 24px; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--primary); margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.16rem; margin-bottom: 8px; line-height: 1.25; }
.feature-card p { color: var(--muted); font-size: 0.94rem; }

.inside-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.inside-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.format-title { font-size: 1.2rem; margin-top: 36px; }
.module-list { display: grid; gap: 14px; }
.module-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 24px; }
.module-num { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 650; }
.module-item h4 { font-size: 1.14rem; margin: 4px 0 6px; line-height: 1.3; }
.module-item p { color: var(--muted); font-size: 0.95rem; }

.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-card { max-width: 520px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.price-card-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.price-card h3 { font-size: 1.5rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.price-amount { font-family: var(--font-heading); font-size: 3.6rem; line-height: 1; font-weight: 650; color: var(--ink); letter-spacing: -0.03em; }
.price-unit { color: var(--muted); font-size: 0.92rem; font-weight: 550; }
.price-card .check-list { margin: 24px 0 30px; }
.price-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 0.84rem; color: var(--muted); text-align: center; }
.price-note svg { width: 15px; height: 15px; flex-shrink: 0; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 22px 26px; background: none; border: 0; cursor: pointer; font-weight: 650; font-size: 1.02rem; color: var(--ink); }
.faq-question span { font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform 0.3s var(--ease); }
.faq-answer { display: none; padding: 0 26px 22px; color: var(--muted); }
.faq-answer a { color: var(--primary); text-decoration: underline; }
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-question span { transform: rotate(45deg); }

.guarantee-block { display: flex; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 36px; }
.guarantee-badge { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: var(--bg); flex-shrink: 0; }
.guarantee-badge svg { width: 28px; height: 28px; }
.guarantee-block h3 { font-size: 1.3rem; margin-bottom: 6px; }
.guarantee-block p { color: var(--muted); }
.guarantee-block a { color: var(--primary); text-decoration: underline; }

/* ---------- Legal ---------- */

.legal-wrap { padding: 64px 0 104px; }
.legal-doc { max-width: 820px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px 60px; }
.legal-doc .updated-note { font-size: 0.86rem; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.legal-doc h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-doc p { margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 16px; display: grid; gap: 8px; }
.legal-doc li { position: relative; padding-left: 22px; }
.legal-doc li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal-doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.contact-info { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: 40px 36px; }
.contact-info h2, .contact-form-card h2 { font-size: 1.6rem; margin-bottom: 26px; }
.contact-info h2 { color: var(--on-ink); }
.info-row { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-on-ink); }
.icon-wrap { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 55%, var(--ink)); color: var(--accent); }
.icon-wrap svg { width: 21px; height: 21px; }
.info-row h3 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 4px; }
.info-row p { color: var(--on-ink); overflow-wrap: anywhere; }
.info-row p.muted { color: var(--on-ink-muted); font-size: 0.9rem; margin-top: 4px; }
.info-row a:hover { color: var(--accent); }
.contact-form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.86rem; font-weight: 650; color: var(--ink); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 0.97rem; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.form-error { min-height: 1.3em; font-size: 0.88rem; color: #b3412e; margin: 4px 0 12px; }
.form-error.is-ok { color: var(--primary); }

/* ---------- Member pages ---------- */

.auth-wrap { max-width: 480px; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.auth-links { margin-top: 16px; text-align: center; font-size: 0.9rem; }
.auth-links a, .auth-foot a, .auth-forgot a { color: var(--primary); font-weight: 600; }
.auth-forgot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-forgot > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 14px; }
.auth-foot { margin-top: 18px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.welcome-status { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; margin-bottom: 20px; }
.welcome-status.is-ok { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-pale); }
.welcome-steps { list-style: decimal; padding-left: 20px; display: grid; gap: 12px; margin-bottom: 24px; }

.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.account-grid aside { display: grid; gap: 18px; }
.account-card { padding: 26px; }
.account-card p + p { margin-top: 4px; }
.account-card .btn { margin-top: 16px; }
.account-card a:not(.btn) { color: var(--primary); font-weight: 600; }
.account-h { font-size: 1.4rem; margin: 0 0 16px; }
.account-apps + .account-h { margin-top: 40px; }
.account-h3 { font-size: 1.15rem; margin-bottom: 16px; }
.account-apps { display: grid; gap: 14px; }
.account-apps p a { color: var(--primary); font-weight: 600; }
.account-app { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 24px; transition: border-color 0.2s, transform 0.3s var(--ease); }
.account-app:hover { border-color: var(--primary); transform: translateY(-2px); }
.account-app-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.account-app-level { grid-row: 2; font-size: 0.86rem; color: var(--muted); }
.account-app-open { grid-row: 1 / span 2; grid-column: 2; font-weight: 650; color: var(--primary); white-space: nowrap; }
.account-notice { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; }
.account-notice a { color: var(--ink); text-decoration: underline; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--surface); color: var(--muted); white-space: nowrap; }
.pill-active, .pill-full { background: var(--primary-pale); color: var(--primary); }
.pill-refunded, .pill-canceled { background: #f6dcd5; color: #9a3a26; }
.pill-admin { background: var(--ink); color: var(--paper); }
.pill-manual { background: var(--accent-soft); color: var(--ink); }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; }
.admin-stat strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.admin-stat span { font-size: 0.86rem; color: var(--muted); }
.admin-toolbar { margin-bottom: 18px; max-width: 420px; }
.admin-card { padding: 24px; margin-bottom: 24px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-card-head h3 { font-size: 1.2rem; }
.admin-purchase + .admin-purchase { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 84px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid var(--line-on-ink); }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand-mark::after { border-color: var(--ink); }
.footer-brand p { margin-top: 18px; font-size: 0.94rem; max-width: 340px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; font-size: 0.94rem; }
.footer-col a { overflow-wrap: anywhere; transition: color 0.2s; }
.footer-col a:hover { color: var(--on-ink); }
.footer-legal { padding-top: 28px; display: grid; gap: 10px; font-size: 0.84rem; }
.footer-legal-line { color: var(--on-ink); overflow-wrap: anywhere; }
.footer-copy { color: var(--on-ink-muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 920px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
  .nav-links, .nav-login, .nav-actions > .btn { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 10px 24px 22px; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a:not(.btn) { padding: 12px 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 12px; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .product-hero-grid, .about-grid, .inside-grid, .contact-grid, .account-grid { grid-template-columns: 1fr; gap: 48px; }
  .inside-grid .section-head { position: static; }
  .hero-visual { max-width: 560px; }
  .product-hero-visual { max-width: 420px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 66px; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  .hero h1 { font-size: 2.45rem; }
  .lead { font-size: 1.06rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .app-mock { transform: none; }
  .app-mock-body { grid-template-columns: 1fr 1.15fr; min-height: 270px; }
  .app-mock-side { padding: 16px 12px; }
  .app-mock-side li:nth-child(n + 4) { display: none; }
  .app-mock-main { padding: 16px 14px; }
  .chip-1 { left: 8px; bottom: -18px; }
  .chip-2 { right: 8px; top: -18px; }
  .chip-3 { left: 8px; top: -16px; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { padding: 14px 4px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .about-side, .contact-info, .contact-form-card, .auth-card { padding: 26px 20px; }
  .legal-doc { padding: 32px 20px; }
  .price-card { padding: 30px 22px; }
  .price-amount { font-size: 3rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .guarantee-block { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-banner { padding: 56px 20px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .module-item { grid-template-columns: 44px 1fr; padding: 18px; gap: 14px; }
  .module-num { width: 44px; height: 44px; font-size: 1rem; }
  .faq-question { padding: 18px 20px; }
  .faq-answer { padding: 0 20px 18px; }
  .product-hero-cover .cover-title { font-size: 2rem; }
}
