/* sidekic.app — layout from docs/design/landing-v1/, colours and type from the logo (docs/design/brand-v1/). Light only. */
:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --ground-2: #F3F2F7;
  --ink: #1B1640;
  --ink-2: #4A4663;
  --ink-3: #5E5A78;
  --ink-on-dark: #F4F2FA;
  --ink-on-dark-2: #CFCBE0;
  --ink-on-dark-3: #ADA8C4;
  --line: #E2E0EA;
  --line-2: #DAD7E4;
  --line-strong: #C9C5D6;
  --cell-line: #E7E5EE;
  --accent: #8F45FF;
  --accent-hover: #7433E6;
  --accent-ink: #7433E6;
  --accent-tint: #EFE7FF;
  --spark: #FF5A5F;
  --tag-bg: #EFE7FF;
  --tag-ink: #4B1FA8;
  --night: #14102E;
  --panel-dark: #221C45;
  --panel-dark-line: #383160;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text: 17px;
  --text-small: 15px;
  --text-lead: 19px;
  --h1: clamp(36px, 4.8vw, 60px);
  --h2: clamp(28px, 3.3vw, 40px);

  --gutter: 24px;
  --content: 1200px;
  --narrow: 820px;
  --radius: 12px;
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--text)/1.55 var(--font-body);
  overflow-x: hidden;
}
a { color: var(--accent-ink); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h3 { font-weight: 600; }
h1 { font-size: var(--h1); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--content); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.narrow { max-width: var(--narrow); }
.band { background: var(--ground-2); }
.band.dark { background: var(--night); color: var(--ink-on-dark); }
.intro { display: flex; flex-direction: column; gap: 10px; }
.intro p { color: var(--ink-2); max-width: 40rem; }
.small { font-size: var(--text-small); color: var(--ink-3); }

/* buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn.plain { background: #FFFFFF; border: 1px solid var(--line-strong); color: var(--ink); }
.btn.plain:hover { background: var(--ground-2); color: var(--ink); }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.dark:hover { background: #2C2560; color: #FFFFFF; }
.btn.light { background: #FFFFFF; color: var(--ink); }
.btn.light:hover { background: var(--ground-2); color: var(--ink); }
.btn.small { padding: 10px 18px; border-radius: 8px; font-size: var(--text-small); }
.btn.block { display: block; padding: 12px; margin-top: auto; }
.btn.start { align-self: flex-start; margin-top: 8px; padding: 12px 20px; }
/* the skeleton's one-off class (404) */
.button { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--accent-hover); color: #FFFFFF; }

/* header */
.top { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-grow: 1; }
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 28px; flex: none; }
.word { font: 700 23px/1 var(--font-display); letter-spacing: -0.5px; }
.top nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--text-small); }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--accent-ink); }

/* hero */
.hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); padding: 5px 12px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }
.lead { font-size: var(--text-lead); color: var(--ink-2); max-width: 34rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--ink-3); }
.hero-demo { flex: 1 1 520px; min-width: 0; position: relative; isolation: isolate; padding-bottom: 96px; }
/* the logo's two arcs, large and pale, behind the demo */
.arcs { position: absolute; z-index: -1; top: -150px; right: -110px; width: 92%; height: auto; pointer-events: none; }
.sheet { border-radius: 12px; border: 1px solid var(--line-2); background: #FFFFFF; overflow-x: auto; box-shadow: 0 1px 2px rgba(27, 22, 64, 0.05), 0 12px 32px rgba(27, 22, 64, 0.06); }
.grid { display: grid; grid-template-columns: 36px repeat(4, minmax(84px, 1fr)); min-width: 420px; font: 13px var(--font-mono); }
.grid > * { padding: 6px 10px; border-right: 1px solid var(--cell-line); border-bottom: 1px solid var(--cell-line); white-space: pre; }
.grid b { font-weight: 500; }
.grid .h, .grid .n { background: var(--ground-2); color: var(--ink-3); }
.grid .n { padding: 6px; }
.grid .last { border-right: 0; }
.grid .end { border-bottom: 0; }
.grid .num { text-align: right; }
.card {
  position: absolute; right: 0; bottom: 0; width: min(400px, 92%);
  padding: 16px; border-radius: 14px; background: #F7F6FA; border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(27, 22, 64, 0.18);
  display: flex; flex-direction: column; gap: 10px;
  font: 14px/1.45 -apple-system, "Segoe UI", var(--font-body);
}
.card-context { font-size: 12px; color: var(--ink-3); }
.card-actions { display: flex; gap: 8px; justify-content: flex-end; }
.card-btn { padding: 5px 12px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--line-2); }
.card-btn.allow { font-weight: 600; background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* demo clips */
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.clips figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.clip {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px;
  background: var(--panel-dark); border: 1px solid var(--panel-dark-line); object-fit: cover; cursor: pointer;
}
.clips figcaption { font-size: var(--text-small); color: var(--ink-on-dark-3); }

/* how it works */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line-2); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--accent); }
.steps p { color: var(--ink-2); }
.step-n { font: 500 14px var(--font-mono); color: var(--accent-ink); }

