/* Klakon website. Flat shapes with a darker underside, no gradients, one big thing per screen. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --cream: #F3EDDF; --paper: #FFFDF6; --paper-lip: #DDD3BA; --key-lip: #CFC4A6;
  --ink: #17141F; --soft: #5F5948; --well: #F0EADB;
  --night: #1F1A4A; --night-lip: #0F0C28; --night-2: #2E2960;
  --on-night: #F6F0E2; --on-night-soft: #D8D4EE; --on-night-faded: #8E88B6;
  --orange: #FF5A1F; --orange-lip: #B63A0B;
  --yellow: #FFD23F; --yellow-lip: #D6A412;
  --periwinkle: #7C97FF; --periwinkle-lip: #5069D6;
  --butter: #FFDA5C;
  --pink: #FF8DB4; --pink-lip: #D45F8A;
  --mint: #4ED8A6; --mint-lip: #27A076;
  --sky: #FFC7A0; --sun: #FFE690; --receipt-rule: #B9B09A;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Bricolage", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body { margin: 0; background: var(--cream); color: var(--ink); font: 500 18px/1.5 var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.night :focus-visible, .ink-bg :focus-visible { outline-color: var(--yellow); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 880px) { .two { grid-template-columns: minmax(0, 1fr); } }

h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: -0.003em; text-wrap: balance; }
h1 { font-size: clamp(84px, 13vw, 184px); line-height: .84; }
h2 { font-size: clamp(60px, 8.4vw, 124px); line-height: .86; }
h3 { font-size: clamp(38px, 4vw, 56px); line-height: .92; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; max-width: 33ch; }

.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--ink); color: var(--on-night); vertical-align: middle; }
.tag.free { background: var(--paper); color: var(--ink); }

/* chunky keys that sink */
.key { --lip: var(--key-lip); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); font: 800 17px/1 var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 var(--lip); transition: transform .15s cubic-bezier(.2,1.3,.4,1), box-shadow .15s ease, background-color .2s ease; }
.key:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--lip); }
.key:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--lip); }
.key-orange { --lip: var(--orange-lip); background: var(--orange); }
.key-dark { --lip: rgba(23, 20, 31, .35); background: var(--ink); color: var(--on-night); }
.key-night { --lip: var(--night-lip); background: var(--night-2); color: var(--on-night); }
.key-small { min-height: 44px; padding: 0 18px; border-radius: 15px; font-size: 15px; box-shadow: 0 4px 0 var(--lip); }

