/* Sidekeel site. Layout: a narrow reading column for words, wider rows that pair
   a short explanation with the real side panel, the way it sits beside your work. */
:root {
  --ink: #1b1e2b;        /* the icon's dark */
  --amber: #f2b544;      /* the icon's side pane */
  --amber-ink: #8a5a00;  /* amber dark enough for text */
  --paper: #f3f2ee;      /* page ground, a warm grey */
  --sheet: #ffffff;
  --sub: #555a66;
  --rule: #e2dfd7;
  --now: #d6336c;        /* "now" and focus, as in the app */
  --display: "Inter Tight", Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --body: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --on-ink: #ffffff;
  --shadow: 0 24px 60px rgba(20, 24, 36, .16), 0 2px 6px rgba(20, 24, 36, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceae4; --paper: #121318; --sheet: #1b1d24; --sub: #a3a6ae; --rule: #2c2f38;
    --amber-ink: #f2c66a; --on-ink: #121318; --shadow: 0 24px 60px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eceae4; --paper: #121318; --sheet: #1b1d24; --sub: #a3a6ae; --rule: #2c2f38;
  --amber-ink: #f2c66a; --on-ink: #121318; --shadow: 0 24px 60px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
code { font: .88em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 5px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--display); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--sub); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--body); padding: 10px 18px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.ghost { border-color: var(--rule); background: var(--sheet); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--rule)); }
.btn.soon { cursor: default; opacity: .85; }
.btn.soon:hover { filter: none; }
.btn.small { padding: 7px 14px; font-size: 14px; }

/* Hero: the thesis is the picture, the planner sitting beside a page of work */
.hero { padding-block: 72px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin-top: 14px; }
.hero .lede { font-size: 20px; color: var(--sub); margin-top: 20px; max-width: 32ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.fine { font-size: 14px; color: var(--sub); margin-top: 14px; }

.window { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window .bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: color-mix(in srgb, var(--ink) 6%, var(--sheet)); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, var(--sheet)); }
.window .bar span { margin-left: 12px; height: 20px; flex: 0 1 260px; border-radius: 10px; background: var(--sheet); }
.window .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); height: 460px; }
.work { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--rule); }
.work i { display: block; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 8%, var(--sheet)); }
.work b { display: block; height: 70px; border-radius: 10px; border: 1px solid var(--rule); }
.side { overflow: hidden; background: var(--paper); }
.side img { width: 300px; max-width: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .window .split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .work { display: none; }
  .side { height: 520px; }
  .side img { width: 100%; }
}

