/* black and cream, like the app */
:root {
  --bg: #0a0a0a; --panel: #121211; --fg: #f2efe8; --muted: #8f8a80; --soft: #cfcac0; --line: #242422;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; position: relative; }

/* a warm light behind the top, and a faint grid that fades out */
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 55% at 72% 18%, rgba(196, 160, 104, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(242, 239, 232, .05), transparent 70%); }
body::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .45;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%); }

.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand, .fbrand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 16px; }
.logo { width: 24px; height: 24px; border-radius: 6px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3a3935; background: rgba(18, 18, 17, .6); color: var(--fg);
  border-radius: 10px; padding: 12px 20px; font-weight: 600; text-decoration: none; font-size: 15px; transition: border-color .15s, transform .15s; }
.btn:hover { border-color: var(--muted); }
.btn.p { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: 0 0 0 1px rgba(242,239,232,.1), 0 8px 30px rgba(196,160,104,.18); }
.btn.p:hover { transform: translateY(-1px); }
.btn.sm { padding: 7px 14px; font-size: 13.5px; }

.k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.hero { padding-top: 132px; padding-bottom: 150px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 104px); line-height: .98; letter-spacing: -.015em; margin: 0 0 28px; max-width: 900px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--soft); max-width: 520px; margin: 0 0 34px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }

/* features: text on one side, a drawing in a panel on the other, alternating */
.feat { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.feat.flip .txt { order: 2; }
.feat h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; margin: 14px 0 14px; letter-spacing: -.01em; }
.feat p { color: var(--soft); margin: 0; max-width: 420px; font-size: 16px; }
.art { margin: 0; border: 1px solid var(--line); border-top-color: #3a3935; border-radius: 20px; padding: 40px 36px; position: relative; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 0%, rgba(242,239,232,.05), transparent 70%), var(--panel); }
.art svg { width: 100%; height: auto; display: block; overflow: visible; }
.art .ln { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .dim { opacity: .3; }
.art .dash { stroke-dasharray: 5 6; opacity: .55; }
.art .fill { fill: var(--fg); }
.art .tx text { fill: var(--muted); font-family: var(--mono); font-size: 13px; }
.art .tx.big text { fill: var(--fg); font-family: var(--serif); font-size: 32px; }

.statement { padding-top: 150px; padding-bottom: 150px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.statement p { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; margin: 0; max-width: 820px; color: var(--soft); }
.statement em { color: var(--fg); }
.statement .small { font-family: inherit; font-size: 16px; color: var(--muted); margin-top: 22px; max-width: 380px; line-height: 1.55; }

.end { padding-bottom: 40px; }
.end h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); margin: 0 0 22px; }

.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 96px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.foot .fbrand { color: var(--fg); font-size: 14px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot > span:first-child + span { margin-left: auto; }

/* download page */
.get { padding-top: 80px; }
.get > * { max-width: 820px; }
.get h1 { font-size: clamp(44px, 7vw, 76px); }
.get .lead a { color: var(--fg); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.os { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; text-decoration: none; background: var(--panel); transition: border-color .15s; }
.os b { font-size: 18px; font-weight: 650; }
.os .sm { color: var(--muted); font-size: 13.5px; }
.os:hover, .os.on { border-color: var(--fg); }
.os.off { opacity: .45; pointer-events: none; }
.how { margin-top: 56px; }
.how h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 10px; }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.how li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); color: var(--soft); }
.how li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.how b { color: var(--fg); font-weight: 600; }

