/* ===================================================================
   JAPHONE HOMEPAGE
   Night blue at the top that brightens and fades into a white page, a footer one shade
   darker than white, and a small working example in every section. Nothing
   here depends on css/style.css: the homepage no longer loads it, so the
   funnel, footer and review modal are styled below.
=================================================================== */
:root {
  --bg: #ffffff;
  --ink: #0c1016;
  --body: #4a5361;
  --muted: #68717f;
  --line: #e7eaf0;
  --wash: #f4f6fb;
  --pale: #eff2fa;
  --blue: #2a66f0;
  --blue-deep: #1b4fd0;
  --blue-wash: #eef3ff;
  --ok: #0f7a57;
  --end: #e9edf5;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page: 1160px;
  --spring: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 40px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 80; padding: 8px 14px; background: #fff; border-radius: 8px; }
.skip:focus { left: 12px; }
.brand-word { display: inline-block; height: 0.7031em; width: auto; aspect-ratio: 5170 / 703; overflow: visible; }

/* ---------- the button everything leads to ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #3b78f8 0%, var(--blue) 45%, var(--blue-deep) 100%);
  color: #fff; font-size: 16px; font-weight: 500; line-height: 1.3;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset, 0 1px 2px rgba(20,50,130,.3), 0 12px 30px -8px rgba(30,84,220,.6);
  transition: filter .15s, transform .15s, opacity .2s;
}
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: translateY(1px); }
.cta--big { padding: 15px 30px; font-size: 18px; border-radius: 14px; }

/* Follows you down the page once the hero button has scrolled away. */
.float-bar {
  position: fixed; top: 14px; right: 18px; z-index: 60;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--spring);
}
.float-bar .cta { padding: 11px 20px; font-size: 15.5px; }
.float-bar.is-on { opacity: 1; pointer-events: auto; transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #c9d0db; background: var(--wash); }
.btn--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--outline { background: #fff; }
.btn--full { width: 100%; }

/* ---------- the top: night blue that brightens, then fades into the page ---------- */
/* --fade is how far below the header the blue takes to turn white. It's in pixels, so
   the page is white at the same point behind the window on a phone and an ultrawide. */
.top {
  --fade: 440px;
  position: relative; isolation: isolate; overflow: clip;
  /* Room for the window's shadow, then given back so the gap below stays the same. */
  padding-bottom: 190px; margin-bottom: -190px;
}
.pl-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 16px max(20px, calc((100% - var(--page)) / 2));
  color: #fff;
}
.pl-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-size: 18px; }
.pl-brand-mark { width: 28px; height: 28px; }
.pl-nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.pl-nav-links a { text-decoration: none; opacity: .92; }
.pl-nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.pl-btn { font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; white-space: nowrap; }
.pl-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; padding: clamp(92px, 15vw, 118px) 20px 0; text-align: center; color: #fff; }
/* The whole header's colour. Every stop is measured from the bottom of the header, so
   the brightest blue always sits behind the button however many lines the headline
   wraps to, and white arrives --fade below it. */
