/* Perth Robots — product-pages.css
   Shared CSS for the 9 robots/* product pages, in source order (single sheet
   keeps each selector's base+media rules correctly ordered). Linked on the
   product pages only; index/fleet keep their own inline styles. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: var(--fs-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
    overflow-x: hidden;
  }

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

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }

p { margin: 0; }

::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }

@media (min-width: 1280px) { .wrap { padding: 0 4rem; } }

.eyebrow {
    font-family: var(--mono); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent); display: inline-flex; align-items: center; gap: 0.625rem;
    font-weight: 500;
  }

.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--accent); }

.h-section { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.03em; }

.lede { color: var(--text-2); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 38rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; font-weight: 500; font-size: 0.9375rem;
    padding: 0.875rem 1.5rem; border-radius: 9999px;
    transition: all 0.25s ease; white-space: nowrap; line-height: 1;
  }

.btn-primary { background: var(--accent); color: hsl(220 30% 8%); font-weight: 600; }

.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 32px var(--accent-glow); transform: translateY(-1px); }

.btn-ghost { border: 1px solid var(--border); color: var(--text); background: hsl(0 0% 100% / 0.02); backdrop-filter: blur(8px); }

.btn-ghost:hover { border-color: var(--text-2); background: hsl(0 0% 100% / 0.05); }

.arrow { transition: transform 0.25s ease; display: inline-block; }

.btn:hover .arrow { transform: translateX(3px); }

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
    background: hsl(220 28% 7% / 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
  }

.nav.scrolled { padding: 0.875rem 0; }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.nav-brand { display: flex; align-items: center; gap: 0.875rem; }

.nav-brand-divider { width: 1px; height: 1.25rem; background: var(--border); display: none; }

@media (min-width: 640px) { .nav-brand-divider { display: block; } }

.nav-brand-partner { display: none; flex-direction: column; align-items: flex-start; gap: 0.2rem; }

@media (min-width: 640px) { .nav-brand-partner { display: inline-flex; } }

.cenobots-mark { height: 1.9rem; width: auto; filter: brightness(0) invert(1); opacity: 0.95; display: block; }

.partner-tag {
    font-family: var(--mono); font-size: var(--fs-label);
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-3); line-height: 1;
  }

.nav-links { display: none; align-items: center; gap: 2.25rem; }

@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link { font-size: var(--fs-small); color: var(--text-2); transition: color 0.2s ease; cursor: pointer; }

.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-link.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-phone { display: none; font-size: var(--fs-small); color: var(--text-2); }

@media (min-width: 768px) { .nav-phone { display: inline; } }

.nav-toggle {
    order: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; padding: 0;
    border: 1px solid var(--border); border-radius: 0.5rem;
    background: transparent; color: var(--text); cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
  }

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

.nav-toggle .nav-toggle-close { display: none; }

.nav.nav-open .nav-toggle .nav-toggle-open { display: none; }

.nav.nav-open .nav-toggle .nav-toggle-close { display: inline-flex; }

@media (min-width: 1024px) { .nav-toggle { display: none; } }

@media (max-width: 1023px) {
    .nav.nav-open {
      background: hsl(220 28% 7% / 0.97);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-soft);
    }
    .nav.nav-open .nav-links {
      display: flex; flex-direction: column; align-items: stretch; gap: 0;
      position: absolute; top: 100%; left: 0; right: 0;
      padding: 0.25rem 1.5rem 1.25rem;
      background: hsl(220 28% 7% / 0.97);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-soft);
    }
    .nav.nav-open .nav-links .nav-link {
      padding: 0.85rem 0; font-size: 1rem;
      border-top: 1px solid var(--border-soft);
    }
  }

@media (min-width: 768px) and (max-width: 1023px) {
    .nav.nav-open .nav-links { padding-left: 2.5rem; padding-right: 2.5rem; }
  }

.brand-logo { height: 64px; width: auto; display: block; transition: height 0.3s ease; }

.nav.scrolled .brand-logo { height: 52px; }

.crumbs {
    /* Split top/bottom from horizontal so .wrap's 1.5rem/2.5rem/4rem
       responsive horizontal padding still applies — the previous
       `padding: 9rem 0 1.5rem` shorthand zeroed left/right and made
       the breadcrumb flush against the viewport edge on mobile. */
    padding-top: 9rem; padding-bottom: 1.5rem;
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--text-3);
  }

