@font-face { font-family: "Inter"; src: url("inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* The app's Dark theme */
:root {
  --paper: #141415;
  --card: #1c1c1e;
  --ink: #ededed;
  --t2: #a1a1a6;
  --t3: #8e8e93;
  --rule: #2a2a2d;
  --line: #3a3a3e;
  --hover: #242427;
  --urgent: #ef5b60;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 Inter, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--paper); }
html { scrollbar-color: var(--line) var(--paper); }
input { caret-color: var(--ink); }
input::placeholder { color: var(--t3); opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  font: 500 13px/18px Inter, system-ui, sans-serif; text-align: center; color: var(--ink);
}

.top, main, .foot { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--t2); text-decoration: none; transition: color .14s var(--ease), border-color .14s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--paper);
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .14s var(--ease), border-color .14s var(--ease), transform .14s var(--ease);
}
.btn:hover { background: #ffffff; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: none; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--t3); }

/* Hero: the pitch on the left, the widget on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 80px; align-items: center; padding: 64px 0 112px; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; max-width: 10ch; }
.lead { margin: 24px 0 32px; font-size: 19px; color: var(--t2); max-width: 31em; }
.hero-join { max-width: 480px; }
.hero-done { max-width: 480px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--t2); outline: none; }
.hero-done b { color: var(--ink); font-weight: 600; }
.note a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--t2); transition: color .14s var(--ease); }
.note a:hover { color: var(--ink); }

/* The demo widget: the same layout as the app */
.widget {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 64px rgba(0,0,0,.5); font-size: 15px;
}
.widget svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.w-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--t2); }
.w-bar img { border-radius: 4px; }
.w-week { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 4px; }
.w-week b { font-size: 17px; font-weight: 600; }
.w-week span { color: var(--t3); font-variant-numeric: tabular-nums; }
.w-week span::before { content: "·"; margin-right: 8px; }
.w-people { display: flex; gap: 4px; padding: 6px 10px 8px; border-bottom: 1px solid var(--rule); }
.w-people button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 15px; color: var(--t3); cursor: pointer;
}
.w-people button:hover { color: var(--ink); background: var(--hover); }
.w-people button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.w-tasks { list-style: none; margin: 0; padding: 6px 0; min-height: 232px; }
.w-tasks label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 11px 16px; cursor: pointer; line-height: 1.35; }
.w-tasks label:hover { background: var(--hover); }
.w-tasks input[type="checkbox"]:not(.sr) {
  appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--t3); border-radius: 5px; cursor: pointer;
  display: grid; place-content: center; background: none;
}
.w-tasks input:not(.sr)::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.w-tasks input:checked:not(.sr) { background: var(--ink); border-color: var(--ink); }
.w-tasks input:checked:not(.sr)::after { opacity: 1; }
.w-folder { flex: none; width: 18px; height: 20px; display: grid; place-content: center; color: var(--t2); }
.w-folder svg { width: 18px; height: 18px; }
.w-tasks .txt { flex: 1; }
.w-tasks input:checked ~ .txt { color: var(--t3); text-decoration: line-through; }
.w-tasks .urgent .txt { color: var(--urgent); }
.w-tasks .meta { flex: none; display: inline-flex; font-size: 13px; color: var(--t3); padding-top: 1px; }
.w-tasks .meta.late { color: var(--urgent); }
.w-done-head { padding: 10px 16px 4px; font-size: 13px; color: var(--t3); }
.w-add { display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 1px solid var(--rule); }
.w-add input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font: inherit; font-size: 15px; color: inherit;
}
.w-add input:focus { outline: none; border-color: var(--ink); }
.w-score { flex: none; color: var(--t3); font-size: 14px; }
.w-score b { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-hint { margin: 16px 0 0; font-size: 14px; color: var(--t3); text-align: center; }

/* Sections */
h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; max-width: 22ch; }
h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.section-lead { margin: 0 0 40px; color: var(--t2); }
.features, .roadmap, .join-section, .faq { padding: 96px 0; border-top: 1px solid var(--rule); }

.features h2 { margin-bottom: 32px; }
/* One app window pinned on the right; it switches view as each feature scrolls past */
.f-scroller { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 96px; }
.f-step {
  min-height: 64vh; display: flex; flex-direction: column; justify-content: center;
  padding-left: 28px; border-left: 2px solid var(--rule); color: var(--t3); transition: color .3s, border-color .3s;
}
.f-step h3 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; transition: color .3s; }
.f-step p { margin: 0 0 20px; font-size: 19px; max-width: 30em; }
.f-step ul { list-style: none; margin: 0; padding: 0; font-size: 15px; display: grid; gap: 8px; }
.f-step li { position: relative; padding-left: 16px; }
.f-step li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.f-step.on { border-left-color: var(--ink); color: var(--t2); }
.f-step.on h3 { color: var(--ink); }
.f-step.on kbd { color: var(--ink); }
.f-step:last-child { min-height: 90vh; }
.f-inline { display: none; }

