/* ============================================================================
   aichatbot.digitalperpetual.com

   Theme follows the reference Jacelyn supplied (WIP #2529): light and airy,
   navy and blue, fully rounded pills, soft-shadowed white cards on a very
   pale blue ground, and a warm daylight photograph behind the hero.

   The blues are Digital Perpetual's own — the reference's navy, bright blue
   and pale tile sit almost exactly where DP's #1A4A8C, #2E7CE4 and #E8F2FF
   already are, so nothing had to be invented to stay on brand. DP's orange
   accent is deliberately not used: the reference has no orange in it, and
   introducing one would be the single thing that made the page look unlike
   the picture.
   ============================================================================ */

:root {
  /* Navy — headings and primary actions */
  --navy-900: #0B1730;   /* near-black navy, all headings */
  --navy-700: #123A7A;   /* button hover */
  --navy:     #1A4A8C;   /* DP dark blue — primary buttons, footer */
  --navy-400: #2F55A6;   /* widget title bar */

  /* Blue — accents, links, the customer's chat bubbles */
  --blue:      #2E7CE4;  /* DP primary — icon glyphs, rules, tick marks */
  --blue-600:  #1E5BB8;  /* DP secondary — eyebrow highlight, reply pills */
  /* White text on #2E7CE4 is only 4.10:1, so the customer's chat bubbles use
     a fractionally deeper blue. Side by side it is indistinguishable; in a
     screen reader's contrast check it is the difference between pass and fail. */
  --blue-bubble: #2670D6;
  --wash:      #E8F2FF;  /* DP light blue — icon tiles, wave */
  --wash-2:    #F1F6FD;

  /* Neutrals */
  --paper:  #FFFFFF;
  --bg:     #F7F9FD;
  --bg-2:   #F0F3F8;     /* the agent's chat bubbles */
  --line:   #E3E9F3;
  --body:   #55657F;
  --muted:  #64738E;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shell: 1200px;
  --ease:  cubic-bezier(.22, .68, .32, 1);

  --lift:   0 18px 40px -22px rgba(11, 23, 48, .30);
  --lift-2: 0 30px 70px -30px rgba(11, 23, 48, .34);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: currentColor;
}
.ico--blue { color: var(--blue); }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- layout */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}
.shell--narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------- shared type bits */

/* Two-tone eyebrow, as in the reference: the subject in blue, the rest muted. */
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow b { color: var(--blue-600); font-weight: 700; }
.eyebrow--center { text-align: center; }

.sec__title {
  font-size: clamp(1.95rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.028em;
  color: var(--navy-900);
  margin: 0 0 18px;
}
/* text-wrap: balance stops a centred heading orphaning its last word on a line
   of its own. The 22ch cap is what forces the wrap in the first place; the
   pricing heading opts out of it further down so it can sit on one line. */
.sec__title--center {
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

.sec__lead {
  font-size: 1.08rem;
  color: var(--body);
  max-width: 60ch;
  margin: 0 0 48px;
}
.sec__lead--center { text-align: center; margin-inline: auto; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border: 1.5px solid transparent;
  border-radius: 999px;          /* fully rounded, as the reference has them */
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(26, 74, 140, .95);
}
.btn--navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(26, 74, 140, .95);
}

.btn--outline {
  background: var(--paper);
  color: var(--navy-900);
  border-color: var(--line);
  box-shadow: 0 8px 20px -16px rgba(11, 23, 48, .6);
}
.btn--outline:hover { border-color: var(--blue); transform: translateY(-2px); }

.btn--sm  { padding: 12px 22px; font-size: .94rem; white-space: nowrap; }
.btn--wide { width: 100%; padding: 19px 30px; font-size: 1.05rem; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 233, 243, .9);
}

.topbar__in { display: flex; align-items: center; gap: 30px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; }

/* The DP mark carries a dark bar through its middle, so it keeps a light
   tile of its own rather than relying on whatever is behind it. */
.brand__tile {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--wash);
  flex: 0 0 auto;
}
.brand__tile img { width: 26px; height: auto; }
.brand__tile--lg { width: 54px; height: 54px; border-radius: 15px; background: #fff; }
.brand__tile--lg img { width: 34px; }

.brand__name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy-900);
}

