/* ==========================================================================
   Oztec Sites — the marketing site.
   Deliberately unlike the client sites: those are fifteen different shopfronts,
   this is one company explaining a service. Technical, quiet, confident.
   Colour tokens are injected per-request from brand settings, so the palette is
   editable without a deploy; everything else lives here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --measure: 68ch;
  --radius: 14px;
  --radius-s: 8px;
  --shell: min(100% - 2.4rem, 1140px);
  --narrow: min(100% - 2.4rem, 760px);

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.2rem);

  --space-s: clamp(0.6rem, 0.5rem + 0.4vw, 0.9rem);
  --space-m: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  --space-l: clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem);
  --space-xl: clamp(2.6rem, 2rem + 3vw, 5rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: var(--shell); margin-inline: auto; }
.wrap--narrow { width: var(--narrow); margin-inline: auto; }
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.stack > * + * { margin-top: var(--flow, 1rem); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* eyebrow -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; inline-size: 1.6rem; block-size: 2px; background: var(--accent); flex: none; }

/* buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-s);
  background: var(--accent); color: #fff; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.06);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); box-shadow: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 22px rgb(0 0 0 / 0.22); }
.btn--sm { padding: 0.55rem 0.95rem; font-size: var(--step--1); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }

/* header --------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner { display: flex; align-items: center; gap: var(--space-m); padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  inline-size: 2.1rem; block-size: 2.1rem; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: -0.04em;
}
.brand__name { font-weight: 750; letter-spacing: -0.02em; }
.brand__sub { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.mastnav { margin-left: auto; display: flex; gap: 0.3rem; align-items: center; }
.mastnav a {
  padding: 0.45rem 0.7rem; border-radius: 6px; text-decoration: none;
  color: var(--muted); font-size: var(--step--1); font-weight: 550;
}
.mastnav a:hover { color: var(--ink); background: var(--surface-2); }
.mastnav a.is-on { color: var(--ink); }
@media (max-width: 780px) {
  .mastnav a:not(.btn) { display: none; }
  .mastnav a.mastnav--keep { display: inline-flex; }
}

/* hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(2.6rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; block-size: 70vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 13%, transparent), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: var(--space-l); }
@media (min-width: 940px) { .hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }
.hero__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.04em; }
.hero__title em { font-style: normal; color: var(--primary); }
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-top: var(--space-m); }
.hero__actions { margin-top: var(--space-l); }
.hero__note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--muted); }

/* the browser frame in the hero, drawn in CSS rather than screenshotted so it
   never goes stale when a client site changes */
.frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: 0 24px 60px -30px rgb(14 22 34 / 0.4);
}
.frame__bar {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.8rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.frame__dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--line); }
.frame__url {
  margin-left: 0.5rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  background: var(--ground); padding: 0.2rem 0.6rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame__body { padding: var(--space-m); display: grid; gap: 0.7rem; }
.frame__line { block-size: 0.6rem; border-radius: 3px; background: var(--surface-2); }
.frame__line--title { block-size: 1.5rem; inline-size: 78%; background: color-mix(in srgb, var(--ink) 82%, transparent); }
.frame__line--sub { inline-size: 60%; }
.frame__line--short { inline-size: 42%; }
.frame__cta { margin-top: 0.3rem; display: flex; gap: 0.5rem; }
.frame__pill { block-size: 2rem; inline-size: 7.5rem; border-radius: 6px; background: var(--accent); }
.frame__pill--ghost { background: transparent; border: 1px solid var(--line); inline-size: 6rem; }

/* proof ---------------------------------------------------------------- */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof__grid { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .proof__grid { grid-template-columns: repeat(4, 1fr); } }
.proof__item { padding: var(--space-m) var(--space-m) var(--space-m) 0; }
@media (min-width: 800px) {
  .proof__item + .proof__item { border-left: 1px solid var(--line); padding-left: var(--space-m); }
}
.proof__n {
  display: block; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.proof__l { display: block; margin-top: 0.35rem; font-size: var(--step--1); color: var(--muted); }

/* generic section head -------------------------------------------------- */
.head { max-width: 58ch; }
.head h2 { font-size: var(--step-3); font-weight: 780; margin-top: 0.6rem; }
.head p { color: var(--muted); font-size: var(--step-1); margin-top: var(--space-s); }

/* steps ---------------------------------------------------------------- */
.steps { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: grid; gap: var(--space-m); counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-m); display: grid; gap: 0.6rem; align-content: start;
  border-top: 3px solid var(--primary);
}
.step__n { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.12em; color: var(--primary); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); font-size: var(--step--1); }

/* showcase ------------------------------------------------------------- */
.showcase { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
@media (min-width: 700px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .showcase { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: grid; gap: 0.5rem; align-content: start; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-m); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; block-size: 3px; background: var(--card-accent, var(--primary));
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(14 22 34 / 0.45); border-color: var(--card-accent, var(--primary)); }
.card__name { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; }
.card__meta { font-size: var(--step--1); color: var(--muted); }
.card__tag { font-size: var(--step--1); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; font-size: var(--step--1); }
.card__rating { font-weight: 700; font-variant-numeric: tabular-nums; }
.card__rating span { font-weight: 400; color: var(--muted); }
.card__go { color: var(--primary); font-weight: 600; }

/* price ---------------------------------------------------------------- */
.price {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: var(--space-l); display: grid; gap: var(--space-m);
}
@media (min-width: 900px) { .price { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-xl); align-items: start; } }
.price__n { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price__n small { display: block; font-size: var(--step--1); font-weight: 400; letter-spacing: 0; opacity: 0.72; margin-top: 0.6rem; }
.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.price__list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem; align-items: start; font-size: var(--step-0); }
.price__list li::before { content: "✓"; color: var(--accent); font-weight: 700; line-height: 1.5; }
.price a.btn { margin-top: var(--space-m); }