/* Three short reasons */
.why { padding-block: 56px 48px; }
.why .wrap { display: grid; gap: 36px; }
.why-head { max-width: 62ch; }
.why-head h2 { margin-top: 8px; }
.why-head p { color: var(--sub); font-size: 18px; margin-top: 14px; }
.why-head .more { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.why-grid h3 { font-size: 18px; }
.why-grid p { color: var(--sub); font-size: 16px; margin-top: 6px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* Feature rows */
.feature { padding-block: 64px; border-top: 1px solid var(--rule); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature.flip .text { order: 2; }
.feature h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.08; }
.feature .text p { color: var(--sub); margin-top: 16px; max-width: 46ch; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46ch; }
.feature li { padding-left: 22px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.shot { justify-self: center; width: min(100%, 380px); border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--paper); }
.shot.crop { height: 560px; }
.pair { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.pair .shot { width: min(48%, 300px); height: 520px; }
.pair .shot:last-child { margin-top: 40px; }
@media (max-width: 860px) {
  .feature .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip .text { order: 0; }
}

/* Notifications illustration */
.notes { display: grid; gap: 12px; width: min(100%, 440px); justify-self: center; }
.note { display: flex; gap: 12px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 8px 24px rgba(20, 24, 36, .1); }
.note .who { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.note b { display: block; font-size: 14.5px; }
.note small { color: var(--sub); font-size: 12.5px; }
.note .btns { display: flex; gap: 6px; margin-top: 6px; }
.note .btns span { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.note img { width: 42px; height: 42px; border-radius: 9px; flex: none; }

/* Privacy band */
.band { background: #1b1e2b; color: #fff; padding-block: 64px; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.band h2 { font-size: clamp(30px, 4vw, 40px); }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.band li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #d8d9de; }
.band li::before { content: ""; width: 12px; height: 12px; margin-top: .45em; border-radius: 3px; background: #f2b544; }
.band b { color: #fff; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Install */
.install { padding-block: 72px; }
.install .wrap { display: grid; gap: 28px; }
.install h2 { font-size: clamp(30px, 4vw, 40px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 14px; }
.step h3 { font-size: 17px; margin-top: 14px; }
.step p { color: var(--sub); font-size: 15.5px; margin-top: 6px; }
.keys { display: inline-flex; gap: 4px; }
kbd { font: 600 13px var(--mono); padding: 1px 7px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 6px; background: var(--sheet); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
details.dev { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 22px; }
details.dev summary { cursor: pointer; font-weight: 600; }
details.dev ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--sub); }
pre { margin: 0; overflow-x: auto; font: 14px/1.5 var(--mono); background: color-mix(in srgb, var(--ink) 6%, var(--sheet)); padding: 12px 14px; border-radius: 10px; }

/* Questions */
.faq { padding-block: 24px 72px; }
.faq .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.faq h3 { font-size: 17px; }
.faq p { color: var(--sub); font-size: 16px; margin-top: 6px; }
@media (max-width: 760px) { .faq .wrap { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--rule); padding-block: 28px; font-size: 14px; color: var(--sub); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }

/* Privacy page */
.doc { max-width: 720px; padding-block: 56px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--sub); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.doc .updated { margin-top: 10px; font-size: 14px; }

/* The demo loop: the real panel, beside a page, doing a day's planning */
.demo { padding-block: 8px 40px; }
.demo video { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #f3f2ee; }
@media (max-width: 640px) { .demo { display: none; } }

/* The story page */
.story > p, .story li { font-size: 18px; line-height: 1.65; }
.story h1 { margin-top: 8px; }
.story .sign { color: var(--ink); font-weight: 600; margin-top: 24px; }
.story .btn { margin-top: 16px; }

/* Right-click demo */
.menu-demo { position: relative; justify-self: center; width: min(100%, 420px); min-height: 300px; }
.md-msg { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; box-shadow: var(--shadow); }
.md-msg b { display: block; }
.md-msg span { color: var(--sub); }
.md-menu, .md-sub { position: absolute; display: grid; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 5px; box-shadow: var(--shadow); font-size: 13.5px; min-width: 170px; }
.md-menu { top: 58px; left: 64px; }
.md-sub { top: 132px; left: 230px; }
.md-menu span, .md-sub span { padding: 6px 10px; border-radius: 6px; display: flex; justify-content: space-between; }
.md-menu hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 2px; }
.md-on { background: color-mix(in srgb, var(--amber, #f2b544) 35%, var(--sheet)); font-weight: 600; }
.md-menu i { font-style: normal; color: var(--sub); }
.md-toast { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 520px) { .md-menu { left: 16px; } .md-sub { left: 120px; } }

/* Check-in demo */
.timeline-demo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-self: center; width: min(100%, 420px); counter-reset: none; }
.timeline-demo li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.timeline-demo b { font: 600 15px var(--mono); }
.timeline-demo li.pop { border-color: color-mix(in srgb, var(--amber, #f2b544) 70%, var(--rule)); background: color-mix(in srgb, var(--amber, #f2b544) 14%, var(--sheet)); }
.timeline-demo li::before { content: none; display: none; }
.md-menu { top: 84px; }
.md-sub { top: 158px; }
.menu-demo { min-height: 330px; }

/* Developers */
.dev-intro { padding-block: 72px 8px; border-top: 1px solid var(--rule); }
.dev-intro .wrap > * { max-width: 62ch; }
.dev-intro h2 { margin-top: 8px; }
.dev-intro p:not(.eyebrow) { color: var(--sub); font-size: 18px; margin-top: 14px; }
.pr-notes { display: grid; gap: 10px; width: min(100%, 440px); justify-self: center; }
.pr-note { display: flex; gap: 12px; align-items: flex-start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(20,24,36,.05); }
.pr-note .who { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.pr-note .who b { font-size: 14px; }
.pr-note .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-note .who small { color: var(--sub); font: 500 11.5px var(--mono); }
.pr-ico { width: 30px; height: 30px; flex: none; }
.pr-ico rect { fill: var(--c); }
.pr-plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.pr-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--rule); padding-top: 8px; }
.pr-row span { display: grid; min-width: 0; }
.pr-row small { color: var(--sub); font-size: 12px; }
.pr-row em { font-style: normal; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); white-space: nowrap; }
.dev-intro h2, .why-head h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.06; text-wrap: balance; }
.dev-intro { padding-block: 88px 16px; }

/* Notifications arriving (index.html, #pr-live) */
.pr-notes.live { align-content: start; min-height: 480px; }
.pr-notes.live .pr-note { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), max-height .45s ease, margin .45s ease, padding .45s ease; max-height: 120px; }
.pr-notes.live .pr-note.waiting { opacity: 0; transform: translateY(-14px) scale(.98); max-height: 0; padding-block: 0; margin-bottom: -10px; border-width: 0; overflow: hidden; }
.pr-notes.live.fading .pr-note { opacity: 0; transition-duration: .7s; }
@media (max-width: 760px) { .pr-notes.live { min-height: 470px; } }

/* Check-in demo (#checkin) */
.checkin { display: grid; gap: 14px; width: min(100%, 480px); justify-self: center; }
.ci-screen { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; background: linear-gradient(#dfe3ea, #d3d8e1); overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(20,24,36,.12); font-size: 11px; }
.ci-clock { position: absolute; top: 8px; right: 12px; font: 600 12px var(--mono); color: #1b1e2b; background: rgba(255,255,255,.75); border-radius: 6px; padding: 2px 8px; z-index: 4; }
.ci-browser, .ci-slack { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(20,24,36,.18); overflow: hidden; display: flex; flex-direction: column; }
.ci-browser { left: 4%; top: 13%; width: 92%; height: 82%; }
.ci-bar { height: 22px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #eef0f4; border-bottom: 1px solid #e1e4ea; }
.ci-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9cdd6; }
.ci-bar span { margin-left: 8px; font-size: 10px; color: #5b6070; background: #fff; border-radius: 5px; padding: 1px 8px; }
.ci-body { flex: 1; display: grid; grid-template-columns: 1fr 36%; min-height: 0; }
.ci-page { padding: 14px; display: grid; gap: 7px; align-content: start; }
.ci-page b { height: 10px; width: 55%; background: #d7dbe3; border-radius: 3px; margin-top: 4px; }
.ci-page p { height: 6px; background: #e7e9ee; border-radius: 3px; margin: 0; }
.ci-page p.short { width: 70%; }
.ci-panel { border-left: 1px solid #e1e4ea; background: #f6f4ef; padding: 8px; display: grid; gap: 5px; align-content: start; position: relative; }
.ci-ptitle { font-weight: 700; font-size: 10.5px; color: #1b1e2b; }
.ci-blk { background: #fff; border: 1px solid #e2dfd8; border-radius: 5px; padding: 4px 6px; font-weight: 600; color: #1b1e2b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-blk.done { opacity: .5; text-decoration: line-through; }
.ci-blk.focus { background: #fdeef3; border-color: #e0336e; height: 34px; }
.ci-slack { right: 6%; top: 18%; width: 52%; height: 68%; transform: translateX(130%); transition: transform .7s cubic-bezier(.2,.8,.2,1); z-index: 3; }
.ci-msgs { padding: 10px; display: grid; gap: 9px; align-content: start; background: #fff; }
.ci-msg { display: flex; gap: 7px; align-items: flex-start; font-size: 10.5px; line-height: 1.35; color: #2b2f3c; }
.ci-msg em { width: 18px; height: 18px; border-radius: 5px; flex: none; background: hsl(var(--h) 55% 60%); }
.ci-msg b { display: block; font-size: 10.5px; }
.ci-toast { position: absolute; left: 50%; top: 9px; transform: translate(-50%, -40px); background: #1b1e2b; color: #fff; font-weight: 600; font-size: 11px; padding: 5px 10px; border-radius: 8px; transition: transform .45s ease; z-index: 5; white-space: nowrap; }
.checkin[data-step="1"] .ci-slack { transform: none; }
.checkin[data-step="1"] .ci-toast { animation: citoast 2.4s ease forwards; }
@keyframes citoast { 0% { transform: translate(-50%, -40px); } 12%, 70% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -40px); } }
.ci-steps li { transition: background-color .3s, border-color .3s; }
.ci-steps li.on { border-color: color-mix(in srgb, #f2b544 70%, var(--rule)); background: color-mix(in srgb, #f2b544 14%, var(--sheet)); }
.ci-ptitle span { font-weight: 600; font-size: 9px; color: #7a5a00; background: #fff2cc; border-radius: 4px; padding: 1px 5px; margin-left: 3px; }

/* Why the name */
.name-note { display: flex; align-items: center; gap: 20px; max-width: 720px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--sheet); color: var(--ink); }
.name-note svg { width: 112px; flex: none; }
.name-note p { margin: 0; color: var(--sub); font-size: 16px; line-height: 1.55; }
.name-note b { color: var(--ink); }
@media (max-width: 560px) { .name-note { flex-direction: column; align-items: flex-start; } .name-note svg { width: 96px; } }

/* Check-in demo, 10:00 to midday */
.ci-day { position: relative; height: 140px; margin-top: 4px; }
.ci-day .ci-blk { position: absolute; left: 0; right: 0; box-sizing: border-box; height: auto; transition: background-color .3s, border-color .3s; }
.ci-day .ci-blk.on { background: #fdeef3; border-color: #e0336e; }
.ci-now { position: absolute; left: -6px; right: -4px; height: 2px; background: #e0336e; border-radius: 1px; z-index: 2; transition: top .08s linear; }
.ci-now::before { content: ""; position: absolute; left: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e0336e; }
.ci-track { position: absolute; left: 6%; right: 6%; bottom: 7px; height: 4px; border-radius: 2px; background: rgba(27,30,43,.14); z-index: 4; }
.ci-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: #1b1e2b; }
.ci-track i { position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #b9bfca; box-sizing: border-box; transform: translateX(-50%); transition: background-color .3s, border-color .3s; }
.ci-track i[data-at="30"] { left: 25%; } .ci-track i[data-at="60"] { left: 50%; } .ci-track i[data-at="90"] { left: 75%; } .ci-track i[data-at="120"] { left: 100%; }
.ci-track i.done { background: #f2b544; border-color: #1b1e2b; }
.ci-track small { display: none; }
.checkin[data-step="1"] .ci-slack { transform: none; }
.checkin:not([data-step="1"]) .ci-slack { transform: translateX(130%); }
.ci-screen { aspect-ratio: 16 / 11.6; }
.ci-browser { height: 78%; }