.topnav { display: flex; gap: 30px; margin: 0 auto; font-size: .97rem; font-weight: 600; }
.topnav a {
  position: relative;
  color: var(--navy-900);
  text-decoration: none;
  padding: 4px 0;
  transition: color .16s var(--ease);
}
.topnav a:hover { color: var(--blue); }
.topnav a.is-on::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
}

/* --------------------------------------------- mobile menu + action bar */

/* All three of these are phones only. They are hidden here rather than
   inside the breakpoint so that nothing flashes on a desktop first paint. */
.burger,
.msheet,
.msheet__scrim,
.actionbar { display: none; }

.burger {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--wash-2);
  border: 1px solid var(--line);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.burger__box { display: block; width: 20px; margin: 0 auto; }
.burger__box i {
  display: block;
  height: 2.4px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .14s linear;
}
.burger__box i + i { margin-top: 5.2px; }

/* Open: the bars fold into a cross. */
.burger[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); }
.burger[aria-expanded="true"] .burger__box i { background: #fff; }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

.msheet {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 50px -26px rgba(11, 23, 48, .35);
}
.msheet a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid #EEF2F8;
}
/* The scroll-spy marks the section in view here too, so an open menu
   answers "where am I" as well as "where can I go". */
.msheet a.is-on { color: var(--blue-600); }
.msheet a.is-on::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 30px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}
.msheet__go {
  background: var(--wash-2);
  color: var(--navy) !important;
  border-bottom: 0 !important;
}
.msheet__go .ico { width: 17px; height: 17px; color: var(--blue-600); }

.msheet__scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 23, 48, .45);
}

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px -22px rgba(11, 23, 48, .45);
}
.actionbar .btn { flex: 1; padding: 15px 18px; font-size: 1rem; }
.actionbar .btn--navy { flex: 1.4; }

/* ================================================================== HERO */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #FAF9F8;
  padding: clamp(44px, 6vw, 74px) 0 clamp(56px, 7vw, 96px);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 56% 52%;
}

/* A soft wash from the left so the headline always has a quiet ground,
   whatever the photograph is doing behind it. */
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #FBFAF9 0%, rgba(251,250,249,.96) 30%, rgba(251,250,249,.72) 46%, rgba(251,250,249,0) 66%),
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 26%);
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__copy { grid-column: 1; }

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--navy-900);
  margin: 0 0 20px;
  max-width: 12ch;
}

.hero__sub {
  font-size: 1.12rem;
  color: var(--body);
  max-width: 44ch;
  margin: 0 0 30px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__note {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 22px 0 0;
}

/* ----------------------------------------- the greeting over the photo */

.greet {
  position: absolute;
  right: 39.5%;
  top: 3%;
  width: 226px;
  z-index: 2;
  pointer-events: none;
}

.greet__av {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  box-shadow: var(--lift);
  margin-bottom: -14px;
  margin-left: 4px;
  position: relative;
  z-index: 2;
}
.greet__av .ico { width: 30px; height: 30px; }

.greet__bubble {
  background: var(--paper);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 15px 20px;
  margin-left: 34px;
  box-shadow: var(--lift);
}
.greet__hi { margin: 0 0 2px; font-size: 1.02rem; font-weight: 700; color: var(--navy-900); }
.greet__q  { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--navy-900); }

.greet__pills { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0 0 34px; }
.greet__pills span {
  background: var(--paper);
  color: var(--blue-600);
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--lift);
}

/* ------------------------------------------------------- the chat widget */

.widget {
  grid-column: 2;
  justify-self: end;
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--lift-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.widget__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy-400);
  color: #fff;
}

.widget__av {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  flex: 0 0 auto;
}
.widget__av .ico { width: 24px; height: 24px; }

