/* Providame marketing site — plain CSS, no build step, no external deps. */

/* Official Providame brand palette (webapp/app/assets/css/main.css) */
:root {
  --bg: #fafafa;              /* paper */
  --bg-elevated: #faf6ed;     /* providame-wash */
  --bg-card: #ffffff;         /* surface */
  --border: #e4e4e7;          /* line */
  --text: #18181b;            /* ink */
  --text-muted: #71717a;      /* muted */
  --text-faint: #a1a1aa;      /* faint */
  --accent: #7a6540;          /* providame — primary */
  --accent-strong: #523f1e;   /* providame-deep — hover/emphasis */
  --accent-soft: #9e8a66;     /* providame-soft — decorative only */
  --accent-bg: #faf6ed;       /* providame-wash — tint backgrounds */
  --success: #4a7c3f;
  --warning: #f5a524;
  --danger: #d60004;
  --secondary: #96502e;
  --radius: 10px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;             /* doc-bg */
    --bg-elevated: #221d15;    /* doc-surface */
    --bg-card: #221d15;        /* doc-surface */
    --border: #3a3226;         /* doc-line */
    --text: #f3efe6;           /* doc-ink */
    --text-muted: #a89b85;     /* doc-muted */
    --text-faint: rgba(168, 155, 133, 0.65);
    --accent: #9e8a66;         /* doc-accent = providame-soft */
    --accent-strong: #d9c9a3;
    --accent-soft: #9e8a66;
    --accent-bg: rgba(158, 138, 102, 0.14);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-strong); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-actions .btn.btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }

  .nav-links.open a { padding: 10px 0; width: 100%; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-strong); color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent-soft); color: var(--text); }

.btn-lg { padding: 13px 26px; font-size: 1.02rem; }

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

.hero {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-bg) 0%, transparent 60%),
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 100% 100%, 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero h1 span { color: var(--accent); }

/* Rotating "E" word — see .docs/website/hero.md
   Height/line-height are intentionally left to the browser's natural line
   box (not a fixed em value) so descenders (g/y/p) are never clipped,
   regardless of the font actually in use. overflow:hidden only crops the
   transient +/-8px slide during a transition, never the settled glyph. */
.rotator {
  display: inline-block;
  position: relative;
  min-width: 9.5ch;
  overflow: hidden;
  text-align: left;
  vertical-align: bottom;
  padding-bottom: 10px;
}

.rotator-word {
  display: inline-block;
  white-space: nowrap;
  color: var(--accent);
  transform: translateY(0);
  opacity: 1;
  transition: transform 400ms ease, opacity 400ms ease;
}

.rotator-word.is-leaving {
  transform: translateY(-8px);
  opacity: 0;
}

.rotator-word.is-entering-start {
  transition: none;
  transform: translateY(8px);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rotator-word {
    transition: none;
  }
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Two-column hero (homepage only) ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  text-align: left;
}

.hero-grid > * {
  min-width: 0;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-grid p.lead {
  margin: 0 0 32px;
  max-width: none;
}

.hero-visual {
  position: relative;
}

.hero-visual .code-window {
  max-width: none;
  margin: 0;
}

.hero-visual .hero-illustration {
  position: absolute;
  right: -16px;
  bottom: -28px;
  width: 170px;
  max-width: 42%;
  margin: 0;
  z-index: 2;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18));
}

.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.25);
  z-index: 3;
  white-space: nowrap;
}

.hero-badge-1 {
  top: -14px;
  left: -12px;
}

.hero-badge-2 {
  bottom: 28%;
  right: -18px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-grid .hero-actions {
    justify-content: center;
  }
  .hero-grid p.lead {
    margin: 0 auto 32px;
    max-width: 560px;
  }
  .hero-visual {
    margin-top: 40px;
  }
  .hero-badge {
    display: none;
  }
}

/* ---------- Code sample ---------- */

.code-window {
  max-width: 720px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.code-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

.code-window pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
  overflow-x: auto;
  color: var(--text);
}

.code-window .tok-kw { color: var(--accent-strong); }
.code-window .tok-str { color: var(--success); }
.code-window .tok-fn { color: var(--secondary); }
.code-window .tok-com { color: var(--text-faint); }

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  margin: 16px auto 0;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.alt-bg {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Grid / cards ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.12);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Headline cards + support panel ---------- */

.headline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.headline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.headline-card .icon-big { width: 84px; height: 84px; margin: 0 auto 16px; }
.headline-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.headline-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

