/* Duniya site — "Constellation" (see DESIGN.md): porcelain + ink, one saffron signal (the mark's), mono instrument labels, LED dots. */
:root {
  --bg: #f2f1ec; --bg-2: #e8e6df; --card: #ffffff; --ink: #101216; --muted: #5f636c; --line: #e2e0d8; --line-2: #cfccc2;
  --signal: #f55600; --signal-deep: #b23c00; --signal-soft: #ffe8da;
  --people-1: #ff7a3d; --people-2: #f2477e; --people-3: #13b3a1; --people-4: #5363ff; --people-5: #9bd400;
  --warn: #855600; --warn-soft: #fff2d2; --info: #2c4fd6; --info-soft: #e8edff;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(16,18,22,.04), 0 10px 30px -18px rgba(16,18,22,.25);
  --shot: 0 1px 2px rgba(16,18,22,.06), 0 30px 60px -30px rgba(16,18,22,.35);
  --grid: radial-gradient(rgba(16,18,22,.075) 1px, transparent 1.2px);
  --font: "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0c0f; --bg-2: #15171c; --card: #121419; --ink: #eceef2; --muted: #9196a1; --line: #23262e; --line-2: #343844;
    --signal: #ff7a2e; --signal-deep: #ffa46b; --signal-soft: rgba(255,122,46,.14); --warn: #ffc94d; --warn-soft: rgba(255,190,60,.13); --info: #9fb2ff; --info-soft: rgba(110,140,255,.14);
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -18px rgba(0,0,0,.8); --shot: 0 30px 60px -30px rgba(0,0,0,.9);
    --grid: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--grid) 0 0 / 22px 22px, var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
