.if {
  --if-bg: #081008;
  --if-panel: #0c180d;
  --if-panel-2: #102012;
  --if-line: #315f35;
  --if-green: #70db79;
  --if-amber: #e0aa39;
  --if-text: #d7ddc8;
  --if-copy: #aebbaa;
  --if-muted: #829184;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--if-text);
  background:
    radial-gradient(circle at 50% 18%, #17351b 0, transparent 30%),
    linear-gradient(#35603818 1px, transparent 1px),
    linear-gradient(90deg, #35603818 1px, transparent 1px),
    var(--if-bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.if *, .if *::before, .if *::after { box-sizing: border-box; }
.if::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #0002 3px 4px);
}
.if a, .if button { color: inherit; font: inherit; }
.if a:focus-visible, .if button:focus-visible { outline: 2px solid var(--if-amber); outline-offset: 4px; }
.if-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.if-header {
  min-height: 76px;
  border-bottom: 1px solid #315f3588;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  background: #081008cc;
  backdrop-filter: blur(10px);
}
.if-nav { display: flex; align-items: center; gap: 24px; }
.if-brand { margin-right: auto; display: inline-flex; align-items: center; text-decoration: none; }
.if-brand svg { width: 38px; height: 38px; display: block; color: var(--if-green); filter: drop-shadow(0 0 7px #70db7944); }
.if-revision { color: #547058; font-size: 10px; letter-spacing: .16em; }
.if-nav-link { padding: 0; border: 0; color: #9aac9c; background: transparent; font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.if-nav-link:hover { color: var(--if-amber); }

.if-hero {
  min-height: calc(100vh - 76px);
  padding: clamp(60px, 9vh, 100px) 0 72px;
  position: relative;
  z-index: 10;
  display: grid;
  place-items: center;
  text-align: center;
}
.if-hero-inner { width: min(900px, 100%); }
.if-eyebrow { margin: 0 0 22px; color: var(--if-green); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.if h1 { max-width: 840px; margin: 0 auto; color: var(--if-text); font-size: clamp(40px, 7vw, 78px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.if h1 span { color: var(--if-amber); }
.if-intro { max-width: 650px; margin: 24px auto 38px; color: var(--if-copy); font-size: clamp(15px, 2vw, 18px); }

.if-install {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--if-green);
  border-radius: 8px;
  background: #060c07ee;
  box-shadow: 0 0 0 6px #70db7910, 0 28px 80px #0008;
  text-align: left;
}
.if-install-head {
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--if-line);
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--if-panel-2);
  color: #6f8e72;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.if-dot { width: 9px; height: 9px; border-radius: 50%; background: #6f3734; }
.if-dot:nth-child(2) { background: #9c792b; }
.if-dot:nth-child(3) { background: #3b8142; }
.if-install-head span:nth-child(4) { margin-left: 7px; }
.if-copy-label { margin-left: auto; color: var(--if-green); }
.if-command {
  width: 100%;
  min-height: 116px;
  padding: 28px clamp(20px, 5vw, 44px);
  border: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #eff5df;
  background: transparent;
  cursor: pointer;
  font-size: clamp(15px, 2.5vw, 25px);
  line-height: 1.35;
  text-align: left;
}
.if-prompt { flex: 0 0 auto; color: var(--if-green); }
.if-command code { overflow-wrap: anywhere; }
.if-copy-state { margin-left: auto; flex: 0 0 auto; color: var(--if-amber); font-size: 12px; letter-spacing: .1em; }
.if-command:hover .if-copy-state { color: #ffd36d; }
.if-after { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; color: var(--if-muted); font-size: 11px; }
.if-after span::before { content: "✓"; margin-right: 7px; color: var(--if-green); }
.if-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.if-button {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--if-amber);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0aa3918;
  color: var(--if-amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.if-button:hover { background: #e0aa3928; }
.if-button-secondary { border-color: #436847; background: transparent; color: #91a895; }

.if-facts { border-top: 1px solid #315f3577; border-bottom: 1px solid #315f3577; position: relative; z-index: 10; background: #081008bb; }
.if-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.if-fact { padding: 34px 28px; text-align: center; }
.if-fact + .if-fact { border-left: 1px solid #315f3577; }
.if-fact strong { display: block; color: var(--if-amber); font-size: 20px; }
.if-fact span { color: var(--if-muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.if-section { padding: clamp(72px, 9vw, 112px) 0; border-bottom: 1px solid #315f3555; position: relative; z-index: 10; }
.if-section-head { max-width: 760px; margin-bottom: 42px; }
.if-label { margin: 0 0 12px; color: var(--if-green); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.if h2 { margin: 0; color: var(--if-text); font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.045em; }
.if-section-copy { max-width: 680px; margin: 18px 0 0; color: var(--if-copy); font-size: 15px; }
.if-quality-chart { max-width: 680px; margin: 0 0 28px; padding: 24px; border: 1px solid var(--if-line); background: var(--if-panel); }
.if-quality-chart-caption { margin-bottom: 24px; color: var(--if-copy); font-size: 12px; }
.if-quality-chart-row + .if-quality-chart-row { margin-top: 20px; }
.if-quality-chart-label { display: flex; justify-content: space-between; gap: 16px; color: var(--if-text); font-size: 13px; }
.if-quality-chart-label strong { color: var(--if-text); font-size: 18px; }
.if-quality-chart-row.amber .if-quality-chart-label strong { color: var(--if-green); }
.if-quality-chart-row.sol .if-quality-chart-label strong { color: var(--if-amber); }
.if-quality-chart-note { margin: 22px 0 0; color: var(--if-green); font-size: 12px; letter-spacing: .04em; }
.if-quality-chart-track { position: relative; height: 22px; margin-top: 8px; border: 1px solid var(--if-line); background: var(--if-panel-2); }
.if-quality-chart-fill { display: block; height: 100%; }
/* Zoomed 80–100% scale: width = (score - 80) / 20. The actual % is shown in the label. */
.if-quality-chart-amber { width: 40%; background: var(--if-green); }
.if-quality-chart-sol { width: 30%; background: var(--if-amber); }
.if-quality-chart-axis { display: flex; justify-content: space-between; color: var(--if-copy); font-size: 11px; }
.if-quality-chart .if-section-copy { color: var(--if-green); font-size: 12px; }
@media (max-width: 480px) {
  .if-quality-chart { padding: 18px; }
  .if-quality-chart-label { font-size: 11px; }
}

.if-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--if-line); background: #08100888; }
.if-card { min-height: 250px; padding: 28px; position: relative; }
.if-card + .if-card { border-left: 1px solid var(--if-line); }
.if-card-index { display: block; margin-bottom: 52px; color: var(--if-green); font-size: 11px; letter-spacing: .14em; }
.if-card h3 { margin: 0 0 12px; color: var(--if-amber); font-size: 17px; }
.if-card p { margin: 0; color: var(--if-copy); font-size: 13px; }

.if-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.if-step { min-height: 220px; padding: 26px; border: 1px solid var(--if-line); background: var(--if-panel); }
.if-step strong { width: 38px; height: 38px; margin-bottom: 36px; border: 1px solid var(--if-green); display: grid; place-items: center; color: var(--if-green); font-size: 11px; }
.if-step h3 { margin: 0 0 10px; color: var(--if-text); font-size: 16px; }
.if-step p { margin: 0; color: var(--if-muted); font-size: 13px; }

.if-price { padding: clamp(32px, 6vw, 68px); border: 2px solid var(--if-amber); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: #e0aa3908; box-shadow: 0 0 0 6px #e0aa3908; }
.if-price strong { display: block; color: var(--if-amber); font-size: clamp(34px, 6vw, 62px); line-height: 1; }
.if-price p { max-width: 650px; margin: 14px 0 0; color: var(--if-copy); }
.if-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.if-tool { padding: 10px 14px; border: 1px solid var(--if-line); color: #9eafa0; background: #0c180d99; font-size: 11px; letter-spacing: .08em; }
.if-final { text-align: center; }
.if-final h2 { max-width: 780px; margin-inline: auto; }
.if-final .if-install { max-width: 900px; margin: 36px auto 0; }
.if-footer { padding: 30px 0; position: relative; z-index: 10; color: #526b55; font-size: 10px; letter-spacing: .1em; text-align: center; }

/* Shared authenticated-product shell. The dashboard pages keep their dense,
   task-oriented layout while using the same materials as the public site. */
.brand-app {
  --app-bg: #081008;
  --app-panel: #0c180d;
  --app-panel-2: #102012;
  --app-line: #315f35;
  --app-green: #70db79;
  --app-amber: #e0aa39;
  --app-text: #d7ddc8;
  --app-copy: #aebbaa;
  --app-muted: #829184;
  color: var(--app-text);
  background:
    radial-gradient(circle at 58% 0%, #17351b 0, transparent 30%),
    linear-gradient(#35603818 1px, transparent 1px),
    linear-gradient(90deg, #35603818 1px, transparent 1px),
    var(--app-bg) !important;
  background-size: auto, 32px 32px, 32px 32px, auto !important;
  background-attachment: fixed !important;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
.brand-app-chrome {
  border-color: #315f3588 !important;
  background: #081008e8 !important;
  backdrop-filter: blur(10px);
}
.brand-app .bg-black { background-color: var(--app-panel) !important; }
.brand-app .bg-zinc-900 { background-color: var(--app-panel-2) !important; }
.brand-app .text-white { color: var(--app-text) !important; }
.brand-app .text-zinc-300, .brand-app .text-zinc-400 { color: var(--app-copy) !important; }
.brand-app .text-zinc-500 { color: var(--app-muted) !important; }
.brand-app .border-zinc-700, .brand-app .border-zinc-800 { border-color: var(--app-line) !important; }
.brand-app input, .brand-app select, .brand-app textarea { background-color: var(--app-panel-2) !important; border-color: var(--app-line) !important; color: var(--app-text) !important; }
.brand-app table { background: #081008aa; }
.brand-app th { color: var(--app-green); letter-spacing: .08em; text-transform: uppercase; }
.brand-app .btn-primary, .btn-primary {
  border-color: var(--app-amber, #e0aa39) !important;
  background: var(--app-amber, #e0aa39) !important;
  color: #081008 !important;
}
.brand-app .btn-primary:hover, .btn-primary:hover { box-shadow: 4px 4px 0 var(--app-green, #70db79) !important; }
.brand-app .btn-primary:focus-visible, .btn-primary:focus-visible { outline-color: var(--app-amber, #e0aa39) !important; }

.brand-login {
  width: min(460px, 100%);
  position: relative;
  overflow: hidden;
  border: 2px solid #70db79;
  border-radius: 8px;
  background: #060c07;
  box-shadow: 0 0 0 6px #70db7910, 0 28px 80px #000a;
}
.brand-login-bar {
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #315f35;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #102012;
  color: #6f8e72;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-login-dot { width: 9px; height: 9px; border-radius: 50%; background: #6f3734; }
.brand-login-dot:nth-child(2) { background: #9c792b; }
.brand-login-dot:nth-child(3) { background: #3b8142; }
.brand-login-bar-label { margin-left: 7px; }
.brand-login-close { margin-left: auto; padding: 6px; color: #829184; }
.brand-login-close:hover { color: #e0aa39; }
.brand-login-body { padding: 28px; }
.brand-login-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.brand-login-title { margin: 0; color: #d7ddc8; font-size: 26px; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; text-align: center; }
.brand-login-copy { max-width: 340px; margin: 10px auto 24px; color: #829184; font-size: 13px; text-align: center; }
.brand-login-label { display: grid; gap: 7px; color: #aebbaa; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.brand-login-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #315f35; background: #0c180d; color: #d7ddc8; font-size: 14px; outline: none; }
.brand-login-input:focus { border-color: #70db79 !important; box-shadow: 0 0 0 3px #70db7912; }
.brand-login-divider { margin: 24px 0; display: flex; align-items: center; gap: 12px; color: #526b55; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.brand-login-divider::before, .brand-login-divider::after { content: ""; height: 1px; flex: 1; background: #315f35; }
.brand-login-google { width: 100%; min-height: 46px; border: 1px solid #436847; display: flex; align-items: center; justify-content: center; gap: 10px; background: transparent; color: #aebbaa; }
.brand-login-google:hover { border-color: #70db79; color: #d7ddc8; background: #70db7908; }
.brand-login-switch { margin: 22px 0 0; color: #829184; font-size: 13px; text-align: center; }
.brand-login-switch button { color: #e0aa39; }
.brand-login-switch button:hover { text-decoration: underline; }

@media (min-width: 768px) { .if { margin: -3rem; } }
@media (max-width: 767px) { .if { margin: -1rem; } }
@media (max-width: 700px) {
  .if-revision, .if-nav-secondary { display: none; }
  .if-nav { gap: 14px; }
  .if-hero { min-height: auto; }
  .if-command { align-items: flex-start; }
  .if-copy-state { display: none; }
  .if-facts-grid, .if-grid, .if-flow, .if-price { grid-template-columns: 1fr; }
  .if-fact + .if-fact, .if-card + .if-card { border-top: 1px solid var(--if-line); border-left: 0; }
  .if-card { min-height: 210px; }
  .if-card-index { margin-bottom: 30px; }
  .if-price { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .if * { scroll-behavior: auto !important; } }
