/* Tidy Day: shared styles for the pages around the landing page (use cases, guides, legal).
   Same monochrome palette, type and nav as the landing; a calm reading layout. */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic; font-weight: 400 500; font-display: swap;
}
:root {
  --bg: #FFFFFF;
  --surface: #F7F7F7;
  --ink: #111111;
  --muted: #6F6F6F;
  --line: #EBEBEB;
  --inverse: #FFFFFF;
  --shadow: rgba(0, 0, 0, .16);
  --card-bg: linear-gradient(180deg, #FBFBFB, #F2F2F2);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(0, 0, 0, .045), 0 1px 2px rgba(0, 0, 0, .04), 0 28px 56px -34px rgba(0, 0, 0, .22);
  --key-top: #FFFFFF;
  --key-bottom: #EFEFEF;
  --key-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 1.5px 0 .5px rgba(0, 0, 0, .1), 0 4px 8px -3px rgba(0, 0, 0, .14);
  --mark: #FFF1A8;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --surface: #1B1B1B; --ink: #FFFFFF; --muted: #999999; --line: #292929; --inverse: #111111; --shadow: rgba(0, 0, 0, .6);
    --card-bg: linear-gradient(180deg, #1D1D1D, #161616);
    --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 255, 255, .05), 0 28px 56px -30px rgba(0, 0, 0, .85);
    --key-top: #2C2C2C; --key-bottom: #222222; --key-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px rgba(0, 0, 0, .7), 0 2px 0 .5px rgba(0, 0, 0, .7), 0 4px 8px -3px rgba(0, 0, 0, .7);
    --mark: #5C5222;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.page { padding-inline: clamp(16px, 4vw, 40px); overflow-x: clip; }
.container { max-width: 1240px; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--inverse); }
.skip:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--inverse);
  font: 600 15px/1 var(--font-ui); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: opacity .12s ease-out, transform .1s ease-out;
}
.btn:hover { opacity: .86; }
.btn:active { transform: scale(.98); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }

/* Nav (same pill as the landing) */
.nav-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 50; display: flex; justify-content: center; margin-top: 12px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding: 7px 7px 7px 10px; border-radius: 999px;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -14px var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .12s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Page head */
.doc { max-width: 1240px; margin-inline: auto; padding-block: clamp(48px, 8vw, 96px) 0; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.doc-head { max-width: 860px; margin: 0 auto; text-align: center; }
.kicker { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}
h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -.03em; }
.lede { max-width: 40rem; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.meta-line { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.head-cta { margin-top: 30px; }

/* Product picture under the head */
.shot { max-width: 1100px; margin: clamp(40px, 6vw, 64px) auto 0; }
.shot img { width: 100%; border-radius: clamp(16px, 2.4vw, 28px); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -50px rgba(0, 0, 0, .45); }
.shot figcaption { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Reading column */
.prose { max-width: 68ch; margin: clamp(48px, 7vw, 80px) auto 0; font-size: 18px; line-height: 1.68; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .5em; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.prose h3 { margin: 1.8em 0 .4em; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .note { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 650; }
.prose code { font: 500 .86em/1 ui-monospace, "SF Mono", Menlo, monospace; padding: .18em .4em; border-radius: 6px; background: var(--surface); }
.prose blockquote { padding: 0 0 0 22px; border-left: 2px solid var(--ink); font-family: var(--font-serif); font-style: italic; font-size: 1.22em; line-height: 1.45; }
.prose .note { padding: 18px 22px; border-radius: 18px; background: var(--surface); font-size: 16.5px; line-height: 1.6; }
.prose .note > :last-child { margin-bottom: 0; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; margin: 0 .08em;
  border-radius: .38em; background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); box-shadow: var(--key-shadow);
  font: 500 .78em/1 var(--font-ui); vertical-align: .08em;
}
mark.todo { padding: 0 .2em; border-radius: 4px; background: var(--mark); color: inherit; }
.updated { margin: 0 0 2em; font-size: 15px; color: var(--muted); }

/* FAQ (same as the landing) */
.faq-wrap { max-width: 68ch; margin: clamp(56px, 8vw, 88px) auto 0; }
.faq-wrap h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); transition: transform .3s var(--ease); }
.faq details[open] .pm { transform: rotate(45deg); }
.faq p { margin: -4px 0 22px; font-size: 16.5px; line-height: 1.62; color: var(--muted); }

/* Closing card: black in both themes, like the Focus band on the landing */
.cta {
  position: relative; max-width: 1240px; margin: clamp(72px, 10vw, 120px) auto 0; padding: clamp(44px, 7vw, 84px) clamp(22px, 5vw, 64px);
  border-radius: clamp(28px, 3.4vw, 40px); text-align: center; color: #FFFFFF; color-scheme: dark;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, .09), transparent 70%), #080808;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 90px -46px rgba(0, 0, 0, .5);
}
.cta img { width: 72px; height: 72px; margin: 0 auto 22px; }
.cta h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.cta h2 em { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.cta p { max-width: 34rem; margin: 18px auto 0; font-size: 17px; line-height: 1.55; color: #A3A3A3; }
.cta .btn { margin-top: 28px; background: #FFFFFF; color: #111111; }
.cta .spec { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: #A3A3A3; }

/* Related pages */
.more { max-width: 1240px; margin: clamp(56px, 8vw, 96px) auto 0; }
.more h2 { margin: 0 0 20px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 880px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.cards a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 26px; border-radius: 24px; text-decoration: none;
  background: var(--card-bg); box-shadow: var(--card-shadow); transition: transform .3s var(--ease);
}
.cards a:hover { transform: translateY(-3px); }
.cards b { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.cards span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cards .k { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Guides index */
.guide-list { max-width: 860px; margin: clamp(48px, 7vw, 72px) auto 0; padding: 0; list-style: none; display: grid; gap: 16px; }

/* Footer (shared with the landing) */
.foot { max-width: 1240px; margin: clamp(72px, 10vw, 120px) auto 0; padding-block: 0 36px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
.foot-about p { max-width: 26rem; margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.foot-about .brand img { width: 26px; height: 26px; }
.foot-col h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.foot-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.foot-col a { font-size: 14px; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.credits { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.credits a { text-decoration: none; }
.credits a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.lost { min-height: 52vh; display: grid; place-items: center; text-align: center; }
.shot-focus { max-width: 640px; }

/* ---------- Thanks (after checkout) ---------- */
:root { --ty-photo: url("/assets/img/wall-light.jpg"); --ty-icon-filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .2)) drop-shadow(0 8px 10px rgba(0, 0, 0, .12)); }
@media (prefers-color-scheme: dark) {
  :root { --ty-photo: url("/assets/img/wall-dark.jpg"); --ty-icon-filter: drop-shadow(0 0 1px rgba(255, 255, 255, .28)) drop-shadow(0 26px 34px rgba(0, 0, 0, .7)); }
}
.doc:has(.ty-hero) { padding-top: 0; }
.ty-hero {
  position: relative; isolation: isolate; margin: -66px calc(50% - 50vw) 0; padding: calc(66px + clamp(48px, 8vw, 96px)) clamp(16px, 4vw, 40px) clamp(64px, 9vw, 120px);
  text-align: center; overflow: hidden;
}
.ty-photo {
  position: absolute; inset: 0; z-index: -1; background: var(--ty-photo) center 72% / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 70%, transparent 100%);
}
.ty-icon { display: block; width: clamp(96px, 10vw, 128px); height: auto; margin: 0 auto 22px; filter: var(--ty-icon-filter); animation: ty-float 6s ease-in-out infinite alternate; }
.ty-hero h1 em { display: block; }
@keyframes ty-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes ty-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

.ty-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; padding: 0; list-style: none; }
@media (max-width: 1040px) { .ty-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ty-steps { grid-template-columns: minmax(0, 1fr); } }
.ty-step {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 24px; border-radius: 26px;
  background: var(--card-bg); box-shadow: var(--card-shadow); animation: ty-rise .7s var(--ease) both;
}
.ty-step:nth-child(1) { animation-delay: .7s; }
.ty-step:nth-child(2) { animation-delay: .82s; }
.ty-step:nth-child(3) { animation-delay: .94s; }
.ty-step:nth-child(4) { animation-delay: 1.06s; }
.ty-step h2 { display: flex; align-items: center; gap: 10px; margin: 18px 8px 6px; font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.ty-step p { margin: 0 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ty-step p strong { color: var(--ink); font-weight: 600; }
.ty-step code { font: 500 .88em/1 ui-monospace, "SF Mono", Menlo, monospace; }
.ty-num {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--inverse); font: 600 13px/1 var(--font-ui); font-variant-numeric: tabular-nums;
}
.ty-mock { position: relative; height: 138px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* 1. The receipt email */
.ty-mail { align-content: center; }
.ty-mail > * { width: 78%; }
.ty-mail-from { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.ty-mail-from i { width: 16px; height: 16px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px var(--line); }
.ty-mail-from b { color: var(--ink); font-weight: 650; }
.ty-mail p { margin: 9px 0 10px; font-size: 13px; font-weight: 650; }
.ty-pill { display: block; height: 24px; border-radius: 12px; background: var(--ink); color: var(--inverse); font: 600 11px/24px var(--font-ui); text-align: center; }

/* 2. Drag to Applications */
.ty-drag { grid-auto-flow: column; gap: 10px; color: var(--ink); }
.ty-drag img { width: 46px; height: 46px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.ty-arrow { opacity: .45; }
.ty-folder { display: grid; justify-items: center; gap: 4px; }
.ty-folder small { font-size: 10.5px; color: var(--muted); }

/* 3. The key */
.ty-key { align-content: center; gap: 8px; padding: 0 18px; }
.ty-key-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.ty-key-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; padding: 0 5px 0 12px; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.ty-key-field code { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; }
.ty-copy { flex: none; height: 24px; padding: 0 10px; border-radius: 7px; background: var(--ink); color: var(--inverse); font: 600 11px/24px var(--font-ui); }

/* 4. The activation page in the island */
.ty-activate { align-content: start; justify-items: center; padding-top: 10px; gap: 6px; }
.ty-mini-island { width: 46px; height: 12px; border-radius: 6px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.ty-mini-panel { display: grid; justify-items: center; gap: 6px; width: 72%; padding: 10px 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 10px 22px -12px var(--shadow); }
.ty-mini-panel b { font-size: 11.5px; font-weight: 650; }
.ty-mini-field { width: 100%; height: 18px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 8.5px/18px ui-monospace, "SF Mono", Menlo, monospace; text-align: center; color: var(--muted); }
.ty-mini-button { width: 100%; height: 18px; border-radius: 9px; background: var(--ink); color: var(--inverse); font: 600 9px/18px var(--font-ui); text-align: center; }

.ty-help { max-width: 44rem; margin: clamp(40px, 6vw, 64px) auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ty-help a { color: var(--ink); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ty-icon, .ty-step { animation: none; }
}
