/* ============================================================
   Phone Phoebe — public site
   "Pick up": green is the answer-call button, blue is the calm,
   trustworthy line, white is the page. One animated moment (the
   hero call), one dark band (the missed-calls calculator).

   Headings: Onest. Body: Inter.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --navy:        #0B2545;
  --navy-2:      #13315C;
  --blue:        #1D5BD8;
  --blue-hover:  #1748B5;
  --blue-soft:   #EAF1FF;
  --green:       #0E9F6E;
  --green-ink:   #057A55;
  --green-hover: #046447;
  --green-soft:  #E7F8F0;
  --white:       #FFFFFF;

  --bg:          #FFFFFF;
  --bg-alt:      #F3F7FB;
  --surface:     #FFFFFF;
  --ink:         #0B2545;   /* headings */
  --body:        #3D4B63;
  --muted:       #5F6E85;
  --line:        #E3EAF3;
  --line-strong: #CBD6E4;

  /* Admin site-editor hooks (site-config-loader.js writes these) */
  --accent:      var(--green-ink);
  --accent-2:    var(--blue);
  --accent-ink:  var(--green-ink);
  --accent-soft: var(--green-soft);

  --btn-bg:      var(--accent);
  --btn-fg:      #FFFFFF;
  --btn-bg-hover: var(--green-hover);

  --band:        #0B2545;   /* the one dark band + footer */
  --band-2:      #102E55;

  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 14px rgba(11, 37, 69, .06);
  --shadow-2: 0 2px 6px rgba(11, 37, 69, .06), 0 24px 60px -12px rgba(11, 37, 69, .22);

  --maxw: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Onest', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #071426;
  --bg-alt:      #0B1B33;
  --surface:     #0D1F38;
  --ink:         #F2F7FF;
  --body:        #B4C2D8;
  --muted:       #8193AE;
  --line:        #1C3354;
  --line-strong: #2A4670;
  --blue:        #60A5FA;
  --blue-hover:  #93C2FD;
  --blue-soft:   rgba(96, 165, 250, .12);
  --green:       #34D399;
  --green-soft:  rgba(52, 211, 153, .12);
  --accent:      #34D399;
  --accent-ink:  #34D399;
  --accent-soft: rgba(52, 211, 153, .12);
  --btn-bg:      #34D399;
  --btn-fg:      #04261A;
  --btn-bg-hover: #6EE7B7;
  --band:        #04101F;
  --band-2:      #0A1D36;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px -12px rgba(0, 0, 0, .6);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
main, .footer { overflow-x: clip; }   /* entrance animations may start off-screen; clip keeps position: sticky working */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.022em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.3rem;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: .9rem 1.65rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 6px 18px -6px rgba(5, 122, 85, .55); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); color: #fff; }
.btn--soft, .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--soft:hover, .btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--blue-soft); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.tick-list li { position: relative; padding-left: 1.75rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23057A55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
[data-theme="dark"] .tick-list li::before { background-color: rgba(52, 211, 153, .18); }

/* ---------- 4. Nav: a floating pill ---------- */
.nav {
  position: sticky; top: 12px; z-index: 100;
  width: calc(100% - 2 * var(--gutter)); max-width: 1180px; margin: 12px auto 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  box-shadow: 0 10px 30px -20px rgba(11, 37, 69, .45);
  transition: transform .35s var(--ease), box-shadow .25s;
}
.nav.scrolled { box-shadow: 0 16px 40px -18px rgba(11, 37, 69, .45); }
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav .container { max-width: none; padding-inline: 1rem .5rem; }
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 34px; height: 34px; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: .15rem; margin: 0 auto; }
.nav__links a { color: var(--body); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .85rem; border-radius: var(--r-pill); transition: background-color .15s, color .15s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav__links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav__actions { display: flex; align-items: center; gap: .45rem; }
.nav__actions .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .93rem; }
#themeToggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--body); display: grid; place-items: center; cursor: pointer; }
#themeToggle:hover { color: var(--blue); background: var(--bg-alt); }
#themeToggle svg { display: block; }
.nav__user-name { font-weight: 600; color: var(--ink); font-size: .93rem; padding-inline: .3rem; }
.btn--user-menu { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .93rem; padding: .4rem .5rem; }
.btn--user-menu:hover { color: var(--ink); }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-alt); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150; background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: left; transform: scaleX(0); pointer-events: none; }