.support-label {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-faint); margin: 40px 0 14px;
}
.support-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.support-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
}
.support-row + .support-row { border-top: 1px solid var(--border); }
.support-row .icon-sm {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-bg); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.support-row .icon-sm svg { width: 16px; height: 16px; }
.support-row h4 { margin: 0 0 2px; font-size: 0.92rem; }
.support-row p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 780px) {
  .headline-grid { grid-template-columns: 1fr; }
}

/* ---------- Logo strip ---------- */

.logo-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.logo-strip span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Environment / tenant panel ---------- */

.tenant-panel-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.tenant-copy .lead { margin: 0 0 32px; max-width: 46ch; }

.tenant-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tenant-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tenant-fact .icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tenant-fact .icon svg { width: 17px; height: 17px; stroke: var(--accent-strong); }
.tenant-fact h4 { margin: 0 0 3px; font-size: 0.98rem; }
.tenant-fact p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

.tenant-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.tenant-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.tenant-panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }

.tenant-panel-bar-label {
  margin-left: 8px;
  font-size: 0.76rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

.tenant-panel-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 16px 0;
}

.tenant-panel-tab {
  font-family: inherit;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tenant-panel-tab .dot { width: 7px; height: 7px; border-radius: 50%; }
.tenant-panel-tab[data-env="dev"] .dot { background: #8a8a92; }
.tenant-panel-tab[data-env="staging"] .dot { background: #c08a2e; }
.tenant-panel-tab[data-env="production"] .dot { background: #3f7d4f; }

.tenant-panel-tab.active { color: var(--text); background: var(--bg-elevated); }
.tenant-panel-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tenant-panel-body { padding: 24px; background: var(--bg-elevated); }

.tenant-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.tenant-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.tenant-stat-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.tenant-stat-card .value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tenant-stat-card .value.mono { font-family: var(--mono); font-size: 0.95rem; }

.tenant-keys-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.tenant-key-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; }
.tenant-key-row + .tenant-key-row { border-top: 1px solid var(--border); }
.tenant-key-row .k-label { font-size: 0.78rem; color: var(--text-muted); }
.tenant-key-row .k-value { font-family: var(--mono); font-size: 0.84rem; }

.tenant-badge-isolated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-bg);
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 14px;
}

.tenant-badge-isolated svg { width: 11px; height: 11px; stroke: var(--accent-strong); }

@media (max-width: 900px) {
  .tenant-panel-layout { grid-template-columns: 1fr; }
}

/* ---------- Security panel ---------- */

.security-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.security-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 40px;
}

.security-panel-grid .security-item:nth-child(1) {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-panel-grid .security-item:nth-child(2) {
  border-bottom: 1px solid var(--border);
}

.security-panel-grid .security-item:nth-child(3) {
  border-right: 1px solid var(--border);
}

.security-icon { flex: none; width: 68px; height: 68px; }
.security-icon svg { width: 100%; height: 100%; }

.security-copy h3 { margin: 0 0 6px; font-size: 1.02rem; }
.security-copy p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 720px) {
  .security-panel-grid { grid-template-columns: 1fr; }
  .security-panel-grid .security-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .security-panel-grid .security-item:last-child { border-bottom: none !important; }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft);
  position: relative;
}

.plan.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 4px; font-size: 1.15rem; }
.plan .plan-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 20px; }

.plan .price {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.plan .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan .price-note { color: var(--text-faint); font-size: 0.85rem; margin: 0 0 24px; }

.plan ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  stroke: var(--success);
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

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

.cta-band {
  text-align: center;
  background: linear-gradient(180deg, var(--accent-bg), transparent);
  border-radius: 20px;
  padding: 64px 32px;
  margin: 0 24px;
}

.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--text-muted); margin: 0 0 28px; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-faint);
  text-decoration: underline;
}

.footer-bottom a:hover { color: var(--text-muted); }

/* ---------- Legal / content pages ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal .container { max-width: 760px; }

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal ul, .legal ol {
  padding-left: 22px;
}

.legal li { margin-bottom: 8px; }

.legal a { text-decoration: underline; text-underline-offset: 2px; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc h2 { margin: 0 0 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; }

/* ---------- Simple pages (about/contact/404/coming-soon) ---------- */

.simple-page {
  padding: 96px 0;
  text-align: center;
}

.simple-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 16px;
}

.simple-page p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.status-code {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 40px auto 0;
  text-align: left;
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* ---------- Scroll reveal (see assets/reveal.js) ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hover lift (cards / plans) ---------- */

.card,
.plan {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.25);
}

