/*
 * Shop.co client pages: one stylesheet for index, store, pricing and proposal.
 * Light is the default (easier to read at length, in daylight and on paper). Dark is a choice
 * the reader makes with the switch in the top bar: html[data-theme="dark"].
 */
:root {
  --paper: #ffffff;
  --ink: #0b0b0c;
  --muted: #55555b;
  --line: #e6e5e3;
  --tint: #f5f4f2;
  --accent: #e5312f;
  --go: #11845b;
  --bar: #0b0b0c;
  --bar-ink: #ffffff;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.9rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.8rem, 4vw, 2.5rem);
  --step-4: clamp(2.2rem, 6.5vw, 4.2rem);
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #111113;
  --ink: #f2f1ef;
  --muted: #a9a8ae;
  --line: #2a2a2e;
  --tint: #1a1a1d;
  --accent: #ff5a57;
  --go: #3ec48f;
  --bar: #000000;
  --bar-ink: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 800; }
p { margin: 0; }
.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)); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--muted); max-width: 60ch; font-size: var(--step-1); line-height: 1.55; }
.note { color: var(--muted); font-size: var(--step--1); max-width: 76ch; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 16px; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bar); color: var(--bar-ink); }
.bar .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { font-size: var(--step--1); font-weight: 600; text-decoration: none; opacity: 0.78; white-space: nowrap; padding-block: 6px; }
.bar nav a:hover, .bar nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.theme { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.28); background: transparent; color: inherit; cursor: pointer; }
.theme:hover { background: rgb(255 255 255 / 0.12); }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: block; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }

/* Opening */
.hero { padding-block: 56px 44px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 26px; }
.hero h1 { font-size: var(--step-4); font-weight: 900; font-stretch: 120%; text-transform: uppercase; letter-spacing: -0.02em; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: 999px; padding: 12px 22px; font-size: var(--step--1); font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { opacity: 0.86; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.proof div { padding: 18px 18px 16px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.proof div:last-child { border-right: 0; }
.proof strong { font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: var(--step-2); font-variant-numeric: tabular-nums; line-height: 1.1; }
.proof span { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }

/* Jump links under the opening of a long page */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--step--1); }
.jump span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.jump a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; text-decoration: none; background: var(--paper); }
.jump a:hover { border-color: var(--ink); }

/* Sections */
section { padding-block: 64px; border-bottom: 1px solid var(--line); }
section.tinted { background: var(--tint); }
section[id] { scroll-margin-top: 64px; }
.head { display: grid; gap: 12px; margin-bottom: 32px; }

/* Three doors on the index */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.door { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.door:hover { border-color: var(--ink); transform: translateY(-2px); }
.door p { color: var(--muted); font-size: var(--step--1); }
.door .go { font-weight: 700; font-size: var(--step--1); margin-top: 4px; }

/* Feature grids */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.grid3 > div { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 2px solid var(--ink); min-width: 0; }
.grid3 p { color: var(--muted); font-size: var(--step--1); }
.grid3 .proofline { color: var(--go); font-weight: 600; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); counter-increment: step; }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.steps .body { display: grid; gap: 8px; min-width: 0; }
.steps .body p { color: var(--muted); max-width: 68ch; }
.steps .who { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.quote { font-size: var(--step--1); border-left: 3px solid var(--ink); padding: 2px 0 2px 12px; color: var(--ink) !important; font-weight: 500; }

/* Cards: payment methods, care plans, packages */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 20px; display: grid; gap: 8px; align-content: start; }
.card p, .card li { color: var(--muted); font-size: var(--step--1); }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.card .price { font-family: var(--display); font-weight: 900; font-size: var(--step-1); font-variant-numeric: tabular-nums; color: var(--ink); }
.card .price small { font-family: var(--body); font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); width: fit-content; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px 22px; display: grid; gap: 14px; align-content: start; }
.tier.pick { border: 2px solid var(--ink); }
.tier .for { color: var(--muted); font-size: var(--step--1); }
.tier .price { font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: var(--step-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tier .price small { display: block; font-family: var(--body); font-weight: 600; font-size: var(--step--1); color: var(--muted); margin-top: 4px; }
.tier .runs { font-size: var(--step--1); font-weight: 700; padding: 8px 12px; border-radius: 10px; background: var(--tint); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--step--1); }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 5px; border-left: 2px solid var(--go); border-bottom: 2px solid var(--go); transform: rotate(-45deg); }

/* Tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: var(--step--1); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--tint); }
tbody th { font-weight: 700; width: 28%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Simple priced list */
.list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.list b { font-weight: 700; }
.list span { color: var(--muted); font-size: var(--step--1); grid-column: 1; }
.list strong { font-family: var(--display); font-weight: 800; white-space: nowrap; grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; }

/* Bullet points and checklists */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 76ch; }
.points li { display: grid; gap: 4px; padding-left: 20px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.points li p { color: var(--muted); font-size: var(--step--1); }
.check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.check li { display: grid; gap: 2px; padding-left: 28px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 4px; }
.check li p { color: var(--muted); font-size: var(--step--1); }

/* Demo sign-in box */
.demo { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 20px; display: grid; gap: 12px; max-width: 640px; }
.demo dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: var(--step--1); }
.demo dt { color: var(--muted); }
.demo dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.demo p { color: var(--muted); font-size: var(--step--1); }

/* Growth stages */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stage { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); display: grid; gap: 8px; align-content: start; }
.stage .n { font-family: var(--display); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.stage p { color: var(--muted); font-size: var(--step--1); }

/* Questions */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

footer { padding-block: 40px 56px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: grid; gap: 8px; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doors, .tiers, .cards, .stages { grid-template-columns: minmax(0, 1fr); }
}
/* Phones and narrow tablets: a table row becomes a card, with the column name beside each value. */
@media (max-width: 720px) {
  .table { overflow: visible; }
  table { min-width: 0; display: block; }
  thead { position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  tbody { display: block; }
  tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  tbody th, td { display: block; padding: 0; border: 0; width: auto; }
  td { margin-top: 6px; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 10px; }
  td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}
@media (max-width: 560px) {
  .bar .wrap { flex-wrap: wrap; gap: 2px 16px; padding-block: 8px 4px; }
  .logo { flex: 1; }
  .bar nav { order: 3; flex-basis: 100%; gap: 18px; }
  .bar nav a { font-size: 0.85rem; padding-block: 8px; }
  section[id] { scroll-margin-top: 100px; }
  .hero { padding-block: 36px 30px; }
  section { padding-block: 44px; }
  .lede { font-size: 1.05rem; }
  .cta .btn { flex: 1 1 100%; }
  .grid3, .check { grid-template-columns: minmax(0, 1fr); }
  .steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .steps > li::before { font-size: 1.25rem; }
  .list li { grid-template-columns: minmax(0, 1fr); }
  .list strong { grid-column: 1; grid-row: auto; }
  .demo dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .demo dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .door { transition: none; } }

/* Printing or saving as a PDF: light paper, no bar, every answer open. */
@media print {
  :root, :root[data-theme="dark"] { --paper: #fff; --ink: #000; --muted: #444; --line: #ccc; --tint: #f4f4f4; --accent: #c0201e; --go: #0a6b47; color-scheme: light; }
  .bar, .jump { display: none; }
  body { font-size: 10.5pt; }
  .hero { padding-block: 0 20px; }
  section { padding-block: 22px; background: none !important; }
  h2, h3 { break-after: avoid; }
  .steps > li, .grid3 > div, .card, .tier, .stage, .door, tr, .list li, .check li, .points li, .faq details, .demo { break-inside: avoid; }
  .faq details::details-content { display: block; content-visibility: visible; }
  .faq summary::after { content: ""; }
}
