/* Botler marketing site — SPEC §47, §49–55.
 *
 * Hand-written, no framework. Token NAMES and values are copied from
 * `src/styles/tokens.css` rather than importing it, because this site is
 * static and ships independently of the Vue bundle (see the build note in
 * scripts/build-site.mjs). White ground, near-black text, neutral grey
 * secondary text, ONE red accent reserved for primary actions and brand
 * moments — never flooded across the page.
 */

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-strong: #f1f1f3;
  --line: #e6e6e9;
  --ink: #0d0d0f;
  --dim: #5c5f66;
  --accent: #E5251B;
  --accent-ink: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(13, 13, 15, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 13, 15, 0.08);
  --maxw: 1120px;
  --font: -apple-system, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --dur: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--accent); }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 14px; color: var(--ink); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

/* --- accessibility ------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.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;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- layout shell ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-right: auto;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--dim);
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-cta {
  display: flex;
  gap: 10px;
  flex: none;
}

main { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  background: var(--surface);
}

.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-brand p {
  flex-basis: 100%;
  color: var(--dim);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-nav a { color: var(--dim); }
.footer-nav a:hover { color: var(--accent); }

.footer-fine {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--dim);
  font-size: 0.82rem;
}

/* --- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: var(--accent-ink);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-large {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.86rem;
}

/* --- hero ------------------------------------------------------------------ */

.hero {
  padding: 88px 24px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 { margin-bottom: 18px; }

.hero-sub {
  font-size: 1.2rem;
  color: var(--dim);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.page-hero h1 { margin-bottom: 10px; }
.page-hero .hero-sub { margin: 0 0 20px; max-width: 62ch; }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-row-center { justify-content: center; }

/* --- sections ---------------------------------------------------------------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head h2 { margin: 0; }

.section-link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.section-band {
  background: var(--surface);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 56px 32px;
}

.band-text {
  color: var(--dim);
  max-width: 56ch;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--dim);
  max-width: 72ch;
}

.fine-print {
  color: var(--dim);
  font-size: 0.85rem;
}

/* --- how it works steps ------------------------------------------------------ */

.steps {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.steps li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps-detailed li { padding: 36px 32px; }
.steps-detailed p { color: var(--dim); }

/* --- robot cards -------------------------------------------------------------- */

.robot-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.robot-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.robot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.robot-card-media {
  display: block;
  background: var(--surface);
  aspect-ratio: 4 / 3.4;
}

.robot-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.robot-card-body { padding: 20px 22px 24px; }

.robot-card-body h3 { margin: 0 0 2px; font-size: 1.25rem; }
.robot-card-body h3 a:hover { color: var(--accent); }

.robot-card-manufacturer {
  color: var(--dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.robot-card-price {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.robot-card-availability {
  color: var(--dim);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.robot-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- task tiles ---------------------------------------------------------------- */

.task-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.task-grid-large {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.task-tile {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.task-tile:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.task-tile h3, .task-tile h2 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }
.task-tile p { color: var(--dim); font-size: 0.92rem; margin: 0; }
.task-tile-large h2 { font-size: 1.3rem; }
.task-tile-examples { margin-top: 10px !important; font-size: 0.85rem !important; color: var(--dim); font-style: italic; }

/* --- address / service-area check ----------------------------------------------- */

.address-check {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.address-check input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.address-check input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --- robot detail ---------------------------------------------------------------- */

.robot-detail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.robot-detail-media {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.robot-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.eyebrow {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.robot-detail-body h1 { margin-bottom: 6px; }

.tagline {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 14px;
}

.robot-detail-price {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.two-col {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.checklist-limits li::before {
  background: var(--dim);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mini-robot-link {
  font-weight: 700;
  color: var(--ink);
}

.mini-robot-link:hover { color: var(--accent); }

/* --- task detail: suited robots ------------------------------------------------------ */

.suited-robot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.suited-robot {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
}

.suited-robot:hover { background: var(--surface-strong); }

.suited-robot img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  flex: none;
}

.suited-robot h3 { margin: 0 0 2px; font-size: 1rem; color: var(--ink); }
.suited-robot p { margin: 0; font-size: 0.85rem; color: var(--dim); }

/* --- pricing table ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.rate-table th {
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.rate-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.rate-model {
  display: block;
  font-weight: 700;
}

.rate-manufacturer {
  display: block;
  color: var(--dim);
  font-size: 0.85rem;
}

.rate-price { font-weight: 700; white-space: nowrap; }

/* --- service areas -------------------------------------------------------------------- */

.area-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.area-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
}

.area-city, .area-postcodes { color: var(--dim); font-size: 0.88rem; margin-bottom: 6px; }
.area-suburbs { font-size: 0.98rem; }

/* --- faq --------------------------------------------------------------------------- */

.faq-list { max-width: 800px; }

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child { padding-top: 0; }
.faq-item h2 { font-size: 1.08rem; margin-bottom: 8px; }
.faq-item p { color: var(--dim); margin: 0; }

/* --- motion ------------------------------------------------------------------------ */

.fade-in {
  animation: fade-in-up 560ms var(--ease) both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
  .btn, .robot-card, .task-tile { transition: none; }
  .btn:hover, .robot-card:hover { transform: none; }
}

/* --- responsive ---------------------------------------------------------------------- */

@media (max-width: 960px) {
  .robot-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .suited-robot-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .robot-detail { grid-template-columns: 1fr; }
  .robot-detail-media { max-width: 320px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header-inner { padding: 12px 18px; }
  .site-nav { order: 3; width: 100%; gap: 6px 14px; }
  .header-cta { margin-left: auto; }
  .hero { padding: 56px 18px 40px; }
  .page-hero { padding: 40px 18px 24px; }
  .section { padding: 40px 18px; }
  .robot-grid { grid-template-columns: 1fr; }
  .task-grid, .task-grid-large { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .suited-robot-grid { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; padding: 40px 18px 20px; }
  .section-band { padding: 40px 20px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .cta-row-center .btn { width: auto; }
}

@media (max-width: 480px) {
  .cta-row-center { flex-direction: column; align-items: stretch; }
  .cta-row-center .btn { width: 100%; }
}
