/* Middlewatch: the lead's own rules over the design kit. Linked last on every page.
   Owner, 18 Nov 2026: less white space. A text-only page top takes the height of its words,
   not a whole screen. (The home page hero and any hero that holds a product screen keep their height.) */
main > .hero.hero--statement { height: auto !important; min-height: 0 !important; padding-bottom: clamp(40px, 4.4vw, 64px) !important; }
main > .hero.hero--statement > .wrap { height: auto !important; }
main > .hero.hero--statement .hero-text { min-height: 0 !important; height: auto !important; }

/* draft marks are plain unless draft.css is loaded */
.draft-only { display: none; }

/* phone: the closing band takes the height of what it holds, not two screens */
@media (max-width: 639px) {
  footer.closing { min-height: 0 !important; }
  footer.closing > .wrap { grid-template-rows: auto auto !important; row-gap: 40px !important; }
}

/* a page top with words beside one product screen takes the height of the screen, not a whole window */
main > .hero.hero--split { height: auto !important; min-height: 0 !important; padding-bottom: clamp(40px, 4.4vw, 64px) !important; }
main > .hero.hero--split > .wrap, main > .hero.hero--split .hero-text { height: auto !important; min-height: 0 !important; }
main > .hero.hero--split .hero__media { min-height: clamp(380px, 38vw, 560px); }

