/* PrimeBlueText — a Prime Automation Solutions service
   Single cohesive visual system: single-accent "trusted vendor" B2B.
   Palette: brand blue #0A7CFF (sole hero accent) on warm off-white #FBFAF7,
   ink-navy #0E1A2B body/headline, slate-gray #5B6B7E secondary,
   soft success-green #1E9E6A reserved for positive caveat + checkmarks. */

:root {
  --blue: #0A7CFF;
  --blue-deep: #0764D6;
  --blue-tint: #EAF3FF;
  --canvas: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #0E1A2B;
  --slate: #5B6B7E;
  --slate-soft: #8896A6;
  --green: #1E9E6A;
  --green-deep: #0D5C3D;
  --green-tint: #E7F6EF;
  --blue-soft: #5FA8FF;
  --neutral-wash: #F4F5F7;
  --line: #E7E2D8;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.04), 0 2px 8px rgba(14, 26, 43, 0.05);
  --shadow-md: 0 6px 24px rgba(14, 26, 43, 0.08), 0 2px 6px rgba(14, 26, 43, 0.04);
  --shadow-blue: 0 8px 24px rgba(10, 124, 255, 0.28);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-bubble: 22px;
  --maxw: 1120px;
  --space: clamp(4rem, 9vw, 7rem);
  --font-head: "Space Grotesk", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); letter-spacing: -0.005em; }

p { margin: 0 0 1rem; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

img, svg { max-width: 100%; height: auto; display: block; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.section { padding: var(--space) 0; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 0.9rem;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--slate); max-width: 46ch; }
.eyebrow-green { color: var(--green-deep); }
.eyebrow-blue-soft { color: var(--blue-soft); }
.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: 10px; z-index: 100; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--blue-deep); color: #fff; box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: #0A4FAA; color: #fff; transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--surface); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }

/* ---- Hero (asymmetric, left-aligned editorial) ---- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -20%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(10,124,255,0.18), rgba(10,124,255,0) 64%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 50ch; margin-bottom: 2rem; color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.75rem; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: 0.9rem; color: var(--slate); align-items: center;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-strip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---- Hero bubble visual cue (NOT an iOS clone — a brand signature) ---- */
.hero-visual { position: relative; }
.bubble-stack {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-md);
  max-width: 380px; margin-left: auto;
}
.bubble {
  position: relative; padding: 0.85rem 1.15rem; border-radius: var(--radius-bubble);
  font-size: 0.98rem; max-width: 86%; line-height: 1.45;
}
.bubble-in { background: #EEF1F4; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble-out { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; box-shadow: var(--shadow-blue); }
.bubble-meta { font-size: 0.72rem; color: var(--slate-soft); align-self: flex-end; letter-spacing: 0.04em; margin-top: -0.4rem; }

/* Typing indicator that resolves into the outbound bubble */
.bubble-typing { background: #EEF1F4; align-self: flex-start; border-bottom-left-radius: 6px; padding: 0.95rem 1.15rem; }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-soft); display: block; }

/* Hero load sequence: in → typing → out → meta. Stagger via animation-delay. */
.anim-in, .anim-typing, .anim-out, .anim-meta { opacity: 0; }
@keyframes bubble-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bubble-rise-fade-out { 0% { opacity: 0; transform: translateY(10px); } 18% { opacity: 1; transform: translateY(0); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); height: 0; padding: 0; margin: 0; } }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-4px); opacity: 1; } }

.anim-in { animation: bubble-rise 0.45s ease both; animation-delay: 0.15s; }
.anim-typing { animation: bubble-rise-fade-out 1.5s ease both; animation-delay: 0.7s; }
.anim-out { animation: bubble-rise 0.5s ease both; animation-delay: 2.0s; }
.anim-meta { animation: bubble-rise 0.45s ease both; animation-delay: 2.45s; }
.anim-typing .typing-dots i { animation: typing-bounce 1.2s ease-in-out infinite; }
.anim-typing .typing-dots i:nth-child(2) { animation-delay: 0.18s; }
.anim-typing .typing-dots i:nth-child(3) { animation-delay: 0.36s; }

/* Reduced motion: show everything in final state, hide the transient typing bubble */
@media (prefers-reduced-motion: reduce) {
  .anim-in, .anim-out, .anim-meta { opacity: 1; }
  .anim-typing { display: none; }
}

