/* Services & Pricing page: catalog, order summary and checkout.
   Colors and type come from the main site's variables in site.css. */
.pricing {
  --bg: var(--background);
  --ink: var(--foreground);
  --on-ink: var(--primary-foreground);
  --muted: var(--muted-foreground);
  --line: var(--border);
  --accent-ink: var(--accent-foreground);
  --accent-soft: oklch(95% 0.035 40);
  --warn: oklch(52% 0.19 30);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --radius: 1.5rem;
  --radius-sm: 1rem;
}
.mono { font-variant-numeric: tabular-nums; }
.arrow { display: inline-block; width: 0.8em; height: 0.8em; flex: none; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.pill.ink { background: var(--ink); color: var(--on-ink); }
.pill.ink:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.pill.line { background: var(--bg); border-color: var(--line); color: var(--ink); }
.pill.line:hover { border-color: var(--ink); }
.pill:disabled { opacity: 0.4; cursor: not-allowed; }
.pricing-intro { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.pricing-intro p { max-width: 46ch; margin: 0; }
.how { display: grid; gap: 10px; font-size: 14px; color: var(--muted); max-width: 40ch; }
.how span { display: block; padding-left: 16px; position: relative; }
.how span::before { content: "✦"; color: var(--accent); font-size: 10px; position: absolute; left: 0; top: 4px; }
.how b { color: var(--ink); font-weight: 600; }
#sampleNote, #canceledNote { margin-top: 2rem; }
.svc h2, .ticket h2, .addons h2, .dialog h3 { font-family: var(--display); }
.mono { font-variant-numeric: tabular-nums; }
.arrow { display: inline-block; width: 0.8em; height: 0.8em; flex: none; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.pill.ink { background: var(--ink); color: var(--on-ink); }
.pill.ink:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.pill.line { background: var(--bg); border-color: var(--line); color: var(--ink); }
.pill.line:hover { border-color: var(--ink); }
.pill:disabled { opacity: 0.4; cursor: not-allowed; }

.how { display: grid; gap: 10px; font-size: 14px; color: var(--muted); max-width: 40ch; }
.how span { display: block; padding-left: 16px; position: relative; }
.how span::before { content: "✦"; color: var(--accent); font-size: 10px; position: absolute; left: 0; top: 4px; }
.how b { color: var(--ink); font-weight: 600; }


/* Section head */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 28px; }
.section-head .left { display: grid; gap: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 36ch; font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Main grid */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; padding-bottom: 72px; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc { background: var(--surface); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.svc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.svc-icon { width: 30px; height: 30px; color: var(--accent); }
.svc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.02; margin: 0; letter-spacing: -0.035em; }
.svc .blurb { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.billing { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.billing.once { background: var(--accent-soft); color: var(--accent); }
.billing.monthly { border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 999px; padding: 4px; gap: 2px; }
.tiers button { border: 0; background: transparent; border-radius: 999px; padding: 8px 6px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiers button:hover { color: var(--ink); }
.tiers button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-size: 14px; }
.spec { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.spec li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.spec li::before { content: "✦"; color: var(--accent); font-size: 11px; line-height: 21px; }
.svc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.eta { font-size: 13px; color: var(--muted); }
.add.in { background: var(--accent-soft); color: var(--accent); }
.add.in:hover { background: var(--accent); color: var(--accent-ink); }

.addons { grid-column: 1 / -1; background: var(--surface); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.addons h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.035em; margin: 0; }
.addon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.addon { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; }
.addon:has(input:checked) { border-color: var(--accent); }
.addon input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.addon .name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.addon .name small { display: block; color: var(--muted); font-weight: 400; }
.addon .mono { font-weight: 600; }

/* Order ticket */
.ticket { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 86px); background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.ticket h2 { font-family: var(--display); font-size: 28px; letter-spacing: -0.035em; margin: 0; }
.lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.line .t { font-weight: 600; min-width: 0; }
.line .s { color: var(--muted); font-size: 12px; grid-column: 1; }
.line .p { text-align: right; font-weight: 600; }
.line .rm { grid-column: 2; justify-self: end; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.line .rm:hover { color: var(--accent); }
.empty { color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; background: var(--bg); }
.totals { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .muted { color: var(--muted); }
.totals .due { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.note { font-size: 12px; color: var(--muted); margin: 0; }
.primary { width: 100%; padding-block: 15px; font-size: 15px; }



.mobile-bar { display: none; }

/* Checkout dialog */
.overlay { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, #171717 45%, transparent); backdrop-filter: blur(4px); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.dialog { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-float); width: 100%; max-width: 640px; max-height: 100%; overflow-y: auto; padding: 32px; display: grid; gap: 20px; }
.steps { display: flex; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.steps span { flex: 1; border-top: 2px solid var(--line); padding-top: 8px; }
.steps span.on { border-color: var(--accent); color: var(--ink); }
.dialog h3 { font-family: var(--display); font-size: 34px; line-height: 1; margin: 0; letter-spacing: -0.04em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.field textarea { min-height: 90px; resize: vertical; }
.err { color: var(--warn); font-size: 13px; }
.options { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt b { display: block; font-weight: 600; }
.opt small { color: var(--muted); }
.group-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 -8px; }
.summary { background: var(--surface); border-radius: 20px; padding: 18px; display: grid; gap: 8px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .big { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.banner { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; background: var(--accent-soft); color: var(--ink); }
.banner.warn { background: var(--accent-soft); color: var(--warn); }
.success { max-width: 640px; margin: 64px auto; box-shadow: none; background: var(--surface); }

@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); justify-content: space-between; align-items: center; gap: 12px; }
  .mobile-bar .due-num { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
}
@media (max-width: 680px) {
  .catalog, .addon-list, .form { grid-template-columns: minmax(0, 1fr); }
  .svc, .addons, .ticket { padding: 22px; }
  .dialog { padding: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pill, .chip, .tiers button, .addon { transition: background 0.2s, color 0.2s, border-color 0.2s; }
}

@media (max-width: 1040px) { body { padding-bottom: 76px; } }
