/* Invoice Pro — marketing site.
   Legal pages keep using /style.css; this file styles the landing page only. */

:root {
  --navy-950: #061224;
  --navy-900: #0B192C;
  --navy-800: #152A4A;
  --teal: #00D4FF;
  --blue: #1A6CF0;
  --gold: #FFB800;

  --ink: #0B1324;
  --ink-2: #334155;
  --muted: #5B6B82;
  --line: #E3E8F0;
  --paper: #FFFFFF;
  --tint: #F4F7FB;

  --on-dark: #F3F7FC;
  --on-dark-2: #B6C2D3;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 25, 44, 0.06), 0 2px 8px rgba(11, 25, 44, 0.05);
  --shadow-lg: 0 30px 80px -20px rgba(3, 12, 28, 0.55), 0 12px 30px -12px rgba(3, 12, 28, 0.45);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 820px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: #041018; box-shadow: 0 8px 24px -8px rgba(0, 212, 255, .55); }
.btn--primary:hover { background: #3FE0FF; }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--on-dark); border-color: rgba(255, 255, 255, .18); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 18, 36, .94);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 28px; margin-left: 16px; }
.nav__links a { color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.link-quiet { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; }
.link-quiet:hover { color: #fff; }
.nav__toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(26, 108, 240, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0, 212, 255, .16), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--on-dark);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(64px, 10vw, 128px);
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.eyebrow--dark { color: var(--blue); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; color: #fff; }
.grad { background: linear-gradient(90deg, #7BE6FF 0%, var(--teal) 45%, #5C9DFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row--center { justify-content: center; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--on-dark-2); }
.fineprint--dark { color: var(--muted); text-align: center; margin-top: 24px; }

.hero__visual { position: relative; }
.device { margin: 0; background: #0E1C31; box-shadow: var(--shadow-lg); overflow: hidden; }
.device img { width: 100%; height: auto; background: linear-gradient(135deg, #0F2037, #13294A); }
.device--browser { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); }
.device__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0A1628; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3A52; }
.device__bar span { margin-left: 10px; font-size: 12px; color: #7F8EA6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device--phone {
  position: absolute; right: -2%; bottom: -12%; width: 27%;
  border-radius: 28px; border: 6px solid #0A1628; aspect-ratio: 390 / 835;
}
.device--phone img { height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--on-dark); }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 720; }
.section__head--light h2 { color: #fff; }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .who, .trust {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm);
}
.section--tint .card, .section--tint .trust { background: var(--paper); }
.card h3, .who h3, .trust h3 { font-size: 19px; font-weight: 680; margin-bottom: 8px; }
.card p, .who p, .trust p { color: var(--ink-2); font-size: 16px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .16), rgba(26, 108, 240, .16));
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Showcase ---------- */
.showcase { display: grid; gap: clamp(56px, 8vw, 104px); }
.showcase__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase__row--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.showcase__row--flip .showcase__text { order: 2; }
.showcase__text h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 720; margin-bottom: 14px; }
.showcase__text p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(11, 25, 44, .35); background: linear-gradient(135deg, #0F2037, #13294A); }
.shot img { width: 100%; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); counter-reset: s; }
.step { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 212, 255, .14); color: var(--teal); font-weight: 700; margin-bottom: 18px; }
.step h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--on-dark-2); }

/* ---------- Pricing ---------- */
.region { display: flex; justify-content: center; gap: 6px; margin: 0 auto 32px; padding: 5px; width: max-content; max-width: 100%; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.region__opt { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.region__opt.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.plans { max-width: 820px; margin: 0 auto; }
.plan { position: relative; padding: clamp(26px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan--featured { border-color: rgba(26, 108, 240, .45); box-shadow: 0 24px 60px -28px rgba(26, 108, 240, .45); }
.plan h3 { font-size: 20px; font-weight: 680; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; font-size: clamp(38px, 5vw, 50px); font-weight: 760; letter-spacing: -0.035em; line-height: 1.05; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__note { color: var(--muted); margin-bottom: 24px; flex: 1; }
.badge { position: absolute; top: 20px; right: 20px; background: rgba(255, 184, 0, .16); color: #8A5A00; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.included { list-style: none; padding: 0; margin: 32px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.included li { position: relative; padding-left: 30px; color: var(--ink-2); }
.included li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 200, 83, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A344' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 620; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-4px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Final CTA ---------- */
.final { background: radial-gradient(900px 420px at 50% 0%, rgba(26, 108, 240, .35), transparent 70%), var(--navy-950); color: var(--on-dark); }
.final__inner { text-align: center; padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(64px, 10vw, 112px); }
.final__inner img { margin: 0 auto 24px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.final h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); font-weight: 740; }
.final p { margin-top: 12px; color: var(--on-dark-2); font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand p { margin-top: 14px; font-size: 15px; max-width: 30ch; }
.brand--footer img { border-radius: 7px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .02em; margin-bottom: 4px; }
.footer nav a { color: var(--on-dark-2); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.footer nav a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 22px; padding-bottom: 28px; font-size: 14px; }

/* ---------- Reveal (restrained) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero__visual { max-width: 720px; margin: 0 auto; width: 100%; padding-bottom: 8%; }
  .device--phone { right: -1%; bottom: 0; width: 26%; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase__row { grid-template-columns: minmax(0, 1fr); }
  .showcase__row--flip .showcase__text { order: 0; }
  .showcase__text { text-align: center; max-width: 640px; margin: 0 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 16px;
    background: rgba(6, 18, 36, .97); border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: inline-block; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .included { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-quiet { display: none; }
  .region { width: 100%; }
  .region__opt { flex: 1; padding: 10px 8px; font-size: 14px; }
  .badge { position: static; align-self: flex-start; margin-bottom: 12px; }
}

@media (max-width: 400px) {
  .nav__actions { gap: 8px; }
  .nav__actions .btn--sm { padding: 0 12px; font-size: 14px; }
  .brand span { font-size: 15px; }
  .cta-row .btn { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
