/*
  StockRoom Website v2, the styles of the home page, the tools hub and the tool
  pages.

  The header, the footer, the fonts and the colours are in site-v2/chrome.css,
  which every public page links first, this file's pages included. Split on
  2026-09-17 when the older pages joined the new look: see that file for why.

  Moved here from the landing page's own <style> block on 2026-09-16, unchanged,
  when the tool pages arrived and would otherwise have carried thirteen copies.
*/

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--paper);color:var(--ink);font-family:var(--fb);-webkit-font-smoothing:antialiased}
a{color:var(--sig);text-decoration:none}
a:hover{color:var(--sig-deep)}
:focus-visible{outline:2px solid var(--sig);outline-offset:3px;border-radius:4px}

/* ── hero ── */
.hero{max-width:780px;margin:0 auto;padding:96px 32px 80px;text-align:center;display:flex;flex-direction:column;align-items:center}
h1{font-family:var(--fd);font-weight:800;letter-spacing:-.02em;font-size:clamp(36px,5.5vw,54px);line-height:1.08;margin:0 0 22px}
h1 .hl{color:var(--sig)}
.lede{font-size:18px;line-height:1.6;color:var(--dim);max-width:560px;margin:0 0 32px;text-wrap:pretty}
/* One self-contained, quotable sentence carrying a real figure - the
   "self-contained-figure" answer-engine pattern (seo/playbook.mjs), now
   checked automatically (found 2026-09-23 that the live homepage had none). */