/* ---- Generic content cards ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-spaced { margin-top: 2.25rem; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0.25rem; }
.card p { color: var(--slate); margin-bottom: 0; }

/* ---- Credibility band ---- */
.credibility { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credibility .lede { max-width: 58ch; }

/* ---- Who it's for (two-halves qualifier) ---- */
.qualifier { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 760px) { .qualifier { grid-template-columns: 1fr 1fr; } }
.qual-card { border-radius: var(--radius); padding: 1.75rem 1.6rem; border: 1px solid var(--line); }
.qual-fit { background: var(--blue-tint); border-color: #CFE3FF; }
.qual-nofit { background: var(--neutral-wash); border-color: #D9DDE3; }
.qual-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.qual-card ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.qual-card li { position: relative; padding-left: 1.9rem; margin-bottom: 0.85rem; color: var(--ink); }
.qual-card li:last-child { margin-bottom: 0; }
.qual-fit li::before {
  content: ""; position: absolute; left: 0; top: 0.15rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--green); -webkit-mask: var(--check) center / 0.8rem no-repeat; mask: var(--check) center / 0.8rem no-repeat;
}
.qual-nofit li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  border: 2px solid var(--slate);
}
.audience-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.tag {
  font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}

/* ---- How it works (numbered steps) ---- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2.25rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); }
/* Connector line between numbered steps on desktop — reads as a process, not a grid */
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: calc(1.75rem + 1.2rem); left: calc(100% + 1px);
    width: 1.25rem; height: 2px; background: var(--line); z-index: 1;
  }
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--blue-deep); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--slate); margin-bottom: 0; }
.note-line { margin-top: 1.75rem; font-size: 0.98rem; color: var(--slate); }
.note-line strong { color: var(--ink); }

/* ---- Included list ---- */
.included { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .included { grid-template-columns: 1fr 1fr; } }
.included li {
  position: relative; padding: 1.1rem 1.25rem 1.1rem 3.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.included li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--green);
  -webkit-mask: var(--check) center / 0.85rem no-repeat; mask: var(--check) center / 0.85rem no-repeat;
}
.included strong { display: block; font-family: var(--font-head); font-weight: 600; }
.included span { color: var(--slate); font-size: 0.95rem; }

/* ---- Honest caveat (positive, success-green) ---- */
.caveat { background: var(--green-tint); border-top: 1px solid #CDEBDC; border-bottom: 1px solid #CDEBDC; }
.caveat .wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .caveat .wrap { grid-template-columns: auto 1fr; } }
.caveat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; flex: none;
}
.caveat h2 { color: var(--green-deep); }
.caveat p { color: #1A4A37; max-width: 60ch; margin-bottom: 0; font-size: 1.1rem; }

/* ---- Pricing ---- */
.price-card {
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--surface) 22%);
  border: 1px solid #CFE3FF; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(2rem, 4vw, 3rem); max-width: 560px; width: 100%;
  text-align: center; position: relative; overflow: hidden; margin-top: 1.5rem;
  transform: translateY(0);
}
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--blue); }
.price-amount { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; }
.price-amount .big { font-size: clamp(2.6rem, 7vw, 3.6rem); color: var(--ink); }
.price-amount .per { font-size: 1.15rem; color: var(--slate); }
.price-setup { color: var(--slate); margin-top: 0.25rem; font-size: 1.05rem; }
.price-terms { color: var(--slate); font-size: 0.98rem; margin: 0.75rem 0 1.5rem; }
.price-card .btn-primary { width: 100%; justify-content: center; }
.risk-reversal {
  margin-top: 1.5rem; padding: 0.95rem 1.1rem; border-radius: 14px;
  background: var(--green-tint); border: 1px solid #CDEBDC; color: #1A4A37;
  font-size: 0.98rem; display: inline-flex; align-items: center; gap: 0.6rem;
}
.risk-reversal strong { color: var(--green-deep); }
.risk-reversal a { color: var(--green-deep); font-weight: 600; }
.price-fitcheck { color: var(--slate); font-size: 0.92rem; margin: 1rem 0 0; line-height: 1.5; }
.price-fitcheck a { font-weight: 600; }

/* ---- Final CTA band ---- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: -8%; bottom: -40%;
  width: 40vw; height: 40vw; max-width: 480px; max-height: 480px;
  background: radial-gradient(circle, rgba(10,124,255,0.35), rgba(10,124,255,0) 62%); pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band .lede { color: #B9C4D2; max-width: 52ch; }
.cta-band .hero-actions { margin-top: 2rem; margin-bottom: 1rem; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.cta-reassure { color: #8FA0B4; font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq { margin-top: 3rem; max-width: 720px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.14); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0; font-family: var(--font-head);
  font-weight: 600; font-size: 1.1rem; color: #fff; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: #B9C4D2; padding: 0 0 1.25rem; margin: 0; max-width: 62ch; }

/* ---- Footer ---- */
.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: 2.75rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; color: var(--slate); font-size: 0.92rem; }
.site-footer .foot-brand { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--blue-deep); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-links a { color: var(--slate); font-size: 0.92rem; }

/* ---- Legal pages (terms / privacy) ---- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 2.25rem; }
.legal .legal-updated { color: var(--slate-soft); font-size: 0.92rem; margin-bottom: 2rem; }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.65rem; }
.legal strong { color: var(--ink); }

/* ---- Thank-you page ---- */
.thanks-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; text-align: center; }
.thanks-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(2.25rem, 5vw, 3.5rem); max-width: 560px;
}
.thanks-bubble {
  width: 76px; height: 76px; border-radius: 50%; background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-blue);
}
.thanks-card h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.thanks-card p { color: var(--slate); font-size: 1.1rem; }
.thanks-card .btn { margin-top: 1.75rem; }

/* SVG check mask token (used by ::before mask) */
:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
