/* OwnerSurf use-case pages: boutiques, provisions shops, staff theft, customers who owe.
   Loaded after landing.css, which supplies the tokens, buttons, nav, notes, FAQ and footer.
   No scroll pinning or loader here: these pages are for reading and for search, so they are fast and static.
   Demo figures are illustrative and labelled "Example" (BRAND.md 10.6). */

.pg-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.pg-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.pg-head p:not(.eyebrow) { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 58ch; }
.pg h2 { font-size: clamp(30px, 4vw, 52px); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }

/* ---------- Hero ---------- */
.pg-hero { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pg-hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
.pg-hero h1 em { font-style: italic; font-weight: 600; color: var(--accent-text); }
.pg-sub { margin-top: 22px; max-width: 46ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--text-2); }
.pg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pg-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.pg-proof li { display: inline-flex; align-items: center; gap: 6px; }
.pg-proof .ic { font-size: 18px; color: var(--success); font-variation-settings: "FILL" 1; }

.pg-stage { position: relative; height: 600px; }
.pg-plate { position: absolute; inset: 4% 6% 2% 12%; border-radius: 40px; box-shadow: var(--shadow); }
.pg-stage .phone { width: min(280px, 52%); aspect-ratio: 9 / 19.5; left: 50%; top: 50%; translate: -40% -50%; rotate: -3deg; }
.pg-stage .note { z-index: 2; }
.pg-stage .note-1 { left: 0; top: 12%; }
.pg-stage .note-2 { right: 0; top: 47%; }
.pg-stage .note-3 { left: 4%; bottom: 6%; }
@media (max-width: 900px) {
  .pg-hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 40px); }
  .pg-stage { height: 560px; }
}
@media (max-width: 520px) {
  .pg-stage { height: 500px; margin-inline: -8px; }
  .pg-stage .phone { width: 220px; }
  .pg-stage .note { max-width: 236px; padding: 12px; }
  .pg-stage .note .pill-yellow { display: none; }
  .pg-ctas .btn { width: 100%; }
}