.widget__id { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.widget__id b { font-size: 1.02rem; font-weight: 700; }
.widget__id i {
  font-style: normal;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3DDC84;
  display: inline-block;
}

.widget__x {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.widget__x:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.widget__x .ico { width: 20px; height: 20px; }

.widget__thread {
  padding: 18px 16px 4px;
  min-height: 380px;
  max-height: 608px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #CBD6E6 transparent;
}

.msg { display: flex; gap: 9px; max-width: 92%; margin-bottom: 4px; animation: rise .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.msg--them { align-self: flex-end; flex-direction: row-reverse; }

.msg__av {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--blue);
  flex: 0 0 auto;
  margin-top: 2px;
}
.msg__av .ico { width: 19px; height: 19px; }
.msg--them .msg__av { display: none; }

.msg__body { min-width: 0; }

.msg__bubble {
  font-size: .93rem;
  line-height: 1.55;
  padding: 11px 15px;
  border-radius: 14px;
  white-space: pre-line;          /* the scripts use \n for paragraph breaks */
}
.msg--bot  .msg__bubble { background: var(--bg-2); color: #27364F; border-top-left-radius: 5px; }
.msg--them .msg__bubble { background: var(--blue-bubble); color: #fff; border-top-right-radius: 5px; }

.msg__meta { font-size: .72rem; color: var(--muted); margin: 5px 4px 10px; }
.msg--them .msg__meta { text-align: right; }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AABC4; animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

.widget__replies { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 16px 14px; }

.reply {
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all .16s var(--ease);
  animation: rise .3s var(--ease) both;
}
.reply:hover { border-color: var(--blue); background: var(--wash-2); }

.widget__input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.widget__field { flex: 1 1 auto; font-size: .92rem; color: var(--muted); }
.widget__send {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--blue);
  flex: 0 0 auto;
}
.widget__send .ico { width: 17px; height: 17px; }

.widget__truth {
  margin: 0;
  padding: 11px 16px 13px;
  font-size: .76rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* ======================================================== WHY / SERVICES */

.why {
  position: relative;
  background: var(--bg);
  padding: clamp(66px, 8vw, 104px) 0 clamp(62px, 7.5vw, 96px);
  overflow: hidden;
}

/* The soft blue swell along the bottom of the reference's second screen. */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 220px;
  fill: #DCE8FD;
  pointer-events: none;
}
.why .shell { position: relative; }

.cards {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card2 {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 28px;
  box-shadow: var(--lift);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card2:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }

.card2__ico {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--blue-600);
  margin-bottom: 20px;
}
.card2__ico .ico { width: 26px; height: 26px; }

.card2 h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-900);
  margin: 0 0 9px;
}
.card2 p { margin: 0; font-size: .96rem; color: var(--body); }

/* ================================================================== GAP */

.gap { background: var(--bg); padding: clamp(62px, 7.5vw, 96px) 0; }

.gap__in {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 62px);
  align-items: center;
}
.gap__copy .sec__lead { margin-bottom: 0; }

.gapchart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px 30px;
  box-shadow: var(--lift);
}

/* Each row is a small block: who it is, the number, the bar, the caption.
   The number leads, because 11h 58m against 1.4 sec is the whole argument —
   the bars are there to show that the gap is not a rounding difference. */
.gaprow { margin-bottom: 30px; }
.gaprow:last-of-type { margin-bottom: 0; }

.gaprow__who {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.gaprow__val {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--navy-900);
  margin: 0 0 12px;
}
.gaprow--good .gaprow__val { color: var(--blue-600); }

.gaprow__emo { font-size: .8em; line-height: 1; }

.gaprow__cap { font-size: .9rem; color: var(--body); margin: 10px 0 0; }

.gaprow__track {
  display: block;
  position: relative;
  height: 13px;
  background: #DFE7F2;
  border-radius: 999px;
  overflow: hidden;
}
.gaprow__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }

/* Default state is the finished state: if the script never runs, or the
   observer never fires, the bars still show their true widths. */
.gaprow__fill--slow { width: 100%; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.gaprow__fill--fast { width: 4px;  background: var(--blue-600); }

.gapchart.is-armed .gaprow__fill--slow { width: 0; transition: width 2.8s var(--ease); }
.gapchart.is-armed .gaprow__fill--fast { width: 0; transition: width .14s linear; }
.gapchart.is-armed.is-on .gaprow__fill--slow { width: 100%; }
.gapchart.is-armed.is-on .gaprow__fill--fast { width: 4px; }


/* ============================================================== SERVICES */

.services { background: var(--paper); padding: clamp(66px, 8vw, 104px) 0; }

.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(36px, 4.5vw, 54px);
}
.services__copy .sec__title { max-width: 18ch; }
.services__copy .sec__lead  { margin-bottom: 0; max-width: 52ch; }

.services__art { position: relative; justify-self: center; width: 100%; max-width: 272px; }
.services__bot { width: 100%; height: auto; }

/* The mascot's line, pinned to its top-left as in the reference. */
.services__say {
  position: absolute;
  top: -6%;
  left: 44%;
  width: 156px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  padding: 12px 15px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy-900);
  box-shadow: var(--lift);
  z-index: 2;
}

.svcgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.svc {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 22px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: #C9DBF5; box-shadow: var(--lift); }

/* Rounded squares here, circles on the "why" cards — the reference draws the
   two sets differently, and it keeps them from reading as one long list. */
.svc__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--wash);
  color: var(--blue-600);
  margin-bottom: 18px;
}
.svc__ico .ico { width: 23px; height: 23px; }

.svc h3 {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-900);
  margin: 0 0 9px;
}
.svc p { margin: 0 0 18px; font-size: .94rem; color: var(--body); }

.svc__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.svc__more .ico { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.svc__more:hover .ico { transform: translateX(3px); }

/* ========================================================= HOW IT WORKS */

.how { background: var(--paper); padding: clamp(66px, 8vw, 104px) 0; }

.how__in {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.how__copy .sec__title { max-width: 15ch; }
.how__copy .sec__lead  { margin-bottom: 36px; max-width: 48ch; }

/* The rail down the left of the steps is the sequence made visible: it stops
   at the last number rather than running past it. */
.flow { list-style: none; margin: 0; padding: 0; }

.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 26px 0;
}
.flow__step:not(:last-child) { border-bottom: 1px solid var(--line); margin-bottom: 26px; }

.flow__step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: -28px;
  width: 2px;
  background: var(--line);
}
.flow__step:last-child::before { display: none; }

.flow__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}

.flow__body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-900);
  margin: 6px 0 7px;
}
.flow__body p { margin: 0; font-size: .96rem; color: var(--body); max-width: 44ch; }

/* ------------------------------------------------ the artwork beside it */

.how__art { position: relative; min-height: 400px; }

.how__blob {
  position: absolute;
  right: 2%;
  top: 4%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wash);
  opacity: .55;
}

.mock {
  position: relative;
  z-index: 2;
  width: min(300px, 78%);
  margin: 0 4% 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--lift-2);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--navy);
  color: #fff;
  font-size: .95rem;
}
.mock__bar b { font-weight: 700; margin-right: auto; }
.mock__av {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
}
.mock__av .ico { width: 19px; height: 19px; }
.mock__x { width: 17px; height: 17px; color: rgba(255,255,255,.8); }

.mock__msg { display: flex; gap: 9px; padding: 16px 14px 20px; }
.mock__botav {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--blue);
  flex: 0 0 auto;
}
.mock__botav .ico { width: 18px; height: 18px; }
.mock__msg p {
  margin: 0;
  background: var(--bg-2);
  border-radius: 13px;
  border-top-left-radius: 4px;
  padding: 10px 14px;
  font-size: .9rem;
  line-height: 1.5;
  color: #27364F;
}

/* The checklist overlaps the mock's lower edge, as in the reference. */
.checks {
  position: relative;
  z-index: 3;
  list-style: none;
  width: min(290px, 76%);
  margin: -20px auto 0 2%;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--lift-2);
}
.checks li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 13px;
}
.checks li:last-child { margin-bottom: 0; }
.checks .ico { width: 20px; height: 20px; color: #17A05C; }

.how__scribble {
  position: absolute;
  left: 2%;
  bottom: 2%;
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--blue-600);
  transform: rotate(-7deg);
}
.how__arrow {
  position: absolute;
  left: 30%;
  bottom: 6%;
  width: 84px;
  height: 66px;
  color: var(--blue-600);
}

/* ============================================================== PRICING */

.pricing { background: var(--bg); padding: clamp(66px, 8vw, 104px) 0; }

/* 'One agent. One price. No contract.' is 34ch, so the shared 22ch cap on
   .sec__title--center splits it in two. Uncap it here only — not nowrap, so it
   still wraps by itself on a narrow screen instead of overflowing. */
.pricing .sec__title--center { max-width: none; }

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--lift-2);
  overflow: hidden;
}

.plan__head { padding: 36px 38px 32px; border-bottom: 1px solid var(--line); }
.plan__name { font-size: 1.16rem; font-weight: 700; color: var(--navy-900); margin: 0 0 4px; }

/* The one-line promise, between the plan name and the numbers. */
.plan__tag { font-size: 1rem; color: var(--body); margin: 0 0 18px; }

