/* lodinize.com - site styles (marketing pages). The help pages use help/_style.css + docs.css. */
:root {
  --bg: #0d1117;
  --bg-elev: #161b22;
  --surface: #1c2230;
  --surface-2: #222a3a;
  --border: #2a3344;
  --border-strong: #3a4558;
  --text: #e8ecf3;
  --text-dim: #9aa6b8;
  --text-faint: #6b7689;
  --accent: #4fd1c5;
  --accent-strong: #2dd4bf;
  --accent-2: #8b8bf0;
  --on-accent: #06231f;
  --warn: #f2c46d;
  --err: #ff8b8b;
  --radius: 14px;
  --radius-s: 10px;
  --maxw: 1120px;
  --narrow: 760px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(139,139,240,0.16), transparent 60%),
    radial-gradient(900px 500px at 5% 40%, rgba(79,209,197,0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #7fe3da; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; }
/* No lone word at the end of a paragraph, balanced headings (browsers without support just wrap normally). */
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
.lede, .section-lede { text-wrap: balance; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; font-weight: 720; }
h3 { font-size: 18.5px; margin: 0 0 6px; font-weight: 680; }
p { margin: 0 0 14px; }
.muted { color: var(--text-dim); }
.small { font-size: 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,17,23,0.82);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .logo { display: block; width: 32px; height: 32px; }
.wordmark { font-size: 20px; font-weight: 720; letter-spacing: -0.01em; }
.wordmark .lod { color: var(--accent); }
.badge {
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); background: var(--bg-elev);
  padding: 4px 10px; border-radius: 999px;
}
.site-nav { display: flex; gap: 4px 20px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 550; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-s); border: 0;
  font: inherit; font-size: 16px; font-weight: 680; line-height: 1.2;
  color: var(--on-accent); text-decoration: none; cursor: pointer;
  background: linear-gradient(100deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 24px -10px rgba(45,212,191,0.55);
  transition: filter .15s ease, transform .05s ease;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-small { padding: 8px 16px; font-size: 14.5px; box-shadow: none; }
.btn-ghost {
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); filter: none; }
.btn .sub { display: block; font-size: 12.5px; font-weight: 550; opacity: 0.75; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; }
.hero h1 { font-size: clamp(34px, 6.2vw, 64px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 22px; font-weight: 780; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(17.5px, 2.2vw, 20.5px); color: var(--text-dim); max-width: 60ch; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--text-dim); }
.fine span + span::before { content: "\00b7"; margin: 0 8px; color: var(--text-faint); }
.fine span { white-space: nowrap; }

/* before/after compare (textured layer + wireframe layer, same pose) */
.compare { margin: 44px 0 0; }
.compare .stage { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #2b2f36; line-height: 0; }
.compare .layer { display: block; width: 100%; height: auto; }
.compare .wireframe { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.compare.show-wf .wireframe { opacity: 1; }
.compare .lbl {
  position: absolute; top: 12px; z-index: 2; line-height: 1.2;
  font-size: 13px; font-weight: 650; color: var(--text);
  background: rgba(13,17,23,0.74); border: 1px solid var(--border); padding: 5px 10px; border-radius: 8px;
}
.compare .lbl-l { left: 12px; }
.compare .lbl-r { left: calc(50% + 12px); color: var(--accent); }
.compare-bar { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px; line-height: 1.5; }
.compare-bar .stat { font-size: 14.5px; color: var(--text-dim); }
.reveal {
  margin-left: auto; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 620;
  color: var(--text); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.reveal:hover, .reveal[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid rgba(42,51,68,0.6); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.section-lede { color: var(--text-dim); font-size: 18px; max-width: 62ch; margin-bottom: 30px; }

.split { display: grid; gap: 28px 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split.flip { grid-template-columns: 7fr 5fr; } .split.flip > :first-child { order: 2; } }

/* "read how" links from a feature to its help page */
.more-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; }
.step .more-links, .card .more-links { margin-top: 12px; }
.more { font-weight: 620; font-size: 15px; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }
.panel-try .cta-row { margin-top: 20px; }

.shot { margin: 0; }
.shot img, .shot .frame {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: #1b1e23;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.7);
}
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.shot.wide { margin-top: 8px; }
.why-text { max-width: 820px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 4px; }
.stat-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--text-dim); }
.stat-chip b { display: block; color: var(--text); font-size: 20px; font-weight: 720; }
.stat-chip b.good { color: var(--accent); }

/* steps: text + screenshot rows, alternating sides on wide screens */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.step {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; display: grid; gap: 18px 40px; align-items: center;
}
@media (min-width: 900px) {
  .step { grid-template-columns: 4fr 7fr; padding: 30px; }
  .step:nth-child(even) { grid-template-columns: 7fr 4fr; }
  .step:nth-child(even) .step-text { order: 2; }
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step h3::before {
  content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 12px;
  border-radius: 50%; background: rgba(79,209,197,0.14); color: var(--accent); font-size: 15px; font-weight: 750;
  vertical-align: 2px;
}
.step p { color: var(--text-dim); margin: 0; }
.step .shot img { box-shadow: none; }
.step .shot.center img { width: auto; max-width: 100%; max-height: 380px; margin: 0 auto; }

/* feature cards */
.cards { display: grid; gap: 22px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--text-dim); margin: 0; }
.card .shot { margin-top: auto; }
.card .shot img { box-shadow: none; }

/* the Early Preview facts */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.facts svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.facts b { display: block; margin-bottom: 2px; }
.facts span { color: var(--text-dim); font-size: 15.5px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 400; color: var(--text-dim); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-dim); margin: 0 0 16px; max-width: 70ch; }

/* ---------- forms ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h2 { font-size: 24px; margin-bottom: 6px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
label.field { display: block; font-weight: 620; font-size: 15px; margin: 0 0 6px; }
.field-hint { font-weight: 400; color: var(--text-dim); }
input[type="email"], input[type="text"], textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15.5px; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px; outline: none;
}
.form-row input[type="email"] { flex: 1 1 260px; width: auto; min-width: 0; }
textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,209,197,0.18); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.choices legend { font-weight: 620; font-size: 15px; margin-bottom: 8px; padding: 0; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; font-size: 15px; background: var(--bg-elev); }
.choices input { accent-color: var(--accent); margin: 0; }
.choices label:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-dim); margin: 14px 0; }
.check input { accent-color: var(--accent); margin-top: 4px; }
.form-stack > * + * { margin-top: 18px; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 12px 2px 0; font-size: 13.5px; color: var(--text-dim); }
.status { margin: 14px 0 0; font-size: 15px; display: none; }
.status.ok { display: block; color: var(--accent); }
.status.err { display: block; color: var(--err); }

/* ---------- download page ---------- */
.dl-card { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .dl-card { grid-template-columns: 1fr auto; } }
.page .dl-meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-dim); font-size: 14.5px; }
.hash { margin-top: 22px; }
.hash-box { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.hash-box code {
  flex: 1 1 380px; min-width: 0; overflow-wrap: anywhere; display: block;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: var(--text);
}
.copy { font: inherit; font-size: 14px; font-weight: 620; padding: 8px 14px; border-radius: 8px; cursor: pointer; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); }
.copy:hover { border-color: var(--accent); color: var(--accent); }
pre.cmd { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; margin: 6px 0 12px; }
.warn-steps { counter-reset: w; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.warn-steps li { counter-increment: w; position: relative; padding: 16px 16px 16px 56px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; }
.warn-steps li::before { content: counter(w); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,196,109,0.14); color: var(--warn); font-weight: 750; font-size: 14.5px; }
.warn-steps b { display: block; }
.ui { font-weight: 650; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; font-size: 0.94em; white-space: nowrap; }
.req { margin: 0; padding-left: 20px; }
.req li { margin-bottom: 6px; }
.req li::marker { color: var(--accent); }
.two-col { display: grid; gap: 22px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- plain pages (privacy, EULA, 404) ---------- */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(30px, 4.8vw, 44px); margin: 0 0 14px; font-weight: 760; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page li { color: #cfd6e1; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.legal h2 { font-size: 18px; margin-top: 30px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ol { padding-left: 26px; }
.callout { background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: rgba(13,17,23,0.7); margin-top: 24px; }
.site-footer .bar { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--text-dim); }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-header .bar { padding-top: 10px; padding-bottom: 10px; gap: 8px 14px; }
  .badge { display: none; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 4px 18px; }
  .site-header .btn-small { margin-left: auto; }
  .hero { padding-top: 40px; }
  .band { padding: 52px 0; }
  .panel, .step, .card { padding: 18px; }
  .cta-row .btn { width: 100%; }
  .compare .lbl { font-size: 11.5px; top: 8px; padding: 4px 7px; }
  .compare .lbl-l { left: 8px; }
  .compare .lbl-r { left: calc(50% + 8px); }
  .reveal { margin-left: 0; }
}
