/* snipmunk.app guides: one plain paper sheet on the desk. Loaded after site.css on guide pages only,
   so it reuses its tokens (paper, ink, one orange, Manrope/Newsreader, the key) and adds a reading layout
   and a dark desk. */

:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --desk: #171412; --paper: #211d1a; --ink: #f3eee8; --muted: #cfc6bc; --line: #453e38;
    --accent: #ffb068; --mark: #ffb068; --tint: #4a2a0e; --keyedge: #6b4520; }
  .guide .cta { background: #ffb068; color: #171412; }
  .guide .cta:hover { background: #f3eee8; color: #171412; }
  .guide .cta--quiet { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .guide .cta--quiet:hover { background: var(--ink); color: #171412; }
  button.key[aria-pressed="true"] { background: #5a3210; }
}

.guide .top { position: static; }
.guide main { padding: 0 var(--pad) clamp(48px, 8vh, 96px); }

/* the sheet: one torn paper slip holding the whole guide */
.sheet-paper { --t: 10px; position: relative; max-width: 860px; margin: clamp(8px, 2vh, 24px) auto 0; background: var(--paper);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(44px, 6vw, 80px);
  box-shadow: 0 2px 2px rgb(45 26 12 / .05), 0 22px 40px rgb(45 26 12 / .12); }
/* torn foot as its own strip: a mask or filter on a page-tall element is too big for some GPUs */
.sheet-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 20px 10px repeat-x,
              linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0 / 20px 10px repeat-x; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 14px/1.3 var(--ui); color: var(--muted); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.guide h1 { margin-top: 18px; font: 400 clamp(36px, 5.2vw, 64px)/1.02 var(--note); letter-spacing: -.03em; text-wrap: balance; }
.guide .intro { margin-top: 18px; max-width: 60ch; font-size: 19px; color: var(--muted); }
.guide h2 { margin-top: clamp(40px, 6vh, 64px); font: 400 clamp(28px, 3.4vw, 42px)/1.08 var(--note); letter-spacing: -.025em; }
.guide h3 { margin-top: 30px; font: 600 19px/1.3 var(--ui); letter-spacing: -.01em; }
.guide article p, .guide article li { max-width: 66ch; }
.guide article p { margin-top: 14px; }
.guide article ul, .guide article ol { margin: 14px 0 0; padding-left: 1.3em; }
.guide article li + li { margin-top: 6px; }
.guide article a:not(.cta):not(.key):not(.guide-card) { color: var(--mark); text-underline-offset: 3px; }
.guide code { font: 500 .9em/1.3 var(--mono); background: var(--tint); border-radius: .3em; padding: .05em .35em; overflow-wrap: anywhere; }
.guide pre { margin: 16px 0 0; padding: 16px 18px; background: var(--slot); color: #f3eee8; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/1.5 var(--mono); }
.guide pre code { background: none; padding: 0; color: inherit; }

/* steps: each number sits on a key */
ol.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 12px; }
ol.steps > li { position: relative; padding-left: 46px; counter-increment: step; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.05em; min-width: 30px; text-align: center;
  font: 500 15px/1.6 var(--mono); background: var(--tint); border-radius: 6px; box-shadow: 0 2px 0 var(--keyedge); }
.path { font-weight: 600; }

/* "good for / runs out when": two columns of short facts */
.fits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 18px; }
.fits > div { border-top: 1px dashed var(--line); padding-top: 10px; }
.fits h3, .fits h4 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 500; }
.fits ul { margin-top: 8px !important; }

/* side note in the margin of the sheet */
.note { margin-top: 22px; padding: 14px 18px; border: 1px dashed var(--line); background: var(--tint); border-radius: 10px; font-size: 16px; }
.note p { margin: 0 !important; }
.note p + p { margin-top: 8px !important; }

/* a comparison printed like a till receipt */
.receipt { width: 100%; margin-top: 20px; border-collapse: collapse; font: 400 15px/1.45 var(--ui); }
.receipt-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.receipt th, .receipt td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.receipt thead th { font: 500 13px/1.3 var(--mono); color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.receipt tbody th { font-weight: 600; white-space: nowrap; }

/* screenshots: phone screens leaning on the sheet */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 190px)); gap: 20px 26px; margin-top: 24px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 12px 24px rgb(45 26 12 / .14); }
.shot:nth-child(odd) img { transform: rotate(-1deg); } .shot:nth-child(even) img { transform: rotate(.8deg); }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shot video { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--slot); box-shadow: 0 12px 24px rgb(45 26 12 / .14); }

/* comparison pages: one real screen recording, then pairs of test screens */
.clip { margin: 26px 0 0; max-width: 300px; }
.clip video { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--slot); box-shadow: 0 14px 28px rgb(45 26 12 / .16); }
.clip figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shots.pair { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 760px; align-items: start; }
.byline { margin-top: 14px; font: 500 14px/1.4 var(--ui); color: var(--muted); }
.receipt td.yes { font-weight: 600; }

/* the turn to Snipmunk, and the store button */
.turn { margin-top: clamp(44px, 7vh, 72px); padding-top: 28px; border-top: 1.5px solid var(--ink); }
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.store p { margin: 0 !important; font-size: 15px; color: var(--muted); max-width: 44ch; }