.hero::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: calc(var(--fade) * -1); left: 50%;
  width: 100vw; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 360px at 50% calc(100% - var(--fade)), rgba(96, 148, 255, .55), rgba(96, 148, 255, 0) 70%),
    linear-gradient(180deg,
      #030a22 0,
      #071a52 calc((100% - var(--fade)) * .38),
      #1240c2 calc((100% - var(--fade)) * .8),
      #2259ea calc(100% - var(--fade)),
      #86abff calc(100% - var(--fade) * .58),
      #e3ecff calc(100% - var(--fade) * .22),
      #fff 100%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, min(11.6vw, max(44px, 6.9vw)), 80px);
  line-height: 1.04;
  letter-spacing: -0.042em;
  max-width: 13em;
  margin: 0 auto;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(10,40,130,.28);
}
.hero__sub {
  max-width: 35em; margin: 20px auto 0;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5;
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(10,40,130,.4);
}
.hero__actions { position: relative; margin-top: 32px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- the hero loop sits here; css/film.css draws what plays in it ---------- */
.shot-wrap { padding: 64px 20px 0; position: relative; }
/* Holds the loop still for a stretch of scrolling. The script in index.html turns it on
   only when the whole window fits on the screen, and sets how long and how high. */
.shot-pin.is-pinned { height: var(--pin-h); }
.shot-pin.is-pinned .shot { position: sticky; top: var(--pin-top); }
.shot {
  max-width: 1160px; margin: 0 auto;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 0 1px rgba(20,50,120,.07), 0 50px 120px -30px rgba(24,74,210,.5);
  text-align: left;
}
/* On a computer the loop is never taller than the screen, so it can sit whole in the
   middle while it's held still. 5/3 is the loop's width to height. */
@media (min-width: 900px) {
  .shot.film { max-width: min(var(--film-max, 1160px), max(680px, calc((100vh - 128px) * 5 / 3))); }
}
.phone__log::-webkit-scrollbar { display: none; }

.bub { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; flex: none; }
.bub--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.bub--it { align-self: flex-start; background: #f0f2f6; border-bottom-left-radius: 5px; }
.bub--typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.bub--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b2; }
.ask { align-self: flex-start; width: 88%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff; font-size: 14px; flex: none; }
.ask__to { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.ask__row { display: flex; gap: 8px; margin-top: 11px; }
.ask__state { margin-top: 9px; font-size: 13.5px; font-weight: 500; color: var(--ok); }
.mini { padding: 7px 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.mini:hover { background: var(--wash); }
.mini--yes { background: var(--blue); border-color: var(--blue); color: #fff; }
.mini--yes:hover { background: var(--blue-deep); }
.try { display: flex; flex-wrap: wrap; gap: 7px; }
.try:empty { display: none; }
.chip {
  padding: 8px 13px; border-radius: 999px; border: 1px solid #d7deea; background: #fff;
  font-size: 13.5px; line-height: 1.25; cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-wash); }
.chip:disabled { opacity: .5; cursor: default; }
.feed-item { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 12px 14px; font-size: 13.5px; line-height: 1.42; color: var(--body); }
.feed-item strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.feed-item time { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.feed-item--new { border-color: #bcd0fb; background: #f8faff; }
.example-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.example-note--in { margin-top: 16px; text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  .bub--in, .line--in, .feed-item--new { animation: arrive .4s var(--spring) both; }
  .bub--typing i { animation: blink 1.1s infinite; }
  .bub--typing i:nth-child(2) { animation-delay: .15s; }
  .bub--typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes blink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
}

/* ---------- sections ---------- */
.band { position: relative; z-index: 1; padding: 130px 20px 0; }
.inner { max-width: var(--page); margin: 0 auto; }
.band__head { max-width: 44rem; margin: 0 auto 44px; text-align: center; }
.band__head h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.band__head p { margin-top: 12px; font-size: 18px; color: var(--body); text-wrap: pretty; }
.band__head--left { margin-left: 0; text-align: left; max-width: 52rem; }
.band__head--left h2 {
  background: linear-gradient(90deg, var(--ink) 38%, #6b7691 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 30px 70px -40px rgba(30,60,140,.32); }

/* the switch used by most of the examples */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: var(--pale); border-radius: 13px; }
.seg__btn { padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500; color: var(--body); cursor: pointer; transition: background .15s, color .15s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.seg--small { display: flex; }
.seg--small .seg__btn { flex: 1; padding: 7px 8px; font-size: 13.5px; }
.seg--on-blue { background: rgba(255,255,255,.16); }
.seg--on-blue .seg__btn { color: #e8efff; }
.seg--on-blue .seg__btn:hover { color: #fff; }
.seg--on-blue .seg__btn.is-on { background: #fff; color: var(--blue-deep); }

/* ---------- how it handles a call ---------- */
.stage { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; overflow: hidden; }
.stage h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.022em; line-height: 1.18; }
.stage > p { margin-top: 10px; }
.stage--blue { background: linear-gradient(180deg, #4784f6 0%, #2a66f0 100%); color: #fff; box-shadow: 0 30px 70px -34px rgba(30,84,220,.7); }
.stage--blue > p { color: #e6edff; }
.stage--blue .seg { margin-top: 20px; align-self: flex-start; }
.stage--pale { background: var(--pale); border: 1px solid #e4e8f4; }
.stage--pale > p { color: var(--body); }
.callbox { margin-top: 18px; display: flex; flex-direction: column; flex: 1; }
.callbox__meter { display: flex; flex-direction: column; align-items: center; }
.callbox__time { font-size: 42px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.callbox__state { font-size: 13.5px; color: #dbe6ff; }
.wave { height: 36px; margin: 10px 0 14px; display: flex; align-items: center; justify-content: space-between; }
.wave i { width: 3px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.82); transition: height .13s linear; }
.callbox__lines { min-height: 236px; display: flex; flex-direction: column; gap: 9px; padding: 15px 16px; border-radius: 14px; background: rgba(9,34,110,.26); }
.line { font-size: 14px; line-height: 1.44; }
.line b { font-weight: 500; }
.callbox__result {
  align-self: center; margin-top: 14px; min-height: 34px; padding: 6px 16px; border-radius: 999px;
  background: #fff; color: var(--blue-deep); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .35s var(--spring);
}
.callbox__result.is-in { opacity: 1; transform: none; }
.phone { margin-top: 20px; flex: 1; display: flex; flex-direction: column; background: #fff; border-radius: 20px; border: 1px solid #e3e7f1; padding: 14px; box-shadow: 0 22px 50px -30px rgba(30,60,140,.35); min-height: 380px; }
.phone__head { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.phone__avatar { width: 26px; height: 26px; background: url('/assets/logo-glass-blue.png') center / contain no-repeat; }
.phone__log { flex: 1; min-height: 0; max-height: 340px; overflow-y: auto; scrollbar-width: none; padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }

/* ---------- email, DMs and comments ---------- */
.msg { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.msg__in { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.msg__from { font-weight: 500; }
.msg__subject { font-size: 14px; color: var(--muted); margin-top: 1px; }
.msg__body { margin-top: 12px; color: var(--body); }
.msg__out { border-radius: 16px; padding: 20px; background: var(--blue-wash); min-height: 200px; display: flex; flex-direction: column; }
.msg__label { font-size: 13px; color: var(--muted); }
.msg__draft { margin-top: 7px; }
.msg__out .ask__row { margin-top: auto; padding-top: 16px; }
.msg__done { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; color: var(--ok); }

/* ---------- connections ---------- */
.conn { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; }
.conn__group { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.conn__group:first-child { border-top: 0; padding-top: 2px; }
.conn__group:last-child { padding-bottom: 2px; }
.conn__label { font-size: 14.5px; font-weight: 500; }
.conn__tiles { display: flex; flex-wrap: wrap; gap: 7px; }
.tile { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.tile:hover { border-color: var(--blue); }
.tile.is-on { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-deep); font-weight: 500; }
.tile em { font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.conn__show { background: var(--pale); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.conn__name { font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.conn__show .bub--it { background: #fff; }
.conn__what { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--body); }

/* ---------- memory, approval, the day ---------- */
.trio__stage { background: var(--pale); border-radius: 20px; padding: 18px; min-height: 268px; display: flex; flex-direction: column; gap: 10px; }
.trio__text { margin-top: 16px; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.trio__text b { color: var(--ink); font-weight: 500; }
.trio__fine { font-size: 13.5px; color: var(--body); margin-top: auto; }
.note { background: #fff; border-radius: 13px; padding: 12px 14px; font-size: 14.5px; }
.note__tag { margin-top: 7px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--body); cursor: pointer; }
.note__tag:hover { border-color: var(--blue); }
.note__tag.is-share { background: var(--blue-wash); border-color: #cfdcfb; color: var(--blue-deep); }
.ask--static { width: 100%; }
.check { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-radius: 13px; background: #fff; font-size: 14px; text-align: left; cursor: pointer; }
.check__box { flex: none; width: 18px; height: 18px; border: 1.5px solid #bcc4d2; border-radius: 6px; position: relative; }
.check.is-done { color: var(--muted); text-decoration: line-through; }
.check.is-done .check__box { background: var(--blue); border-color: var(--blue); }
.check.is-done .check__box::after { content: ''; position: absolute; left: 3px; top: 3.5px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------- for you or your business ---------- */
.fork__grid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.fork h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.fork ul { margin-top: 16px; display: grid; gap: 10px; font-size: 15.5px; }
.fork li { position: relative; padding-left: 24px; }
.fork li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.fork__hear { background: var(--pale); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- three real steps ---------- */
.fork__more { margin-top: 18px; font-size: 15.5px; color: var(--body); }
.fork__more a { color: var(--blue-deep); text-underline-offset: 3px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.steps__list { display: flex; flex-direction: column; gap: 8px; }
.step { width: 100%; display: flex; gap: 14px; padding: 16px; border: 1px solid transparent; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; color: var(--body); font-size: 15px; transition: background .15s, border-color .15s; }
.step b { display: block; font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.012em; margin-bottom: 1px; }
.step:hover { background: var(--wash); }
.step.is-on { background: var(--blue-wash); border-color: #d6e2fd; }
.step__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #d6e2fd; color: var(--blue-deep); font-weight: 500; font-size: 14.5px; }
.steps__show { background: var(--pale); border-radius: 16px; padding: 22px; min-height: 258px; }
.pane { display: flex; flex-direction: column; gap: 9px; height: 100%; }
.pane .bub--it { background: #fff; }
.pane__q { font-size: 14.5px; font-weight: 500; }
.pane__q--2 { margin-top: 12px; }
.pane__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pane__opt { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 14.5px; }
.pane__opt.is-on { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-deep); font-weight: 500; }
.pane__field { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 15px; }
.pane__field--big { font-size: 26px; font-weight: 500; letter-spacing: -0.015em; text-align: center; padding: 18px; }
.pane__hint { font-size: 14px; color: var(--body); }

/* ---------- pricing. js/main.js binds these ids and data-plan ---------- */
.meter { max-width: 860px; margin: 0 auto 20px; }
.meter__label { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 15.5px; }
.meter__label b { font-weight: 500; color: var(--blue-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter__label b::after { content: ' min'; }
.meter__range { --fill: 6%; width: 100%; margin: 16px 0 16px; height: 6px; border-radius: 6px; appearance: none; -webkit-appearance: none; cursor: pointer; background: linear-gradient(90deg, var(--blue) var(--fill), #e2e6ef var(--fill)); }
.meter__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid #cbd3e1; box-shadow: 0 2px 8px rgba(20,40,100,.25); }
.meter__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #cbd3e1; box-shadow: 0 2px 8px rgba(20,40,100,.25); }
.meter__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meter__out p { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 15px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; color: var(--body); }
.meter__out b { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.meter__out p.is-best { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-deep); }
.meter__out p.is-over b { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pricing__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.pricing__card { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; background: #fff; }
.pricing__card--featured { border-color: var(--blue); box-shadow: 0 24px 60px -30px rgba(42,102,240,.42); }
.pricing__badge { position: absolute; top: -12px; left: 28px; padding: 3px 11px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 500; }
.pricing__name { font-size: 20px; font-weight: 500; }
.pricing__for { color: var(--body); font-size: 15px; margin-top: 2px; }
.pricing__price { margin-top: 16px; font-size: 54px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.pricing__price span { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pricing__cap { margin-top: 10px; font-weight: 500; }
.pricing__features { margin: 18px 0 24px; display: grid; gap: 9px; font-size: 15px; color: var(--body); }
.pricing__features li { position: relative; padding-left: 22px; }
.pricing__features li::before { content: ''; position: absolute; left: 1px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.pricing__card .cta, .pricing__card .btn { margin-top: auto; width: 100%; }
.pricing__fine { max-width: 40rem; margin: 22px auto 0; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ---------- sign in ---------- */
.gate { max-width: 440px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: #fff; }

/* ---------- the sign-in pop-up ---------- */
.auth-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.auth-modal__backdrop { position: fixed; inset: 0; background: rgba(5, 12, 34, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.auth-modal__panel {
  position: relative; width: min(440px, 100%); margin: auto;
  background: #fff; border-radius: 22px; padding: 30px;
  box-shadow: 0 30px 80px -20px rgba(5, 12, 34, .5);
}
.auth-modal__panel:focus { outline: none; }
.auth-modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.auth-modal__close:hover { background: var(--wash); color: var(--ink); }
.auth-modal__title { margin: 0 34px 16px; text-align: center; font-size: 23px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .auth-modal:not([hidden]) .auth-modal__backdrop { animation: modal-fade .2s ease-out both; }
  .auth-modal:not([hidden]) .auth-modal__panel { animation: modal-rise .32s var(--spring) both; }
  @keyframes modal-fade { from { opacity: 0; } }
  @keyframes modal-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
}
.contact__account { font-size: 15px; color: var(--body); text-align: center; margin-bottom: 14px; }
.contact__authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--wash); border-radius: 12px; margin-bottom: 14px; }
.contact__authtab { padding: 8px; border: 0; background: transparent; border-radius: 9px; font-size: 14.5px; cursor: pointer; color: var(--body); }
.contact__authtab.is-active { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.contact__google-btn { margin-bottom: 14px; }
.contact__form { display: grid; gap: 12px; }
.contact__form label { display: grid; gap: 5px; font-size: 14px; font-weight: 500; }
.contact__form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.contact__form input[type="email"], .contact__form input[type="text"], .contact__form input[type="password"], .contact__form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px !important; }
.pw__toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw__toggle svg { width: 18px; height: 18px; }
.contact__consent { font-size: 13px; color: var(--muted); }
.contact__note { font-size: 14px; min-height: 1.2em; color: #b42318; text-align: center; }
.link-arrow { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-arrow--back { display: block; margin: 14px auto 0; }
.contact__redirect { text-align: center; color: var(--body); }
.signedin { display: grid; gap: 10px; text-align: center; }
.signedin__label { font-size: 14px; color: var(--muted); }
.signedin__email { font-weight: 500; overflow-wrap: anywhere; }
.signedin__sub { color: var(--body); font-size: 15px; margin-bottom: 6px; }

/* ---------- reviews ---------- */
.testimonials__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.testimonial { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.testimonial__stars, .review-stars { display: flex; gap: 2px; }
.testimonial__star, .review-star svg { width: 18px; height: 18px; fill: #e2e6ed; }
.testimonial__star.is-filled, .review-star.is-active svg, .review-star.is-filled svg { fill: #f2b01e; }
.review-star { border: 0; background: none; padding: 2px; cursor: pointer; }
.testimonial__verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 13px; }
.testimonial__verified svg { width: 13px; height: 13px; }
.testimonials__trust { max-width: 40rem; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 14px; }
.testimonials__cta { text-align: center; margin-top: 16px; }

/* ---------- faq ---------- */
.faq__list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 2px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 17px; font-weight: 500; }
.faq__toggle { flex: none; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq__item.is-open .faq__toggle { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 2px 20px; color: var(--body); max-width: 40em; }

/* ---------- the end of the page: one shade darker than white ---------- */
.end { margin-top: 110px; background: linear-gradient(180deg, #fff 0, var(--end) 240px); }
.final { padding: 150px 20px 110px; text-align: center; }
.final h2 { font-weight: 500; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.038em; text-wrap: balance; }
.final p { margin: 16px auto 28px; color: var(--body); font-size: 18px; max-width: 32em; }
.footer { padding: 44px 20px 30px; font-size: 14.5px; color: var(--body); }
.footer__grid { max-width: var(--page); margin: 0 auto; padding-top: 34px; border-top: 1px solid #d5dbe8; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__col-title { color: var(--ink); font-weight: 500; }
.footer__muted { font-size: 13px; color: var(--muted); margin-top: -5px; }
.footer__bottom { max-width: var(--page); margin: 34px auto 0; font-size: 13px; color: var(--muted); }
/* 44px to tap, pulled left so the icons line up with the text above them. */
.footer__social { display: flex; gap: 2px; margin: 2px 0 0 -11px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--body); transition: color .15s, background-color .15s; }
.footer__social a:hover { color: var(--ink); background: rgba(12,16,22,.06); }
.footer__social a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- review modal ---------- */
.review-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.review-modal__backdrop { position: absolute; inset: 0; background: rgba(12,16,22,.42); }
.review-modal__panel { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; padding: 28px; }
.review-modal__close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.review-modal__title { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.review-modal__sub { color: var(--body); margin: 6px 0 14px; font-size: 15px; }
.review-modal__note { color: #b42318; font-size: 14px; }
.review-modal__success-icon { width: 40px; color: var(--ok); }
.review-anon { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.review-anon__hint { display: block; color: var(--muted); font-size: 13px; }
.section-eyebrow { display: none; }

/* ---------- big monitors: everything grows a step so it doesn't float in space ---------- */
@media (min-width: 1800px) {
  :root { --page: 1320px; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 92px; }
  .hero__sub { font-size: 21px; margin-top: 24px; }
  .hero__actions { margin-top: 36px; }
  .shot { max-width: 1240px; --film-max: 1240px; }
  .meter, .pricing__cards { max-width: 980px; }
}
@media (min-width: 2400px) {
  :root { --page: 1480px; }
  .hero { padding-top: 160px; }
  .hero h1 { font-size: 104px; }
  .hero__sub { font-size: 23px; margin-top: 28px; }
  .hero__actions { margin-top: 40px; }
  .shot { max-width: 1400px; --film-max: 1400px; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .pl-nav-links { display: none; }
  /* A plain bar along the bottom, so it never sits on top of a button. */
  .float-bar {
    top: auto; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(100%);
  }
  .float-bar.is-on { transform: none; }
  .float-bar .cta { display: flex; justify-content: center; width: 100%; min-height: 48px; padding: 0 20px; font-size: 16px; box-shadow: none; }
  /* Big enough for a thumb. */
  .pl-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .seg__btn, .chip, .mini, .tile, .pricing__cta { min-height: 44px; }
  .note__tag { min-height: 36px; }
  .two, .three, .pricing__cards, .msg, .conn, .fork__grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .band { padding-top: 88px; }
  .band__head { margin-bottom: 30px; }
  .conn__group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .trio__stage { min-height: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .end { margin-top: 70px; }
  .final { padding: 110px 20px 70px; }
}
@media (max-width: 520px) {
  .top { --fade: 360px; }
  .pl-nav { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .shot-wrap { padding: 48px 12px 0; }
  .auth-modal { padding: 12px; }
  .auth-modal__panel { padding: 24px 20px 22px; }
  .band { padding-left: 16px; padding-right: 16px; }
  .stage, .panel, .pricing__card, .gate { padding: 20px; }
  .callbox__lines { min-height: 290px; }
  .seg { display: flex; }
  .seg__btn { flex: 1 1 auto; padding: 8px 10px; font-size: 14px; }
  .meter__out p { flex-direction: column; gap: 2px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