.crumbs a { color: var(--text-3); }

.crumbs a:hover { color: var(--text-2); }

.crumbs .sep { margin: 0 0.5rem; opacity: 0.6; }

.crumbs .current { color: var(--text-2); }

.hero { position: relative; padding: 1rem 0 5rem; overflow: hidden; isolation: isolate; }

.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background:
      radial-gradient(55% 60% at 75% 35%, hsl(188 60% 14%) 0%, transparent 65%),
      radial-gradient(40% 50% at 12% 75%, hsl(220 30% 13%) 0%, transparent 75%),
      linear-gradient(180deg, hsl(220 28% 6%) 0%, hsl(220 28% 9%) 100%);
  }

.hero-grid-bg {
    position: absolute; inset: 0; z-index: -1; opacity: 0.35;
    background-image:
      linear-gradient(hsl(0 0% 100% / 0.025) 1px, transparent 1px),
      linear-gradient(90deg, hsl(0 0% 100% / 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 80%);
  }

/* minmax(0, 1fr) prevents the track from being stretched by the
   intrinsic min-content of nowrap children (e.g. .hero-meta on pages
   with longer chip strings like "Autonomous Scrubber-Dryer"), which
   was causing right-edge clipping at 375px on cenobots-s5 / cenobots-l50. */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }

@media (min-width: 1024px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; } }

.hero-meta {
    /* flex (not inline-flex) + flex-wrap so chip strings ("Autonomous Sweeper
       · Industrial · Available now") wrap to a second line on narrow viewports
       instead of forcing a min-content overflow. */
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.625rem;
    margin-bottom: 1.5rem;
    font-family: var(--mono); font-size: var(--fs-label);
    color: var(--text-3); text-transform: uppercase; letter-spacing: 0.14em;
  }

.hero-meta .status {
    padding: 0.2rem 0.55rem;
    background: hsl(188 95% 55% / 0.1);
    border: 1px solid hsl(188 95% 55% / 0.3);
    color: var(--accent);
    border-radius: 9999px; font-size: var(--fs-label);
  }

.hero h1 {
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    letter-spacing: -0.04em; line-height: 0.95;
    margin-bottom: 1.25rem;
  }

.hero h1 .name {
    display: block;
    background: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(0 0% 70%) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }

.hero h1 em {
    font-style: normal; color: var(--accent); font-weight: 800;
    font-size: 0.72em; letter-spacing: -0.025em;
    margin-top: 0.25rem; display: block;
  }

.hero-tagline {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    color: var(--text-2);
    letter-spacing: -0.015em;
    margin-bottom: 2rem; max-width: 32rem; line-height: 1.35;
  }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-product {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 640px; margin: 0 auto; width: 100%;
  }

.hero-product::before {
    content: ""; position: absolute; inset: 12% 8% 8% 12%;
    background: radial-gradient(closest-side, var(--accent-glow), transparent 75%);
    filter: blur(60px); z-index: -1; opacity: 0.7;
  }

.stats {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: hsl(220 25% 8%);
    padding: 2.5rem 0;
  }

.stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem;
  }

@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem 2.5rem; } }

.stat {
    text-align: left;
    display: flex; flex-direction: column; gap: 0.45rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-soft);
  }

.stat .v {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.025em; line-height: 1;
    color: var(--text);
  }

.stat .v .u { color: var(--accent); font-size: 0.5em; margin-left: 0.15em; font-weight: 600; }

.stat .k {
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-3);
  }

.section { padding: 5rem 0; position: relative; }

@media (min-width: 768px) { .section { padding: 7rem 0; } }

.section-head {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem 4rem;
    margin-bottom: 3rem; align-items: end;
  }

@media (min-width: 768px) { .section-head { grid-template-columns: 1fr 1fr; } }

.section-head .eyebrow { margin-bottom: 1rem; }

.narrative { max-width: 48rem; margin: 0 auto; }

.narrative .eyebrow { margin-bottom: 1.5rem; }

.narrative h2 { margin-bottom: 1.75rem; }

.narrative p {
    color: var(--text-2);
    font-size: 1.0625rem; line-height: 1.7;
    margin-bottom: 1.25rem;
  }

.narrative p:last-child { margin-bottom: 0; }

.narrative p strong { color: var(--text); font-weight: 600; }

.bf-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }

@media (min-width: 640px) { .bf-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) { .bf-grid { grid-template-columns: repeat(3, 1fr); } }