/* Official Apple App Store badge + pre-launch coming-soon badge */
.store { display: inline-block; line-height: 0; border-radius: 10px; }
.store img { height: 56px; width: auto; display: block; }
.soon-badge { display: inline-flex; align-items: center; gap: 11px; min-height: 56px; padding: 8px 20px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 0 var(--night-lip); text-align: left; font-family: var(--text); }
.soon-badge svg { width: 24px; height: 24px; flex: none; }
.soon-badge small { display: block; font: 600 10.5px/1.15 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.soon-badge b { display: block; font: 800 19px/1.1 var(--text); letter-spacing: -.01em; }
.hero.awake .soon-badge { box-shadow: 0 6px 0 var(--orange-lip); }
.lost-card { display: flex; align-items: center; gap: 28px; }
@media (max-width: 600px) { .lost-card { flex-direction: column; align-items: flex-start; gap: 18px; } }

/* flat phone */
.phone { --phone-lip: rgba(23, 20, 31, .28); width: min(318px, 76vw); margin-inline: auto; padding: 10px; border-radius: 58px; background: var(--ink); box-shadow: 0 12px 0 var(--phone-lip); }
.screen { position: relative; border-radius: 48px; overflow: hidden; background: var(--cream); }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 2868; }
.screen::after { content: ""; position: absolute; top: 1.45%; left: 50%; width: 28.6%; height: 3.85%; transform: translateX(-50%); border-radius: 999px; background: #000; }

/* sections */
section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.night { background: var(--night); color: var(--on-night); }

/* header */
.top { display: flex; align-items: center; gap: 28px; padding-top: 22px; }
.wordmark { font: 900 34px/1 var(--display); letter-spacing: .04em; text-decoration: none; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 0; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
@media (max-width: 760px) { .top nav { display: none; } .top .key { margin-left: auto; } }

/* hero */
.hero { padding-top: 0; padding-bottom: clamp(72px, 9vw, 120px); overflow: hidden; transition: background-color .35s ease, color .35s ease; background-image: radial-gradient(circle at 12% 24%, rgba(255, 255, 255, .14) 0 2px, transparent 2.5px), radial-gradient(circle at 38% 12%, rgba(255, 210, 63, .35) 0 2.5px, transparent 3px), radial-gradient(circle at 72% 16%, rgba(255, 255, 255, .18) 0 2px, transparent 2.5px), radial-gradient(circle at 91% 34%, rgba(255, 255, 255, .15) 0 2.5px, transparent 3px), radial-gradient(circle at 24% 82%, rgba(255, 255, 255, .12) 0 2px, transparent 2.5px), radial-gradient(circle at 84% 78%, rgba(255, 210, 63, .28) 0 2px, transparent 2.5px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; margin-top: clamp(36px, 6vw, 80px); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero .mono { color: var(--on-night-soft); animation: heroIn .5s cubic-bezier(.2,.9,.3,1) both; }
.hero h1 { margin: 18px 0 26px; animation: heroIn .55s cubic-bezier(.2,.9,.3,1) .08s both; }
.hero .lede { color: var(--on-night-soft); animation: heroIn .55s cubic-bezier(.2,.9,.3,1) .16s both; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; animation: heroIn .55s cubic-bezier(.2,.9,.3,1) .24s both; }
.hero .free-note { animation: heroIn .55s cubic-bezier(.2,.9,.3,1) .3s both; }
.sleepline { margin-top: 28px; font: 500 14px/1.6 var(--mono); color: var(--on-night-faded); min-height: 1.6em; animation: heroIn .55s cubic-bezier(.2,.9,.3,1) .36s both; }
.sleepline b { color: var(--yellow); font-weight: 600; }

.stage { position: relative; padding-top: 118px; justify-self: center; width: min(360px, 100%); animation: heroStageIn .65s cubic-bezier(.2,1.1,.35,1) .12s both; }
.stage .moon { position: absolute; top: 6px; right: -6px; width: 74px; }
.poke { position: absolute; z-index: 2; top: 0; left: 50%; width: 170px; height: 170px; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 40px; transition: transform .2s cubic-bezier(.2,1.2,.4,1); }
.poke:hover { transform: translateX(-50%) scale(1.05) rotate(-2deg); }
.poke img { width: 100%; height: 100%; display: block; animation: klakBreathe 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.stage .moon { animation: moonDrift 5.5s ease-in-out infinite; }
.poke .zzz { position: absolute; top: 4px; right: -22px; font: 900 38px/1 var(--display); color: var(--on-night); animation: float 2.6s ease-in-out infinite; }
.poke .burst { position: absolute; top: -8px; right: -58px; width: 96px; height: 96px; display: none; place-items: center; background: url("../img/burst.svg") center / contain no-repeat; color: var(--ink); font: 900 28px/1 var(--display); transform: rotate(10deg); }
.stage .phone { position: relative; --phone-lip: var(--night-lip); width: min(300px, 78vw); transition: transform .35s cubic-bezier(.2,.9,.3,1.1); }
.stage:hover .phone { transform: translateY(-4px); }
.poke-hint { margin-top: 30px; text-align: center; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-soft); }
.stage.awake .zzz { display: none; }
.stage.awake .burst { display: grid; animation: burstPop .26s cubic-bezier(.2,1.4,.4,1) both; }
.stage.awake .poke img { animation: shake .12s linear infinite; }
.stage.awake .phone { animation: buzz .12s linear infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroStageIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes float { 50% { transform: translateY(-9px); opacity: .55; } }
@keyframes klakBreathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, 1.04); } }
@keyframes moonDrift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-5deg); } }
@keyframes burstPop { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(10deg); } }
@keyframes shake { 25% { transform: translate(-3px, 1px) rotate(-4deg); } 75% { transform: translate(3px, -1px) rotate(4deg); } }
@keyframes buzz { 25% { transform: translateX(-2px) rotate(-.4deg); } 75% { transform: translateX(2px) rotate(.4deg); } }