.f-stage { position: sticky; top: calc(50vh - 320px); height: 640px; }
.f-view { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity .15s, transform .15s; }
.f-view.on { opacity: 1; transform: none; transition: opacity .35s .12s, transform .35s .12s; }
.f-view > img, .f-inline > img {
  display: block; width: 340px; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px;
  border: 1px solid var(--rule); box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
/* Make it yours: three windows overlapping like they're open on a desktop */
.f-fan { position: relative; width: 400px; height: 620px; }
.f-fan img { position: absolute; width: 220px; height: auto; border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 20px 48px rgba(0,0,0,.55); }
.f-fan img:nth-child(1) { left: 0; top: 0; }
.f-fan img:nth-child(2) { left: 90px; top: 64px; }
.f-fan img:nth-child(3) { left: 180px; top: 128px; }

/* Roadmap: the order things get built in */
.stages { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.stage { position: relative; display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; padding-bottom: 32px; }
.stage::before { content: ""; position: absolute; left: 103px; top: 8px; bottom: -8px; width: 1px; background: var(--rule); }
.stage:last-child::before { display: none; }
.stage::after { content: ""; position: absolute; left: 99px; top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--t3); background: var(--paper); }
.stage.done::after { background: var(--ink); border-color: var(--ink); }
.st-when { grid-row: span 2; font-size: 14px; color: var(--t3); padding-top: 1px; }
.stage.done .st-when { color: var(--ink); }
.stage h3 { margin: 0 0 4px 24px; }
.stage p { margin: 0 0 0 24px; color: var(--t2); }

/* Waitlist */
.join-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; }
.join-copy p { margin: 0; color: var(--t2); max-width: 28em; }
.join { width: 100%; }
#email { display: block; width: 100%; }
.optional { margin: 20px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.optional legend { float: left; width: 100%; margin-bottom: 16px; font-size: 15px; font-weight: 400; color: var(--t3); }
.optional .q { clear: both; }
.btn.wide { width: 100%; }
.field { display: flex; gap: 8px; }
input[type="email"] {
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font: inherit; color: inherit;
}
input[type="email"]:focus, #email:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.hint { min-height: 22px; margin: 6px 0 0; font-size: 14px; color: var(--urgent); }
.hint:empty { min-height: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 16px; font-weight: 600; }
.q { margin-bottom: 16px; }
.q-label { display: block; margin-bottom: 8px; font-size: 15px; color: var(--t2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; line-height: 20px; transition: background-color .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease); }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.step.done { outline: none; }
.done-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.step.done p { color: var(--t2); margin-top: 0; }

/* Questions */
.faq h2 { margin-bottom: 24px; }
.faq details { max-width: 720px; border-bottom: 1px solid var(--rule); }
summary { padding: 16px 0; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .14s var(--ease); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 12px; height: 12px; color: var(--t3);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: background-size .14s var(--ease), color .14s var(--ease);
}
summary:hover::after, details[open] summary::after { color: var(--ink); }
details[open] summary::after { background-size: 12px 1.5px, 1.5px 0; }
details p { margin: 0 0 18px; color: var(--t2); max-width: 60ch; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 36px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--t3); }
.foot a { display: inline-block; padding: 12px 0; color: var(--t2); }
.foot-links { display: flex; gap: 20px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 32px; }
  .demo { max-width: 400px; }
  .join-section { grid-template-columns: 1fr; gap: 32px; }
  .f-scroller { grid-template-columns: minmax(0, 1fr); }
  .f-stage { display: none; }
  .f-step { min-height: 0; padding: 40px 0 40px 24px; color: var(--t2); border-left-color: var(--ink); }
  .f-step h3 { color: var(--ink); }
  .f-step:last-child { min-height: 0; }
  .f-inline { display: block; margin-top: 28px; }
  .f-inline > img { margin: 0; width: 300px; }
  .f-inline .f-fan { width: 100%; height: 420px; max-width: 400px; }
}
@media (max-width: 640px) {
  .top, main, .foot { padding: 0 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .f-step { padding-left: 16px; }
  .f-inline .f-fan { height: 340px; }
  .f-fan img { width: 46%; }
  .f-fan img:nth-child(2) { left: 27%; top: 40px; }
  .f-fan img:nth-child(3) { left: 54%; top: 80px; }
  .features, .roadmap, .join-section, .faq { padding: 64px 0; }
  .stage { grid-template-columns: 64px 1fr; column-gap: 16px; }
  .stage::before { left: 71px; }
  .stage::after { left: 67px; }
  .stage h3, .stage p { margin-left: 20px; }
  .field { flex-direction: column; }
  .field input { flex: none; }
  .foot { flex-direction: column; padding: 24px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::after { transition: none !important; } }

/* Why: the problem on the left, what TeamDocket does on the right */
.why, .all, .tour { padding: 96px 0; border-top: 1px solid var(--rule); }
.tour-video { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: #fafafa; }
.why-rows { max-width: 960px; }
.why-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding: 20px 0; border-top: 1px solid var(--rule); }
.why-row p { margin: 0; }
.why-problem { color: var(--t3); }
.why-answer { color: var(--t2); }
.why-answer b { color: var(--ink); font-weight: 600; }

/* Everything in TeamDocket: a dense, scannable list */
.all-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.all-group h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 16px; }
.all-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--t2); }

/* Free and Team plan, under the roadmap */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin-top: 56px; }
.plan { padding: 28px; border: 1px solid var(--rule); border-radius: 14px; }
.plan-team { border-color: var(--line); background: var(--card); }
.plan h3 { margin: 0; font-size: 22px; }
.plan-sub { margin: 4px 0 20px; font-size: 15px; color: var(--t3); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--t2); }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 5px; border: 1.75px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .why, .all, .tour { padding: 64px 0; }
  .why-row { grid-template-columns: 1fr; gap: 6px; }
  .all-grid { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px; }
}

/* About page */
.about { padding-top: 64px; padding-bottom: 112px; }
.about h1 { max-width: 14ch; font-size: clamp(40px, 5vw, 60px); }
.about-body { max-width: 640px; margin-top: 32px; }
.about-body p { margin: 0 0 20px; color: var(--t2); }
.about-body .lead { margin-bottom: 24px; color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .about { padding-top: 32px; padding-bottom: 72px; }
  .about-actions .btn { flex: 1; }
}

/* Guideline polish: skip link, balanced headings, faster taps */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a, button, label, summary, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