.bf-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.75rem; transition: all 0.25s ease;
  }

.bf-card:hover {
    border-color: var(--accent-deep);
    background: linear-gradient(180deg, var(--surface) 0%, hsl(188 30% 12%) 200%);
    transform: translateY(-2px);
  }

.bf-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    background: hsl(188 95% 55% / 0.1);
    color: var(--accent);
    border: 1px solid hsl(188 95% 55% / 0.2);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
  }

.bf-card h3 {
    font-family: var(--display); font-weight: 600;
    font-size: 1.0625rem; letter-spacing: -0.012em;
    margin-bottom: 0.5rem;
  }

.bf-card p { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; }

.how-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; counter-reset: step; }

@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }

.how-step {
    position: relative; padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    transition: border-color 0.25s ease;
  }

.how-step:hover { border-color: var(--border); }

.how-step-num {
    font-family: var(--mono); font-size: var(--fs-label);
    color: var(--accent); letter-spacing: 0.14em;
    margin-bottom: 1rem;
  }

.how-step-icon {
    width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
    background: hsl(188 95% 55% / 0.08);
    color: var(--accent);
    border: 1px solid hsl(188 95% 55% / 0.18);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
  }

.how-step h3 {
    font-family: var(--display); font-weight: 600;
    font-size: 1.0625rem; letter-spacing: -0.012em;
    margin-bottom: 0.5rem;
  }

.how-step p { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; }

.spec-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

.spec-row {
    display: grid; grid-template-columns: 1fr 1.5fr;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-soft);
    gap: 1rem; align-items: center;
  }

.spec-row:first-child { border-top: 0; }

.spec-row .k {
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-2);
  }

.spec-row .v {
    color: var(--text);
    font-family: var(--display); font-weight: 500;
    font-size: 0.95rem; letter-spacing: -0.005em;
  }

.spec-row .v small {
    color: var(--text-3); font-weight: 400;
    font-family: var(--mono); font-size: 0.75em;
    margin-left: 0.45rem;
  }

.spec-section-head {
    padding: 1.1rem 1.5rem;
    background: hsl(220 22% 10%);
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent);
    border-top: 1px solid var(--border-soft);
  }

.spec-section-head:first-child { border-top: 0; }

.spec-toggle {
    text-align: center; padding: 1rem;
    color: var(--text-2);
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.14em;
    cursor: pointer;
    border-top: 1px solid var(--border-soft);
    background: hsl(220 22% 9%);
    transition: color 0.2s, background 0.2s;
  }

.spec-toggle:hover { color: var(--accent); background: hsl(220 22% 11%); }

.spec-toggle-icon { display: inline-block; margin-left: 0.4em; transition: transform 0.25s ease; }

.spec-card[data-collapsed="true"] .spec-toggle-icon { transform: rotate(0deg); }

.spec-card[data-collapsed="false"] .spec-toggle-icon { transform: rotate(180deg); }

.spec-card[data-collapsed="true"] .spec-extended { display: none; }

.why-block {
    position: relative;
    background:
      radial-gradient(70% 50% at 80% 0%, hsl(188 50% 14%) 0%, transparent 70%),
      linear-gradient(180deg, hsl(220 25% 11%) 0%, hsl(220 28% 8%) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem; overflow: hidden;
  }

@media (min-width: 768px) { .why-block { padding: 4rem 4rem; } }

.why-block .eyebrow { margin-bottom: 1.25rem; }

.why-block h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    margin-bottom: 1.5rem; max-width: 36rem;
  }

.why-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }

@media (min-width: 768px) { .why-cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.why-cols p { color: var(--text-2); font-size: var(--fs-body); line-height: 1.7; }

.why-cols p + p { margin-top: 1rem; }

.why-cols strong { color: var(--text); font-weight: 600; }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.75rem;
  }

.svc-icon {
    width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
    background: hsl(188 95% 55% / 0.1);
    color: var(--accent);
    border: 1px solid hsl(188 95% 55% / 0.2);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
  }

.svc-card h3 {
    font-family: var(--display); font-weight: 600;
    font-size: 1.0625rem; margin-bottom: 0.5rem;
  }

.svc-card p { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; }

.faq-wrap { max-width: 50rem; margin: 0 auto; }

.faq { display: flex; flex-direction: column; gap: 0.625rem; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0 1.5rem;
    transition: border-color 0.25s, background 0.25s;
  }

