/*
 * Marketing site styles — landing, pricing, contact, terms, sign in.
 *
 * Deliberately separate from the estimator's Tailwind build: these pages are plain HTML documents,
 * so a visitor reading about pricing never downloads the SPA. Kept in public/ (copied verbatim)
 * rather than imported, so the pages stay readable as standalone files.
 *
 * The shell — header, logo, nav, footer — is in chrome.css, imported below, because the signed-in
 * console wears the same one in dark (components/ConsoleShell.vue). What stays HERE is everything
 * that only makes sense in a marketing document: the resets, the element-level form styles, the
 * sections, the prose. Those must never reach the SPA, which is why the split exists.
 */
@import url("./chrome.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
.muted { color: var(--body); }
.center { text-align: center; }

/* --- sections -------------------------------------------------------------- */
section { padding: 78px 0; }
.section-tight { padding: 54px 0; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px;
}
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.4vw, 37px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.lede { font-size: 18px; color: var(--body); max-width: 62ch; margin: 0 0 32px; }
.section-head { max-width: 66ch; margin: 0 auto 46px; text-align: center; }
.section-head .lede { margin: 0 auto; }

/* --- cards / grids --------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
/* `min(…, 100%)` rather than a bare track minimum: a fixed one cannot shrink, so on a narrow phone
   the column is wider than the page and every card runs off the right edge. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(212px, 100%), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s ease, transform .14s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 18px 42px -30px rgba(13,17,23,.55); border-color: #d4dae2; }
.card p { margin: 0; color: var(--body); font-size: 15px; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #e6f5f3; color: var(--brand); font-size: 19px; margin-bottom: 15px;
}
/* Demo cards: grid rows already stretch to equal height, so pinning the button to the
   bottom of its own card lines both buttons up regardless of how long each pitch is. */
#demos .card { display: flex; flex-direction: column; }
#demos .card .btn { margin-top: auto; }

/* --- comparison table ------------------------------------------------------ */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--body); }
tbody tr:last-child td { border-bottom: 0; }
td.ours, th.ours { background: #f1fbf9; }
th.ours { color: var(--brand); }
/* Column sublines naming each category's products: the header's own uppercasing has to be undone. */
thead th .hint { display: block; margin-top: 5px; text-transform: none; letter-spacing: 0; }
.yes { color: var(--brand); font-weight: 700; }
.no { color: #b4270f; }

/* --- forms ----------------------------------------------------------------- */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid #d5dae1; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 17px; }
.hint { font-size: 13px; color: var(--body); font-weight: 400; }
.form-note { font-size: 13.5px; color: var(--body); margin-top: 14px; }
/* A note directly under the submit needs room, or it reads as part of the button. */
.btn + .form-note { margin-top: 24px; }
.alert { padding: 13px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 18px; }
.alert-ok { background: #e6f5f3; color: var(--brand-ink); border: 1px solid #b9e3dd; }
.alert-err { background: #fdecea; color: #7d1f0f; border: 1px solid #f4c4bc; }

/* --- prose (terms, privacy) ------------------------------------------------- */
.prose { max-width: 74ch; }
/* Every heading is a link target: the header is sticky, so an un-offset jump lands under it. */
.prose h2 { font-size: 22px; margin: 38px 0 10px; scroll-margin-top: 88px; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; scroll-margin-top: 88px; }
.prose p, .prose li { color: var(--body); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 5px; }
.prose li > ul, .prose li > ol { margin-top: 5px; }
.prose strong { color: var(--ink); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;
  font-size: .9em; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; color: var(--ink);
}

/* The section tables (subprocessors, retention) are reference, not the comparison grid above. */
.prose table { min-width: 0; font-size: 14.5px; margin: 16px 0; }
.prose th, .prose td { padding: 10px 13px; }
.prose thead th { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); }

/* Two columns of anchors: at ~28 numbered sections one column is a screen of its own. */
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0 34px; }
.toc b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--body); margin-bottom: 10px; }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 18px; font-size: 14.5px; }
.toc li { break-inside: avoid; margin-bottom: 4px; color: var(--body); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* Summary of the document in the reader's own terms — never a substitute for the clauses below it. */
.legal-summary { background: #f1fbf9; border: 1px solid #b9e3dd; border-radius: var(--radius); padding: 20px 22px; margin: 26px 0 0; }
.legal-summary h2 { margin-top: 0; font-size: 17px; }
.legal-summary ul { margin-bottom: 0; }
.legal-summary p:last-child { margin-bottom: 0; }

/* --- before/after reveal ---------------------------------------------------- */
/* The estimator's compare slider (components/BeforeAfterSlider.vue) in plain CSS, for the hero.
   `--p` is the divider as a percentage from the left edge: everything left of it is the customer's
   photo (the overlay), everything right of it the render underneath. */
.reveal { margin: 0; display: grid; gap: 9px; }
.reveal-frame {
  --p: 100;
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 22px 48px -30px rgba(13, 17, 23, .55);
  cursor: ew-resize; user-select: none; touch-action: pan-y;
}
.reveal-frame img { display: block; width: 100%; height: auto; }
/* Percentage insets, so the clip follows the frame at any width with nothing measuring it. */
.reveal-frame .reveal-top {
  position: absolute; inset: 0; height: 100%; object-fit: cover;
  clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0);
}
.reveal-line {
  position: absolute; top: 0; bottom: 0; width: 2px; left: calc(var(--p) * 1% - 1px);
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(13, 17, 23, .1);
}
/* The knob is inset at both extremes the way a range input insets its thumb, rather than hanging
   half outside a frame the divider has reached the edge of. */
.reveal-knob {
  position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  left: calc(var(--p) * 1% + (0.5 - var(--p) / 100) * 36px); transform: translateX(-50%);
  border-radius: 50%; background: #fff; color: var(--body);
  box-shadow: 0 2px 10px rgba(13, 17, 23, .35); display: grid; place-items: center;
  cursor: ew-resize; touch-action: none;
}
.reveal-knob:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
/* Each label hides once the divider leaves it no room to sit over its own half. */
.reveal-tag {
  position: absolute; top: 10px; max-width: 45%; padding: 2px 9px; border-radius: 8px;
  background: rgba(13, 17, 23, .6); color: #fff; font-size: 12.5px; white-space: nowrap;
}
.reveal-tag-before { left: 10px; }
.reveal-tag-after { right: 10px; }
.reveal-note { font-size: 13.5px; color: var(--body); }
/* Nothing to compare against: the render alone, with no divider over it. */
.reveal-plain { cursor: default; }
.reveal-plain .reveal-top, .reveal-plain .reveal-line,
.reveal-plain .reveal-knob, .reveal-plain .reveal-tag { display: none; }