code, kbd, .mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--signal) 80%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- instrument bits ---------- */
.label { font: 600 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent), 0 0 10px color-mix(in srgb, var(--signal) 80%, transparent); display: inline-block; flex: none; }
.led.off { background: var(--line-2); box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--bg-2); white-space: nowrap; }
.pill.ok { background: var(--signal-soft); color: var(--signal-deep); }
@media (prefers-color-scheme: dark) { .pill.ok { color: var(--signal); } }
.ai { font: 700 10px/1 var(--mono); letter-spacing: .08em; background: var(--signal); color: #101216; border-radius: 5px; padding: 3px 6px; vertical-align: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: 600 15px/1.2 var(--font); text-decoration: none; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .08s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary .led { box-shadow: 0 0 8px color-mix(in srgb, var(--signal) 90%, transparent); }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--signal); color: #101216; border-color: var(--signal); } .btn.primary .led { background: #101216; box-shadow: none; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .led { margin-left: 2px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top .btn { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.gh svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: block; }
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; }
.hero-text .console, .hero-text h1 { grid-column: 1 / -1; }
.hero-text .console { justify-self: start; }
.hero-text .lede { margin: 0; }
.hero-side { padding-bottom: 6px; }
.console { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 26px; }
.console span { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.console b { color: var(--ink); }
.hero h1 { font-size: clamp(40px, 7vw, 92px); max-width: 13em; font-weight: 700; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .26em; background: var(--signal); z-index: -1; border-radius: 3px; }
.hero .lede { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fine { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span::before { content: "— "; color: var(--line-2); }
.fine span:first-child::before { content: ""; }

.stage { position: relative; margin: 56px 0 0; }
.stage .frame { position: relative; z-index: 1; }
.vbtn { margin-left: auto; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; min-height: 28px; cursor: pointer; }
.vbtn:hover { color: var(--ink); border-color: var(--ink); }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shot); overflow: hidden; }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--card)); }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.frame .bar small { margin-left: 10px; font: 500 11.5px/1 var(--mono); color: var(--muted); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatmock { position: absolute; z-index: 2; right: -18px; bottom: -40px; width: min(310px, 70%); transform: rotate(1.2deg); background: #efeae2; border-radius: 18px; padding: 12px; box-shadow: var(--shot); border: 6px solid #101216; font-size: 13.5px; line-height: 1.4; color: #111b21; }
.chatmock header { display: flex; align-items: center; gap: 8px; margin: -12px -12px 10px; padding: 10px 12px; background: #fff; border-radius: 12px 12px 0 0; font-weight: 600; font-size: 13px; }
.chatmock header small { display: block; font-weight: 400; color: #667781; font-size: 11px; }
.chatmock .av { width: 26px; height: 26px; border-radius: 50%; background: var(--people-3); display: grid; place-items: center; color: #fff; font-size: 12px; }
.msg { background: #fff; padding: 7px 9px; border-radius: 9px; margin: 6px 0; max-width: 88%; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.msg b { display: block; font-size: 11.5px; color: var(--people-4); }
.msg.me { background: #d9fdd3; margin-left: auto; }
.msg.me b { color: #2a7a1e; }
.msg time { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 2px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.head { max-width: 760px; margin-bottom: 40px; }
.head .label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.head h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; }
.head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* figures strip */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.figures div { padding: 22px 22px 20px; border-right: 1px solid var(--line); }
.figures div:last-child { border-right: 0; }
.figures b { display: block; font: 700 clamp(26px, 3.4vw, 38px)/1 var(--mono); letter-spacing: -.03em; margin: 10px 0 6px; }
.figures span:last-child { color: var(--muted); font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font: 700 13px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.step .dot { position: absolute; top: 22px; right: 22px; }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step code { font-size: 12.5px; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.caption { display: flex; padding-right: 330px; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* feature tiles */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 5; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile.wide { grid-column: span 7; }
.tile.third { grid-column: span 4; }
.tile h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tile p strong, .tile p b { color: var(--ink); font-weight: 600; }
.tile > .shot, .tile > .duo, .tile > .phones { margin-top: auto; }
.tile code, kbd { font-size: 13px; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent); }
.shot { border-radius: 12px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.shot img, .shot video { width: 100%; }
a.shot { display: block; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.tall { max-height: 520px; overflow: hidden; position: relative; }
.tall::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--card)); }
.also-box { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a.pill { text-decoration: none; padding: 9px 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.chips a.pill:hover { border-color: var(--ink); }

/* phones */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phone { border: 6px solid #101216; border-radius: 28px; overflow: hidden; background: #101216; box-shadow: var(--shot); aspect-ratio: 393 / 760; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.phones figure { margin: 0; }
.phones figcaption { margin-top: 12px; text-align: center; }

/* install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel.cmd { margin-top: 16px; }
.panel .btn { margin-top: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.panel h3 { font-size: 24px; margin: 12px 0 10px; }
.panel p, .panel li { color: var(--muted); font-size: 15.5px; }
.panel ol, .panel ul { padding-left: 20px; margin: 14px 0 0; }
.panel li { margin: 5px 0; }
.panel li b { color: var(--ink); }
.oci img { height: 32px; width: auto; margin: 18px 0 4px; }
.term { background: #101216; color: #eceef2; border-radius: 12px; font: 13px/1.6 var(--mono); position: relative; margin: 16px 0 6px; overflow: hidden; }
.term .p { color: var(--signal); user-select: none; }
.term pre { margin: 0; white-space: pre; padding: 14px 84px 14px 16px; overflow-x: auto; }
.copy { position: absolute; top: 9px; right: 9px; box-shadow: -14px 0 12px #101216; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #24272f; color: #eceef2; border: 1px solid #343844; border-radius: 6px; padding: 7px 9px; cursor: pointer; }
.copy:hover { border-color: var(--signal); }
.also { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.qa details { border-top: 1px solid var(--line); padding: 4px 0; }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 17px; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 500 20px/1 var(--mono); color: var(--muted); flex: none; }
.qa details[open] summary::after { content: "−"; }
.qa details p { color: var(--muted); margin: 0 0 18px; max-width: 46em; }
.qa code { font-size: 13.5px; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; }
footer nav a { color: var(--muted); text-decoration: none; } footer nav a:hover { color: var(--ink); text-decoration: underline; }
footer small { color: var(--muted); font-size: 13px; display: block; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-text, .faq { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.third { grid-column: span 12; }
  .install { grid-template-columns: 1fr; }
  .chatmock { right: 10px; }
  .top nav { display: none; }
  .top .gh { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 36px 0 40px; }
  .console { border-radius: 14px; gap: 8px 14px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(2) { border-right: 0; }
  .figures div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .figures div { padding: 16px; }
  .duo { grid-template-columns: 1fr; }
  .tile { padding: 20px; }
  .chatmock { position: relative; right: 0; bottom: 0; margin: -20px auto 0; width: 92%; transform: none; }
  .caption { padding-right: 0; }
  .stage { margin-top: 36px; }
  .phones { gap: 8px; }
  .phone { border-width: 4px; border-radius: 18px; } .phone img { border-radius: 14px; }
  .frame .bar small { display: none; }
  .panel { padding: 20px; }
  .top .wrap { gap: 10px; }
  .top .gh span { display: none; }
  .caption { flex-direction: column; gap: 2px; }
  .m-tall { max-height: 540px; overflow: hidden; position: relative; }
  .m-tall::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--card)); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
/* 086: Is it for me? and what it costs */
.fit h3 { margin: 0 0 12px; }
.ticks.no li::before { background: var(--muted); box-shadow: none; opacity: .5; }
.panel.cost { margin-top: 16px; }
.costs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.costs b { display: block; font: 700 26px/1.1 var(--mono); letter-spacing: -.02em; }
.costs span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .costs { grid-template-columns: 1fr; } }