.faq-item[open] { border-color: hsl(188 95% 55% / 0.3); background: var(--surface-2); }

.faq-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: 100%; padding: 1.375rem 0;
    font-family: var(--display); font-weight: 500; font-size: var(--fs-body);
    color: var(--text); cursor: pointer; list-style: none; text-align: left;
  }

.faq-trigger::-webkit-details-marker { display: none; }

.faq-chev { transition: transform 0.25s ease; color: var(--text-3); }

.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }

.faq-body { color: var(--text-2); padding-bottom: 1.375rem; font-size: var(--fs-body); line-height: 1.65; }

.final-cta {
    text-align: center;
    border-top: 1px solid var(--border-soft);
    padding: 6rem 0 7rem;
  }

.final-cta h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 1.25rem; letter-spacing: -0.035em;
    max-width: 24ch; margin-left: auto; margin-right: auto;
  }

.final-cta p { color: var(--text-2); font-size: 1.0625rem; max-width: 36rem; margin: 0 auto 2.5rem; }

.final-ctas { display: inline-flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.rel-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) { .rel-grid { grid-template-columns: repeat(4, 1fr); } }

.rel-card {
    background: linear-gradient(180deg, hsl(220 22% 14%) 0%, hsl(220 25% 10%) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.3s ease, transform 0.4s ease;
  }

.rel-card:hover { border-color: hsl(188 95% 55% / 0.4); transform: translateY(-3px); }

.rel-card-img {
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem; position: relative; overflow: hidden;
  }

.rel-card-img::before {
    content: ""; position: absolute; inset: 25% 15%;
    background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
    filter: blur(40px);
    z-index: 0; opacity: 0.5;
  }

.rel-card-img img {
    position: relative; z-index: 1;
    max-height: 100%; max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px hsl(220 30% 0% / 0.5));
  }

.rel-card.guide .rel-card-img { background: hsl(220 22% 11%); }

.rel-card.guide .rel-card-img::before { display: none; }

.rel-card.guide .rel-card-img i { color: var(--accent); width: 56px; height: 56px; }

.rel-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    border-top: 1px solid var(--border-soft);
  }

.rel-card-cat {
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent); margin-bottom: 0.5rem;
  }

.rel-card-name {
    font-family: var(--display); font-weight: 700;
    font-size: 1.5rem; letter-spacing: -0.025em;
    margin-bottom: 0.5rem; line-height: 1.05;
    color: var(--text);
  }

.rel-card-desc { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; }

footer {
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0 2rem;
    background: hsl(220 28% 5%);
  }

.ft-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }

@media (min-width: 768px) { .ft-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }

.ft-brand h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.5rem; }

.ft-brand .partner-line {
    display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    font-family: var(--mono); font-size: var(--fs-label);
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent); margin-bottom: 1.25rem;
  }

.ft-cenobots-logo {
    height: 2.75rem; width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95; vertical-align: middle;
    margin: 0 0.25rem;
  }

.ft-brand p { color: var(--text-3); max-width: 22rem; font-size: var(--fs-small); margin-bottom: 1.5rem; }

.ft-contact { display: flex; flex-direction: column; gap: 0.5rem; }

.ft-contact a { color: var(--text-2); font-size: var(--fs-small); display: flex; align-items: center; gap: 0.5rem; }

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

.ft-col h4 {
    font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--text-3); margin-bottom: 1.25rem;
  }

.ft-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }

.ft-links a { color: var(--text-2); font-size: var(--fs-small); }

.ft-links a:hover { color: var(--text); }

.ft-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    display: flex; flex-direction: column; align-items: center; gap: 1rem; justify-content: space-between;
    color: var(--text-3); font-size: var(--fs-small);
  }

@media (min-width: 768px) { .ft-bottom { flex-direction: row; } }