/* skills */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tile { padding: 24px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.tile:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(27, 22, 64, 0.07); }
.tile h3 { font-size: 20px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.with-tag { display: flex; gap: 10px; align-items: center; }
.pro { font: 500 11px var(--font-mono); letter-spacing: 0; padding: 2px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--tag-ink); }

/* promises */
.promises { flex-direction: row; flex-wrap: wrap; gap: 40px; }
.promises h2 { flex: 1 1 320px; }
.promise-grid { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.promise-grid > div { display: flex; flex-direction: column; gap: 6px; }
.promise-grid h3 { font: 600 var(--text)/1.4 var(--font-body); letter-spacing: 0; }
.promise-grid p { color: var(--ink-2); font-size: 16px; }

/* pricing and download */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.plan { padding: 28px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
#download .plan { gap: 10px; }
.plan p { color: var(--ink-2); font-size: 16px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; display: flex; flex-direction: column; gap: 6px; }
.price { font: 700 44px/1 var(--font-display); }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.per { color: var(--ink-on-dark-3); }
.alt { color: var(--ink-on-dark-2); font-size: var(--text-small); }
.pro-plan { background: var(--night); border-color: var(--night); color: var(--ink-on-dark); box-shadow: 0 18px 40px rgba(27, 22, 64, 0.22); }
.pro-plan ul, .pro-plan p { color: var(--ink-on-dark-2); }

/* faq */
.faq { display: flex; flex-direction: column; }
#faq h2 { margin-bottom: -8px; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-2); }

/* footer */
.foot { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--ink-3); }
.foot .grow { display: flex; align-items: center; gap: 10px; }
.foot .mark { width: 20px; height: 19px; }
.foot a { color: var(--ink-3); }
.grow { flex-grow: 1; }

/* secondary pages (/buy, /thanks, /privacy, …) */
.page { max-width: var(--content); margin: 0 auto; padding: 56px var(--gutter); }
.page.narrow { max-width: var(--narrow); }
.page > * + * { margin-top: 16px; }
.doc h2.h3, .doc .h3 { font-size: 24px; line-height: 1.25; }
.doc > h2 { margin-top: 36px; }
.doc ul, .doc ol { margin-bottom: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.doc > p { color: var(--ink-2); }
.doc > p.lead { color: var(--ink-2); }
.doc pre { margin: 10px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--ground-2); border: 1px solid var(--line); overflow-x: auto; font: 14px var(--font-mono); color: var(--ink); }
.steps-doc li { padding-left: 4px; }
.placeholder { background: #FFF3C4; color: #5C4600; padding: 0 4px; border-radius: 3px; }
.notice { padding: 20px 22px; border-radius: 12px; background: var(--tag-bg); color: var(--tag-ink); display: flex; flex-direction: column; gap: 14px; }
.buy { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.buy .plan { gap: 14px; }
.on-dark { color: var(--ink-on-dark-2); }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: progress; }
.error { color: #B3261E; font-size: var(--text-small); }
.status { padding: 22px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); }
.status p { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .hero { padding-top: 32px; gap: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero-demo { padding-bottom: 0; display: flex; flex-direction: column; gap: 16px; }
  .card { position: static; width: 100%; }
  .arcs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The waitlist form (index.html #waitlist). */
#waitlist .intro { margin-bottom: 24px; }
.waitlist { max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: var(--text-small); }
.field input, .field select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #FFFFFF; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-small); color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