.plan:hover,
.plan:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.25);
}

.plan.featured:hover,
.plan.featured:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 16px 36px -16px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .plan {
    transition: none;
  }
  .card:hover,
  .plan:hover {
    transform: none;
  }
}

/* ---------- Floating decoration (hero + security illustrations only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .float-slow { animation: float-slow 6s ease-in-out infinite; }
  .float-med { animation: float-med 5s ease-in-out infinite; }
  .float-fast { animation: float-fast 4.5s ease-in-out infinite; }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-med {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Illustration containers ---------- */

.hero-illustration {
  width: 100%;
  max-width: 320px;
  margin: 40px auto 0;
  display: block;
}

.page-illustration {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 24px;
  display: block;
}

.grid-accent {
  width: 60px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

/* ---------- Photo bands / cards ---------- */

.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 780px) {
  .photo-band { grid-template-columns: 1fr; }
}

.photo-band img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-photo,
.contact-photo {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 32px auto 0;
  display: block;
}

/* ---------- Explicit theme override (see assets/theme.js) ---------- */

:root[data-theme="dark"] {
  --bg: #17140f;
  --bg-elevated: #221d15;
  --bg-card: #221d15;
  --border: #3a3226;
  --text: #f3efe6;
  --text-muted: #a89b85;
  --text-faint: rgba(168, 155, 133, 0.65);
  --accent: #9e8a66;
  --accent-strong: #d9c9a3;
  --accent-soft: #9e8a66;
  --accent-bg: rgba(158, 138, 102, 0.14);
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #faf6ed;
  --bg-card: #ffffff;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --accent: #7a6540;
  --accent-strong: #523f1e;
  --accent-soft: #9e8a66;
  --accent-bg: #faf6ed;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: none; }

html[data-theme="light"] .theme-toggle .icon-sun,
html:not([data-theme]) .theme-toggle .icon-sun { display: none; }

html[data-theme="light"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 780px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

.stats-strip .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.stats-strip .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Comparison panel ---------- */

.compare-wrap {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.compare-grid > div {
  padding: 20px 24px;
  display: flex;
  align-items: center;
}

.compare-grid .col-head {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  justify-content: center;
  padding-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.compare-grid > .row-label.col-head { color: transparent; }

.compare-grid .col-providame.col-head {
  color: var(--accent-strong);
  background: var(--accent-bg);
}

.compare-grid .row-label {
  font-weight: 600;
  font-size: 0.92rem;
  justify-content: flex-start;
}

.compare-grid .cell { justify-content: center; border-bottom: 1px solid var(--border); }
.compare-grid > div:nth-last-child(-n+4) { border-bottom: none; }

.compare-grid .col-providame { background: var(--accent-bg); }

.compare-wrap .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.compare-wrap .chip.full { background: rgba(63, 125, 79, 0.14); color: #3f7d4f; }
.compare-wrap .chip.partial { background: rgba(192, 138, 46, 0.14); color: #a06b1f; }
.compare-wrap .chip.manual { background: rgba(0, 0, 0, 0.05); color: var(--text-muted); }
.compare-wrap .chip.bad { background: rgba(176, 69, 46, 0.14); color: #b0452e; }
.compare-wrap .chip svg { width: 12px; height: 12px; }

.compare-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  background: var(--accent-bg);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.compare-summary svg { width: 15px; height: 15px; }

@media (max-width: 780px) {
  .compare-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; font-size: 0.82rem; }
  .compare-grid > div { padding: 14px 10px; }
  .compare-grid .row-label { font-size: 0.82rem; }
}

@media (max-width: 600px) {
  .compare-wrap { overflow-x: auto; }
  .compare-grid { width: 640px; }
}

/* ---------- Editorial rows + sticky illustration ---------- */

.editorial-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.editorial-visual {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 132px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-visual svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.editorial-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.editorial-row:first-child {
  padding-top: 0;
}

.editorial-row:last-child {
  border-bottom: none;
}

.editorial-row-icon {
  width: 36px;
  height: 36px;
  padding: 6px;
}
.editorial-row-icon svg {
  width: 24px;
  height: 24px;
}


.editorial-row h3 {
  font-size: 0.98rem;
  margin: 0;
}

.editorial-row p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .editorial-layout {
    grid-template-columns: 1fr;
  }
  .editorial-visual {
    position: static;
  }
  .editorial-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