.brand-logo-footer { height: 96px; width: auto; display: block; margin-bottom: 1.25rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.in { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.08s; }

.reveal.d2 { transition-delay: 0.16s; }

.reveal.d3 { transition-delay: 0.24s; }

/* Global keyboard focus indicator (visible outside the modal too). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =====================================================
   PRODUCT MEDIA — reusable across robot pages
   (multi-view gallery, scenario, walkthrough, capability loops)
   ===================================================== */

/* Multi-view viewer — one large backgroundless stage + a thumbnail strip.
   Standard gallery for every robot page; driven by site.js ([data-viewer]). */
.viewer { margin-top: 2.5rem; }
.viewer-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.viewer-main-wrap {
  position: relative; width: 100%;
  height: clamp(340px, 46vh, 540px);
  display: flex; align-items: center; justify-content: center;
}
/* Soft accent glow behind the unit — premium, backgroundless (matches hero) */
.viewer-main-wrap::before {
  content: ""; position: absolute; inset: 12% 18%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 75%);
  filter: blur(55px); opacity: 0.5; z-index: 0;
}
.viewer-main {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 26px 44px hsl(220 30% 0% / 0.55));
  transition: opacity 0.2s ease;
}
.viewer-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--border); background: hsl(220 22% 10% / 0.7);
  color: var(--text-2); cursor: pointer; backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.viewer-arrow:hover { border-color: var(--accent); color: var(--accent); }
.viewer-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viewer-prev { left: 0; }
.viewer-next { right: 0; }
.viewer-thumbs {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-top: 1.5rem;
}
.viewer-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  width: 5.25rem; padding: 0.5rem 0.4rem;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.viewer-thumb img { width: 100%; height: 3.25rem; object-fit: contain; }
.viewer-thumb span {
  font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3);
}
.viewer-thumb:hover { border-color: var(--border); }
.viewer-thumb[aria-selected="true"] { border-color: var(--accent); background: hsl(188 50% 14% / 0.25); }
.viewer-thumb[aria-selected="true"] span { color: var(--text); }
.viewer-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Detail strip — close-up product details (e.g. underside), not viewpoints.
   Media beside text so a detail reads compactly, not as a tall stack. */
.detail-strip {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem;
}
.detail-item {
  margin: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  padding: 1.5rem 1.75rem;
  background: hsl(220 22% 10%); border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
@media (min-width: 760px) {
  .detail-item { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 2rem; }
}
.detail-media { display: flex; align-items: center; justify-content: center; }
.detail-media img {
  display: block; width: auto; max-width: 100%; max-height: 320px;
  filter: drop-shadow(0 18px 30px hsl(220 30% 0% / 0.5));
}
.detail-text { text-align: left; }
.detail-text .detail-label {
  font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem;
}
.detail-text p { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; margin: 0; }

/* Scene stills — real deployment photos with environment captions */
.scene-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .scene-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.scene-item { margin: 0; }
.scene-item img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border-soft);
}
.scene-item figcaption {
  margin-top: 0.75rem; font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: 0.04em; color: var(--text-3); line-height: 1.5;
}

/* Walkthrough grid — multiple click-to-play feature videos */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 760px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.video-grid figure { margin: 0; }
.video-grid video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius); background: #000; border: 1px solid var(--border-soft);
}
.video-grid figcaption { margin-top: 0.85rem; }
.video-grid .v-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.25rem; }
.video-grid .v-desc { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; margin: 0; }
@media (prefers-reduced-motion: reduce) { .viewer-main { transition: none; } }

/* Scenario block — robot in its real setting, with a caption */
.scenario { margin-top: 2.5rem; }
.scenario figure { margin: 0; }
.scenario img { display: block; width: 100%; border-radius: var(--radius); }
.scenario figcaption {
  margin-top: 0.85rem; font-family: var(--mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
}

/* Walkthrough — click-to-play feature video */
.video-feature { margin-top: 2.5rem; max-width: 60rem; }
.video-feature video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius-lg); background: #000;
  border: 1px solid var(--border-soft);
}