.plan__nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; }
.plan__big, .plan__mid {
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--navy);
  line-height: 1;
}
.plan__big { font-size: clamp(2.6rem, 5vw, 3.5rem); }
.plan__mid { font-size: clamp(1.8rem, 3.2vw, 2.35rem); }
.plan__lab  { font-size: .92rem; color: var(--muted); font-weight: 500; }
.plan__plus { font-size: 1.7rem; font-weight: 500; color: #C6D3E6; margin: 0 6px; }

.plan__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan__col { padding: 30px 38px; }
.plan__col + .plan__col { border-left: 1px solid var(--line); }
.plan__col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 11px; margin-bottom: 13px; font-size: .96rem; color: var(--navy-900); }
.ticks .ico { width: 18px; height: 18px; color: var(--blue); margin-top: .22em; }

.plan__foot {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 26px 38px 30px;
  background: var(--wash);
  border-top: 1px solid var(--line);
}
.plan__guard { font-size: .93rem; color: var(--navy-900); margin: 0; flex: 1 1 290px; }
.plan__guard strong { color: var(--navy); }


/* ================================================================== FAQ */

.faq { background: var(--bg); padding: clamp(66px, 8vw, 104px) 0; }

.faqlist { border-top: 1px solid var(--line); margin-top: 8px; }
.faqitem { border-bottom: 1px solid var(--line); }

.faqitem summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-900);
}
.faqitem summary::-webkit-details-marker { display: none; }

.faqitem__mark { position: relative; flex: 0 0 auto; width: 15px; height: 15px; }
.faqitem__mark::before,
.faqitem__mark::after {
  content: '';
  position: absolute;
  background: var(--blue);
  transition: transform .22s var(--ease);
}
.faqitem__mark::before { inset: 6px 0 auto 0; height: 2.4px; border-radius: 2px; }
.faqitem__mark::after  { inset: 0 auto 0 6px; width: 2.4px; border-radius: 2px; }
.faqitem[open] .faqitem__mark::after { transform: scaleY(0); }

.faqitem__a { padding: 0 60px 24px 0; }
.faqitem__a p { margin: 0; color: var(--body); }

/* ============================================================== CONTACT */

.contact { background: var(--paper); padding: clamp(66px, 8vw, 104px) 0; }

