/* one note at a time — the site. Same skin as the app: Ink. Flat, warm,
   typographic; every display a dark slab whatever the room is doing. */

:root {
  --bg: #141210; --bg2: #1e1c19; --bg3: #262320; --bg4: #33302a;
  --line: #2a2622; --line2: #3a3530;
  --text: #ebe5de; --text2: #a99d92; --text3: #8b8077;
  --accent: #8f7bf2; --accent-soft: rgba(143,123,242,.16);
  --good: #35c77b; --warn: #e0a53c; --bad: #e05a4e;
  --slab: #0b0a09; --slab-line: #2a2622;
  --deg1: #34c77b; --deg2: #e0705c; --deg3: #e3c34e; --deg4: #38b8a8; --deg5: #4f8fe0; --deg6: #cf9a3f; --deg7: #e04555;
  --serif: 'Lora', 'Iowan Old Style', 'New York', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --r: 10px; --r2: 14px; --r3: 20px;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 62ch;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f8f3ee; --bg2: #efeae3; --bg3: #e6e0d8; --bg4: #d9d1c7;
    --line: #ddd5cc; --line2: #c6bcb0;
    --text: #1c1916; --text2: #5f554c; --text3: #7a6f66;
    --accent: #7b66e8; --accent-soft: rgba(123,102,232,.14);
    --good: #2e8b52; --warn: #b0741f; --bad: #c03a33;
    --deg1: #2f7d4e; --deg2: #b25a44; --deg3: #a8862f; --deg4: #2f7d74; --deg5: #3a6ea8; --deg6: #8a6b28; --deg7: #b23a3f;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f8f3ee; --bg2: #efeae3; --bg3: #e6e0d8; --bg4: #d9d1c7;
  --line: #ddd5cc; --line2: #c6bcb0;
  --text: #1c1916; --text2: #5f554c; --text3: #7a6f66;
  --accent: #7b66e8; --accent-soft: rgba(123,102,232,.14);
  --good: #2e8b52; --warn: #b0741f; --bad: #c03a33;
  --deg1: #2f7d4e; --deg2: #b25a44; --deg3: #a8862f; --deg4: #2f7d74; --deg5: #3a6ea8; --deg6: #8a6b28; --deg7: #b23a3f;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── voices ── */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.18; letter-spacing: -.01em; }
p.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text2); max-width: var(--measure); }
p { max-width: var(--measure); }
.num { font-variant-numeric: tabular-nums; }
em { font-style: italic; }

/* ── header ── */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.wordmark em { color: var(--text2); }
.mark { width: 22px; height: 22px; flex: none; }
/* The o of "one" is the mark — the same ring and note the app wears. */
.mark.o { display: inline-block; width: .76em; height: .76em; vertical-align: -.09em; margin-right: -.04em; }
.hero-name .mark.o { width: .72em; height: .72em; vertical-align: -.07em; margin-right: -.03em; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--text2); padding: 8px 12px; border-radius: 100px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--bg2); }
@media (max-width: 640px) { .site-nav a.hide-sm { display: none; } .site-nav a { padding: 8px 9px; } .wordmark { font-size: 17px; } }

/* ── hero ── */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-name { font-family: var(--serif); font-size: clamp(40px, 6.4vw, 74px); line-height: 1; letter-spacing: -.03em; font-weight: 400; margin-bottom: 26px; }
.hero-name em { color: var(--accent); white-space: nowrap; }
.hero h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.01em; margin-bottom: 14px; }
.hero .lede { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 100px; font-size: 15px; font-weight: 600; border: 1px solid var(--line2); color: var(--text); }
.pill.accent { background: var(--accent); border-color: transparent; color: #fff; }
.pill.accent:hover { filter: brightness(1.08); }
.pill.quiet:hover { background: var(--bg2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .8; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text3); }

/* ── the phone ── */
.phone { position: relative; width: min(320px, 100%); aspect-ratio: 390 / 844; margin-inline: auto; padding: 9px; border-radius: 46px; background: var(--slab); box-shadow: 0 0 0 1px var(--slab-line), 0 40px 80px -30px rgba(0,0,0,.7); max-width: 100%; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--slab); }
.phone.sm { width: min(260px, 100%); border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 33px; }
.phone-cap { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text3); }

/* ── stat strip ── */
.strip { border-block: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-inline: var(--gutter); }
.strip div { min-width: 0; }
.strip div { padding: 22px 12px 22px 0; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip div + div { padding-left: 18px; }
.strip b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.strip span { font-size: 13px; color: var(--text3); }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } .strip div:nth-child(3) { border-right: 0; } .strip div:nth-child(4) { padding-left: 0; } .strip div:nth-child(n+4) { border-top: 1px solid var(--line); } }

/* ── sections ── */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head p { margin-top: 14px; color: var(--text2); }