/* Capability loops — short silent autoplay demos (gated in site.js) */
.cap-loops { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .cap-loops { grid-template-columns: repeat(3, 1fr); } }
.cap-loop { margin: 0; }
.cap-loop video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius); background: #000;
  border: 1px solid var(--border-soft);
}
.cap-loop figcaption { margin-top: 0.85rem; }
.cap-loop .cap-loop-name {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.cap-loop .cap-loop-desc { color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; margin: 0; }

/* =============================================================
   PHASE 2.5 — Shared honest-credibility components
   Reusable patterns deployed across the site. All copy below
   must remain factually defensible — no fabricated proof.
   ============================================================= */

/* ----- §1.1 Credibility strip -----
   Slim horizontal strip of 4–5 honest trust cues, placed under
   the hero. Mobile: scrolls horizontally with a hint of overflow.
   Markup pattern (uses <div> + role="list" rather than <aside>
   so the strip doesn't add a redundant ARIA landmark on pages
   that already have nav / main / contentinfo). Decorative ticks
   carry aria-hidden so screen readers don't read "check, check,
   check…" before each cue.
     <div class="cred-strip">
       <ul role="list" aria-label="Why Perth Robots">
         <li><i data-lucide="check" aria-hidden="true"></i>Owned &amp; operated in Perth</li>
         <li><i data-lucide="check" aria-hidden="true"></i>Servicing all of WA</li>
         <li><i data-lucide="check" aria-hidden="true"></i>Engineering-led — robotics &amp; autonomous systems</li>
         <li><i data-lucide="check" aria-hidden="true"></i>Multi-OEM — the right robot for your site</li>
         <li><i data-lucide="check" aria-hidden="true"></i>From as little as $50 a day</li>
       </ul>
     </div>
*/
.cred-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: hsl(220 25% 8%);
  padding: 0.875rem 0;
}
.cred-strip > ul {
  list-style: none; margin: 0 auto; padding: 0 1.5rem;
  max-width: var(--container);
  display: flex; flex-wrap: nowrap;
  gap: 0; column-gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cred-strip > ul::-webkit-scrollbar { display: none; }
.cred-strip li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 1.25rem;
  white-space: nowrap; flex-shrink: 0;
  font-family: var(--mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-2);
  border-left: 1px solid var(--border-soft);
}
.cred-strip li:first-child { border-left: 0; padding-left: 0; }
.cred-strip li i { color: var(--accent); flex-shrink: 0; width: 14px; height: 14px; }
@media (max-width: 760px) {
  .cred-strip > ul { padding: 0 1rem; }
  .cred-strip li { padding: 0.25rem 0.9rem; }
  /* Edge fade to hint horizontal scroll on phones */
  .cred-strip { position: relative; }
  .cred-strip::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0;
    width: 2.5rem; pointer-events: none;
    background: linear-gradient(90deg, transparent, hsl(220 25% 8%));
  }
}

/* ----- §1.2 "Why trust us" block -----
   Four honest cards on a banded background. Reusable.
   Markup pattern:
     <section class="trust-block" aria-labelledby="trust-h">
       <div class="wrap">
         <div class="lp-eyebrow">Why Perth Robots</div>
         <h2 id="trust-h" class="trust-block-title">Honest credibility, not just claims.</h2>
         <div class="trust-grid">
           <article class="trust-card"><i data-lucide="bot"></i><h3>Engineering-led.</h3><p>…</p></article>
           …
         </div>
       </div>
     </section>
*/
.trust-block {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-block-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0.75rem 0 1.5rem; max-width: 36rem;
}
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  padding: 1.5rem 1.6rem;
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.trust-card:hover { border-color: var(--border); transform: translateY(-2px); }
.trust-card > i {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: hsl(188 95% 55% / 0.1);
  color: var(--accent);
  border: 1px solid hsl(188 95% 55% / 0.2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-card h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -0.01em; margin: 0.4rem 0 0;
}
.trust-card p {
  color: var(--text-2); font-size: var(--fs-body); line-height: 1.55; margin: 0;
}
.trust-card a { color: var(--accent); text-decoration: none; }
.trust-card a:hover { text-decoration: underline; }

/* ----- §1.3 Risk-reversal line -----
   One-line attribution near CTAs / price points. Two variants:
     <p class="risk-reversal">…</p>           (block, dim)
     <span class="risk-reversal-inline">…</span> (inline, dim)
   Standard copy lives in markup (not CSS) so each page can vary
   slightly — but defaults to:
     "A subscription, not a capital purchase — low commitment,
      and the risk sits with us."
*/
.risk-reversal {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-small); line-height: 1.55;
  max-width: 38rem; margin-top: 1rem;
}
.risk-reversal::before {
  content: ""; display: inline-block;
  width: 1.75rem; height: 1px; background: var(--accent);
  vertical-align: middle; margin-right: 0.625rem;
}
.risk-reversal-inline {
  color: var(--text-3); font-size: var(--fs-small);
}