/* ---------- Biro book vs OwnerSurf ---------- */
.vs { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
/* A real ruled page: kraft in both themes, rules every 40px, red margin. Text sits on paper, never on cloth. */
.vs-book { position: relative; padding: 32px 28px 40px 68px; border-radius: 6px 28px 28px 6px; color: #23306B; box-shadow: var(--shadow-sm);
  background: #F1E3C6 repeating-linear-gradient(to bottom, transparent 0 39px, rgb(10 107 75 / .22) 39px 40px) 0 32px; }
.vs-book::before { content: ""; position: absolute; left: 48px; top: 0; bottom: 0; width: 2px; background: rgb(179 38 30 / .38); }
.vs-book h3 { height: 40px; font: 700 13px/40px var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #45514D; }
.vs-book li { font: italic 500 clamp(17px, 1.6vw, 20px)/40px var(--font-text); }
.vs-book s { text-decoration: line-through wavy #B3261E 2px; }
.vs-book .q { color: #B3261E; font-style: normal; font-weight: 700; }
.vs-os { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.vs-os h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 700 13px/40px var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.vs-os h3 img { width: 22px; height: 22px; }
.vs-os li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.vs-os li .ic { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--success-container); color: var(--on-success-container); font-size: 20px; }
.vs-os b { font-weight: 700; font-size: 17px; line-height: 1.35; }
.vs-os span:not(.ic) { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .vs { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.pg-steps { background: var(--ground-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 0; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 4px; }
.step p { color: var(--text-2); }
.step-shot { margin: auto -24px 0; padding: 24px 24px 0; height: 280px; overflow: hidden; background: color-mix(in srgb, var(--green) 9%, var(--card)); }
.step-shot img { width: 64%; height: auto; margin: 0 auto; border: 7px solid #101614; border-bottom: 0; border-radius: 26px 26px 0 0; }
.step-shot.is-wide { display: grid; place-items: center; padding-bottom: 24px; }
.step-shot.is-wide img { width: 100%; border-width: 6px; border-bottom: 6px solid #101614; border-radius: 14px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step-shot { height: 300px; } .step-shot img { width: min(60%, 260px); } .step-shot.is-wide img { width: 100%; } }

/* ---------- Example block (deep green) ---------- */
.pg-demo .pg-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pg-demo .pg-head { margin-bottom: 0; }
.pg-demo .pg-head p:not(.eyebrow) { color: var(--text-2); }
/* The example card is paper in both themes, so its status colours stay the light ones. */
.demo-card { position: relative; padding: clamp(20px, 2.6vw, 28px); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6);
  --text-2: #45514D; --line: rgb(21 29 26 / .14); --card: #FFFDF7; --accent-text: #0A6B4B;
  --success-container: #D2F1DB; --on-success-container: #06381A; --warning-container: #FFE5B4; --on-warning-container: #2E1C00;
  --error-container: #F9DEDC; --on-error-container: #410E0B; }
.demo-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.demo-top b { font: 700 18px/1.3 var(--font-display); letter-spacing: -.01em; }
.demo-top small { display: block; font-size: 13px; color: var(--text-2); }
.demo-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-full); background: var(--kraft); font: 700 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #45514D; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 10px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.chip-ok { background: var(--success-container); color: var(--on-success-container); }
.chip-warn { background: var(--warning-container); color: var(--on-warning-container); }
.chip-bad { background: var(--error-container); color: var(--on-error-container); }
.demo-helper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.demo-helper p { flex: 1 1 22ch; font-weight: 600; }
.demo-note { margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 900px) { .pg-demo .pg-wrap { grid-template-columns: 1fr; } }

/* Size and colour matrix (boutique) */
.matrix { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 6px; margin: -6px; font-variant-numeric: tabular-nums; }
.matrix caption { text-align: left; padding: 0 6px 6px; font-size: 13px; color: var(--text-2); }
.matrix th { font-size: 13px; font-weight: 700; color: var(--text-2); text-align: center; padding: 4px; }
.matrix th[scope="row"] { text-align: left; color: var(--ink); white-space: nowrap; }
.matrix th[scope="row"] i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; vertical-align: -1px; background: var(--sw); }
.matrix td { height: 52px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 18px; background: var(--kraft); }
.matrix td small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.matrix td.low { background: var(--warning-container); color: var(--on-warning-container); }
.matrix thead td { background: none; height: auto; width: 32%; }
.matrix td.out { background: var(--error-container); color: var(--on-error-container); }

/* Stock rows (provisions), activity log (staff), debt list (customers who owe) */
.rows li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows b { font-weight: 700; font-size: 15px; }
.rows small { grid-column: 1; font-size: 13px; color: var(--text-2); }
.rows .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; }
.rows .qty { font-variant-numeric: tabular-nums; }

.log li { display: grid; grid-template-columns: 44px 36px 1fr; align-items: center; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log time { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.log .avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--kraft); font: 700 12px/1 var(--font-text); color: var(--ink); }
.log .avatar.is-you { background: var(--green); color: var(--paper); }
.log div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }
.log p { font-size: 14px; line-height: 1.4; }
.log p b { font-weight: 700; }

.debt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; margin-bottom: 8px; border-radius: var(--r-lg); background: var(--green); color: var(--paper); }
.debt-total span { font-weight: 600; font-size: 14px; }
.debt-total .money { font-size: 28px; }
.demo-card .wa-bubble { min-height: 0; margin-top: 16px; }

/* ---------- Feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.feat:nth-child(4n+2) { background: var(--ground-2); box-shadow: none; }
.feat header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.feat header h3 { flex: 1 1 12ch; }
.feat header .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--ground-2); color: var(--accent-text); }
.feat:nth-child(4n+2) header .ic { background: var(--card); }
.feat p { color: var(--text-2); }
.pill-soon { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-full); box-shadow: inset 0 0 0 1.5px var(--line-strong); font: 700 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feats { grid-template-columns: 1fr; } }

/* ---------- FAQ (landing.css styles the list) ---------- */
.pg .faq { padding-top: 0; }

/* ---------- Related pages ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel { display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 28px; border-radius: 28px; background: var(--ground-2); text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.rel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rel small { font: 700 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.rel b { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--font-display); letter-spacing: -.015em; }
.rel span:not(.ic) { color: var(--text-2); font-size: 15px; flex: 1; }
.rel .ic { align-self: flex-end; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--paper); transition: transform .3s var(--ease-out); }
.rel:hover .ic { transform: translateX(4px); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } .rel { min-height: 0; } }

/* ---------- Closing call to action ---------- */
.pg-cta .pg-wrap { text-align: center; display: grid; justify-items: center; }
.pg-cta h2 { max-width: 18ch; }
.pg-cta p { margin-top: 18px; max-width: 48ch; font-size: 18px; color: var(--text-2); }
.pg-cta .pg-ctas { justify-content: center; }
.pg-cta .btn-helper-lg { width: auto; padding: 0 28px; text-decoration: none; }
@media (max-width: 520px) { .pg-cta .pg-ctas > * { width: 100%; } }