/* UP tape */
.tape { position: relative; z-index: 3; height: 0; overflow-x: clip; }
.tape > div { position: absolute; left: -3vw; right: -3vw; top: -34px; height: 68px; background: var(--ink); color: var(--on-night); transform: rotate(-2deg); overflow: hidden; display: flex; align-items: center; }
.tape span { flex: none; font: 900 46px/1 var(--display); white-space: nowrap; animation: tape 18s linear infinite; }
@keyframes tape { to { transform: translateX(-100%); } }

/* ringing */
.ringing { background: var(--orange); }
.ringing .phone { --phone-lip: var(--orange-lip); }
.log { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 14px; }
.log li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--paper); border-radius: 24px; padding: 18px 20px; box-shadow: 0 6px 0 var(--orange-lip); }
.log time, .log .when { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.log b { display: block; font-weight: 800; }
.log p { font-size: 16.5px; line-height: 1.45; }

/* crew */
.crew { background: var(--periwinkle); --lip: var(--periwinkle-lip); transition: background-color .25s; }
.crew[data-crew="stomp"] { background: var(--butter); --lip: var(--yellow-lip); }
.crew[data-crew="chatter"] { background: var(--pink); --lip: var(--pink-lip); }
.crew-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.crew-head p { max-width: 36ch; font-weight: 700; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 40px 0 48px; }
.tab { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 10px 18px; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 7px 0 var(--lip); cursor: pointer; text-align: left; font-family: var(--text); }
.tab img { width: 70px; height: 70px; padding: 6px; border-radius: 20px; object-fit: contain; flex: none; background: var(--periwinkle); }
.tab[data-crew="stomp"] img { background: var(--butter); }
.tab[data-crew="chatter"] img { background: var(--pink); }
.tab strong { display: block; font: 900 34px/1 var(--display); text-transform: uppercase; }
.tab small { display: block; font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-night); transform: translateY(5px); box-shadow: 0 2px 0 var(--lip); }
.tab[aria-selected="true"] small { color: var(--on-night-soft); }
@media (max-width: 700px) {
  .tabs { gap: 8px; }
  .tab { flex-direction: column; justify-content: center; gap: 6px; text-align: center; padding: 12px 4px; }
  .tab img { width: 56px; height: 56px; padding: 5px; border-radius: 16px; }
  .tab strong { font-size: 26px; }
}
.panel .phone { --phone-lip: var(--lip); }
.panel h3 { margin-bottom: 16px; }
.panel > div > p { max-width: 42ch; font-weight: 600; }
.try { margin-top: 32px; max-width: 420px; }
.try .mono { margin-bottom: 14px; }

