/* Read Receipts pages (read-receipts.devonshirelabs.io), in the kit's "Riso" style: a two-color risograph print on
   warm paper. The first ink is the app icon's iMessage blue (darkened for text) instead of the kit's federal blue; the second is the kit's
   fluorescent pink, kept for actions and the "read" stamp. Lifted things get a misregistered pink copy, not a shadow.
   The hero is a till receipt of someone's texting stats that prints out on load. */
:root {
  --paper: #f2eee1;       /* the kit's paper canvas */
  --stock: #fbf8ef;       /* card stock */
  --ink: #0a5fd0;         /* first pass: the icon's blue, dark enough for text */
  --ink-2: #4b5566;       /* body copy */
  --line: #b9cde8;        /* registration hairline */
  --pink: #f0248f;        /* second pass */
  --font-body: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --ease-enter: cubic-bezier(0.34, 1.12, 0.64, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
code, .path { font: 400 .88em var(--font-mono); color: var(--ink); background: var(--stock); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }

/* Top */
.top { padding-block: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.crumb { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.crumb a { color: var(--ink-2); text-decoration: none; } .crumb a:hover { color: var(--ink); }
.crumb-app { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink) !important; }
.crumb img { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; } .top nav a:hover { text-decoration: underline; text-decoration-color: var(--pink); }

/* Shared pieces */
.tag { font: 600 13px/1.2 var(--font-mono); color: var(--ink); }
.card { background: var(--stock); border: 2px solid var(--ink); border-radius: 4px; padding: 22px; min-width: 0; }
.lift { box-shadow: 5px 5px 0 var(--pink); }
.btn { display: inline-flex; align-items: center; padding: 12px 20px; font: 700 17px/1 var(--font-body); text-decoration: none; border: 2px solid var(--ink); border-radius: 4px; transition: transform 80ms, box-shadow 80ms; }
.btn-primary { background: var(--ink); color: var(--stock); box-shadow: 4px 4px 0 var(--pink); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--pink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--pink); }
.btn-plain { color: var(--ink); background: transparent; }
.btn-plain:hover { background: var(--stock); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; padding-block: 56px 72px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block: 32px 56px; gap: 40px; } }
.hero-copy { display: grid; gap: 20px; justify-items: start; padding-top: 12px; }
.hero-copy .icon { width: 72px; height: 72px; }
.hero h1 { font-size: clamp(54px, 9vw, 104px); line-height: .92; letter-spacing: -.045em; text-shadow: .04em .035em 0 rgba(240, 36, 143, .85); }
.say { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; font-weight: 500; color: var(--ink); max-width: 24ch; }
.lede { max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.facts li { font: 400 13px/1 var(--font-mono); color: var(--ink); padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--stock); }

/* The receipt. The slot is the printer's mouth; the slip prints out of it, then gets stamped. */
.till { justify-self: center; width: min(100%, 360px); }
.slot { height: 16px; border-radius: 8px; background: var(--ink); position: relative; z-index: 1; }
.feed { overflow: hidden; margin: -8px 14px 0; padding: 0 10px 14px 0; }
.slip { filter: drop-shadow(7px 7px 0 rgba(240, 36, 143, .9)); }
.receipt { position: relative; background: var(--stock); color: var(--ink); padding: 28px 22px 34px; font: 400 14px/1.75 var(--font-mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 14px 7px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 14px 7px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat; }
.receipt .rhead { text-align: center; display: grid; gap: 2px; }
.receipt .rhead b { font: 700 22px/1.1 var(--font-body); letter-spacing: -.02em; }
.receipt .rhead span { color: var(--ink-2); font-size: 13px; }
.receipt hr { border: 0; border-top: 2px dashed var(--line); margin: 14px 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { text-align: right; font-weight: 600; }
.receipt .total { font-weight: 600; font-size: 15px; }
.receipt .thanks { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 16px; }
.stamp { width: max-content; margin: 18px auto 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border: 3px solid var(--pink); border-radius: 6px; color: var(--pink);
  font: 700 20px/1 var(--font-body); letter-spacing: .02em; transform: rotate(-9deg); mix-blend-mode: multiply; }
.stamp svg { width: 30px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stamp small { font: 600 11px/1 var(--font-mono); display: block; margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .receipt { animation: print 1.7s steps(16, end) both .2s; }
  .stamp { animation: stamp .4s var(--ease-enter) both 2.1s; }
  @keyframes print { from { transform: translateY(-100%); } }
  @keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.5); } }
}

/* Sections */
section { padding-block: 64px 8px; scroll-margin-top: 12px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 30px; max-width: 62ch; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.04; }

/* What's in it: the app's pages, as a contents list */
.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; border-top: 2px solid var(--ink); }
@media (max-width: 760px) { .pages { grid-template-columns: minmax(0, 1fr); } }
.pages li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 480px) { .pages li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.pages h3 { font-size: 19px; line-height: 1.3; }
.note { margin-top: 18px; font-size: 15px; }

/* The AI parts */
.ai { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .ai { grid-template-columns: minmax(0, 1fr); } }
.ai-list { display: grid; gap: 18px; }
.ai-list .card { display: grid; gap: 8px; }
.ai-list h3 { font-size: 22px; }
.chat { display: grid; gap: 10px; align-content: start; padding: 22px 18px; }
.chat .who { font: 400 12px/1 var(--font-mono); color: var(--ink-2); text-align: center; margin-bottom: 4px; }
.bub { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.4; }
.bub.me { justify-self: end; background: var(--ink); color: var(--stock); border-bottom-right-radius: 4px; }
.bub.them { justify-self: start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.alfred { justify-self: end; background: var(--ink); color: var(--stock); border-bottom-right-radius: 4px; }
.chat .read { justify-self: end; font: 400 12px/1 var(--font-mono); color: var(--ink-2); }

/* What leaves your Mac */
.leave { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .leave { grid-template-columns: minmax(0, 1fr); } }
.leave .card { display: grid; gap: 12px; align-content: start; }
.leave h3 { font-size: 22px; }
.leave ul { padding-left: 20px; display: grid; gap: 6px; }

/* Get */
.get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .get { grid-template-columns: minmax(0, 1fr); } }
.get .card { display: grid; gap: 12px; }
.get h3 { font-size: 22px; }
.soon { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 16px; border: 2px dashed var(--ink); border-radius: 4px; color: var(--ink); font-weight: 700; }
.soon small { display: block; font: 400 12px/1.2 var(--font-mono); color: var(--ink-2); }
.need { list-style: none; padding: 0; display: grid; gap: 0; }
.need li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.need li:last-child { border-bottom: 0; }
.need b { color: var(--ink); }

footer { margin-top: 80px; padding-block: 22px 40px; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 15px; }
footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

/* Policy and support pages */
.doc { max-width: 760px; padding-block: 48px 0; display: grid; gap: 34px; }
.doc-head { display: grid; gap: 10px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -.04em; text-shadow: .035em .03em 0 rgba(240, 36, 143, .85); }
.meta { font: 400 14px/1.4 var(--font-mono); color: var(--ink-2); }
.tldr { background: var(--stock); border: 2px solid var(--ink); border-radius: 4px; padding: 20px 22px; box-shadow: 5px 5px 0 var(--pink); }
.tldr strong { color: var(--ink); }
.doc section { padding: 0; display: grid; gap: 12px; }
.doc h2 { font-size: 24px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.mail { font: 700 clamp(20px, 3vw, 26px)/1.2 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--stock); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin-top: 10px; }