/* ----- §3.4 Comparison table → stacked cards on mobile -----
   Above 700px: existing .cmp-table (already styled). Below 700px:
   the same data should be marked up as one .cmp-card per row, each
   with key/value pairs. We DON'T transform the table itself (DOM-
   level reflow is what we want, not CSS that confuses screen
   readers). Pages opting in include both the table AND a parallel
   .cmp-cards block; CSS shows one at each breakpoint.
   Markup pattern (parallel to existing table):
     <div class="cmp-cards" aria-hidden="false">
       <article class="cmp-card">
         <h3 class="cmp-card-title">RaaS · from $50/day</h3>
         <dl>
           <dt>Commitment</dt><dd>Low — monthly subscription</dd>
           <dt>Ownership</dt><dd>Stays a subscription</dd>
           …
         </dl>
       </article>
       …
     </div>
*/
.cmp-cards { display: none; }
/* Threshold matches the table's intrinsic min-width (720px) so
   there's no narrow window where the table is shown but forced
   into horizontal scroll. */
@media (max-width: 760px) {
  .cmp-table-wrap { display: none; }
  .cmp-cards {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    margin-top: 2rem;
  }
}
.cmp-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.cmp-card.is-featured {
  border-color: hsl(188 95% 55% / 0.45);
}
.cmp-card-title {
  font-family: var(--display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: -0.012em;
  margin: 0 0 0.85rem;
}
.cmp-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.cmp-card dt {
  font-family: var(--mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3);
}
.cmp-card dd {
  margin: 0.15rem 0 0;
  color: var(--text-2); font-size: var(--fs-body); line-height: 1.5;
}

/* ----- §2.1 Sticky/condensed mobile CTA -----
   Slim persistent bar on mobile only; hidden on desktop. Anchors
   the primary low-commitment action so it's always one tap away
   on long pages. Pages opt in by including the markup; CSS handles
   visibility.
   Markup pattern (place once near end of <body>):
     <div class="sticky-cta" data-screen-label="Sticky CTA">
       <button class="btn btn-primary" type="button" data-quote-trigger>
         Find your robot <span class="arrow">→</span>
       </button>
       <a class="sticky-cta-phone" href="tel:+61406607399"
          aria-label="Call Perth Robots">
         <i data-lucide="phone" style="width:18px;height:18px;"></i>
       </a>
     </div>
*/
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; align-items: center; gap: 0.6rem;
    position: fixed; left: 0.75rem; right: 0.75rem;
    /* iOS safe-area aware so the bar clears the home-indicator on
       notched devices and never sits under the dynamic URL bar. */
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    z-index: 40; padding: 0.55rem 0.55rem 0.55rem 0.85rem;
    background: hsl(220 28% 7% / 0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: 0 10px 30px hsl(220 30% 0% / 0.45);
  }
  .sticky-cta .btn { flex: 1; padding: 0.7rem 1rem; font-size: var(--fs-small); }
  .sticky-cta-phone {
    width: 2.5rem; height: 2.5rem; flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: hsl(0 0% 100% / 0.04); color: var(--text);
    border: 1px solid var(--border);
  }
  .sticky-cta-phone:hover { color: var(--accent); border-color: hsl(188 95% 55% / 0.5); }
  .sticky-cta-phone:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Reserve room at page bottom so the sticky bar never overlaps the footer's last line — uses the same safe-area-aware spacing as the bar. */
  body.has-sticky-cta { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ----- §5 Split hero (no text-only heroes) -----
   Mirrors the homepage hero's two-column treatment: text-left,
   image-right at ≥1024px, stacked on mobile. Opt in by wrapping
   the hero content in .lp-hero-grid with .lp-hero-text + .lp-hero-media.
   The media column is decorative — alt text describes the unit /
   environment, never an implied client deployment.
   Markup pattern:
     <section class="lp lp-hero lp-hero-split">
       <div class="wrap">
         <div class="lp-hero-grid">
           <div class="lp-hero-text">…hero copy…</div>
           <figure class="lp-hero-media">
             <img src="public/images/fleet/s5-hero.webp"
                  alt="Cenobots S5 autonomous sweeper"
                  width="1400" height="1400"
                  loading="eager" fetchpriority="high" decoding="async">
           </figure>
         </div>
       </div>
     </section>
*/
.lp-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .lp-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}
.lp-hero-text { min-width: 0; }
.lp-hero-media {
  margin: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.lp-hero-media img {
  width: 100%; height: auto; max-width: 36rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px hsl(220 30% 0% / 0.45));
}
@media (max-width: 1023px) {
  /* Mobile: text first (H1 above the fold), then image — never the
     other way around so screen-reader / SEO order matches reading order. */
  .lp-hero-media img { max-width: 22rem; }
}