@media (max-width: 960px) {
  .nav__burger { display: inline-flex; order: 3; }
  .nav__actions { order: 2; margin-left: auto; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0;
    flex-direction: column; gap: 0; padding: .6rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 24px 50px -20px rgba(11, 37, 69, .4); display: none;
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 16px; }
}
@media (max-width: 560px) {
  .nav__actions #navSignup, .nav__actions .nav__cta { display: none; }
  .brand__name { font-size: 1rem; }
  .nav .container { padding-inline: .8rem .4rem; }
}

/* ---------- 5. Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 40rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.1rem; color: var(--body); margin: 0; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--green-ink); margin-bottom: .7rem; }
[data-theme="dark"] .kicker { color: var(--green); }

/* Reveal: content is visible by default; JS opts in to the fade. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 6. Page hero (subpages) ---------- */
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto 35%; height: 160%; background: radial-gradient(closest-side, rgba(29, 91, 216, .12), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(14, 159, 110, .12), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.page-hero p.lead { font-size: 1.15rem; max-width: 36rem; margin-bottom: 1.8rem; }

/* ---------- 8. Steps (a real sequence) ---------- */
.steps { --draw: 0; position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: left; transform: scaleX(var(--draw)); }
.steps--five { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; z-index: 1; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted);
  font-family: var(--display); font-weight: 800; margin-bottom: 1.1rem; transition: background-color .3s, border-color .3s, color .3s;
}
.step.is-on::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.step:last-child.is-on::before { background: var(--green-ink); border-color: var(--green-ink); }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; font-size: .98rem; }
.how__more { margin-top: 2.5rem; }

