/* Shared styling for unodos.arinbakht.com. Both pages link this file, so the
   two can never drift apart. Theme follows the reader's system preference and
   an explicit data-theme on the root wins over it in both directions. */

:root {
  --bg: #fbfbfa; --fg: #16161d; --muted: #5c5c68; --line: #e2e2dd;
  --card: #ffffff; --accent: #2f5d8c; --accent-fg: #ffffff; --code-bg: #f2f2ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141a; --fg: #e8e8e6; --muted: #9a9aa6; --line: #2b2b35;
    --card: #1c1c24; --accent: #7fb0e0; --accent-fg: #14141a; --code-bg: #22222c;
  }
}
:root[data-theme="light"] {
  --bg: #fbfbfa; --fg: #16161d; --muted: #5c5c68; --line: #e2e2dd;
  --card: #ffffff; --accent: #2f5d8c; --accent-fg: #ffffff; --code-bg: #f2f2ee;
}
:root[data-theme="dark"] {
  --bg: #14141a; --fg: #e8e8e6; --muted: #9a9aa6; --line: #2b2b35;
  --card: #1c1c24; --accent: #7fb0e0; --accent-fg: #14141a; --code-bg: #22222c;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
code, .mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

header { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
.tagline { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); margin: 0 0 1.6em; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 7px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-ghost { color: var(--accent); }

figure.demo { margin: 44px 0 0; }
figure.demo video { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #000; }
figcaption { color: var(--muted); font-size: .87rem; margin-top: 10px; }

section { padding: 48px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: 1.45rem; margin: 0 0 .7em; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.8em 0 .5em; }
p { max-width: 40em; }
.lede { font-size: 1.07rem; }
ul { max-width: 40em; padding-left: 1.25em; }
li { margin: .35em 0; }

.table-scroll { overflow-x: auto; margin: 18px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 620px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
td.size { white-space: nowrap; color: var(--muted); font-size: .85rem; }
td .run { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }

/* Hardware caveats. Deliberately legible rather than fine print: these are the
   limitations a reader would otherwise discover by hitting them. */
td .caveat {
  display: block; font-size: .84rem; margin-top: 5px; padding-left: 9px;
  border-left: 2px solid var(--accent); color: var(--fg); opacity: .8;
}
.pending { color: var(--muted); font-style: italic; }

.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px 18px; margin: 22px 0; }
.note p { margin: 0; max-width: none; font-size: .93rem; }
.note p + p { margin-top: .7em; }

.offer { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 24px 26px; margin: 24px 0; }
.offer h3 { margin-top: 0; font-size: 1.2rem; }
.price { font-size: 1.05rem; font-weight: 600; margin: .2em 0 1em; }
.price .qual { font-weight: 400; color: var(--muted); font-size: .9rem; }

pre { background: var(--code-bg); padding: 14px 16px; border-radius: 7px; overflow-x: auto; font-size: .88rem; }

form.signup { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; max-width: 30em; }
form.signup input[type=email] {
  flex: 1 1 15em; padding: 11px 13px; font-size: 1rem; border-radius: 7px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
}
form.signup button {
  padding: 11px 20px; font-size: .95rem; font-weight: 600; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg);
}
.fineprint { color: var(--muted); font-size: .85rem; }

/* Honeypot. Moved off-screen rather than display:none, because some bots skip
   hidden fields but happily fill positioned ones. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; white-space: nowrap;
}

footer { padding: 40px 0 64px; color: var(--muted); font-size: .88rem; }
footer a { color: var(--muted); }