/* questions */
.qa { margin: 18px 0 0; }
.qa dt { margin-top: 22px; font: 400 23px/1.2 var(--note); letter-spacing: -.01em; }
.qa dd { margin: 6px 0 0; color: var(--muted); max-width: 66ch; }

/* guide index: one card per guide */
.guide-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 28px !important; }
.guide-list li { margin: 0 !important; }
.guide-card { display: block; height: 100%; padding: 20px 20px 22px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit;
  box-shadow: 0 8px 16px rgb(45 26 12 / .1); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.guide-card:hover { transform: translateY(-3px); }
.guide-card b { display: block; font: 400 24px/1.15 var(--note); letter-spacing: -.015em; }
.guide-card span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.guide-card .key { display: inline-block; margin: 0 0 10px; font-size: 13px; color: var(--ink); }

.sources { margin-top: 40px; font-size: 14px; color: var(--muted); }

@media (max-width: 700px) {
  .guide .top .cta { margin-left: auto; }
  .sheet-paper { margin-inline: calc(var(--pad) * -.5); }
  .fits { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .shot img { transform: none !important; }
  .receipt { font-size: 14px; }
  .receipt tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } }

/* dark desk: shadows that come after the light rules above */
@media (prefers-color-scheme: dark) {
  .sheet-paper { box-shadow: 0 18px 34px rgb(0 0 0 / .45); }
  .guide-card, .shot img { box-shadow: 0 14px 28px rgb(0 0 0 / .45); }
  .guide pre { background: #0d0b0a; }
}

/* the demo under the intro: the page's own shortcut, the slot and the slip it prints (same parts as the start page) */
.demo { margin: clamp(26px, 4vh, 40px) 0 0; max-width: 620px; padding: 20px clamp(16px, 3vw, 28px) 18px; background: var(--desk); border-radius: 14px; }
.demo .line { font-size: clamp(44px, 9vw, 80px); letter-spacing: -.06em; }
.demo .printer { margin-top: 12px; }
.demo .slot { height: 10px; }
.demo .feed { min-height: 0; margin: -5px 18px 0; padding-bottom: 20px; }
.demo .slip { padding: 18px 22px 24px; font-size: clamp(18px, 2.3vw, 23px); line-height: 1.35; animation: demo-print .9s cubic-bezier(.2, .8, .2, 1) .45s backwards; }
@keyframes demo-print { from { transform: translateY(-104%); } }
.demo figcaption { margin: 0 18px; font: 500 14px/1.4 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .demo .slip { animation: none; } .demo .caret { animation: none; } }

/* cut-outs of real phone screens for a step, wider than the full-screen shots */
.crops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 22px; margin-top: 20px; }
.crops figure { margin: 0; }
.crops img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.crops figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.guide h3.step { margin-top: clamp(32px, 5vh, 48px); font: 400 clamp(24px, 2.6vw, 31px)/1.12 var(--note); letter-spacing: -.02em; }

/* comparison pages: icons instead of written labels */
.guide h3.step[data-icon] { display: flex; align-items: center; gap: 12px; }
.guide h3.step[data-icon]::before { content: ""; flex: none; width: 30px; height: 30px; background: var(--mark); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.guide h3.step[data-icon="form"] { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%224.5%22 width=%2217%22 height=%2215%22 rx=%222.5%22/%3E%3Cpath d=%22M7 9.5h5M7 14.5h10%22/%3E%3C/svg%3E"); }
.guide h3.step[data-icon="keys"] { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222.5%22 y=%226%22 width=%2219%22 height=%2212%22 rx=%222.5%22/%3E%3Cpath d=%22M6.5 10h.01M10.5 10h.01M14.5 10h.01M18 10h.01M7.5 14h9%22/%3E%3C/svg%3E"); }
.guide h3.step[data-icon="move"] { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 8.5h13.5l-3.5-3.5M20 15.5H6.5l3.5 3.5%22/%3E%3C/svg%3E"); }
.guide h3.step[data-icon="lock"] { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%2210.5%22 width=%2214%22 height=%229.5%22 rx=%222.5%22/%3E%3Cpath d=%22M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5%22/%3E%3C/svg%3E"); }
.guide h3.step[data-icon="team"] { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%229%22 r=%223%22/%3E%3Cpath d=%22M3.5 19c.6-3 2.8-4.5 5.5-4.5s4.9 1.5 5.5 4.5%22/%3E%3Ccircle cx=%2217%22 cy=%228.5%22 r=%222.4%22/%3E%3Cpath d=%22M16.5 14c2.2.2 3.6 1.6 4 4%22/%3E%3C/svg%3E"); }
.fits.pc { margin-top: 14px; }
.fits.pc > div { border-top: 0; padding-top: 0; }
.fits.pc h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fits.pc ul { list-style: none; padding-left: 0 !important; margin-top: 0 !important; }
.fits.pc li { position: relative; padding-left: 28px; }
.fits.pc li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.fits.pc > div:first-child li::before { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12.5l4.5 4.5L19 7.5%22/%3E%3C/svg%3E"); background: var(--mark); }
.fits.pc > div:last-child li::before { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6.5 12h11%22/%3E%3C/svg%3E"); background: var(--muted); }
