:root{
  --bg:#F3F4F6;--surface:#FFFFFF;--ink:#0A0F1F;--muted:#6B7280;--line:#E2E5EA;
  --accent:#2563EB;--accent-2:#22D3EE;--on-accent:#FFFFFF;--glow:rgba(37,99,235,.10);
  --grad:linear-gradient(120deg,#2563EB,#22D3EE);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0A0F1F;--surface:#111830;--ink:#FFFFFF;--muted:#9AA3B2;--line:#1E2742;--glow:rgba(34,211,238,.12);
}}
:root[data-theme="dark"]{--bg:#0A0F1F;--surface:#111830;--ink:#FFFFFF;--muted:#9AA3B2;--line:#1E2742;--glow:rgba(34,211,238,.12)}

/* per-product accents */
body.p-triangulate{--accent:#0E7490;--accent-2:#2DD4BF;--grad:linear-gradient(120deg,#1E3A8A,#0E7490,#2DD4BF);--glow:rgba(45,212,191,.12)}
body.p-calendrate{--accent:#0F766E;--accent-2:#F59E0B;--grad:linear-gradient(120deg,#0F766E,#2DD4BF);--glow:rgba(45,212,191,.12)}
body.p-qord{--accent:#7C3AED;--accent-2:#22D3EE;--grad:linear-gradient(120deg,#7C3AED,#2563EB);--glow:rgba(124,58,237,.12)}

*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font:16px/1.6 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.mono{font-family:"JetBrains Mono",monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}

/* nav */
header{position:sticky;top:0;z-index:10;backdrop-filter:blur(12px);background:color-mix(in srgb,var(--bg) 82%,transparent);border-bottom:1px solid var(--line)}
nav{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font:600 22px/1 Outfit,Inter,sans-serif;letter-spacing:-.01em}
.logo img{width:34px;height:34px}
nav ul{display:flex;gap:34px;list-style:none;padding:0}
nav ul a{text-decoration:none;color:var(--muted);font-size:17px;font-weight:600}
nav ul a:hover,nav ul a[aria-current]{color:var(--ink)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;font-weight:600;font-size:14px;text-decoration:none;transition:transform .15s;border:0;cursor:pointer}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.ghost{border:1px solid var(--line);background:var(--surface)}

/* hero */
.hero{padding:112px 0 88px;position:relative}
.hero::before{content:"";position:absolute;right:-10%;top:-20%;width:640px;height:640px;background:radial-gradient(circle,var(--glow),transparent 65%);pointer-events:none;z-index:-1}
.hero h1{font:600 clamp(40px,7vw,74px)/1.03 Outfit,Inter,sans-serif;letter-spacing:-.035em;max-width:920px;margin:20px 0 24px}
.hero h1 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{font-size:19px;color:var(--muted);max-width:640px}
.hero .brand{height:72px;width:auto;margin-bottom:8px}
.cta{display:flex;gap:12px;margin-top:36px;flex-wrap:wrap}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:48px}
.tags span{border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:13px;color:var(--muted);background:var(--surface)}

/* sections */
section{padding:88px 0;border-top:1px solid var(--line)}
.head{max-width:680px;margin-bottom:44px}
.head h2{font:600 clamp(30px,4vw,44px)/1.1 Outfit,Inter,sans-serif;letter-spacing:-.025em;margin-top:12px}
.head p{color:var(--muted);margin-top:14px;font-size:17px}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;transition:border-color .2s,transform .2s;text-decoration:none;display:block}
a.card:hover{border-color:var(--accent);transform:translateY(-2px)}
.card h3{font:600 19px/1.3 Outfit,Inter,sans-serif;margin:14px 0 8px}
.card p,.card li{color:var(--muted);font-size:15px}
.card ul{padding-left:18px;display:grid;gap:6px}
.card .more{display:inline-block;margin-top:16px;font-weight:600;font-size:14px;color:var(--accent)}
.ico{width:44px;height:44px;border-radius:12px;background:var(--glow);color:var(--accent);display:grid;place-items:center;font-weight:700}
.ico img{width:30px;height:30px}
.badge{display:inline-block;font-size:12px;border:1px solid var(--line);border-radius:999px;padding:3px 10px;color:var(--muted)}

.split{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:32px}
.checks{list-style:none;padding:0;display:grid;gap:12px}
.checks li{display:flex;gap:12px;font-size:15px}
.checks li::before{content:"";flex:none;width:8px;height:8px;margin-top:8px;border-radius:50%;background:var(--accent)}
.note{margin-top:24px;padding:16px;border-radius:12px;background:var(--glow);font-size:14px}

/* timeline */
.steps{display:grid;grid-template-columns:repeat(5,1fr);counter-reset:s}
.steps.four{grid-template-columns:repeat(4,1fr)}
.step{padding:28px 20px 0 0;border-top:2px solid var(--line);position:relative}
.step::before{counter-increment:s;content:"0" counter(s);position:absolute;top:-14px;left:0;background:var(--bg);padding-right:10px;font:600 13px "JetBrains Mono",monospace;color:var(--accent)}
.step h3{font:600 18px Outfit,Inter,sans-serif;margin-bottom:8px}
.step p{color:var(--muted);font-size:14px}

.cv{display:grid;gap:0}
.cv-row{display:grid;grid-template-columns:160px 1fr;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}
.cv-row:first-child{border-top:1px solid var(--line)}
.cv-row .when{font:500 13px "JetBrains Mono",monospace;color:var(--muted);padding-top:3px}
.cv-row h3{font:600 18px Outfit,Inter,sans-serif}
.cv-row p{color:var(--muted);font-size:15px;margin-top:4px}

.lesson{border-left:3px solid var(--accent)}
.lesson .mono{color:var(--muted)}

.disclaimer{font-size:13px;color:var(--muted);border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--surface)}

/* contact */
.contact{background:#0A0F1F;color:#fff;border-radius:28px;padding:60px;display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap;position:relative;overflow:hidden}
.contact::after{content:"";position:absolute;right:-8%;bottom:-70%;width:440px;height:440px;background:var(--grad);filter:blur(90px);opacity:.4;pointer-events:none}
.contact>*{position:relative;z-index:1}
.contact h2{font:600 clamp(28px,4vw,40px)/1.1 Outfit,Inter,sans-serif;letter-spacing:-.025em;max-width:560px}
.contact p{opacity:.7;margin-top:12px}
footer{padding:40px 0;color:var(--muted);font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}

@media (max-width:860px){
  nav ul{display:none}
  .split{grid-template-columns:1fr}
  .steps,.steps.four{grid-template-columns:1fr;gap:28px}
  .cv-row{grid-template-columns:1fr;gap:4px}
  .contact{padding:36px}
  .hero{padding:72px 0 56px}
  section{padding:60px 0}
  .wrap{padding:0 16px}
}

/* brand logos (PNG, light/dark via <picture>) */
.logo-full{display:flex;align-items:center}
.logo-full img{height:36px;width:auto}
.ico picture img{width:30px;height:30px}

/* Qord wordmark: the EunoriQ Q followed by "ord" */
.qord-word{display:inline-flex;align-items:flex-end;gap:2px;font:600 64px/1 Outfit,Inter,sans-serif;letter-spacing:-.02em}
.qord-word img{height:62px;width:auto}
.qord-word span{padding-bottom:2px}
.tagline{font:500 15px/1.4 "JetBrains Mono",monospace;color:var(--muted);margin-top:12px}

/* app screenshots in a phone frame */
.phones{display:flex;justify-content:center;gap:48px;flex-wrap:wrap}
.phone{margin:0;width:min(280px,80vw);text-align:center}
.phone img{width:100%;border-radius:36px;border:10px solid #05070D;box-shadow:0 30px 60px -20px rgba(0,0,0,.45),0 0 0 1px var(--line)}
.phone figcaption{margin-top:14px;font-size:14px;color:var(--muted)}

/* privacy statement */
.prose{max-width:760px}
.prose h2{font:600 22px Outfit,Inter,sans-serif;margin:36px 0 10px}
.prose p,.prose li{color:var(--muted);line-height:1.65}
.prose ul{padding-left:20px;margin:8px 0}
.prose li{margin:6px 0}
.prose a{color:var(--accent)}
.todo{background:#fde68a;color:#78350f;padding:0 4px;border-radius:4px}

/* clickable hero label */
.hero-label a{color:inherit;text-decoration:none;border-bottom:1px dotted currentColor}
.hero-label a:hover{color:var(--accent);border-bottom-style:solid}

/* keep short headings on one line on wide screens */
@media (min-width:861px){h2.one-line{white-space:nowrap;max-width:none}}

/* align "more" links at the bottom of each card */
.card:has(> .more){display:flex;flex-direction:column;align-items:flex-start}
.card > .more{margin-top:auto;padding-top:16px}

/* four phones fit on one row on desktop */
@media (min-width:861px){.phones{flex-wrap:nowrap;gap:28px}.phones .phone{width:min(230px,22vw)}}
