/* OneList — onelist.live */

:root {
  --ink: #0b0b0c;
  --ink-2: #4a4a50;
  --ink-3: #8a8a92;
  --paper: #f7f7f5;
  --card: #ffffff;
  --line: rgba(11, 11, 12, 0.08);
  --blue: #3b6cff;
  --sky-1: #3b6cff;
  --sky-2: #8fa4ff;
  --sky-3: #dfe2ff;
  --green: #34c77b;
  --orange: #ff8a1f;
  --purple: #8b5cf6;
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  /* Motion (strong custom curves; never ease-in) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
/* The second half of a headline, in a quieter tone (like Apple's product pages). */
.dim { color: var(--ink-3); }
.eyebrow {
  display: inline-block;
  font: 600 14px/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--blue);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 40;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 24px rgba(20, 30, 80, 0.08);
}
.nav-logo img { height: 18px; width: auto; }
.nav a.link {
  font-size: 14px; text-decoration: none; color: var(--ink-2);
  padding: 6px 10px; border-radius: 999px;
}

.nav-logo { margin-right: 6px; display: flex; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(11,11,12,0.06), 0 6px 18px rgba(20,30,80,0.08); }
.btn-ghost { background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255,255,255,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: 0 1px 8px rgba(30,50,160,0.25); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, var(--sky-1) 0%, #6f8cff 45%, var(--sky-2) 72%, #c9d0ff 90%, var(--paper) 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}
/* Fine vertical lines, like light through blinds. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; padding-inline: 16px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px; margin: 0 auto 30px;
  text-wrap: pretty;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 .dim { color: rgba(255,255,255,0.6); }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.9); }

/* The hint pointing at the real bump on the page's edge. */
.try-it {
  position: fixed; right: 34px; top: 50%; z-index: 29;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--sans); color: var(--ink);
  background: #fff; padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(20, 30, 80, 0.14);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
.try-it.gone { opacity: 0; transform: translate(10px, -50%); }
.try-it svg { width: 14px; height: 14px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ---------- The bump & drawer (a working little OneList) ---------- */
.bump {
  position: fixed; right: -2px; top: 50%; z-index: 31;
  transform: translateY(-50%);
  width: 22px; height: 76px;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.bump img { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); filter: drop-shadow(0 4px 10px rgba(11,11,12,0.25)); transition: transform 200ms var(--ease-out); }

.bump.glow img { animation: breathe 2.4s ease-in-out 3; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 14px rgba(59,108,255,0.9)); } }

.drawer {
  position: fixed; right: 0; top: 50%; z-index: 32;
  width: min(360px, calc(100vw - 28px));
  transform: translate(105%, -50%);
  transition: transform 220ms var(--ease-out);
  color: #fff;
}
.drawer.open { transform: translate(0, -50%); transition: transform 420ms var(--ease-drawer); }
.drawer-body {
  position: relative;
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 16px 16px 14px;
  box-shadow: -12px 24px 60px rgba(11, 11, 12, 0.35);
}
/* The flare: the drawer curves into the screen's edge, like the bump does. */
.drawer-body::before, .drawer-body::after {
  content: ""; position: absolute; right: 0; width: 22px; height: 22px;
}
.drawer-body::before { top: -22px; background: radial-gradient(circle at 0 0, transparent 21.5px, rgba(14,14,16,0.94) 22px); }
.drawer-body::after { bottom: -22px; background: radial-gradient(circle at 0 100%, transparent 21.5px, rgba(14,14,16,0.94) 22px); }