.extras { display: grid; gap: 0; margin-top: var(--space-l); border-top: 1px solid var(--line); }
.extra {
  display: grid; gap: 0.2rem 1.5rem; padding-block: var(--space-m);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .extra { grid-template-columns: 16rem 1fr auto; align-items: baseline; } }
.extra__name { font-weight: 650; }
.extra__detail { color: var(--muted); font-size: var(--step--1); }
.extra__price { font-family: var(--mono); font-weight: 600; white-space: nowrap; color: var(--primary); }

/* prose ---------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-m); }
.prose p + p, .prose h2 + p, .prose h3 + p { margin-top: 0.9em; }
.prose ul { margin: 0.9em 0 0; padding-left: 1.2em; color: var(--muted); }
.prose li + li { margin-top: 0.4em; }

/* callout -------------------------------------------------------------- */
.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-s);
  padding: var(--space-m); margin-top: var(--space-l);
}
.callout strong { display: block; margin-bottom: 0.3rem; }
.callout p { color: var(--muted); font-size: var(--step--1); }

/* form ----------------------------------------------------------------- */
.formcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-l);
}
.formgrid { display: grid; gap: var(--space-m); }
@media (min-width: 640px) { .formgrid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field > span { font-size: var(--step--1); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: max(16px, var(--step-0));
  color: var(--ink); background: var(--ground);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.7rem 0.85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.sent {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border: 1px solid var(--primary); border-radius: var(--radius);
  padding: var(--space-m); font-size: var(--step-0);
}

/* footer --------------------------------------------------------------- */
.foot { background: var(--ink); color: #fff; padding-block: var(--space-xl) var(--space-l); margin-top: var(--space-xl); }
.foot a { color: #fff; text-decoration: none; opacity: 0.8; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot__grid { display: grid; gap: var(--space-l); }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h3 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; margin-bottom: 0.7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: var(--step--1); }
.foot__brand p { opacity: 0.7; font-size: var(--step--1); margin-top: 0.6rem; max-width: 34ch; }
.foot__base {
  margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: var(--step--1); opacity: 0.65;
}



/* ==========================================================================
   legal pack — terms, SLA, privacy, PAIA. Long documents on a narrow measure.
   Shares class names with the dealer-site legal pages so one set of rules is
   maintained rather than two that drift apart.
   ========================================================================== */

.legal { padding-block: clamp(2rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal__head { margin-bottom: 2.5rem; }
.legal__head h1 { margin: 0.25rem 0 0.5rem; }

.legal__body { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.legal__body h2 {
  margin-top: 2.75rem; margin-bottom: 0.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 1.3rem;
}
.legal__body h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.legal__body p { margin: 0 0 1rem; }
.legal__body ul, .legal__body ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.legal__body li { margin-bottom: 0.5rem; }
.legal__body .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 2rem; }
.legal__body code {
  padding: 0.1em 0.35em; border-radius: 4px;
  background: var(--surface-2); font-size: 0.9em;
}

/* A limitation of liability has to be conspicuous to bind at all — CPA
   s49(4)(a). This makes it noticeable without shouting in capitals. */
.legal__callout {
  padding: 1rem 1.15rem; margin: 1.5rem 0;
  border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 8px;
}

.legal__table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.94rem;
}
.legal__table th, .legal__table td {
  text-align: left; vertical-align: top;
  padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line);
}
.legal__table thead th { color: var(--muted); font-weight: 600; }
.legal__table th[scope="row"] { width: 34%; color: var(--muted); font-weight: 500; }

.legal__address { font-style: normal; line-height: 1.75; margin: 0 0 1.25rem; }

.legal__nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line); font-size: 0.95rem;
}

.foot__legal {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem;
}

@media (max-width: 620px) {
  .legal__table { display: block; overflow-x: auto; }
  .legal__table th[scope="row"] { width: 40%; }
}



/* ==========================================================================
   dealer stats page
   ========================================================================== */

.stats__ranges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.stats__ranges a {
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; color: var(--muted); text-decoration: none;
}
.stats__ranges a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.stats__grid {
  display: grid; gap: 1rem; margin: 0 0 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.stat {
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface);
}
/* The contact count is the number that decides whether the R249 is worth it,
   so it is the one that looks different. */
.stat--lead { border-color: var(--accent); border-width: 2px; }
.stat__n { margin: 0; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 700; line-height: 1; }
.stat__l { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.stat__d { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--muted); }

/* One bar per day, drawn in CSS. A charting library for a single series of
   integers would cost more to download than the page it sits on. */
.spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 7rem; margin: 0 0 0.75rem; padding: 0; list-style: none;
  border-bottom: 1px solid var(--line);
}
.spark li { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.spark__bar {
  display: block; width: 100%; border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--accent) 70%, var(--surface-2));
}
.spark__dot {
  position: absolute; top: -0.45rem; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}

@media (max-width: 560px) {
  /* Ninety bars at phone width is a smear. Thin them rather than shrink them. */
  .spark { gap: 1px; height: 5.5rem; }
}

/* The last row's border and the next heading's border-top otherwise draw two
   parallel lines a few pixels apart, which reads as an empty table row. */
.legal__table tbody tr:last-child th,
.legal__table tbody tr:last-child td { border-bottom: 0; }