@media (max-width: 820px) {
  .feat { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .feat.flip .txt { order: 0; }
  .statement { padding-top: 96px; padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .art { padding: 26px 20px; }
  .pick { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot nav { flex: none; gap: 16px; }
}


/* ---- illustrations, drawn in HTML ---- */
h1 em { font-style: italic; color: var(--soft); }
.btn.lg { padding: 14px 30px; font-size: 16px; }
.art { padding: 30px; }

/* small line glyphs */
.g { display: inline-block; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.g.book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5'/%3E%3C/svg%3E"); }
.g.pen { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.g.run { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='4' r='1.6'/%3E%3Cpath d='m8 21 3-6 3 2v4'/%3E%3Cpath d='M6.5 12.5 9 9.5l4 1 2 3h3'/%3E%3Cpath d='m11 15 1.5-5'/%3E%3C/svg%3E"); }

/* 01 · the day */
.day { position: relative; }
.dh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dt { font-family: var(--serif); font-size: 28px; }
.ds { color: var(--muted); font-size: 13px; }
.day .row { display: flex; align-items: center; gap: 12px; margin-top: 9px; }
.day .t { width: 42px; flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.day .b { flex: 1; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 11px; border: 1px solid #2a2a27; background: #171716; font-size: 14px; min-width: 0; }
.day .b b { font-weight: 650; }
.day .m { color: var(--muted); font-size: 12.5px; }
.day .r { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.day .done .b { opacity: .5; }
.day .now .b { border: 1.5px solid var(--fg); background: #1c1c1a; box-shadow: 0 0 0 4px rgba(242,239,232,.04); }
.go { background: var(--fg); color: var(--bg); font-weight: 650; padding: 4px 10px; border-radius: 7px; font-size: 12px; }

/* 02 · the dock */
.dockart { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 44px 24px 36px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--fg); color: var(--bg); font-weight: 650; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.dock { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 10px; border-radius: 22px; background: rgba(242,239,232,.04); border: 1px solid #2f2e2b; max-width: 100%; flex-wrap: wrap; justify-content: center; }
.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 52px; }
.app .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: #1d1d1b; border: 1px solid #33322f; }
.app .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app .nm { font-size: 10.5px; color: var(--muted); }
.app:not(.open) .ic { opacity: .45; }
.app:not(.open) .nm { opacity: .6; }
.app.open .ic { background: var(--fg); border-color: var(--fg); box-shadow: 0 6px 24px rgba(196,160,104,.22); }
.app.open .ic svg { stroke: var(--bg); }
.app.open .nm { color: var(--fg); }
.app.open::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); margin-top: -3px; }
.lk { position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid #45433e; }
.lk::before { content: ""; position: absolute; inset: 4px; background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.sep { width: 1px; align-self: stretch; background: #33322f; margin: 4px 2px 18px; }

/* 03 · the week */
.wh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.wh span:first-child { font-family: var(--serif); font-size: 28px; }
.wh .m, .wk .key { color: var(--muted); font-size: 13px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 170px; }
.bars > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bars i { position: relative; width: 100%; height: var(--p); border: 1px dashed #5d5951; border-radius: 7px; }
.bars i::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: var(--d); background: var(--fg); border-radius: 7px; }
.wk .key { display: flex; gap: 18px; margin-top: 16px; }
.wk .key b { display: inline-block; width: 14px; height: 9px; border-radius: 3px; background: var(--fg); margin-right: 6px; }
.wk .key b.dsh { background: transparent; border: 1px dashed #6b675f; }

/* 04 · away */
.away { text-align: center; padding: 6px 0; }
.away .lbl { color: var(--muted); font-size: 13px; }
.clock { font-size: 64px; font-weight: 200; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 10px; }
.state { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #3a3935; border-radius: 99px; padding: 6px 13px; font-size: 13px; color: var(--soft); }
.state .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.trace { margin: 20px 0 10px; height: 60px; }
.trace svg { width: 100%; height: 100%; }
.trace path { fill: none; stroke-width: 2; stroke-linecap: round; }
.trace .on { stroke: var(--fg); }
.trace .off { stroke: #5d5951; stroke-dasharray: 4 6; }
.away .note { color: var(--muted); font-size: 12.5px; }

/* 05 · pair */
.pair { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 6px 0; }
.who { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.who .av { position: relative; width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--fg); display: grid; place-items: center; font-family: var(--serif); font-size: 32px; margin-bottom: 8px; }
.who .av i { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 3px solid var(--panel); }
.who b { font-size: 14px; }
.who .m { color: var(--muted); font-size: 12px; }
.pair .link { flex: 1; height: 0; border-top: 1.5px dashed #6b675f; margin-bottom: 52px; position: relative; }
.pair .link::after { content: "live"; position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.streak { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; }
.sq { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #45433e; }
.sq.on { background: var(--fg); border-color: var(--fg); }
.streak .m { color: var(--muted); font-size: 12.5px; margin-left: 8px; }

@media (max-width: 560px) {
  .art { padding: 22px 16px; }
  .app { width: 44px; } .app .ic { width: 42px; height: 42px; }
  .dock { gap: 8px; }
  .clock { font-size: 52px; }
}

/* legal pages */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 24px; }
.doc h1 { font-size: 38px; margin-bottom: 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 14px; }
.doc h2 { font-size: 19px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--soft); font-size: 15.5px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--fg); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.doc th, .doc td { text-align: left; border-top: 1px solid var(--line); padding: 9px 8px 9px 0; vertical-align: top; color: var(--soft); }
.doc th { color: var(--fg); font-weight: 600; }
.feat.flip { grid-template-columns: 1.1fr 1fr; }
.dock { flex-wrap: nowrap; gap: 6px; padding: 12px 12px 10px; }
.app { width: 46px; } .app .ic { width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 820px) { .feat.flip { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dock { flex-wrap: wrap; } }

/* wordmark, no logo yet */
.brand { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }

/* the "always a way out" line, given more weight */
.statement .small { font-size: clamp(18px, 2.2vw, 22px); color: var(--soft); max-width: 460px; margin-top: 26px; }
.statement .small span { color: var(--fg); }

.end { padding-top: 20px; padding-bottom: 20px; }

/* footer: a wordmark, then three short columns */
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 24px; align-items: start; margin-top: 120px; padding-top: 36px; padding-bottom: 48px; }
.foot .fl { display: flex; flex-direction: column; gap: 8px; }
.foot .word { font-family: var(--serif); font-size: 30px; color: var(--fg); line-height: 1; }
.foot .fc { display: flex; flex-direction: column; gap: 10px; }
.foot .fc .k { margin-bottom: 2px; }
.foot .fc a { color: var(--soft); font-size: 14px; }
.foot .fc a:hover { color: var(--fg); }
.foot > span:first-child + span { margin-left: 0; }

@media (max-width: 820px) {
  .foot { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot .fl { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot { flex-direction: initial; }
  .xs-hide { display: none; }
  .dock { flex-wrap: nowrap; gap: 5px; padding: 10px; }
  .app { width: 40px; } .app .ic { width: 38px; height: 38px; border-radius: 10px; } .app .ic svg { width: 20px; height: 20px; }
  .app .nm { font-size: 9.5px; }
  .day .b { padding: 10px 11px; gap: 7px; font-size: 13.5px; }
  .day .t { width: 36px; font-size: 10.5px; }
  .day .m { display: none; }
  .bars { gap: 7px; height: 140px; }
  .pair .who .m { font-size: 11px; }
  .who .av { width: 60px; height: 60px; font-size: 26px; }
  .statement { align-items: flex-start; text-align: left; }
  .btn.lg { width: 100%; }
}