/* ---------- 11. Missed-calls calculator (the dark band) ---------- */
.band { background: var(--band); color: #C9D6EA; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -40%; background: radial-gradient(closest-side, rgba(14, 159, 110, .28), transparent 70%); pointer-events: none; }
.band h2, .band h3 { color: #fff; }
.band .section__head p { color: #C9D6EA; }
.band .kicker { color: #6EE7B7; }
.roi { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.roi__inputs { display: grid; gap: 1.8rem; }
.roi__field label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; color: #E3ECF8; margin-bottom: .7rem; }
.roi__field output { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.roi__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #34D399 var(--fill, 30%), rgba(255, 255, 255, .16) var(--fill, 30%)); outline-offset: 6px; }
.roi__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid #34D399; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.roi__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #34D399; cursor: pointer; }
.roi__result { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.roi__big { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.roi__big-label { margin: .5rem 0 1.4rem; color: #C9D6EA; }
.roi__rows { display: grid; gap: .6rem; margin: 0 0 1.6rem; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.roi__rows div { display: flex; justify-content: space-between; gap: 1rem; }
.roi__rows dt { color: #C9D6EA; }
.roi__rows dd { margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.roi__note { font-size: .88rem; color: #A9B9D2; margin: 1rem 0 0; }
.band .btn--primary { --btn-bg: #34D399; --btn-fg: #04261A; --btn-bg-hover: #6EE7B7; box-shadow: none; }

/* ---------- 12. Live demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.demo__copy .tick-list { margin: 1.4rem 0 2rem; }
.call-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-1); text-align: center; }
.call-widget__ring { width: 96px; height: 96px; margin: .4rem auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); position: relative; }
.call-widget__ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(14, 159, 110, .25); }
.call-widget.is-live .call-widget__ring::after { animation: ring 1.4s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.call-widget h3 { margin-bottom: .3rem; }
.call-widget p { color: var(--muted); font-size: .95rem; }
.btn--call { background: var(--green-ink); color: #fff; }
.btn--call:hover { background: var(--green-hover); color: #fff; }
.btn--end-call { background: #D92D20; color: #fff; }
.btn--end-call:hover { background: #B42318; color: #fff; }
.call-status { margin-top: 1rem; }
.call-status__bar { display: flex; justify-content: center; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.call-timer { font-variant-numeric: tabular-nums; color: var(--muted); }
.live-call-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- 14. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-2); }
.plan__badge { position: absolute; top: -14px; left: 1.75rem; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 700; font-size: .82rem; padding: .3rem .8rem; border-radius: var(--r-pill); }
[data-theme="dark"] .plan__badge { background: #1D5BD8; }
.plan__name { font-size: 1.3rem; margin-bottom: .2rem; }
.plan__for { color: var(--muted); font-size: .95rem; min-height: 2.9em; }
.plan__price { display: flex; align-items: baseline; gap: .25rem; margin: .4rem 0 1.4rem; }
.plan__amt { font-family: var(--display); font-weight: 800; font-size: 2.8rem; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan__per { color: var(--muted); }
.plan .btn { margin-bottom: 1.6rem; }
.plan__features { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .96rem; }
.plan__features li { display: flex; gap: .6rem; align-items: flex-start; }
.plan__features li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23E7F8F0'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23057A55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan__features li.muted { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.plan__features li.muted::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23EEF2F7'/%3E%3Cpath d='M7 10h6' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plans__note { text-align: center; color: var(--muted); margin: 2rem 0 0; font-size: .95rem; }
.price-original { text-decoration: line-through; opacity: .55; font-size: .6em; margin-right: .25rem; }

/* ---------- 15. FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-family: var(--display); font-weight: 700; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231D5BD8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/60% no-repeat; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item > p { margin: 0; padding: 0 1.3rem 1.2rem; }

/* ---------- 16. Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 640px; }
.compare th, .compare td { padding: .95rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); color: var(--ink); background: var(--bg-alt); font-size: .95rem; }
.compare thead th.is-us { background: var(--blue); color: #fff; }
.compare th[scope="row"] { text-align: left; color: var(--ink); font-weight: 600; }
.compare td.is-us { background: var(--blue-soft); font-weight: 700; color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.yes { color: var(--green-ink); font-weight: 700; }
.no { color: #B42318; }
.partly { color: #8A5A00; }
[data-theme="dark"] .yes { color: var(--green); } [data-theme="dark"] .no { color: #F97066; } [data-theme="dark"] .partly { color: #FDB022; }

/* ---------- 17. Feature rows (how it works) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature--flip .feature__media { order: -1; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.025em; }
.feature .tick-list { margin-top: 1.2rem; }

/* ---------- 18. Industry detail cards ---------- */
.ind-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.ind { display: grid; grid-template-columns: 180px 1fr; gap: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; }
.ind img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; border-radius: var(--r-md); }
.ind h3 { margin: .35rem 0 .35rem; }
.ind p { font-size: .97rem; margin-bottom: .8rem; }
.ind .tick-list { font-size: .93rem; gap: .35rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .5rem 1rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .95rem; }

/* ---------- 19. CTA + newsletter ---------- */
.cta { padding-block: clamp(3rem, 7vw, 5rem); }
.cta__box {
  border-radius: 32px; padding: clamp(2.2rem, 6vw, 4rem);
  background: linear-gradient(120deg, #1D5BD8 0%, #0F7FA0 50%, #0E9F6E 100%);
  color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
}
.cta__box h2 { color: #fff; margin-bottom: .6rem; }
.cta__box p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.cta__note { font-size: .9rem; color: rgba(255, 255, 255, .85) !important; margin-top: 1rem !important; }

.newsletter-promo__form { display: flex; gap: .6rem; }
.newsletter-promo__form input { flex: 1; min-width: 0; }
.coupon-reveal { text-align: left; }
.coupon-code { display: inline-block; font-family: var(--display); font-size: 1.5rem; letter-spacing: .06em; color: var(--green-ink); background: var(--green-soft); border: 2px dashed rgba(5, 122, 85, .4); border-radius: var(--r-md); padding: .4rem 1rem; margin-bottom: .5rem; }
#discountBanner { display: inline-block; background: var(--green-soft); color: var(--green-ink); font-weight: 600; font-size: .9rem; padding: .3rem .8rem; border-radius: var(--r-pill); margin-bottom: .7rem; }

/* ---------- 20. Forms ---------- */
input[type="email"], input[type="text"], input[type="password"], input[type="tel"], textarea, select {
  width: 100%; min-height: 48px; padding: .7rem .95rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 216, .15); }
input::placeholder { color: #8796AD; }
.form-group { margin-bottom: .85rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ---------- 21. Auth modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400; display: none;
  place-items: center; padding: 1rem;
  background: rgba(7, 20, 38, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal-overlay.open, .modal-overlay.active { display: grid; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 2rem); overflow-y: auto;
  background: var(--surface); border-radius: 24px; padding: 1.5rem clamp(1.3rem, 4vw, 2rem) 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(7, 20, 38, .5); animation: modalIn .28s var(--ease);
}
@keyframes modalIn { from { transform: translateY(14px) scale(.98); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-overlay.open { animation: none; } }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--body); cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.modal__close:hover { color: var(--ink); background: var(--line); }
.modal__logo { width: 36px; height: 36px; margin-bottom: .9rem; }
.modal__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: var(--r-pill); padding: 4px; margin-bottom: 1.1rem; }
.modal__tab { border: 0; background: transparent; padding: .6rem; border-radius: var(--r-pill); font-weight: 600; color: var(--muted); cursor: pointer; }
.modal__tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.modal h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.modal__sub { color: var(--muted); margin-bottom: 1.1rem; font-size: .95rem; }
.modal__error { display: none; background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; padding: .7rem .9rem; border-radius: 12px; font-size: .93rem; margin-bottom: 1rem; }
.modal__error.visible { display: block; }
.modal__error.is-info { background: var(--blue-soft); color: var(--blue-hover); border-color: transparent; }
.modal__plan-badge { background: var(--green-soft); color: var(--green-ink); border-radius: 12px; padding: .55rem .9rem; font-size: .92rem; font-weight: 600; margin-bottom: 1rem; }
.modal__forgot { text-align: right; margin: -.3rem 0 1.1rem; font-size: .9rem; }
.modal__submit { width: 100%; min-height: 50px; border: 0; border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-fg); font-family: var(--display); font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: background-color .15s; }
.modal__submit:hover { background: var(--btn-bg-hover); }
.modal__submit[disabled] { opacity: .65; cursor: progress; }
.modal__switch { text-align: center; margin: 1.2rem 0 0; font-size: .94rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--blue-hover); }
.modal__success { text-align: center; padding: 1rem 0; }
.success-ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }

/* ---------- 22. Legal pages ---------- */
.legal-hero { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-hero .meta { color: var(--muted); margin: 0; }
.legal-content { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.6rem; scroll-margin-top: 90px; }
.legal-content h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.legal-content ul, .legal-content ol { padding-left: 1.3rem; }
.legal-content li { margin-bottom: .4rem; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1rem 0 1.5rem; display: block; overflow-x: auto; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal-content th { background: var(--bg-alt); color: var(--ink); }
.legal-content nav { background: var(--bg-alt); border-radius: var(--r-md); padding: 1rem 1.2rem; font-size: .95rem; line-height: 1.9; }
.highlight-box { background: var(--green-soft); border-left: 4px solid var(--green-ink); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1rem 1.2rem; margin-bottom: 1.8rem; color: var(--ink); }
.highlight-box p:last-child { margin: 0; }

/* ---------- 23. Footer ---------- */
.footer { background: var(--band); color: #A9B9D2; padding-top: clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.footer a { color: #D6E1F1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__news { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 3rem; align-items: center; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__news h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3rem; }
.footer__news p { margin: 0; }
.footer__news .coupon-reveal p { color: #C9D6EA; margin-top: .4rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer .brand { color: #fff; }
.footer__tag { margin: 1rem 0 0; max-width: 22rem; }
.footer__col h4 { color: #fff; font-size: .98rem; margin-bottom: .9rem; }
.footer__col a { display: block; padding: .25rem 0; font-size: .95rem; }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer__mark {
  font-family: var(--display); font-weight: 800; letter-spacing: -.05em; line-height: .78;
  font-size: clamp(2.6rem, 12.6vw, 13rem); white-space: nowrap; text-align: center; margin: .5rem 0 -0.1em; user-select: none;
  background: linear-gradient(90deg, rgba(96, 165, 250, .55), rgba(52, 211, 153, .55)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 24. Currency picker (injected by pricing.js) ---------- */
.currency-picker {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .3rem .4rem .3rem .8rem; box-shadow: var(--shadow-1); font-size: .85rem; color: var(--muted);
}
.currency-picker select { min-height: 0; width: auto; border: 0; padding: .3rem .4rem; background: transparent; font-size: .88rem; color: var(--ink); cursor: pointer; box-shadow: none; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1000px) {
  .demo, .roi, .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .steps::before, .steps::after { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: -1; grid-column: 1 / -1; }
  .ind-list { grid-template-columns: 1fr; }
  .cta__box { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .plans, .steps { grid-template-columns: 1fr; }
  .ind { grid-template-columns: 1fr; }
  .ind img { min-height: 0; aspect-ratio: 16 / 9; }
  .newsletter-promo__form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero__cta .btn, .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .currency-picker { display: none; }
}

/* ---------- 26. Scroll motion (motion.js) ---------- */
/* Split headings: each word rises out of its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w__i { display: inline-block; will-change: transform; }

/* ---------- 27. Video players (video.js) ---------- */
.vid { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: #0B1530; box-shadow: 0 40px 80px -30px rgba(11, 37, 69, .55); isolation: isolate; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0B1530; }
.vid--tall video { aspect-ratio: 9 / 16; }
.vid__controls { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .5rem; z-index: 2; }
.vid__btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem .95rem .5rem .75rem;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; cursor: pointer;
  background: rgba(7, 20, 38, .55); color: #fff; font: 600 .9rem/1 var(--font);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vid__btn:hover { background: rgba(7, 20, 38, .75); }
.vid__btn svg { flex: none; }
.vid .ico-pause, .vid.is-playing .ico-play { display: none; }
.vid.is-playing .ico-pause { display: block; }
.vid .ico-sound-on { display: none; }
.vid.has-sound .ico-sound-on { display: block; }
.vid.has-sound .ico-sound-off { display: none; }
.vid__caption { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 1000px) { .page-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .page-hero__grid .vid video { aspect-ratio: 9 / 16; max-height: 78vh; } }

/* ---------- 28. "Website by Smart Page Studio" credit (studio-credit.js) ----------
   Ported from the Maesdu Garage site's StudioCredit. The flight overlay (.sps-fly) is built on hover/focus. */
@keyframes sps-flap { to { transform: rotate(-26deg) scale(0.8); } }
@keyframes sps-flap2 { to { transform: rotate(20deg) scale(0.84); } }
@keyframes sps-wake { 35% { transform: translateY(1px) scale(0.93, 1.05); } 70% { transform: translateY(-2px) rotate(-5deg) scale(1.05); } }
@keyframes sps-land { 0% { transform: translateY(-2px) scale(1.1); } 45% { transform: translateY(1px) scale(0.93, 1.04); } }
@keyframes sps-shimmer { 0% { background-position: 100% 0; opacity: 1; } 85% { opacity: 1; } 100% { background-position: 0 0; opacity: 0; } }
@keyframes sps-spark { 0% { transform: scale(0); opacity: 0; } 25% { transform: scale(1.2) rotate(45deg); opacity: 1; } 100% { transform: translateY(5px) scale(0) rotate(180deg); opacity: 0; } }
@keyframes sps-burst { 0% { transform: scale(0.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(120deg); opacity: 0; } }
.sps-credit { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.footer .sps-credit__a { display: inline-flex; align-items: center; color: #fff; font-weight: 600; text-decoration: none; }
.footer .sps-credit__a:hover { color: #fff; text-decoration: none; }
.sps-credit__mark { display: inline-block; height: 1.5rem; width: auto; margin-right: .45rem; flex-shrink: 0; vertical-align: middle; overflow: visible; transition: filter .4s; }
.sps-credit__name { position: relative; white-space: nowrap; }
.sps-credit__name::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; white-space: nowrap; color: transparent; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 34%, #0d9488 42%, #2dd4bf 47%, #c084fc 51%, #ec4899 55%, #db2777 59%, transparent 67%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.sps-b, .sps-w1, .sps-w2 { transform-box: view-box; }
.sps-b { transform-origin: 25px 26px; }
.sps-w1, .sps-w2 { transform-origin: 27px 20px; }
.sps-box--g { opacity: 0; transition: opacity .3s; }
[data-play] :is(.sps-w1, .sps-w2), .sps-fly :is(.sps-w1, .sps-w2) { animation: sps-flap .07s ease-in-out infinite alternate; }
[data-play] .sps-w2, .sps-fly .sps-w2 { animation-name: sps-flap2; }
[data-play='wake'] .sps-b { animation: sps-wake .28s ease-in-out; }
[data-play='fly'] .sps-b { opacity: 0; }
[data-play='land'] .sps-b { animation: sps-land .45s ease-out; }
:is([data-play='wake'], [data-play='fly'], [data-play='glow']) .sps-box--g { opacity: 1; }
:is([data-play='wake'], [data-play='fly']) .sps-credit__name::after { animation: sps-shimmer 1.9s ease-in-out; }
:is([data-play='fly'], [data-play='glow']) .sps-credit__mark { filter: drop-shadow(0 0 3px rgb(236 72 153 / .75)) drop-shadow(0 0 7px rgb(45 212 191 / .55)); }
.sps-fly { position: fixed; z-index: 500; pointer-events: none; }
.sps-fly > *, .sps-fly__o > * { position: absolute; left: 0; top: 0; }
.sps-fly__b { will-change: transform; }
.sps-fly__b svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sps-fly__t { overflow: visible; }
.sps-fly i { width: calc(var(--z) * 2); height: calc(var(--z) * 2); margin: calc(var(--z) * -1) 0 0 calc(var(--z) * -1); background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 62%); animation: sps-spark 1s ease-out both; }
.sps-fly i::before { content: ''; position: absolute; inset: 22%; background: radial-gradient(circle, #fff 0 14%, var(--c) 36%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.sps-fly i.sps-x { animation: sps-burst .75s ease-out both; }
@media (prefers-reduced-motion: reduce) { .sps-credit *, .sps-fly { animation: none !important; } }