/* overview: five verbs */
.verbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.verb { display: flex; flex-direction: column; gap: 14px; }
.verb .phone { width: 100%; }
.verb h3 { font-size: 22px; }
.verb p { font-size: 15px; color: var(--text2); line-height: 1.5; }
@media (max-width: 1000px) { .verbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ── the pages, as a carousel ── */
.pages .sec-head { margin-bottom: clamp(20px, 3vw, 32px); }
.carousel { position: relative; }
.car-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; outline-offset: 8px; }
.car-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--bg2); border-radius: var(--r3); padding: clamp(22px, 4vw, 44px); min-height: 520px; }
.slide .eyebrow { margin-bottom: 12px; }
.slide h3 { margin-bottom: 14px; }
.slide p { color: var(--text2); margin-bottom: 20px; }
.slide-shots { display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.slide-shots .phone { width: min(230px, 100%); box-shadow: 0 0 0 1px var(--slab-line), 0 30px 60px -28px rgba(0,0,0,.8); }
.slide-shots.two .phone { width: min(215px, 48%); }
.slide-shots.two .phone + .phone { transform: translateY(26px); }
/* The transport: the app's own row — square keys, the violet play — with a
   key per page, its icon and its name, and the page's time running under it. */
.transport { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.tr-keys { display: flex; align-items: center; gap: 8px; }
.tr-step, .tr-play { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--bg3); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tr-play { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; }
.tr-step svg, .tr-play svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tr-play .i-play { fill: currentColor; stroke: none; }
.tr-play .i-play { display: none; }
.carousel.paused .tr-play .i-pause { display: none; }
.carousel.paused .tr-play .i-play { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.car-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.car-dots button { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; border: none; background: var(--bg3); color: var(--text3); font: 600 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 9px 10px 12px; border-radius: 12px; cursor: pointer; overflow: hidden; }
.car-dots button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.car-dots button svg .f { fill: currentColor; stroke: none; }
.car-dots button span { position: relative; z-index: 1; }
.car-dots button i { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.car-dots button i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.car-dots button.on { color: var(--text); background: var(--bg4); }
.car-dots button.on svg { color: var(--accent); }
.car-dots button.on i::after { transform: scaleX(1); transition: transform var(--car-interval, 7s) linear; }
.carousel.paused .car-dots button.on i::after { transition: none; transform: scaleX(1); }
.tr-step:hover, .car-dots button:hover { color: var(--text); }
@media (max-width: 640px) { .car-dots button { min-width: 0; flex: 1; padding-inline: 6px; } .car-dots button span { display: none; } .car-dots { width: 100%; } }

/* MIDI: the cable, drawn */
.midi { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.midi-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.midi-text h2 { margin: 14px 0 16px; }
.midi-text p { color: var(--text2); }
.midi-steps { margin: 18px 0; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.midi-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--text2); }
.midi-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg3); color: var(--text); font: 600 12px/24px var(--sans); text-align: center; }
.midi-steps b { color: var(--text); font-weight: 600; }
.midi-note { font-size: 14px; color: var(--text3); }
.midi-fig { margin: 0; }
.midi-fig svg { width: 100%; height: auto; display: block; }
.midi-fig rect, .midi-fig path, .midi-fig circle { vector-effect: non-scaling-stroke; }
.midi-fig .ph > rect:first-child, .midi-fig .lap > rect:first-child { fill: var(--bg3); stroke: var(--line2); stroke-width: 1.5; }
.midi-fig .scr { fill: var(--bg); stroke: none; }
.midi-fig .ring { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 90 15; transform: rotate(-36deg); transform-origin: 58px 52px; opacity: .8; }
.midi-fig .dot { fill: var(--accent); }
.midi-fig .chip { fill: var(--bg3); } .midi-fig .chip.c1 { fill: var(--deg1); opacity: .8; } .midi-fig .chip.c5 { fill: var(--deg5); opacity: .8; }
.midi-fig .keys > rect:first-child { fill: #efe9e0; stroke: none; }
.midi-fig .keys path { stroke: var(--bg); stroke-width: 1.5; fill: none; }
.midi-fig .keys .bk { fill: #1e1c19; }
.midi-fig .keys .lit { fill: var(--accent); }
.midi-fig .cable { fill: none; stroke: url(#cab); stroke-width: 3; stroke-linecap: round; }
.midi-fig .plug { fill: var(--text2); }
.midi-fig .notes circle { fill: var(--accent); animation: ride 3s linear infinite; }
.midi-fig .notes circle:nth-child(2) { animation-delay: -1s; } .midi-fig .notes circle:nth-child(3) { animation-delay: -2s; }
@keyframes ride { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.midi-fig .daw .tr { fill: var(--bg2); }
.midi-fig .daw .clip { fill: var(--text3); opacity: .7; } .midi-fig .daw .clip.lit { fill: var(--accent); opacity: 1; }
.midi-fig .daw .lbl { fill: var(--text2); font: 600 11px var(--sans); }
.midi-fig .base { fill: var(--bg4); }
@media (prefers-reduced-motion: reduce) { .midi-fig .notes circle { animation: none; opacity: 1; } }
@media (max-width: 760px) { .midi-grid { grid-template-columns: 1fr; } .midi-fig { order: -1; } }

@media (max-width: 860px) { .slide { grid-template-columns: 1fr; min-height: 0; } .slide-shots { order: -1; } .slide-shots .phone { width: min(190px, 100%); } .slide-shots.two .phone { width: min(170px, 46%); } .slide-shots.two .phone + .phone { transform: translateY(18px); } .slide .spec { font-size: 14px; } }

/* ── uses: the quirky list ── */
.use-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.use-list li { background: var(--bg2); border-radius: var(--r3); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.use-list li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: 6px; }
.use-list li:nth-child(7n+1)::before { background: var(--deg1); } .use-list li:nth-child(7n+2)::before { background: var(--deg5); } .use-list li:nth-child(7n+3)::before { background: var(--deg2); } .use-list li:nth-child(7n+4)::before { background: var(--deg3); } .use-list li:nth-child(7n+5)::before { background: var(--deg4); } .use-list li:nth-child(7n+6)::before { background: var(--deg6); } .use-list li:nth-child(7n)::before { background: var(--deg7); }
.use-list b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.use-list span { font-size: 14px; color: var(--text2); line-height: 1.45; }
@media (max-width: 900px) { .use-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .use-list { grid-template-columns: 1fr; } }

/* ── price ── */
.price { padding-top: 0; }
.price-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--bg2); border-radius: var(--r3); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.price-card .eyebrow { margin-bottom: 12px; }
.price-card h2 { margin-bottom: 14px; }
.price-card p { color: var(--text2); }
.price-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price-num { font-family: var(--serif); font-size: clamp(56px, 8vw, 88px); line-height: 1; letter-spacing: -.03em; }
.price-num .cur { font-size: .5em; vertical-align: top; margin-right: 2px; color: var(--text2); }
.price-num .cents { font-size: .45em; color: var(--text2); }
.price-sub { font-size: 13px; color: var(--text3); margin-bottom: 8px; }
.price-note { font-size: 13px; color: var(--text3); max-width: 36ch; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; } }

/* deep features (kept for the article pages' spec lists) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .shots { order: -1; }
.feature .eyebrow { margin-bottom: 12px; }
.feature h3 { margin-bottom: 14px; }
.feature p { color: var(--text2); margin-bottom: 22px; }
.shots { display: flex; gap: 16px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.shots .phone { width: min(250px, 100%); }
.shots .phone + .phone { margin-top: 0; }
.shots.two .phone { width: min(235px, 46%); }
.spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 18px; font-size: 15px; line-height: 1.45; max-width: var(--measure); }
.spec dt { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); padding-top: 3px; white-space: nowrap; }
.spec dd { color: var(--text); }
.spec dd small { color: var(--text3); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature.flip .shots { order: 0; } .shots { order: 1; } }
@media (max-width: 480px) { .spec { grid-template-columns: 1fr; gap: 4px; } .spec dd { margin-bottom: 8px; } .spec dt { white-space: normal; } }

/* the tension spectrum swatches on the harmony block */
.degs { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.degs i { width: 12px; height: 12px; border-radius: 3px; display: block; }

/* voices */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.voice { background: var(--bg2); border-radius: var(--r3); padding: 18px 20px; }
.voice b { display: block; font-weight: 600; margin-bottom: 4px; }
.voice span { font-size: 14px; color: var(--text2); line-height: 1.45; display: block; }
@media (max-width: 640px) { .voices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .voices { grid-template-columns: 1fr; } }

/* two moods */
.moods { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.mood { background: var(--bg2); border-radius: var(--r3); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mood.paper { background: #f8f3ee; color: #1c1916; }
.mood.ink { background: #141210; color: #ebe5de; }
.mood .cap { font-size: 14px; opacity: .7; text-align: center; }
@media (max-width: 640px) { .moods { grid-template-columns: 1fr; } }

/* privacy */
.manifesto { border-top: 1px solid var(--line); }
.manifesto .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.manifesto p + p { margin-top: 14px; }
.manifesto p { color: var(--text2); }
.manifesto p strong { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .manifesto .wrap { grid-template-columns: 1fr; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; align-items: center; font-size: 14px; color: var(--text3); }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a:hover { color: var(--text); }

/* article pages (privacy, support) */
.article { padding-block: clamp(40px, 6vw, 80px); }
.article .wrap { max-width: 720px; }
.article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; }
.article .meta { color: var(--text3); font-size: 14px; margin-bottom: 36px; }
.article h2 { font-size: 22px; margin: 34px 0 10px; }
.article p, .article li { color: var(--text2); max-width: none; }
.article p + p { margin-top: 12px; }
.article ul { padding-left: 20px; }
.article li + li { margin-top: 6px; }
.article a { color: var(--accent); }

@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { width: min(280px, 100%); } }