.flash { border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; font-size: .96rem; }
.flash--ok  { background: #E6F7EE; border: 1px solid #A8E0C4; color: #17603C; }
.flash--bad { background: #FDECEC; border: 1px solid #F2BFBF; color: #8C2020; }
.flash ul { margin: 8px 0 0; padding-left: 20px; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--lift-2);
}

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.field { display: block; margin-bottom: 20px; border: 0; padding: 0; }

.field__l {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.field__l i { color: var(--blue); font-style: normal; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9FADC2; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: var(--paper); }
.field textarea { resize: vertical; min-height: 112px; }

.field__help { display: block; font-size: .84rem; color: var(--muted); margin-top: 7px; }

/* The dropdown is drawn by hand: a native select renders differently on
   every platform, and next to these rounded inputs the default control looks
   like it belongs to another page. Only the chevron is ours — the popup list
   is still the browser's, which is what phone users expect. */
.selectwrap { position: relative; display: block; }

.selectwrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 44px 13px 16px;
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.field select:focus { border-color: var(--blue); background: var(--paper); }
/* Grey the control while the placeholder is still the chosen option, so an
   untouched dropdown reads like the empty inputs above it rather than like an
   answer already given. :invalid would not work — the field is not required. */
.field select:has(option[value=""]:checked) { color: #9FADC2; }
.field select option { color: var(--navy-900); }

/* Off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* =============================================================== FOOTER */

.foot { background: var(--navy-900); color: #A8B8D0; padding: 58px 0 0; }

.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 42px;
}
.foot__brand .brand__tile { margin-bottom: 16px; }
.foot__brand p { font-size: .93rem; margin: 0; max-width: 44ch; }

.foot__h {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8296B4;
  margin: 0 0 14px;
}
.foot__links a { display: block; font-size: .95rem; text-decoration: none; margin-bottom: 10px; transition: color .16s var(--ease); }
.foot__links a:hover { color: #fff; }

.foot__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(168, 184, 208, .18);
  font-size: .85rem;
}
.foot__base p { margin: 0; }

/* ========================================================== RESPONSIVE */

@media (max-width: 1180px) {
  .greet { display: none; }   /* below this it collides with the headline */
}

@media (max-width: 1080px) {
  .cards   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .widget { grid-column: 1; }
  .widget { justify-self: stretch; max-width: 460px; margin-top: 36px; }
  .hero__wash {
    background: linear-gradient(180deg, rgba(251,250,249,.97) 0%, rgba(251,250,249,.9) 52%, rgba(251,250,249,.82) 100%);
  }
  .hero__title { max-width: 18ch; }
  .gap__in, .how__in { grid-template-columns: minmax(0, 1fr); }

  /* The mascot and its line move above the cards rather than beside them. */
  .services__head { grid-template-columns: minmax(0, 1fr); }
  .services__art  { order: -1; max-width: 230px; margin-inline: auto; }
  .services__say  { right: 62%; width: 140px; }
  .services__copy .sec__title { max-width: none; }

  .how__art { min-height: 0; margin-top: 44px; }
  .mock   { margin-inline: auto; width: min(320px, 100%); }
  .checks { margin-inline: auto; width: min(300px, 100%); }
  .how__scribble, .how__arrow { display: none; }
  .plan__cols { grid-template-columns: minmax(0, 1fr); }
  .plan__col + .plan__col { border-left: 0; border-top: 1px solid var(--line); }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* The row of links is replaced by the burger and its sheet, not simply
     dropped — before this, a phone had no way to reach any section. */
  .topnav { display: none; }
  .topbar__cta { display: none; }        /* the action bar carries it instead */
  .burger { display: block; }
  .msheet { display: block; }
  .msheet[hidden] { display: none; }
  .msheet__scrim { display: block; }
  .msheet__scrim[hidden] { display: none; }
  .actionbar { display: flex; }
  .actionbar[hidden] { display: none; }

  .topbar__in { gap: 10px; min-height: 64px; }
  .brand { margin-right: auto; }
  .brand__tile { width: 38px; height: 38px; }

  /* While the sheet is open the page behind it must not scroll away. The bar
     also goes fully opaque — it is normally 88% white, which would let the
     scrim show through and turn the header grey. */
  body.is-locked { overflow: hidden; }
  body.is-locked .topbar { background: var(--paper); }

  /* Two buttons of equal weight split the tap. "Get Started" keeps the pill;
     the tour drops to a plain link under it. */
  .hero__cta .btn--outline {
    background: none;
    border-color: transparent;
    box-shadow: none;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .cards   { grid-template-columns: minmax(0, 1fr); }
  .svcgrid { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .plan__head, .plan__col, .plan__foot { padding-left: 24px; padding-right: 24px; }
  .faqitem__a { padding-right: 0; }
  .sec__title--center, .sec__lead--center { max-width: none; }

  /* The widget was 715px — 85% of the screen — and its transcript is a scroll
     area inside a scrolling page, which swallows a swipe meant for the page.
     The inner scroll has to stay (the demo appends messages and follows them
     down), so instead we shrink the target: the whole widget now sits around
     half the screen rather than filling it. */
  .widget__thread { min-height: 0; max-height: 38vh; }

  /* Length: the page ran to 11,319px, about 13 screens. */
  .why, .gap, .services, .how, .pricing, .faq, .contact {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .services__art { max-width: 180px; }
  .how__art { margin-top: 28px; }

  /* Six full-width service cards ran to 2,349px on their own. The icon moves
     up beside the heading instead of sitting on its own line, which takes a
     block off the top of every card without touching a word of the copy. */
  .svc { padding: 20px 20px 14px; }
  .svc__ico {
    width: 38px; height: 38px;
    border-radius: 11px;
    margin: 0 12px 0 0;
    flex: 0 0 auto;
  }
  .svc__ico .ico { width: 19px; height: 19px; }
  .svc__head { display: flex; align-items: center; margin-bottom: 10px; }
  .svc h3 { margin: 0; }
  .svc p { margin-bottom: 10px; }

  /* Tap targets. "Learn more" was 24px tall, the footer links 25px. */
  .svc__more {
    min-height: 44px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #EEF2F8;
  }
  .foot__links a { min-height: 44px; display: flex; align-items: center; }
  .brand { min-height: 44px; }
  .reply { min-height: 44px; }
  .widget__x { width: 44px; height: 44px; }

  /* Clear the fixed action bar at the foot of the page. */
  .foot__base { padding-bottom: 84px; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* The wordmark only goes once there is genuinely no room for it — with the
   CTA gone from the bar, that is a good deal narrower than it used to be. */
@media (max-width: 358px) {
  .brand__name { display: none; }
}

/* ===================================================== REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* The bars keep their true widths; JS does not arm them under this
     setting, so there is nothing here to undo. */
}