.drawer-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.08); padding: 3px; border-radius: 10px; margin-bottom: 12px; }
.drawer-tabs button {
  flex: 1; border: 0; background: none; color: rgba(255,255,255,0.65);
  font: 600 12px/1 var(--sans); padding: 8px 0; border-radius: 8px; cursor: pointer;
}
.drawer-tabs button[aria-selected="true"] { background: rgba(255,255,255,0.16); color: #fff; }
.capture {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border-radius: 10px; padding: 9px 11px;
  font-size: 13px; margin-bottom: 10px; min-height: 38px;
}
.capture .ph { color: rgba(255,255,255,0.45); }
.capture .caret { width: 1.5px; height: 15px; background: #fff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.capture .kind { margin-left: auto; font-size: 11px; color: var(--green); white-space: nowrap; }
.panel { display: none; }
.panel.on { display: block; }
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 10px; font-size: 13.5px;
}
.row + .row { border-top: 1px solid rgba(255,255,255,0.06); }
.row .check { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); flex: none; cursor: pointer; }
.row.done .check { background: var(--green); border-color: var(--green); }
.row.done .t { text-decoration: line-through; color: rgba(255,255,255,0.4); }
.row .meta { margin-left: auto; font-size: 11.5px; color: rgba(255,255,255,0.5); white-space: nowrap; }
.row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.row.new { animation: land 400ms var(--ease-out); background: rgba(52,199,123,0.12); }
@keyframes land { from { transform: translateY(-6px); opacity: 0; } }
.join { font: 600 11px/1 var(--sans); background: var(--blue); color: #fff; padding: 6px 10px; border-radius: 999px; margin-left: auto; }
.drawer-foot { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.center { text-align: center; }
h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08; letter-spacing: -0.024em; font-weight: 700;
  margin: 14px 0 16px; text-wrap: balance;
}
h2 .muted, h2 .dim { color: var(--ink-3); }
.sub { color: var(--ink-2); max-width: 600px; margin: 0 auto; text-wrap: pretty; }

/* Scattered: your day, all over the place. */
.scatter { position: relative; height: 520px; margin-top: 10px; }
.scatter .middle {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px;
}
.tile {
  position: absolute; width: 64px; height: 64px; border-radius: 16px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(20, 30, 80, 0.10), 0 1px 0 rgba(11,11,12,0.04);
  transition: transform 900ms var(--ease-in-out), opacity 600ms ease;
}
.tile svg { width: 30px; height: 30px; }
.tile .badge {
  position: absolute; top: -9px; right: -12px;
  background: #ff3b30; color: #fff; font: 700 11px/1 var(--sans);
  padding: 5px 7px; border-radius: 999px; box-shadow: 0 4px 10px rgba(255,59,48,0.3);
}
.tile .tag {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
  font: 500 11px/1 var(--sans); color: var(--ink-3); white-space: nowrap;
}
.scatter.gathered .tile { transform: translate(var(--gx), var(--gy)) scale(0.4); opacity: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.facts p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Say it: a sentence with chips. */
.say { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.32; letter-spacing: -0.025em; font-weight: 600; max-width: 960px; text-wrap: pretty; }
.say .q { color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center; gap: 0.3em;
  background: #e8eeff; color: var(--blue);
  border-radius: 0.36em; padding: 0.02em 0.22em 0.06em 0.12em;
  white-space: nowrap; vertical-align: baseline;
}
.chip i {
  display: inline-grid; place-items: center;
  width: 1.05em; height: 1.05em; border-radius: 0.26em; font-style: normal;
}
.chip i svg { width: 0.62em; height: 0.62em; }
.chip.todo { background: #e6f7ee; color: #179a57; } .chip.todo i { background: var(--green); }
.chip.alarm { background: #fff1e3; color: #d86a00; } .chip.alarm i { background: var(--orange); }
.chip.agenda { background: #e8eeff; color: var(--blue); } .chip.agenda i { background: var(--blue); }
.keys { display: flex; gap: 10px 28px; align-items: center; margin-top: 34px; color: var(--ink-2); font-size: 15px; flex-wrap: wrap; }
.keys span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
kbd {
  font: 600 13px/1 var(--sans); background: #fff; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 8px; padding: 7px 10px; color: var(--ink);
}

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line);
}
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Private */
.dark { background: var(--ink); color: #fff; border-radius: 32px; margin: 0 16px; }
.dark .eyebrow { color: #8fa4ff; }
.dark h2 .dim { color: rgba(255,255,255,0.5); }
.dark .sub { color: rgba(255,255,255,0.65); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.pills span { border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: rgba(255,255,255,0.85); }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Final call */
.final {
  margin: 0 16px; border-radius: 32px; color: #fff; text-align: center;
  background: linear-gradient(180deg, var(--sky-1), #6f8cff 60%, var(--sky-2));
  position: relative; overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.final .wrap { position: relative; }
.final h2 { color: #fff; }
.final h2 .dim { color: rgba(255,255,255,0.65); }
.final .eyebrow { color: rgba(255,255,255,0.85); }
.final p { color: rgba(255,255,255,0.85); }

footer { padding: 60px 0 50px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }

footer img { height: 18px; width: auto; opacity: 0.9; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.doc { padding: 130px 0 40px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 8px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--ink-3); font-size: 14px; }
.doc .box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  section { padding: 80px 0; }
  .grid { grid-template-columns: 1fr; }
  /* Icons above and below the words, never on them. */
  .scatter { height: 680px; }
  .scatter .middle { padding: 0 8px; }
  .tile { width: 48px; height: 48px; border-radius: 12px; }
  .tile .tag { display: none; }
  .tile svg { width: 24px; height: 24px; }
  .nav a.link.hide-sm { display: none; }
  .try-it { right: 28px; font-size: 11px; }
  .dark, .final { margin: 0 8px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .drawer, .drawer.open { transition: opacity 200ms ease; }
  .scatter .tile { transition: opacity 300ms ease; }
}

/* A day with OneList */
.day { padding-top: 40px; }
.timeline { list-style: none; margin: 50px auto 0; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--purple) 50%, var(--orange)); opacity: 0.35; border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 50px 1fr; gap: 34px; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 57px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.timeline time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); padding-top: 3px; text-align: right; }
.timeline h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.015em; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) {
  .timeline::before { left: 46px; }
  .timeline li { grid-template-columns: 38px 1fr; gap: 26px; }
  .timeline li::before { left: 41px; }
  .timeline time { font-size: 12px; }
}

/* Hover only where there's a real pointer (taps on phones don't stick). */
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { box-shadow: 0 8px 22px rgba(11, 11, 12, 0.22); }
  .nav a.link:hover { color: var(--ink); background: rgba(11, 11, 12, 0.05); }
  footer a:hover { color: var(--ink); }
  .bump:hover img { transform: scaleX(-1.2); }
}