.fact{color:var(--ink);font-weight:500}
.btns{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:18px}
.btn{font-size:16px;font-weight:600;padding:14px 26px;border-radius:6px}
.btn.primary{color:#fff;background:var(--sig)}
.btn.primary:hover{color:#fff;background:var(--sig-deep)}
.btn.secondary{color:var(--ink);background:var(--card);border:1px solid var(--line)}
.btn.secondary:hover{color:var(--ink);border-color:var(--line2)}
.note{font-size:13px;color:var(--dim);margin:0}
/* The Overview under the hero. The hero keeps less of its bottom padding when
   the picture follows it, so the promise and the product read as one. */
.hero:has(+ .hero-shot){padding-bottom:48px}
.shot.hero-shot{max-width:1080px;margin:0 auto;padding:0 32px 96px}

/* ── shared section shape ── */
.sec{max-width:1180px;margin:0 auto}
.intro{max-width:640px;margin:0 0 48px}
h2{font-family:var(--fd);font-weight:800;letter-spacing:-.02em;font-size:clamp(28px,3.5vw,38px);margin:0 0 14px;text-wrap:balance}
.intro p{font-size:17px;line-height:1.6;color:var(--dim);margin:0 0 12px;text-wrap:pretty}
.intro p:last-child{margin-bottom:0}
h3{font-family:var(--fd);font-weight:800;letter-spacing:-.02em;font-size:26px;margin:0 0 10px}
#screens,#pricing{scroll-margin-top:72px}

/* ── what stock management is ── */
.band{background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.about{padding:48px 32px}
.about .intro{margin-bottom:24px}
.points{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.points li{border-top:1px solid var(--line);padding-top:18px}
.points h3{font-size:19px;letter-spacing:-.01em;margin:0 0 8px}
.points p{font-size:15px;line-height:1.6;color:var(--dim);margin:0;text-wrap:pretty}

/* ── the screens, one to a section ── */
.screens{padding:72px 32px 56px}
.rows{display:flex;flex-direction:column;gap:64px}
.feature-row{display:flex;align-items:center;gap:56px}
.feature-row:nth-of-type(even){flex-direction:row-reverse}
/* Both halves, the words and the picture. A 1280 pixel picture is otherwise
   as wide as it is allowed to be, and the words get what is left. */
.feature-row > *{flex:1;min-width:260px}
/* Since 2026-09-17 a row is a name and one line, so the picture takes more of it. */
.feature-row > div{flex:2}
.feature-row > .shot{flex:3}
.feature-row .desc{font-size:17px;line-height:1.6;color:var(--dim);margin:0 0 6px;text-wrap:pretty}
.ticks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.ticks li{display:flex;align-items:baseline;gap:10px;font-size:15px;line-height:1.5}
.tick{width:18px;height:18px;border-radius:50%;background:var(--sig-tint);color:var(--sig);font-size:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.shot{margin:0}
.shot picture,.shot img{display:block;width:100%;height:auto}
.shot img{border-radius:8px;border:1px solid var(--line);background:var(--paper);box-shadow:0 1px 2px rgba(23,25,28,.04),0 10px 30px rgba(23,25,28,.07)}

/* ── the free tools ──
   The hub's cards (below, .tool-card), smaller: the section introduces six
   pages rather than selling one screen. */
.free-sec{padding:24px 32px 72px}
.free-sec .intro{margin-bottom:28px}
.free-grid .tool-card h3{font-size:18px}
.free-grid .tool-card p{font-size:14.5px}
.free-grid .tool-card img{object-position:top center}

/* ── what it cannot do yet ── */
.limits{padding:24px 32px 72px}
.limits .card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:40px}
.limits h3{margin:0 0 12px}
.limits .card p{font-size:15px;line-height:1.6;color:var(--dim);margin:0}
.limits ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.limits li{font-size:15px;line-height:1.5;color:var(--ink);padding-left:18px;border-left:2px solid var(--line)}

/* ── pricing ── */
.pricing{padding:24px 32px 88px}
.pricing .intro{margin-bottom:40px}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.plan{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:28px;display:flex;flex-direction:column;gap:16px}
.plan .nm{font-family:var(--fd);font-weight:700;font-size:20px}
.plan .pr{font-family:var(--fm);font-size:30px;font-weight:500}
.plan .dt{font-size:14px;line-height:1.5;color:var(--dim);flex:1}
.plan .btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;text-align:center}
.plans-note{margin:20px 0 0;font-size:14px;line-height:1.6;color:var(--dim)}

@media (max-width:960px){
  .points{grid-template-columns:minmax(0,1fr);gap:24px}
}

/* ── the phone ──
   Every change below is a place the design had no answer for at 375px. */
@media (max-width:720px){
  #screens,#pricing{scroll-margin-top:106px}

  .hero{padding:52px 20px 56px}
  .hero:has(+ .hero-shot){padding-bottom:32px}
  .shot.hero-shot{padding:0 20px 56px}
  .btns{align-self:stretch;flex-direction:column;gap:10px}
  .btn{text-align:center;min-height:50px;display:flex;align-items:center;justify-content:center}

  .about{padding:32px 20px}
  .about .intro{margin-bottom:16px}
  .points{gap:14px}
  .points li{padding-top:12px}
  .points h3{font-size:17px;margin:0 0 4px}
  .points p{font-size:14.5px}

  .screens{padding:40px 20px}
  .intro{margin-bottom:32px}
  .rows{gap:28px}
  /* Side by side on a phone too, alternating, rather than stacked: a name, a
     line and the screen beside them, so eleven screens are not eleven phone
     heights of scrolling (asked for on 2026-09-17). */
  .feature-row{flex-direction:row;align-items:center;gap:16px}
  .feature-row:nth-of-type(even){flex-direction:row-reverse}
  .feature-row > *{min-width:0}
  .feature-row > div{flex:1}
  .feature-row > .shot{flex:0 0 46%}
  .feature-row h3{font-size:19px;margin:0}
  .feature-row .desc{font-size:14px;line-height:1.45;margin:0 0 2px}
  .feature-row .more-link{font-size:14px;margin-top:0}
  .feature-row .shot img{border-radius:12px}
  /* The phone picture is the app on a phone, so it is shown the size of one
     rather than stretched across the column. */
  .shot picture{max-width:280px;margin:0 auto}
  .shot img{border-radius:18px}

  .limits{padding:8px 20px 56px}
  .limits .card{grid-template-columns:minmax(0,1fr);padding:24px;gap:20px}

  .pricing{padding:8px 20px 64px}
  .free-sec{padding:8px 20px 56px}
}
/* ══ The tools hub and the tool pages ══
   Written by site-v2/tools/build.mjs into site-v2/tools/. The class names below
   are what that script writes, so renaming one here means renaming it there. */


/* ── where you are ── */
.crumbs{max-width:1180px;margin:0 auto;padding:6px 32px 0;display:flex;align-items:center;gap:10px;font-size:14px;color:var(--dim)}
.crumbs a{color:var(--dim);min-height:44px;display:inline-flex;align-items:center}
.crumbs a:hover{color:var(--ink)}
.crumbs [aria-current]{color:var(--ink);font-weight:500}

/* ── a tool's own page ── */
.tool-hero{padding:24px 32px 80px;display:flex;align-items:center;gap:56px}
.tool-hero > *{flex:1;min-width:260px}
.tool-hero .group{font-size:14px;font-weight:600;color:var(--sig);margin:0 0 10px}
.tool-hero h1{margin:0 0 14px}
.tool-hero .lede{max-width:none;margin:0 0 14px;color:var(--ink)}
.tool-hero .more{font-size:16px;line-height:1.65;color:var(--dim);margin:0 0 28px;text-wrap:pretty}
.tool-hero .btns{justify-content:flex-start;margin-bottom:0}

.block{padding:0 32px 72px}
.block .intro{margin-bottom:28px}

.features{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 32px}
.features li{border-top:1px solid var(--line);padding-top:16px}
.features h3{font-size:18px;letter-spacing:-.01em;margin:0 0 6px}
.features p{font-size:15px;line-height:1.6;color:var(--dim);margin:0;text-wrap:pretty}

.steps{margin:0;padding:0;list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.steps li{counter-increment:step;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:22px 22px 24px;font-size:15px;line-height:1.6}
.steps li::before{content:counter(step);display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--sig-tint);color:var(--sig);font-family:var(--fm);font-weight:500;font-size:14px;margin-bottom:12px}

.try{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap}
.try h3{font-size:22px;margin:0 0 6px}
.try p{margin:0;font-size:15px;line-height:1.6;color:var(--dim)}
.try p b{color:var(--ink);font-weight:600}
.try .btns{margin:0}

/* A tool whose pictures have not been taken yet: the striped box the design
   started with, so a missing picture is visibly missing rather than broken. */
.placeholder{aspect-ratio:4/3;border-radius:8px;border:1px solid var(--line);background:repeating-linear-gradient(135deg,#EDEBE6 0,#EDEBE6 10px,var(--paper) 10px,var(--paper) 20px);display:flex;align-items:center;justify-content:center}
.placeholder span{font-family:var(--fm);font-size:13px;color:var(--dim);background:var(--card);border:1px solid var(--line);padding:8px 14px;border-radius:4px}

/* Questions on a tool page. One row each, the answer folded away, because a
   page that answers eleven questions at full height is a page nobody scrolls
   to the end of. The summary is its own hit target at 44px. */
.qa{max-width:760px}
.qa details{border-top:1px solid var(--line)}
.qa details:last-child{border-bottom:1px solid var(--line)}
.qa summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;min-height:44px;font-family:var(--fd);font-weight:700;font-size:17px;letter-spacing:-.01em}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"+";font-family:var(--fm);font-weight:400;font-size:18px;color:var(--dim)}
.qa details[open] summary::after{content:"-"}
.qa summary:hover{color:var(--sig)}
.qa details p{margin:0 0 18px;max-width:70ch;font-size:15px;line-height:1.65;color:var(--dim)}

.tool-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}
.tool-list a{display:flex;flex-direction:column;gap:2px;padding:14px 0;border-top:1px solid var(--line);color:var(--ink);min-height:44px}
.tool-list a:hover b{color:var(--sig)}
.tool-list b{font-family:var(--fd);font-weight:700;font-size:17px;letter-spacing:-.01em}
.tool-list span{font-size:14px;line-height:1.5;color:var(--dim)}

/* ── the hub ── */
.hub-hero{max-width:1180px;margin:0 auto;padding:72px 32px 8px}
.hub-hero h1{margin:0 0 16px}
.hub-hero .lede{margin:0;max-width:640px}
.group-sec{padding:48px 32px 24px}
.group-sec .intro{margin-bottom:24px}

.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tool-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:8px;overflow:hidden;color:var(--ink)}
.tool-card:hover{color:var(--ink);border-color:var(--line2);box-shadow:0 1px 2px rgba(23,25,28,.04),0 10px 30px rgba(23,25,28,.08)}
.tool-card img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top left;border-bottom:1px solid var(--line);background:var(--paper)}
.tool-card .placeholder{aspect-ratio:16/10;border:0;border-bottom:1px solid var(--line);border-radius:0}
.tool-card .body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:6px;flex:1}
.tool-card h3{font-size:20px;letter-spacing:-.01em;margin:0}
.tool-card p{margin:0;font-size:15px;line-height:1.55;color:var(--dim)}
.tool-card .go{margin-top:auto;padding-top:8px;font-size:14px;font-weight:600;color:var(--sig)}

/* ── the landing page's links into the tools ── */
.feature-row h3 a{color:var(--ink);display:inline-flex;align-items:center;min-height:44px}
.feature-row h3 a:hover{color:var(--sig)}
.feature-row .more-link{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;font-size:15px;font-weight:600}
.all-tools{margin:72px 0 0;text-align:center}

@media (max-width:960px){
  .features{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .crumbs{padding:4px 20px 0}
  .tool-hero{flex-direction:column;align-items:stretch;padding:8px 20px 48px;gap:28px}
  .tool-hero > *{min-width:0}
  .block{padding:0 20px 56px}
  .features{grid-template-columns:minmax(0,1fr);gap:20px}
  .try{padding:22px 20px}
  .try .btns{width:100%}
  .tool-list{grid-template-columns:minmax(0,1fr)}
  .hub-hero{padding:44px 20px 0}
  .group-sec{padding:36px 20px 16px}
  .tool-grid{grid-template-columns:minmax(0,1fr)}
  .all-tools{margin-top:56px}
  .placeholder{max-width:280px;margin:0 auto}
  .tool-card .placeholder{max-width:none}
}
