/* red-robot.net stylesheet
   1. Tokens: change colours, fonts and spacing here only.
   2. Base   3. Layout   4. Components   5. Robot details   6. Page sections
   The palette comes from the robot logo: dark teal outline, cream body,
   mint side panel and coral screen.
   Rule: pages never carry inline styles. Add a component here instead. */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --teal: #1a4d4d;         /* logo outline: dark blocks, footer */
  --teal-ink: #0f3131;     /* headings and text on coral */
  --teal-2: #24605f;       /* cards on dark blocks */
  --mint: #a8d5c0;         /* logo side panel: cards, highlights */
  --mint-soft: #e3f2eb;
  --coral: #ff6b6b;        /* logo screen: buttons, dots */
  --coral-ink: #d13a3a;    /* coral text on light backgrounds (AA) */
  --coral-light: #ff8a85;  /* coral text on dark teal (AA) */
  --cream: #f9f7f4;        /* logo body: page sections */
  --ink: #123b3b;          /* body text */
  --muted: #4f6464;
  --line: #dde7e2;
  --paper: #ffffff;
  --dots: rgba(26, 77, 77, 0.13);

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);

  --radius: 22px;          /* rounded like the robot's body */
  --radius-sm: 12px;
  --wrap: 1180px;
  --narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3rem, 7vw, 6rem);
  --shadow: 0 12px 30px rgba(15, 49, 49, 0.12);
}

/* 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.6em; color: var(--teal-ink); letter-spacing: -0.015em; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: .5rem 1rem; }

/* The signature headline: big, upright, tight. */
.shout {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-ink);
  line-height: 1.02;
}
h1.shout { font-size: var(--step-4); }
h2.shout { font-size: var(--step-3); }
.shout-sm { font-size: var(--step-2) !important; }
.hl { color: var(--coral-ink); }
.lede { font-size: var(--step-1); max-width: 46rem; color: var(--ink); }

/* 3. Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding: var(--space) 0; }
.section-tight { padding: calc(var(--space) / 2.5) 0; }
/* Dot pattern, like a circuit board. Class name kept for the templates. */
.grid-bg {
  background-color: var(--cream);
  background-image: radial-gradient(var(--dots) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}

/* 4. Components -------------------------------------------------------- */
/* Button: rounded rectangle with a "power light" dot. */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--coral); color: var(--teal-ink); text-decoration: none;
  font-family: var(--font); font-weight: 700; font-size: var(--step-0);
  padding: .8rem 1.3rem; border-radius: var(--radius-sm);
  border: 2px solid var(--teal-ink); cursor: pointer;
  box-shadow: 0 4px 0 var(--teal-ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn::before {
  content: ""; width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 2px var(--teal-ink);
  transition: background .15s, box-shadow .15s;
}
.btn:hover { color: var(--teal-ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--teal-ink); }
.btn:hover::before { background: var(--mint); box-shadow: 0 0 0 2px var(--teal-ink), 0 0 10px 2px var(--mint); }
.btn-sm { font-size: var(--step--1); padding: .5rem .95rem; }
.btn-light { background: var(--cream); }
.btn-light::before { background: var(--coral); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -0.02em; }
.brand-sub { display: block; font-family: var(--font); font-weight: 700; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--coral-ink); margin-top: .2rem; }
/* Main menu */
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--teal-ink); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"], .site-nav a:not(.btn):hover { color: var(--coral-ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .header-inner { position: relative; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
    padding: .5rem .8rem; border: 2px solid var(--teal-ink); border-radius: var(--radius-sm);
    background: #fff; color: var(--teal-ink); font: inherit; font-weight: 700; cursor: pointer;
  }
  .menu-icon { display: grid; gap: 4px; }
  .menu-icon span { display: block; width: 20px; height: 2.5px; background: var(--teal-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: .5rem var(--gutter) 1.5rem; border-bottom: 2px solid var(--teal); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .site-nav .btn { justify-content: center; }
}
/* Without JavaScript, show the menu stacked instead of hiding it. */
@media (max-width: 860px) { html:not(.js) .menu-toggle { display: none; } html:not(.js) .site-nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 1rem; } html:not(.js) .header-inner { flex-wrap: wrap; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--step--1); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.card { border-radius: var(--radius); padding: 1.8rem; background: #fff; border: 2px solid var(--line); }
.card-mint { background: var(--mint); border-color: var(--teal-ink); }
.card-dark { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.card-dark h2, .card-dark h3 { color: var(--cream); }
.card-link { position: relative; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; padding-bottom: 3.8rem; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); border-color: var(--teal); }
.card-link h2, .card-link h3 { color: var(--teal-ink); }
/* "Go" light in the corner of each card, like the button on the robot's side. */
.card-link .arrow { position: absolute; left: 1.8rem; bottom: 1.4rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--teal-ink); }
.card-link:hover .arrow { box-shadow: 0 0 0 3px var(--teal-ink), 0 0 12px 3px rgba(255,107,107,.6); }

/* Stats: framed like the robot's screen. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1.25rem; }
.stat {
  position: relative; background: var(--cream); border: 5px solid var(--teal);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: inset 0 0 0 5px var(--mint);
}
.stat::before, .stat::after {
  content: ""; position: absolute; top: -17px; width: 4px; height: 12px; background: var(--teal);
}
.stat::before { left: 22%; }
.stat::after { right: 22%; }
.stat-n { display: block; font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; color: var(--coral-ink); line-height: 1; margin-bottom: .5rem; letter-spacing: -0.03em; }
.stat-l { display: block; font-size: var(--step--1); color: var(--ink); }
.stats { padding-top: 14px; }

/* Short answer box: the paragraph AI tools quote */
.answer-box { border: 2px solid var(--teal); background: var(--mint-soft); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.answer-box h2 { font-size: var(--step-1); margin-bottom: .4rem; }
.answer-box p { margin: 0; }

/* Prose (page body text) */
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ol li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--teal-ink); }
.prose blockquote { margin: 1.5em 0; padding: 1.2rem 1.5rem; background: var(--mint-soft); border-radius: var(--radius); }
.updated { font-size: var(--step--1); color: var(--muted); margin-top: 2.5em; }