.sum { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 14px; }
.sum img { width: 96px; height: 100px; object-fit: contain; }
.question { font: 900 clamp(48px, 5.4vw, 68px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.well { display: flex; align-items: center; justify-content: center; gap: 6px; height: 68px; border-radius: 22px; background: var(--ink); color: var(--on-night); font: 900 46px/1 var(--display); }
.well i { width: 4px; height: 36px; border-radius: 2px; background: var(--orange); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pad .key { min-height: 54px; padding: 0; border-radius: 18px; font: 900 32px/1 var(--display); --lip: var(--key-lip); }
.pad .key-dark { --lip: var(--lip-crew, rgba(23, 20, 31, .35)); }
.pad .key-orange { --lip: var(--orange-lip); }
.pad svg { width: 28px; height: 28px; }
.feedback { margin-top: 18px; font: 600 13px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; min-height: 3em; }
.nope { animation: nope .35s linear; }
@keyframes nope { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }

.line-card { background: var(--paper); border-radius: 22px; padding: 16px 18px; box-shadow: 0 6px 0 var(--lip); font: 600 16px/1.5 var(--mono); letter-spacing: .03em; user-select: none; }
.line-card small { display: block; font-size: 11px; color: var(--soft); letter-spacing: .1em; }
.type { width: 100%; margin-top: 18px; height: 62px; border: 0; border-radius: 20px; padding: 0 18px; background: var(--ink); color: var(--on-night); font: 600 16px var(--mono); text-transform: uppercase; caret-color: var(--orange); }
.type::placeholder { color: var(--on-night-faded); }
.type-meta { display: flex; justify-content: space-between; gap: 12px; margin: 10px 2px 16px; font: 600 12px var(--mono); letter-spacing: .06em; }
.try .check-btn { width: 100%; }

.bignote { margin-top: 32px; max-width: 420px; background: var(--paper); border-radius: 26px; padding: 22px 24px; box-shadow: 0 7px 0 var(--lip); }
.bignote strong { display: block; font: 900 64px/.9 var(--display); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.step-head strong { margin-bottom: 0; }
.step-track { height: 18px; border-radius: 999px; background: var(--well); padding: 3px; margin-bottom: 14px; overflow: hidden; }
.step-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--orange); transition: width .28s cubic-bezier(.2,1.15,.4,1), background-color .25s ease; }
.bignote.step-done .step-fill { background: var(--mint); }
.bignote.step-done { animation: stepPop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes stepPop { 40% { transform: scale(1.03); } }

/* sunrise + receipt */
.morning { padding-top: 0; background: var(--cream); }
.sunrise { position: relative; height: clamp(250px, 30vw, 380px); background: var(--sky); overflow: hidden; margin-bottom: clamp(48px, 7vw, 96px); }
.sunrise .disc { position: absolute; left: 50%; bottom: -90px; width: clamp(280px, 34vw, 440px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); transform: translate(-50%, 110px); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.sunrise .hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 42%; display: block; }
.sunrise .klak { position: absolute; left: 50%; bottom: 8%; width: clamp(150px, 17vw, 220px); transform: translate(-50%, 24px); transition: transform .8s cubic-bezier(.2,1.3,.4,1) .15s; }
.morning.in .sunrise .disc { transform: translate(-50%, 0); }
.morning.in .sunrise .klak { transform: translate(-50%, 0); animation: klakHop 1.8s ease-in-out 1s infinite; }
@keyframes klakHop { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
.morning-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(28px, 4vw, 56px); align-items: start; }
.morning-grid > div:first-child p { margin-top: 22px; max-width: 34ch; }
.morning .phone { width: min(270px, 76vw); --phone-lip: var(--paper-lip); }
@media (max-width: 1040px) { .morning-grid { grid-template-columns: minmax(0, 1fr) auto; } .morning-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .morning-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; } .morning-grid > div:first-child { justify-self: start; } }

.receipt { position: relative; width: min(310px, 100%); padding: 22px 22px 18px; background: var(--paper); font: 500 13px/1 var(--mono); filter: drop-shadow(0 9px 0 rgba(23, 20, 31, .12)); transform: rotate(-1.6deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='12'%3E%3Cpath d='M0 0H15L7.5 11Z' fill='%23FFFDF6'/%3E%3C/svg%3E") repeat-x; }
.receipt .rtitle { margin: 0 0 8px; text-align: center; font: 600 13px/1.3 var(--mono); letter-spacing: .11em; }
.receipt .date { text-align: center; font-size: 11px; color: var(--soft); }
.rule { border: 0; border-top: 2px dashed var(--receipt-rule); margin: 14px 0; }
.rline { display: flex; align-items: flex-end; gap: 8px; margin: 11px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rline i { flex: 1; border-bottom: 2px dotted var(--receipt-rule); margin-bottom: 2px; }
.total { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.total b { font: 900 66px/.8 var(--display); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 12px; text-align: center; font-size: 11px; color: var(--soft); }
.week span::before { content: ""; display: block; aspect-ratio: 1; margin-bottom: 5px; border-radius: 9px; background: var(--orange); }
.yours { background: var(--yellow); margin-inline: -8px; padding: 6px 8px; border-radius: 6px; }

/* wake check */
.still { background: var(--yellow); }
.still .phone { --phone-lip: var(--yellow-lip); }
.still p.lede { margin: 24px 0 18px; }
.doze { display: flex; align-items: flex-end; gap: 14px; margin-top: 44px; }
.doze img { width: 150px; flex: none; transform: rotate(8deg); animation: dozeBob 3s ease-in-out infinite; }
.bubble { background: var(--paper); border-radius: 22px 22px 22px 6px; padding: 13px 17px; margin-bottom: 70px; font-weight: 800; box-shadow: 0 5px 0 var(--yellow-lip); animation: bubbleFloat 3.4s ease-in-out infinite; }
@keyframes dozeBob { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
@keyframes bubbleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* shifts */
.rota { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 480px; }
.stepper { background: var(--paper); border-radius: 24px; padding: 14px; text-align: center; box-shadow: 0 6px 0 var(--paper-lip); }
.stepper .mono { font-size: 11px; color: var(--soft); }
.stepper div { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.stepper output { font: 900 48px/1 var(--display); min-width: 28px; }
.step { width: 46px; height: 46px; border: 0; border-radius: 15px; background: var(--well); box-shadow: 0 4px 0 var(--paper-lip); font: 800 24px/1 var(--text); color: var(--ink); cursor: pointer; }
.step:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--paper-lip); }
.days { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.days li { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 var(--paper-lip); font: 600 11px/1.4 var(--mono); color: var(--soft); }
.days li b { font: 900 22px/1 var(--display); color: var(--ink); }
.days li.on { background: var(--orange); box-shadow: 0 4px 0 var(--orange-lip); color: var(--ink); animation: dayPop .28s cubic-bezier(.2,1.35,.4,1) both; }
@keyframes dayPop { from { transform: scale(.86); opacity: .7; } to { transform: scale(1); opacity: 1; } }
.shifts .phone { --phone-lip: var(--paper-lip); }
.shifts .lede { margin-top: 24px; }

/* tones */
.tones h2 { max-width: 11ch; }
.tones .lede { margin-top: 22px; color: var(--on-night-soft); }
.tone-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 900px) { .tone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 339px) { .tone-grid { grid-template-columns: minmax(0, 1fr); } }
.tone { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 132px; padding: 18px; border: 0; border-radius: 26px; background: var(--night-2); color: var(--on-night); text-align: left; cursor: pointer; box-shadow: 0 7px 0 var(--night-lip); font-family: var(--text); }
.tone strong { font: 900 32px/1 var(--display); text-transform: uppercase; }
.tone span { font-size: 14px; font-weight: 600; color: var(--on-night-soft); }
.tone em { position: absolute; top: 14px; right: 14px; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--on-night-faded); }
.tone:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--night-lip); }
.tone[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: 0 7px 0 var(--yellow-lip); }
.tone[aria-pressed="true"] span, .tone[aria-pressed="true"] em { color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 20px; margin-top: auto; }
.bars i { width: 5px; height: 5px; border-radius: 3px; background: currentColor; opacity: .45; }
.tone[aria-pressed="true"] .bars i { opacity: 1; animation: eq .45s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: .12s !important; } .bars i:nth-child(3) { animation-delay: .27s !important; } .bars i:nth-child(4) { animation-delay: .06s !important; } .bars i:nth-child(5) { animation-delay: .2s !important; }
@keyframes eq { to { height: 20px; } }

/* nothing collected */
.ink-bg { background: var(--ink); color: var(--on-night); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 18px 0; border-top: 2px solid rgba(246, 240, 226, .16); font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; }
.facts li:last-child { border-bottom: 2px solid rgba(246, 240, 226, .16); }
.facts li span { display: block; font-size: 15px; font-weight: 500; color: var(--on-night-soft); margin-top: 3px; }

/* price */
.price-head { max-width: 760px; }
.price-head p { margin-top: 18px; }
.plans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; margin-top: 52px; align-items: stretch; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border-radius: 36px; padding: clamp(24px, 3vw, 38px); background: var(--paper); box-shadow: 0 9px 0 var(--paper-lip); }
.plan.pro { background: var(--yellow); box-shadow: 0 9px 0 var(--yellow-lip); }
.plan h3 { margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 11px 0; border-top: 2px solid rgba(23, 20, 31, .09); font-weight: 700; font-size: 16.5px; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
@media (max-width: 480px) { .amounts { grid-template-columns: minmax(0, 1fr); } }
.amount { background: var(--paper); border-radius: 22px; padding: 16px 14px; box-shadow: 0 5px 0 var(--yellow-lip); }
.amount b { display: block; font: 900 42px/1 var(--display); }
.amount span { display: block; font: 600 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.amount.best { background: var(--ink); color: var(--on-night); }
.fine { margin-top: 26px; max-width: 70ch; font-size: 14px; color: var(--soft); }
.faces { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 64px; }
.faces figure { margin: 0; text-align: center; width: 100px; }
.faces img { width: 92px; height: 92px; border-radius: 21px; display: block; margin: 0 auto 8px; box-shadow: 0 6px 0 var(--paper-lip); transition: transform .22s cubic-bezier(.2,1.3,.4,1); }
.faces figure:hover img { transform: translateY(-5px) rotate(-3deg); }
.faces figcaption { font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 560px) { .faces { display: grid; grid-template-columns: repeat(3, 1fr); } .faces figure { width: auto; } }

/* subtle scroll reveals & interactive micro-polish */
.tab { transition: transform .18s cubic-bezier(.2,1.2,.4,1), box-shadow .18s ease, background-color .18s ease; }
.tab:hover:not([aria-selected="true"]) { transform: translateY(-2px); }
.tone { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.tone:hover { transform: translateY(-2px); }
.panel:not([hidden]) { animation: panelIn .28s ease-out both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2,.9,.3,1); transition-delay: var(--d, 0ms); }
.js-reveal.in { opacity: 1; transform: translateY(0); }
.receipt.js-reveal { transform: translateY(22px) rotate(-1.6deg) scaleY(.94); transform-origin: top center; }
.receipt.js-reveal.in { transform: translateY(0) rotate(-1.6deg) scaleY(1); }
.stamp img { transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.stamp:hover img { transform: rotate(-10deg) scale(1.1); }
details { transition: transform .18s ease; }
details:hover { transform: translateY(-2px); }
details[open] p { animation: panelIn .24s ease-out both; }
.goodnight .klak { width: 170px; display: block; margin: 0 auto 8px; animation: klakBreathe 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: reduce) { .hero .mono, .hero h1, .hero .lede, .cta, .hero .free-note, .sleepline, .stage { animation: none; } .js-reveal { opacity: 1; transform: none; } .sunrise .disc, .sunrise .klak { transform: translateX(-50%); } }

/* questions */
.faq { padding-top: 0; }
.faq h2 { font-size: clamp(48px, 6vw, 80px); margin-bottom: 30px; }
details { background: var(--paper); border-radius: 24px; box-shadow: 0 6px 0 var(--paper-lip); margin-bottom: 16px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 12px 24px; font-weight: 800; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 900 34px/1 var(--display); }
details[open] summary::after { content: "−"; }
details p { padding: 0 24px 22px; max-width: 64ch; }

/* goodnight */
.goodnight { text-align: center; padding-bottom: 48px; overflow: hidden; }
.goodnight p.lede { margin: 18px auto 30px; color: var(--on-night-soft); }
.foot { margin-top: 96px; padding-top: 28px; border-top: 2px solid rgba(246, 240, 226, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; text-align: left; font-size: 14px; color: var(--on-night-faded); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--on-night); font-weight: 700; }
.foot .legal { width: 100%; font-size: 12.5px; }

/* the time of night above a section */
.stamp { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 5px 16px 5px 7px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 rgba(23, 20, 31, .18); font: 900 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.stamp img { width: 36px; height: 36px; }
h2 + .lede { margin-top: 24px; }
.tones .stamp { display: flex; width: max-content; }

/* plain pages: privacy, terms, support */
.doc-top { background: var(--night); color: var(--on-night); padding-bottom: 56px; }
.doc-top h1 { font-size: clamp(64px, 9vw, 112px); margin-top: 56px; }
.doc-top p { margin-top: 14px; color: var(--on-night-soft); }
.doc { width: min(760px, 100% - 40px); margin: 48px auto 96px; }
.doc article { background: var(--paper); border-radius: 28px; padding: 26px 28px; box-shadow: 0 6px 0 var(--paper-lip); margin-bottom: 20px; }
.doc h2 { font: 800 21px/1.3 var(--text); text-transform: none; margin-bottom: 8px; }
.doc p, .doc li { font-size: 16.5px; color: var(--soft); }
.doc p + p { margin-top: 10px; }
.doc ol, .doc ul { margin: 6px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); font-weight: 700; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.free-note { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--on-night-soft); }

/* press Klak and the top of the page goes off, like the app does */
.hero.awake { background: var(--orange); color: var(--ink); }
.hero.awake .mono, .hero.awake .lede, .hero.awake .free-note, .hero.awake .sleepline, .hero.awake .sleepline b, .hero.awake .poke-hint { color: var(--ink); }
.hero.awake .stage .moon { visibility: hidden; }
.hero.awake .stage .phone { --phone-lip: var(--orange-lip); }
.hero.awake .key-orange, .hero.awake .key-night { --lip: var(--orange-lip); background: var(--paper); color: var(--ink); }

@media (min-width: 881px) { .still .phone { order: -1; } }

/* phones: Klak comes up right under the headline, and nothing runs off the side */
.rota { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .hero-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-grid > div:first-child { display: contents; }
  .hero .stage { order: 1; align-self: stretch; width: auto; padding-top: 0; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
  .hero .stage .phone { display: none; }
  .hero .stage .moon { top: 0; right: 14px; width: 52px; }
  .hero .poke { position: relative; left: auto; transform: none; width: 156px; height: 156px; }
  .hero .poke-hint { margin-top: 8px; }
  .hero .lede { order: 2; }
  .hero .cta { order: 3; margin-top: 26px; }
  .hero .free-note { order: 4; }
  .hero .sleepline { order: 5; margin-top: 18px; }
  .log li { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .log time, .log .when { font-size: 26px; }
  .stepper { padding: 12px 6px; }
  .stepper div { gap: 8px; }
  .step { width: 44px; height: 44px; }
  .days { gap: 6px; }
}

@media (max-width: 480px) {
  .tone-grid { gap: 12px; margin-top: 34px; }
  .tone { min-height: 126px; padding: 34px 12px 14px 14px; border-radius: 22px; }
  .tone strong { font-size: 27px; }
  .tone span { font-size: 13px; line-height: 1.35; }
  .tone em { top: 12px; right: 12px; }
}

/* the plain pages keep their links on phones */
.doc-top .top { flex-wrap: wrap; }
.doc-top .top nav { display: flex; }
.doc-top .top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }
.doc-top h1 + p { margin-top: 18px; }
.doc-foot { padding: 0 0 40px; }
.doc-foot .foot { margin-top: 0; padding-top: 34px; border-top: 0; }
@media (max-width: 560px) { .doc-top .top nav { margin-left: 0; width: 100%; gap: 22px; } .doc-top .top { gap: 6px; } .doc article { padding: 22px 20px; } }
