/* ==========================================================================
   Rapt Multimedia: styles.css
   Palette sampled from the supplied logo files: blue #0096FF, green #73FA79, white.
   Navy is a derived dark shade used for text (white on #0096FF is only 3.1:1).
   Animations: every rule's base state is the finished state, so if animation is
   switched off (reduced motion) or unsupported, nothing is hidden or broken.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue: #0096FF;
  --green: #73FA79;
  --navy: #06223F;
  --blue-ink: #0068B8;          /* small text and links on light backgrounds (5.7:1 on white) */
  --paper: #F4FAFF;
  --mist: #E3F3FF;
  --ink: var(--navy);
  --ink-soft: #2F4A66;
  --focus: var(--blue-ink);

  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 48px;                 /* radius of the stacked section tops */
  --shadow: 0 1px 2px rgba(6, 34, 63, .06), 0 14px 32px -14px rgba(6, 34, 63, .32);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 72rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);      /* matches the footer when a browser over-scrolls */
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* Icons are stroked line icons defined in the sprite */
.icon {
  width: 1.5rem; height: 1.5rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }

h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.05; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.015em; }

.eyebrow {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(6, 34, 63, .09);
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.section__head { display: grid; gap: 1rem; justify-items: start; max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { justify-items: center; text-align: center; margin-inline: auto; }
.section__sub { font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); color: var(--ink-soft); max-width: 38rem; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1.0625rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(6, 34, 63, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -12px rgba(6, 34, 63, .6); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.25rem; height: 1.25rem; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(4px); }
.btn--green { --bg: var(--green); --fg: var(--navy); }
.btn--sm { padding: .8rem 1.25rem; font-size: 1rem; }
.btn--block { width: 100%; }

.text-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em;
  transition: text-underline-offset .2s ease;
}
.text-link:hover { text-underline-offset: .5em; }

/* ---------- Header (floating pill) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: .75rem 1rem 0;
  margin-bottom: -4.5rem;       /* lets the hero's green run behind the header */
  pointer-events: none;
}
.bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--wrap); margin-inline: auto;
  padding: .5rem .5rem .5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  --focus: var(--blue-ink);
}
.brand {
  display: flex; align-items: center; gap: .65rem; margin-right: auto;
  font: 800 1.1rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.bar nav { display: none; gap: .25rem; }
.bar nav a { padding: .55rem .95rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.bar nav a:hover { background: var(--mist); }
@media (min-width: 52rem) { .bar nav { display: flex; } }
@media (max-width: 22rem) {   /* tiny phones: keep the name for screen readers, hide it visually */
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Sections (stacked cards with rounded tops) ---------- */
.section {
  position: relative;
  margin-top: calc(var(--r-xl) * -1);                 /* overlap the previous section's bottom padding */
  padding: clamp(4rem, 8vw, 7rem) 0 calc(var(--r-xl) + clamp(3rem, 6vw, 5rem));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.on-dark { --focus: var(--green); }
.on-blue { --focus: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  --focus: var(--navy);
  position: relative; isolation: isolate; overflow: hidden;
  padding: 8rem 0 calc(var(--r-xl) + 4rem);
  background: var(--green);
}
.hero::before {                                        /* soft dotted texture */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(6, 34, 63, .16) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 72% 40%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 72% 40%, #000, transparent 70%);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; } }

.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 6vw, 5.25rem); line-height: 1; letter-spacing: -.035em; }
.hero .eyebrow { background: rgba(255, 255, 255, .55); }
.lead { font-size: clamp(1.125rem, 1rem + .6vw, 1.4rem); line-height: 1.5; max-width: 34rem; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .5rem; }

/* White highlighter stroke under the key phrase */
.mark {
  background: linear-gradient(#fff, #fff) no-repeat 0 88% / 100% .2em;
  padding-bottom: .04em;
}

/* ---------- Hero illustration ---------- */
.stage { position: relative; width: min(100%, 32.5rem); aspect-ratio: 1; margin-inline: auto; }

.stage__ring { position: absolute; inset: 11%; border: 2px dashed rgba(6, 34, 63, .35); border-radius: 50%; }

.pulse {                                               /* radar rings from the logo */
  position: absolute; inset: 36%; border: 2px solid #fff; border-radius: 50%;
  opacity: .5; transform: scale(1.4);
}
.core { position: absolute; inset: 0; display: grid; place-items: center; }
.core svg { width: 28%; height: auto; filter: drop-shadow(0 20px 18px rgba(6, 34, 63, .22)); }
.eye { transform-box: fill-box; transform-origin: center; }

/* Orbit: .agent is rotated about the stage centre; .agent__anchor sits on the circle and is
   counter-rotated so each pill stays upright; the pill itself counter-spins against the orbit. */
.orbit { position: absolute; inset: 0; }
.agent { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 72deg)); }
.agent:nth-child(1) { --i: 0; }
.agent:nth-child(2) { --i: 1; }
.agent:nth-child(3) { --i: 2; }
.agent:nth-child(4) { --i: 3; }
.agent:nth-child(5) { --i: 4; }
.agent__anchor { position: absolute; left: 50%; top: 11%; width: 0; height: 0; transform: rotate(calc(var(--i) * -72deg)); }

.pill {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem .3rem .3rem; border-radius: 999px;
  background: #fff; color: var(--navy); white-space: nowrap;
  font-weight: 700; font-size: clamp(.72rem, .6rem + .5vw, .9rem);
  box-shadow: 0 10px 20px -10px rgba(6, 34, 63, .55);
}
.pill__dot { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--navy); color: var(--green); }
.pill__dot .icon { width: 1.05em; height: 1.05em; }
.agent:nth-child(even) .pill__dot { background: var(--blue); color: #fff; }

/* Small "task done" notes that pop in and out */
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 14px;
  background: var(--navy); color: #fff; white-space: nowrap;
  font-weight: 600; font-size: clamp(.7rem, .6rem + .35vw, .85rem);
  box-shadow: 0 12px 24px -12px rgba(6, 34, 63, .7);
}
.chip .icon { width: 1.1em; height: 1.1em; color: var(--green); stroke-width: 2.6; }
.chip--a { top: 2%; left: 0; }
.chip--b { bottom: 4%; right: 0; }
.chip--c { top: 6%; right: 0; }
@media (max-width: 30rem) { .chip--c { display: none; } }

/* ---------- Problem ---------- */
.problem { background: var(--navy); color: #fff; }
.problem .eyebrow { background: rgba(255, 255, 255, .1); color: var(--green); }
.problem .section__sub { color: #C3D6EA; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card {
  display: grid; align-content: start; gap: 1.25rem; padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(115, 250, 121, .5); }
.card p { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.card__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 16px; background: var(--green); color: var(--navy); }

.transition {
  max-width: 22ch; margin: clamp(3rem, 7vw, 5.5rem) auto 0; text-align: center; text-wrap: balance;
  font: 800 clamp(2rem, 1rem + 4.6vw, 3.75rem)/1.08 var(--font-display); letter-spacing: -.03em;
}
.hl { color: var(--green); }

/* ---------- Solution ---------- */
.solution { background: var(--paper); }

.agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.agent-card {
  position: relative; display: grid; align-content: start; gap: .85rem;
  flex: 1 1 19rem; max-width: 23rem; padding: 1.75rem;
  border: 1px solid rgba(6, 34, 63, .08); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.agent-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(6, 34, 63, .06), 0 24px 40px -16px rgba(6, 34, 63, .38); }
.agent-card p { color: var(--ink-soft); }
.agent-card__num { position: absolute; top: 1.4rem; right: 1.6rem; font: 800 1.1rem/1 var(--font-display); color: rgba(6, 34, 63, .22); }

.badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: .4rem; border-radius: 18px; transition: transform .25s ease; }
.badge--green { background: var(--green); color: var(--navy); }
.badge--blue { background: var(--blue); color: #fff; }
.agent-card:hover .badge { transform: rotate(-8deg) scale(1.06); }

/* "Plan > Create > ..." strip */
.flow { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.flow li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  border-radius: 999px; background: var(--mist); font-weight: 700; font-size: .95rem;
}
.flow li + li::before { content: "\2192"; margin-right: .1rem; color: var(--blue-ink); }

/* ---------- Pricing ---------- */
.pricing { background: var(--mist); }
.pricing .eyebrow { background: rgba(6, 34, 63, .09); }
.plans { display: grid; gap: 1.5rem; max-width: 56rem; margin-inline: auto; align-items: stretch; }
@media (min-width: 48rem) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  display: grid; align-content: start; gap: 1rem; padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.plan:hover { transform: translateY(-6px); }
.plan__tag { justify-self: start; padding: .3rem .75rem; border-radius: 999px; background: var(--mist); color: var(--blue-ink); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan h3 { font-size: 1.75rem; }
.plan__price { font: 600 1.25rem/1 var(--font-display); color: var(--ink-soft); }
.plan__price span { font-size: clamp(3.5rem, 2.5rem + 4vw, 4.75rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.plan__desc { font-size: 1.1rem; }
.plan__rows { display: grid; margin: .5rem 0 1rem; border-top: 1px solid rgba(6, 34, 63, .14); }
.plan__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(6, 34, 63, .14); }
.plan__rows dt { color: var(--ink-soft); }
.plan__rows dd { font-weight: 700; text-align: right; white-space: nowrap; }

.plan--featured { --focus: var(--green); background: var(--navy); color: #fff; }
.plan--featured .plan__tag { background: var(--green); color: var(--navy); }
.plan--featured .plan__price { color: #C3D6EA; }
.plan--featured .plan__price span { color: var(--green); }
.plan--featured .plan__rows, .plan--featured .plan__rows div { border-color: rgba(255, 255, 255, .2); }
.plan--featured .plan__rows dt { color: #C3D6EA; }

/* ---------- Contact / booking ---------- */
.contact { background: var(--blue); overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.contact::before { width: 28rem; height: 28rem; left: -12rem; top: 6rem; background: var(--green); opacity: .9; }
.contact::after { width: 22rem; height: 22rem; right: -9rem; bottom: 4rem; background: rgba(255, 255, 255, .22); }
@media (max-width: 40rem) { .contact::before { display: none; } }   /* keep the heading clean on phones */
.contact .wrap { position: relative; z-index: 1; }
.contact .section__sub { color: var(--navy); }
.contact h2 { font-size: clamp(2.5rem, 1.2rem + 5.5vw, 4.75rem); }

.booking {
  max-width: 56rem; margin-inline: auto; padding: .75rem;
  border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 30px 60px -24px rgba(6, 34, 63, .55);
}
.booking iframe { display: block; width: 100%; height: 44rem; border: 0; border-radius: var(--r-md); background: #fff; }
@media (max-width: 40rem) { .booking { padding: .35rem; } .booking iframe { height: 62rem; } }   /* narrow screens stack the time slots below the calendar */
.booking__fallback { margin-top: 1.25rem; text-align: center; font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: calc(var(--r-xl) * -1);
  padding: calc(var(--r-xl) + 2.5rem) 0 2.5rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--navy); color: #fff;
}
.footer__inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.footer img { border-radius: 12px; }
.footer p { color: #C3D6EA; font-size: .95rem; }

/* ==========================================================================
   Motion (only when the visitor hasn't asked for reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Hero copy rises in, one piece after another */
  .hero__copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .stage { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
  .mark { animation: draw .9s .6s cubic-bezier(.6, 0, .2, 1) backwards; }

  /* Illustration */
  .orbit { animation: spin 70s linear infinite; will-change: transform; }
  .pill { animation: spin 70s linear infinite reverse; }
  .stage__ring { animation: spin 120s linear infinite reverse; }
  .stage:hover .orbit, .stage:hover .pill { animation-play-state: paused; }
  .core svg { animation: bob 6s ease-in-out infinite; }
  .eye { animation: blink 6s infinite; }
  .pulse { animation: pulse 3.6s ease-out infinite; }
  .pulse--late { animation-delay: 1.8s; }
  .chip { animation: pop 9s ease-in-out infinite backwards; }
  .chip--b { animation-delay: 3s; }
  .chip--c { animation-delay: 6s; }

  /* Scroll reveal: browsers with scroll-driven animations only; others simply show everything */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes rise   { from { opacity: 0; transform: translateY(28px); } }
@keyframes draw   { from { background-size: 0 .2em; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes bob    { 50% { transform: translateY(-8px); } }
@keyframes blink  { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes pulse  { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
@keyframes pop {
  0%        { opacity: 0; transform: translateY(10px) scale(.96); }
  6%, 30%   { opacity: 1; transform: none; }
  38%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(32px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .agent-card, .plan, .badge, .text-link { transition: none; }
}