/* Questions */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: .5rem; top: 1.45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 2px var(--teal-ink); }
.qa[open] summary::after { background: var(--coral); }
.qa summary h3 { margin: 0; font-size: var(--step-1); }
.qa-a { padding-bottom: 1rem; }

/* Testimonials */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.quote { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.quote p { font-size: var(--step-0); }
.quote footer { font-weight: 700; color: var(--teal-ink); font-size: var(--step--1); }

/* Logo strip */
.logos { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.logos li { font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: var(--step-1); opacity: .8; }

/* Form */
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--teal-ink); font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius-sm); padding: .75rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--mint); }
.form-note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.enquiry .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .enquiry { grid-template-columns: 1fr; } }

/* 5. Robot details ----------------------------------------------------- */
/* Eyebrow labels get the robot's eyes: a coral screen with two eyes. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; text-transform: uppercase; color: var(--teal);
  letter-spacing: .12em; font-size: .78rem; margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; flex: none; width: 30px; height: 18px; border-radius: 6px;
  background:
    radial-gradient(circle at 32% 50%, var(--cream) 0 3px, transparent 3.5px),
    radial-gradient(circle at 68% 50%, var(--cream) 0 3px, transparent 3.5px),
    var(--coral);
  box-shadow: 0 0 0 2.5px var(--teal-ink);
}
/* List bullets are antenna tips. */
.prose ul { list-style: none; padding-left: 1.6rem; }
.prose ul li { position: relative; margin-bottom: .55em; }
.prose ul li::before {
  content: ""; position: absolute; left: -1.45rem; top: .45em;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal);
}
.prose ul li::after {
  content: ""; position: absolute; left: calc(-1.45rem + .26rem - 1px); top: calc(.45em + .55rem);
  width: 2px; height: .45rem; background: var(--teal);
}

/* 6. Page sections ----------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-home h1 { max-width: 16ch; }
.hero-home .lede { margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; }
.hero-actions a:not(.btn) { font-weight: 700; color: var(--teal-ink); }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.band-dark { background: var(--teal); color: var(--cream); }
.band-dark .shout { color: var(--cream); }
.band-dark .eyebrow { color: var(--mint); }
.band-dark a:not(.btn) { color: var(--coral-light); }
.band-dark .card { background: var(--teal-2); border-color: var(--teal-2); color: var(--cream); }
.band-dark .card h3 { color: var(--cream); }
.band-dark .card-link:hover { border-color: var(--mint); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 2px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); background: var(--mint); color: var(--teal-ink); font-family: var(--font-display); font-weight: 800; margin-bottom: .8rem; box-shadow: 0 0 0 2px var(--teal-ink); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; }

.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.25rem; }
.cta-grid .card { padding: 2.2rem; }
.cta-grid .shout { font-size: var(--step-2); }
.cta-grid .card-dark .shout { color: var(--cream); }
.enquire { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.site-footer { background: var(--teal); color: #e6efeb; padding: var(--space) 0 2rem; }
.site-footer a { color: #fff; }
.site-footer .btn, .site-footer .btn:hover { color: var(--teal-ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-shout { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: #fff; line-height: 1.1; letter-spacing: -0.02em; }
.footer-h { color: var(--mint); font-family: var(--font); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .8rem; color: #c9dad4; }

.thanks { text-align: center; }
.thanks .lede { margin-left: auto; margin-right: auto; }

/* Cookie banner */
.consent { position: fixed; z-index: 20; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-left: auto; background: #fff; border: 2px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; font-size: var(--step--1); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .8rem; }
.consent-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Free guides */
.byline { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }
.guide-cta { margin-top: 2.5rem; }
.hub-link { display: block; margin-bottom: 3rem; } .hub-link .shout { margin-bottom: .4rem; }

/* Mobile polish */
h1, h2, h3, .lede { overflow-wrap: break-word; }
[id] { scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card, .cta-grid .card { padding: 1.4rem; }
  .card-link { padding-bottom: 3.4rem; }
  .card-link .arrow { left: 1.4rem; }
  .hero-actions .btn, .enquiry .btn { width: 100%; justify-content: center; }
  .stat { padding: 1.2rem 1.1rem; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 38px; height: 38px; }
  .consent { left: .75rem; right: .75rem; bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
html, body { overflow-x: clip; }
.band-dark a.card-link, .band-dark a.card-link:hover { color: var(--cream); }
.band-dark .lede, .band-dark p { color: var(--cream); }
