/* Partners in Automation — site styles
   No external fonts or CDNs (privacy, speed). System font stack.
   Palette: ink/navy for trust, deep teal accent (WCAG AA on white). */

:root {
  --ink: #0b1f33;
  --navy: #12355b;
  --navy-2: #1d4b7a;
  --accent: #0b7a6c;
  --accent-dark: #075e53;
  --accent-soft: #e6f4f1;
  --text: #1c2b3a;
  --muted: #4a5b6e;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-ink: #0b1f33;
  --warn-soft: #fff7e6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .06);
  --shadow-lg: 0 2px 4px rgba(11, 31, 51, .06), 0 16px 40px rgba(11, 31, 51, .10);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
small, .small { font-size: .9rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-ink { background: var(--bg-ink); color: #dbe6f2; }
.section-ink h2, .section-ink h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.section-ink .eyebrow { color: #6fd3c4; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: #c9d3df; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef3f8; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 760; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name span { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

/* LOGO PLACEHOLDER — replace with <img src="assets/img/logo.svg" alt="Partners in Automation logo" width="44" height="44"> */
.logo-placeholder {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px;
  border: 2px dashed #9fb0c3; background: repeating-linear-gradient(45deg, #f5f7fa, #f5f7fa 6px, #eef2f6 6px, #eef2f6 12px);
  display: grid; place-items: center; font-size: .56rem; font-weight: 800; letter-spacing: .08em; color: #6a7f95;
}
.logo-placeholder.lg { width: 56px; height: 56px; flex-basis: 56px; font-size: .62rem; }
.site-footer .logo-placeholder { border-color: #4f6a86; background: rgba(255,255,255,.04); color: #a8bbd0; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a.nav-link { color: var(--text); text-decoration: none; font-weight: 550; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }
.nav .btn { padding: .65rem 1.1rem; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); background:
  radial-gradient(900px 420px at 85% 10%, rgba(11,122,108,.08), transparent 60%),
  radial-gradient(700px 380px at 0% 0%, rgba(18,53,91,.06), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { max-width: 560px; margin-bottom: 1.8rem; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.check { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.5rem; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; } }

/* Workflow illustration */
.flow { display: grid; gap: .65rem; }
.flow-step { display: grid; grid-template-columns: 40px 1fr auto; gap: .8rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.flow-step .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.flow-step .icon.navy { background: #e8eef6; color: var(--navy); }
.flow-step .icon.amber { background: var(--warn-soft); color: #9a6200; }
.flow-step strong { display: block; color: var(--ink); font-size: .98rem; }
.flow-step span { color: var(--muted); font-size: .86rem; }
.flow-tag { font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); white-space: nowrap; }
.flow-tag.human { background: var(--warn-soft); color: #8a5800; }
.flow-connector { height: 14px; width: 2px; background: repeating-linear-gradient(to bottom, #b8c6d6 0 4px, transparent 4px 8px); margin-left: 29px; }
.flow-caption { margin-top: 1rem; font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; }

/* Grids & cards */
.grid { display: grid; gap: 1.25rem; }
/* Same trap as .two-col: 1fr tracks have min-width:auto, so an unbreakable child (a long
   email address) widens the track and the page overflows on small screens. */
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #c8d6e3; color: inherit; }
.card .meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill { font-size: .8rem; font-weight: 650; padding: .3rem .65rem; border-radius: 999px; background: var(--bg-alt); color: var(--navy); border: 1px solid var(--line); }
.pill.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #cfe9e4; }

.problem { border-left: 4px solid var(--accent); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { position: relative; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 750; margin-bottom: .9rem; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Feature list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.checklist li svg { margin-top: .2rem; }
.checklist strong { color: var(--ink); }
.section-ink .checklist strong { color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }/* 1fr tracks resolve to min-width:auto, so a wide child (an embed with a min-width) blows
   the track out and pushes the page into horizontal scroll. minmax(0,1fr) lets the track
   shrink and keeps the overflow inside the child that is meant to scroll. */
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* Pricing / services tables */
.service-group { margin-bottom: 3rem; }
.service-card { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.service-card .price { text-align: right; }
.service-card .price strong { display: block; font-size: 1.45rem; color: var(--ink); font-weight: 760; line-height: 1.1; }
.service-card .price span { font-size: .85rem; color: var(--muted); }
.service-card ul { margin: .6rem 0 0; color: var(--muted); font-size: .97rem; }
.service-card ul li { margin-bottom: .25rem; }
@media (max-width: 640px) { .service-card { grid-template-columns: 1fr; } }

.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }
.tier { border-top: 4px solid var(--navy); }
.tier.featured { border-top-color: var(--accent); }
.tier .price strong { font-size: 2rem; color: var(--ink); font-weight: 780; }
.tier .price span { color: var(--muted); }
.tier ul { padding-left: 0; list-style: none; margin: 1rem 0 0; display: grid; gap: .5rem; font-size: .97rem; }
.tier ul li { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 680; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

/* Notes & callouts */
.callout { border: 1px solid #cfe9e4; background: var(--accent-soft); border-radius: var(--radius); padding: 1.25rem 1.4rem; overflow-wrap: anywhere; }
.callout.neutral { background: var(--bg-alt); border-color: var(--line); }
.callout h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); color: #dbe6f2; border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Forms & embeds */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .93rem; color: var(--ink); display: block; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #c9d3df; border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(11,122,108,.18); }
textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.embed-placeholder {
  border: 2px dashed #9fb0c3; border-radius: var(--radius); min-height: 380px; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f3f6f9 10px, #f3f6f9 20px); color: #5d7189; padding: 2rem;
}
.embed-placeholder strong { display: block; color: var(--ink); margin-bottom: .3rem; }

/* The contact form sits alone under the calendar; keep the line length readable. */
.form-narrow { max-width: 760px; margin-inline: auto; }

/* Booking embed — Zoho CRM Bookings (D-52).
   The widget is a cross-origin iframe: the page's interior is themed inside Zoho, not here.
   The palette and the Zoho settings are in zoho-theme.md. What we own is the frame:
   the card, the border, the radius, the background, and its size. */
.booking-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;                 /* the widget needs a 380px minimum — see below */
  overscroll-behavior-x: contain;   /* a sideways swipe stays in this card, not the page */
  background: var(--bg);
  box-shadow: var(--shadow);
  color-scheme: light;
  /* Full container width, capped where Zoho stops using it. Measured 2026-11-05: day
     cells grow with the frame up to a 100px maximum, and the seven-cell strip needs 980px
     to show a full week without the swipe arrows. 1000px is the first width where both are
     true — day cells go from 43px (in the old 514px column) to 100px. Past ~1000px the
     frame only adds margin: the details step keeps a fixed ~375px inner column whatever the
     width, so going wider just spreads that column out in white. */
  max-width: 1000px;
  margin-inline: auto;
}
.booking-embed iframe {
  display: block;
  border: 0;
  background: var(--bg);
  width: 100%;
  /* HEIGHT — the Zoho document lays out at a fixed ~1104px and does not shrink to fit the
     frame, so a short box puts the lower time slots behind a scroll inside the widget.
     Measured on the live page 2026-11-05, at every width from 320 to 1070px: the calendar
     step is 1104px tall, the details step 785px. 1120 shows both without scrolling; the
     slack covers Zoho's own rounding. Do not tune this down to reclaim the white space —
     that space is the slot list's reserved room, so a busy day fills it with real slots. */
  height: 1120px;
  /* WIDTH — Zoho's details step cuts off its own summary banner below 380px (measured:
     33px clipped at 348px, nothing at 380px). A phone gives the column about 350px, so the
     card scrolls sideways by those few pixels instead of hiding content. */
  min-width: 380px;
}
@media (max-width: 860px) { .booking-embed iframe { height: 1140px; } }
@media (max-width: 430px) { .booking-embed iframe { height: 1160px; } }

/* Page header (inner pages) */
.page-hero { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 720px; }

/* Legal pages */
.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal table { margin: 1rem 0 1.5rem; border: 1px solid var(--line); }
.legal .draft-note { margin-bottom: 2rem; }

/* Footer */
.site-footer { background: var(--bg-ink); color: #b8c7d8; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #d6e2ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name span { color: #9fb3c8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #8ea3b9; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.pt-0 { padding-top: 0; }

/* Refinements */
.btn, button, input, select, textarea { font-family: inherit; }
.site-footer .muted { color: #9fb3c8; }
.legal .table-wrap { margin: 1rem 0 1.5rem; }
.legal table { margin: 0; border: 0; }
@media (max-width: 480px) {
  .flow-step { grid-template-columns: 40px 1fr; }
  .flow-tag { grid-column: 2; justify-self: start; margin-top: -.2rem; }
  .hero-card { padding: 1rem; }
}

.tier-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .tier-grid-3 { grid-template-columns: 1fr; } }

/* Reliability */
.guarantee { border-top: 4px solid var(--accent); }
.flow-step.monitor { border-style: dashed; background: #fbfcfd; }
.sample-badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff1d6; color: #8a5800; border: 1px solid #f3d9a4; border-radius: 999px; padding: .25rem .7rem; margin-bottom: .8rem; }
.status-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: #18a36b; margin-right: .35em; vertical-align: baseline; }
.status-dot.amber { background: #e0a100; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.25rem 0; }
.kpi { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.kpi strong { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.kpi span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare .card h3 { display: flex; gap: .5rem; align-items: center; }
.compare .bad { border-top: 4px solid #c9d3df; }
.compare .good { border-top: 4px solid var(--accent); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Service notes */
.service-note { font-size: .85rem; color: var(--muted); }