/* true crops of the product, shown at their own shape (no frame that stretches or hides them) */
.mw-shot { margin: 0; align-self: center; min-width: 0; }
.mw-shot img, .shot-frame > img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 50px rgb(20 23 26 / .22), 0 0 0 1px rgb(20 23 26 / .5); }
.mw-stack { display: grid; gap: 12px; align-content: center; }
.mw-stack img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 50px rgb(20 23 26 / .22), 0 0 0 1px rgb(20 23 26 / .5); }
main > .hero.hero--split .hero__media.mw-plain { min-height: 0; background: none; overflow: visible; }
main > .hero.hero--split .hero__media > img { width: 100%; height: auto; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-card { display: grid; gap: 10px; align-content: start; padding: 28px; border: 1px solid var(--line, #dedbd3); border-radius: 14px; background: #fff; }
.contact-card h3 { margin: 0; }
.contact-card p { margin: 0; }
.contact-co { margin-top: 40px; }
@media (max-width: 1023px) { .mw-shot, .mw-stack { grid-column: 1 / -1 !important; } .contact-grid > .contact-card { grid-column: 1 / -1 !important; } }

/* a picture's frame takes the picture's own shape: no tall empty box round a short crop */
.shot-frame { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; background: none !important; padding: 0 !important; overflow: visible !important; align-self: center; }

/* after the screenshot cull: words set large where a picture was only filling a column */
.mw-big { list-style: none; margin: 0; padding: 0; align-self: center; display: grid; gap: 14px; counter-reset: mwbig; }
.mw-big li { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--line, #dedbd3); }
.mw-big li:last-child { border-bottom: 0; }
ol.mw-big li { counter-increment: mwbig; display: grid; grid-template-columns: 2.2em 1fr; }
ol.mw-big li::before { content: "0" counter(mwbig); font: 400 13px/1 var(--font-mono, monospace); color: var(--accent, #b93a0a); padding-top: .9em; }
/* a text block left alone in its row takes a comfortable width */
.grid > .span-5:only-child, .grid > .stack-intro:only-child { grid-column: 1 / span 8; }
/* a centred page top with no picture under it takes the height of its words */
main > .hero.hero--centred { height: auto !important; min-height: 0 !important; padding-bottom: clamp(40px, 4.4vw, 64px) !important; }
main > .hero.hero--centred > .wrap, main > .hero.hero--centred .hero-text { height: auto !important; min-height: 0 !important; }
@media (max-width: 1023px) { .mw-big { grid-column: 1 / -1 !important; margin-top: 24px; } .grid > .span-5:only-child, .grid > .stack-intro:only-child { grid-column: 1 / -1; } }

/* Home: "It only reads." stays very large, set as plain type (no animation) */
#reads h2 { font-size: clamp(56px, 10vw, 150px); line-height: .95; letter-spacing: -.04em; margin-bottom: .25em; }

/* the mark: "Midnight to four". Ink on light, sand on dark, never the button colour. About 26px high, clear space half its height. */
.mw-logo { display: block; height: 26px; width: auto; }
.nav__logo { padding-block: 13px; }

/* the private note, set as a card in the page's own type (the product's words, not a screenshot) */
.mw-note { margin: 0; align-self: center; min-width: 0; }
.mw-note__card { background: #fff; color: #14171a; border: 1px solid #dedbd3; border-radius: 14px; padding: clamp(20px, 2.4vw, 32px); box-shadow: 0 18px 50px rgb(20 23 26 / .10); font-size: 15px; line-height: 1.5; text-align: left; }
.mw-note__kind { margin: 0 0 14px; font: 500 12px/1.3 var(--font-mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: #b93a0a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mw-note__kind span { color: #5b6168; }
.mw-note__banner { margin: 0 0 18px; padding: 10px 14px; background: #f3f1ec; border-left: 3px solid #b93a0a; border-radius: 0 8px 8px 0; font-weight: 500; }
.mw-note__card h3 { margin: 18px 0 8px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: #14171a; }
.mw-note__card ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: #3d4349; }
.mw-note__conf { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #dedbd3; color: #3d4349; }
.mw-note__conf strong { color: #14171a; }
.mw-note figcaption { margin-top: 12px; font-size: 14px; color: #5b6168; text-align: left; }
.ground-inverse .mw-note figcaption { color: #9c9e9f; }
@media (max-width: 1023px) { .mw-note { grid-column: 1 / -1 !important; margin-top: 24px; } }
.mw-note__card ul { list-style: disc; } .mw-note__card li { display: list-item; }

/* ---- lead walk, 18 Nov 2026 ---- */
/* 1. the first screen is painted at once: no entrance, no fade */
.hero, .hero *, [data-enter], [data-enter] * { animation: none !important; transition: none !important; }
.hero :is(h1, p, a, div, span, img, figure, dl, ul, ol, nav) { opacity: 1 !important; transform: none !important; visibility: visible !important; }
/* 4. placeholders in square brackets are notes to us: hidden unless draft marks are switched on */
.tbc-ph { display: none; }
/* 5. a text-only page top runs straight into its first section */
main > .hero.hero--statement + :is(section, .section) { padding-top: clamp(16px, 2vw, 28px) !important; }
/* 6. Home top: words and map share the middle of the screen; the map is shown whole */
.hero--sea .hero__grid { align-items: center !important; }
.hero--sea .hero__text { align-self: center !important; }
.hero--sea .hero__art { position: relative !important; align-self: center !important; height: auto !important; min-height: 0 !important; aspect-ratio: 1270 / 684; overflow: visible !important; }
.hero--sea .hero__art > .ly-piece--main { position: absolute !important; inset: 0 !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: auto !important; height: auto !important; }
.hero--sea .hero__art > .ly-piece--main > img { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 12px; box-shadow: 0 24px 70px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .14); }
/* 7. Security, what leaves: the list across the width, in two columns */
#leaves .grid > .stack-intro { grid-column: 1 / -1 !important; }
#leaves .rows { columns: 2; column-gap: 56px; }
#leaves .rows > li { break-inside: avoid; }
@media (max-width: 899px) { #leaves .rows { columns: 1; } }
/* 8. How it works: the map takes the width */
#see .grid > .stack-intro:has(+ .mw-shot) { grid-column: 1 / span 8; }
#see .mw-shot { grid-column: 1 / -1 !important; margin-top: 32px; }
/* 9. the founder's mark */
#founder img.watch { width: 220px; height: 220px; }
#founder .watch-box { gap: 18px; }
.watch__cap { margin: 0; font: 500 14px/1.2 var(--font-mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: #14171a; }
/* the Home map sits in the flow at every width, so it can never run off its frame */
.hero--sea .hero__art { aspect-ratio: auto !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
.hero--sea .hero__art > .ly-piece--main { position: static !important; transform: none !important; }
.hero--sea .hero__art > .ly-piece--main > img { height: auto !important; max-width: 100% !important; box-shadow: 0 0 0 1px rgb(255 255 255 / .14) inset; }
@media (max-width: 1023px) { .hero--sea .hero__art { grid-column: 1 / -1 !important; margin-top: 24px; } }

/* Price: type a device count, read the monthly price. Plain, instant, no animation. */
.mw-sum { display: grid; gap: 12px; padding: clamp(20px, 2.4vw, 32px); background: #f3f1ec; border-radius: 14px; align-self: center; }
.mw-sum__label { font-size: 16px; font-weight: 500; color: #14171a; }
.mw-sum__in { font: inherit; font-size: 22px; width: 9ch; max-width: 100%; padding: 10px 12px; border: 1px solid #b9b5ab; border-radius: 8px; background: #fff; color: #14171a; }
.mw-sum__in:focus-visible { outline: 2px solid #b93a0a; outline-offset: 2px; }
.mw-sum__out { margin: 4px 0 0; font-size: 20px; color: #3d4349; }
.mw-sum__out strong { font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.02em; font-weight: 500; color: #14171a; margin-right: 6px; }
.mw-sum__note { margin: 0; font-size: 14px; color: #5b6168; }

/* ---- page jobs, 18 Nov 2026 ---- */
/* top bar: a quiet second path beside the demo button */
.nav__actions > .mw-get { font-size: 15px; font-weight: 500; white-space: nowrap; }
@media (max-width: 1180px) { .mw-long { display: none; } }
@media (max-width: 899px) { .nav:not(.is-open) .nav__actions > .mw-get { display: none; } }
/* Home: the reader's night and morning, set large */
.mw-feel { display: grid; gap: clamp(14px, 1.6vw, 22px); margin: 0 0 clamp(24px, 3vw, 40px); max-width: 22ch; font-size: clamp(34px, 5vw, 68px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
.mw-feel > span { display: block; }
.mw-feel > span + span { color: #6b7076; }
.mw-feel > span:last-child { color: #9a9ea3; }
.mw-feel__turn { margin: 0 0 clamp(40px, 5vw, 72px); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 500; color: #b93a0a; max-width: 30ch; }
/* a sentence pulled from the note */
.mw-pull { margin: clamp(40px, 5vw, 72px) 0 0; padding: 0 0 0 clamp(18px, 2vw, 28px); border-left: 3px solid #e2531b; max-width: 60rem; }
.mw-pull p { margin: 0; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; color: #f3f1ec; }
.mw-pull footer { margin-top: 14px; font-size: 15px; color: #9c9e9f; }
/* the founder's line */
.mw-line { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.16; letter-spacing: -.02em; font-weight: 500; color: #14171a; }
/* closing band: a button and, sometimes, a quieter second step */
.mw-close-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.mw-close-acts .link { color: #f3f1ec; }
@media (max-width: 899px) { .mw-close-acts { align-items: stretch; } }
/* Demo: pick a time, with the form as the fallback */
.mw-pick { display: grid; gap: 10px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #d5d1c7; }
.mw-pick h3, .mw-pick p { margin: 0; }
.mw-pick__or { font-size: 16px !important; font-weight: 500; }

.mw-btn-text { white-space: nowrap; }
#founder .mw-line { margin: 20px 0 16px; }
#founder .founder__line { margin: 0 0 8px; }
.closing__cta .section-head--split > * { min-width: 0; }
.mw-close-acts { min-width: 0; max-width: 100%; }
.mw-close-acts .btn { max-width: 100%; }
@media (max-width: 639px) { .close--sea .close__word { font-size: 14.5vw !important; } }

/* wait list, 20 Nov 2026 */
.mw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mw-wl-price { margin-top: var(--s-6); color: var(--muted); }
#form .sign-card .field--full textarea { width: 100%; }

/* mw-inline-links: a link inside a small form line stays in the sentence */
.form .t-small .link { display: inline; white-space: normal; }

/* mw-ticks: the privacy tick on the demo and maker forms, as on the wait list */
.form .field--tick { grid-column: 1 / -1; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; font-weight: 400; min-height: 44px; }
.form .field--tick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.form .field--tick .field__error { grid-column: 2; }
.form .field--tick .link { display: inline; white-space: normal; }

/* mw-billing: space above the "how you start" line under the billing cards */
#billing .grid + .t-small { margin-top: 32px; max-width: 60ch; }
