/* InvoiceBee site stylesheet. */
:root {
  --yellow: #fdc50c;
  --ink: #1f1f1f;
  --text: #3a3a3a;
  --muted: #5f6368;
  --slate: #54595f;
  --slate-dark: #3f4348;
  --green: #61ce70;
  --line: #e6e7ea;
  --tint: #f9f9fb;
  --plan: #f7f8f8;
  --footer: #232428;
  --radius: 10px;
  --max: 1160px;
  --cream: #fffbf0;
  --honey: #fff4c7;
  --yellow-dark: #e8b200;
  --paid: #12a150;
  --paid-ink: #0b7a3b;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section__head h2 { color: var(--ink); }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 12px; }

.btn { display: inline-block; padding: 9px 24px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 0; transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.hero--art .btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); border-radius: 12px; padding: 14px 28px; font-size: 1.05rem; font-weight: 700; box-shadow: 0 6px 16px -10px rgba(232,178,0,0.9); }
.hero--art .btn--primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header / footer */
.topbar { height: 4px; background: var(--yellow); }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(31,31,31,0.06); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-header__logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 500; }
.site-nav__links { display: flex; }
.site-nav a { text-decoration: none; }
.site-nav__links a { padding: 10px 14px; color: var(--ink); border-radius: 8px; transition: background 0.15s; }
.site-nav__links a:hover { background: var(--honey); }
.site-nav__cta { margin-left: 8px; padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 600; transition: background 0.15s, transform 0.15s; }
.site-nav__cta:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.lang-menu { position: relative; margin-right: 16px; }
.lang-menu summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 8px 4px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin: 5px 0 0 6px; }
.lang-menu ul { position: absolute; top: 100%; left: 0; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,0.08); min-width: 150px; }
.lang-menu li a { display: flex; align-items: center; gap: 6px; padding: 6px 14px; }
.lang-menu li a:hover { background: var(--tint); }
.site-footer { background: var(--footer); color: #fff; padding: 28px 0; font-size: 0.95rem; text-align: center; }
.site-footer a { color: #fff; }
.site-footer__links { margin: 0 0 8px; }
.site-footer__text { margin: 0; font-size: 0.75rem; opacity: 0.8; }
@media (max-width: 1023px) {
  /* Phones and tablets: logo and download button on the first row; language menu and links on the second,
     which wraps rather than running off the screen when a language's labels are long. */
  .site-header .container { position: relative; flex-wrap: wrap; gap: 0; padding-top: 12px; padding-bottom: 4px; min-height: 0; }
  .site-header__logo img { height: 30px; }
  .site-nav { width: 100%; margin-left: 0; margin-top: 8px; flex-wrap: wrap; justify-content: space-between; font-size: 0.9rem; }
  .site-nav__cta { position: absolute; top: 8px; right: 20px; margin: 0; padding: 8px 14px; white-space: nowrap; }
  .lang-menu { margin-right: 0; }
  .site-nav__links { flex-wrap: wrap; justify-content: flex-end; }
  .site-nav__links a { padding: 8px 10px; white-space: nowrap; }
  .site-header { position: static; }
}
@media (max-width: 430px) { .site-header__logo img { height: 26px; } .site-nav__cta { font-size: 0.85rem; padding: 7px 12px; } }
@media (max-width: 369px) {
  /* Too narrow for the logo and a long button side by side: the button joins the second row. */
  .site-nav__cta { position: static; order: 3; margin: 2px 0 6px auto; }
}

/* Hero */
.hero { padding: 64px 0 24px; }
.hero > .container:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.hero__photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; }
.hero__photos img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.hero__photos img:nth-child(2) { aspect-ratio: 7 / 10; }
.hero__eyebrow { display: flex; align-items: center; gap: 4px; font-size: 1.6rem; font-weight: 500; margin-bottom: 20px; }
.hero__eyebrow img { width: 50px; height: 50px; }
.hero h1 { margin-bottom: 0.8em; }
.hero__body { font-size: 1.1rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 110px; padding-top: 64px; padding-bottom: 24px; }
.badges img { width: 173px; }

/* Hero with the animated invoice */
.hero--art { position: relative; overflow: hidden; overflow: clip; padding: 72px 0 56px; background: radial-gradient(120% 90% at 85% 10%, var(--honey) 0%, var(--cream) 45%, #fff 100%); }
.hero--art > .container:first-child { grid-template-columns: 1.02fr 1fr; gap: 56px; }
@media (min-width: 861px) { .hero--art { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; } .hero--art > .container { width: 100%; } }
.hero--art .hero__eyebrow { display: inline-flex; gap: 8px; padding: 6px 16px 6px 8px; font-size: 0.95rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #f6e3a1; border-radius: 999px; box-shadow: 0 2px 10px -6px rgba(31,31,31,0.25); margin-bottom: 24px; }
.hero--art .hero__eyebrow img { width: 26px; height: 26px; }
.hero--art h1:lang(de) { font-size: clamp(2.1rem, 4.1vw, 3.25rem); }
.hero--art h1 { font-size: clamp(2.4rem, 4.8vw, 3.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 0.55em; text-wrap: balance; }
.hero--art .ticks { display: grid; gap: 10px; font-size: 1.08rem; color: var(--ink); }
.ticks svg { width: 22px; height: 22px; flex: none; }
.ticks svg circle { fill: var(--honey); }
.ticks svg path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero--art .btn-row { margin-top: 32px; align-items: center; gap: 12px 20px; }
.hero__platforms { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__platforms svg { width: 20px; height: 20px; }
.hero__art { position: relative; }
.hero__art .art { width: 100%; height: auto; display: block; overflow: visible; }
.art__total { font: 800 22px Inter, system-ui, sans-serif; fill: var(--paid-ink); letter-spacing: -0.01em; }
/* Hero phone: readable text inside the drawn phone screen. */
.art--option text { font-family: Inter, system-ui, sans-serif; fill: var(--ink); }
.phone__title { font-size: 19px; font-weight: 800; }
.phone__title--reference { font-size: 16px; font-weight: 600; }
.phone__muted-dark { font-size: 13px; font-weight: 600; fill-opacity: 0.6; }
.phone__due-date { font-size: 8.5px; font-weight: 400; }
.phone__date { font-size: 14.5px; font-weight: 600; }
.phone__number-label { font-size: 10px; font-weight: 400; }
.phone__number { font-size: 13px; font-weight: 600; }
.phone__initials { font-size: 11px; font-weight: 700; }
.phone__client { font-size: 15px; font-weight: 700; }
.phone__client--reference { font-size: 14px; font-weight: 500; }
.phone__item { font-size: 13.5px; font-weight: 500; }
.phone__label { font-size: 12px; font-weight: 600; fill: var(--muted) !important; }
.phone__total { font-size: 30px; font-weight: 800; fill: var(--paid-ink) !important; letter-spacing: -0.02em; }
.phone__status { font-size: 12px; font-weight: 700; fill: var(--paid-ink) !important; }
.phone__status--compact { font-size: 9px; font-weight: 600; }
.phone__total--unpaid, .phone__status--unpaid { fill: var(--muted) !important; }
.phone__status--sent, .phone__status--paid { fill: #fff !important; }
.phone__label--paid { fill: var(--paid-ink) !important; }
.phone__flow-label { font-size: 10px; font-weight: 700; }
.phone__flow-total { font-size: 22px; }
.phone__flow-total:not(.phone__total--unpaid), .phone__flow-label.phone__label--paid { fill: #75943b !important; }
.phone__setting { font-size: 11px; font-weight: 500; }
.phone__signature-date { font-size: 10px; fill: var(--muted) !important; }
/* Signing preview: without motion, show the invoice with its existing status and no popup. */
.flow-overlay, .flow-paid { display: none; }
.ratings { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(31,31,31,0.08); }
.rating { display: flex; align-items: center; gap: 12px; }
.rating__score { font-size: 2.25rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.rating__meta { display: grid; gap: 4px; }
.rating__stars { width: 92px; height: 18px; fill: var(--yellow); }
.rating__empty { fill: #e6e7ea; }
.rating__store { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.rating__store svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .hero--art { padding: 32px 0 48px; }
  .hero--art > .container:first-child { gap: 0; }
  .hero--art .hero__text { display: contents; }
  .hero--art .hero__eyebrow { justify-self: start; }
  .hero--art .hero__art { order: 1; margin-top: 28px; }
  .hero--art .ratings { order: 2; }
  .hero--art .btn-row { margin-top: 24px; }
  .hero__art { max-width: 420px; margin: 0 auto; width: 100%; }
  .ratings { margin-top: 28px; padding-top: 20px; }
  .rating__score { font-size: 1.9rem; }
}
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero > .container:first-child { grid-template-columns: 1fr; }
  .hero__eyebrow { font-size: 1.2rem; }
  .badges { gap: 24px 40px; }
  .badges img { width: 130px; }
}

/* Section rhythm */
.section { padding: 96px 0; }
.section__head { margin-bottom: 48px; }
.section__head h2, .download__title { font-weight: 800; letter-spacing: -0.02em; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.section--tint { background: var(--cream); }
@media (max-width: 860px) { .section { padding: 64px 0; } .section__head { margin-bottom: 32px; } }

/* Features: three cards with drawn icons */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.section--features .grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .section--features .grid { grid-template-columns: 1fr; } }

.section--features { padding-top: 40px; }
.feature { padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(31,31,31,0.25); }
@media (min-width: 701px) and (max-width: 960px) { .section--features .grid { gap: 14px; } .feature { padding: 24px 18px; } }
.feature-icon { width: 64px; height: 64px; display: block; margin-bottom: 20px; overflow: visible; }
.feature__icon { width: 64px; height: 64px; margin-bottom: 20px; }
.feature h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.feature__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.feature__points li { position: relative; padding-left: 18px; }
.feature__points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }

/* Download: laptop with the app, and the four platforms */
.download__intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-bottom: 64px; }
/* Laptop: the lid is a separate layer hinged at its bottom edge, so it can open in 3D (motion block below). */
.laptop { position: relative; perspective: 2600px; perspective-origin: 50% 20%; }
.laptop svg { display: block; width: 100%; height: auto; overflow: visible; }
.laptop__lid { transform-origin: 50% 100%; transform-style: preserve-3d; }
.laptop__base { margin-top: -0.4%; overflow: visible; }
.download__title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; color: var(--ink); }
.download__text p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color 0.2s, box-shadow 0.2s; }
.platform:hover { border-color: #f1d77a; box-shadow: 0 14px 30px -22px rgba(31,31,31,0.3); }
.platform__logo { width: 30px; height: 30px; color: var(--ink); }
.platform__name { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.platform__button { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.platform__button:hover { background: #000; transform: translateY(-1px); }
.platform__button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 961px) {
  .platform { gap: 12px; padding: 18px; }
}
@media (max-width: 960px) {
  .download__intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 0; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  /* Phones and small tablets: tapping "Download" lands on the platform buttons first, then the laptop and text. */
  .download .container { display: flex; flex-direction: column; }
  .download .platforms { order: 1; margin-bottom: 48px; }
  .download__intro { order: 2; }
}
/* With the sticky desktop header, links to #download or #pricing stop just below it, not under it. */
@media (min-width: 1024px) { section[id] { scroll-margin-top: 72px; } }
@media (max-width: 480px) {
  .platforms { grid-template-columns: 1fr; gap: 10px; }
  .platform { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
  .platform__logo { width: 26px; height: 26px; }
  .platform__button { margin: 0 0 0 auto; padding: 9px 14px; white-space: nowrap; }
}
@media (max-width: 359px) {
  /* Smallest phones: the button shows its arrow only; its aria-label still says "Download: Mac". */
  .platform__button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .platform__button { padding: 10px; }
}

/* Pricing: one section with a yearly / monthly switch */
.billing { width: max-content; max-width: 100%; margin: -24px auto 40px; padding: 4px; background: #f3f4f6; border-radius: 999px; }
.billing__option { appearance: none; border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font: 600 0.95rem Inter, system-ui, sans-serif; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.billing__option[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(31,31,31,0.2); }
.billing__option:focus-visible, .platform__button:focus-visible, .plan__button:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 3px; }
.js .pricing [data-plan-set]:not([data-active]) { display: none; }
.billing { display: none; }
.plans__label { grid-column: 1 / -1; margin: 0; font-weight: 700; color: var(--ink); }
.js .plans__label { display: none; }
.js .billing { display: flex; }
.pricing [data-plan-set] + [data-plan-set] { margin-top: 24px; }
.js .pricing [data-plan-set] + [data-plan-set] { margin-top: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.plan--featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 24px 48px -28px rgba(31,31,31,0.45); }
.plan__ribbon { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.8rem; font-weight: 700; }
.plan__name { font-size: 1.35rem; font-weight: 800; margin: 0; }
.plan__tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; min-height: 3em; }
.plan__price { display: flex; align-items: flex-start; margin-top: 24px; color: var(--ink); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.plan__currency { font-size: 1.5rem; margin-top: 6px; margin-right: 2px; }
.plan__whole { font-size: 3.5rem; }
.plan__cents { font-size: 1.5rem; margin-top: 6px; }
.plan__period { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; min-height: 1.5em; }
@media (max-width: 960px) { .plan__period { min-height: 3em; } }
.plan__button { display: block; margin: 24px 0; padding: 12px 18px; border-radius: 12px; text-align: center; font-weight: 700; text-decoration: none; color: var(--ink); background: #f3f4f6; transition: background 0.15s, transform 0.15s; }
.plan__button:hover { background: #e8e9ec; transform: translateY(-1px); }
.plan--featured .plan__button { background: var(--yellow); }
.plan--featured .plan__button:hover { background: var(--yellow-dark); }
.plan__features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; }
.plan__features svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--paid); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan__devices { margin: auto 0 0; display: flex; gap: 12px; color: var(--muted); }
.plan__devices svg { width: 20px; height: 20px; }
.plan__devices-img { margin-top: auto; height: 24px; width: auto; }
@media (min-width: 701px) and (max-width: 960px) { .plans { gap: 12px; } .plan { padding: 26px 16px 20px; } .plan__whole { font-size: 2.75rem; } .plan__ribbon { left: 16px; } }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; max-width: 440px; } }

/* Testimonial */
.spotlight { overflow: hidden; overflow: clip; background: linear-gradient(180deg, var(--cream), var(--honey)); }
.spotlight .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.spotlight--text-only .container { grid-template-columns: 1fr; }
.spotlight__quote { margin: 0; }
.spotlight__mark { width: 56px; height: 42px; fill: none; stroke: var(--yellow-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.spotlight__quote blockquote { margin: 0 0 32px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.spotlight__person { display: flex; align-items: center; gap: 14px; }
.spotlight__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px -6px rgba(31,31,31,0.4); }
.spotlight__person strong { display: block; color: var(--ink); font-size: 1.05rem; }
.spotlight__role { color: var(--muted); font-size: 0.92rem; }
.spotlight__media { justify-self: end; width: 100%; max-width: 520px; }
/* Sections with scroll-driven parts crop with overflow: clip, not hidden: hidden makes the section its own
   scroll box, which freezes a view() timeline inside it. (hidden stays as the fallback for older browsers.) */
/* Phone collage: five phones stacked in their original places; each drifts at its own pace on scroll. */
.collage { position: relative; width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.collage__phone { position: absolute; height: auto; max-width: none; }
.spotlight__image { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
@media (max-width: 860px) { .spotlight .container { grid-template-columns: 1fr; gap: 40px; } .spotlight__media { justify-self: center; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 40px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Generic sections kept from the template */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 48px; }
.logos img { height: 36px; width: auto; opacity: 0.75; filter: grayscale(1); }
.split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split ul { padding: 0; list-style: none; margin: 0; }
.split li { position: relative; padding-left: 24px; margin-bottom: 12px; }
.split li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
@media (max-width: 860px) { .split .container { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.step { counter-increment: step; }
.step__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); }
.step h3::before { content: counter(step) ". "; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.15s; }
a.card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__body { padding: 24px; }
.card__body p { color: var(--muted); margin: 0; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.testimonial img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.testimonial blockquote { margin: 0; padding: 24px 24px 8px; font-weight: 600; color: var(--ink); }
.testimonial p { padding: 0 24px 24px; color: var(--muted); margin: 0; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
/* Closing call to action: a yellow band with a traced honeycomb. */
.section--cta { padding-top: 0; background: var(--honey); }
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding: 56px 64px; border-radius: 28px; background: var(--yellow); }
.cta__comb { position: absolute; right: 22%; top: 50%; width: 220px; height: auto; transform: translateY(-50%); fill: none; stroke: #1f1f1f; stroke-opacity: 0.18; stroke-width: 2; stroke-linejoin: round; pointer-events: none; }
.cta__text, .cta__action { position: relative; }
.cta h2 { margin: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; max-width: 18ch; }
.cta p { margin: 12px 0 0; color: var(--ink); }
.cta__action { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta__action .hero__platforms { color: rgba(31,31,31,0.65); }
.cta__button { display: inline-block; padding: 16px 30px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; transition: background 0.15s, transform 0.15s; }
.cta__button:hover { background: #000; transform: translateY(-2px); }
.cta__button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* With a photo: a real person at work on the right; heading and button stack on the left. */
.cta--photo { grid-template-columns: 1fr minmax(240px, 0.8fr); grid-template-areas: "text photo" "action photo"; padding: 0 0 0 64px; align-items: end; gap: 20px 48px; }
.cta--photo .cta__text { grid-area: text; align-self: end; padding-top: 56px; }
.cta--photo .cta__action { grid-area: action; align-items: flex-start; align-self: start; padding-bottom: 56px; }
/* Square photo: keep his face (about 20% down) and hands (about 78% down) in the frame at every width. */
.cta__photo { grid-area: photo; align-self: stretch; width: 100%; height: 100%; min-height: 320px; max-height: 380px; object-fit: cover; object-position: 58% 18%; border-radius: 0 28px 28px 0; }
.cta--photo .cta__comb { right: auto; left: 46%; }
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; padding: 40px 28px; text-align: left; }
  .cta__action { align-items: flex-start; }
  .cta__comb { right: -48px; top: auto; bottom: -56px; transform: none; width: 170px; }
  .cta--photo { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "action"; padding: 0 28px 40px; gap: 20px; }
  .cta--photo .cta__text { padding-top: 8px; }
  .cta--photo .cta__action { padding-bottom: 0; }
  .cta__photo { min-height: 0; height: 240px; margin: 0 -28px; width: calc(100% + 56px); max-width: none; border-radius: 28px 28px 0 0; object-position: 60% 24%; }
  .cta--photo .cta__comb { left: auto; right: -48px; }
}

/* Motion. Line drawings carry pathLength="1": they trace in when their [data-reveal] block arrives on screen
   (motion.ts adds "is-in") and rewind quickly once it leaves, so they replay on the way back. --d delays a
   part, --t sets how long it takes. Only applies with JavaScript on (html.js) and no reduced-motion request. */
@media (prefers-reduced-motion: no-preference) {
  /* Hidden lines sit just past the start of their path (offset 1.02 with a 1 on, 2 off pattern), so not even a
     round line end shows: drawing begins from nothing rather than from a dot. */
  .js [data-reveal] .draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset 0.35s var(--ease); }
  .js [data-reveal] .fade { opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; }
  /* Spins back from --turn degrees to its place, fast at first and easing to a stop. */
  .js [data-reveal] .sweep { opacity: 0; transform: rotate(calc(-1 * var(--turn, 360deg))); transform-box: view-box; transition: opacity 0.2s, transform 0.3s; }
  .js [data-reveal].is-in .sweep { opacity: 1; transform: rotate(0deg); transition: opacity 0.1s var(--d, 0s), transform 1.2s cubic-bezier(0.1, 0.75, 0.2, 1) var(--d, 0s); }
  .js [data-reveal] .grow { opacity: 0; transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; transition: opacity 0.2s, transform 0.25s; }
  .js [data-reveal].is-in .grow { opacity: 1; transform: none; transition: opacity 0.1s var(--d, 0s), transform var(--t, 0.4s) var(--ease) var(--d, 0s); }
  .js [data-reveal] .slide { opacity: 0; transform: translateX(-8px); transition: opacity 0.2s, transform 0.2s; }
  .js [data-reveal].is-in .slide { opacity: 1; transform: none; transition: opacity 0.3s var(--d, 0s), transform 0.4s var(--ease) var(--d, 0s); }
  .js [data-reveal] .pop { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; transition: opacity 0.25s, transform 0.25s; }
  .js [data-reveal].is-in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t, 0.9s) var(--ease) var(--d, 0s); }
  .js [data-reveal].is-in .fade { opacity: 1; transform: none; transition: opacity 0.6s var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s); }
  .js [data-reveal].is-in .pop { opacity: 1; transform: none; transition: opacity 0.3s var(--d, 0s), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s); }
  .js .is-in .float { animation: float 6s ease-in-out infinite; }
  .js .is-in .float--b { animation-duration: 7s; animation-delay: -2s; }
  @keyframes float { 50% { transform: translateY(-8px); } }
  /* The lid starts almost shut and swings up to upright; then the screen lights up. Closing again happens
     only once the section is fully off screen, so the visitor never sees it snap shut. */
  .js [data-reveal] .laptop__lid { transform: rotateX(-84deg); transition: transform 0.4s ease-in; }
  .js [data-reveal] image.laptop__screen { opacity: 0; transition: opacity 0.2s; }
  /* Keep the reflection faint on black glass, then strengthen it with the UI fade. */
  .js [data-reveal] .laptop__sheen { opacity: 0.05; transition: opacity 0.2s; }
  .js [data-reveal].is-in .laptop__lid { transform: none; transition: transform 1.3s cubic-bezier(0.2, 0.75, 0.25, 1) 0.35s; }
  .js [data-reveal].is-in image.laptop__screen { opacity: 1; transition: opacity 0.6s 1.35s; }
  .js [data-reveal].is-in .laptop__sheen { opacity: 0.15; transition: opacity 0.6s 1.35s; }
  /* Signing preview: invoice finishes at about 2s, then holds for 0.8s. Popup enters 2.8 to 3.2;
     signature draws 3.3 to 4.2; hold until 4.8; close by 5.2. Paid appears at 5.8 after a short beat. */
  .js [data-reveal] .flow-overlay, .js [data-reveal] .flow-paid { display: inline; opacity: 0; pointer-events: none; }
  .js [data-reveal] .flow-sign, .js [data-reveal] .flow-tick { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
  .js [data-reveal].is-in .flow-overlay { animation: flow-overlay 2.4s 2.8s linear both; }
  .js [data-reveal].is-in .flow-popup { animation: flow-popup 2.4s 2.8s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
  .js [data-reveal].is-in .flow-sign { animation: flow-draw 0.9s 3.3s var(--ease) both; }
  .js [data-reveal].is-in .flow-unpaid { animation: flow-unpaid-out 0.2s 5.6s linear both; }
  .js [data-reveal].is-in .flow-paid { animation: flow-paid-in 0.3s 5.8s linear both; }
  .js [data-reveal] .flow-paid-badge { transform-box: fill-box; transform-origin: center; }
  .js [data-reveal].is-in .flow-paid-badge { animation: flow-paid-pop 0.45s 5.8s var(--ease) both; }
  .js [data-reveal].is-in .flow-tick { animation: flow-draw 0.3s 6.05s var(--ease) both; }
  @keyframes flow-overlay { 0%, 100% { opacity: 0; } 16.6667%, 83.3333% { opacity: 1; } }
  @keyframes flow-popup { 0%, 100% { transform: translateY(12px); } 16.6667%, 83.3333% { transform: none; } }
  @keyframes flow-draw { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }
  @keyframes flow-unpaid-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes flow-paid-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes flow-paid-pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.08); } 100% { transform: none; } }
  @supports (animation-timeline: view()) {
    /* The reflection travels across more of the screen as the laptop crosses the viewport. */
    .js .laptop { view-timeline: --laptop-screen block; }
    .js .laptop__sheen { animation: laptop-sheen linear both; animation-timeline: --laptop-screen; animation-range: cover; }
    @keyframes laptop-sheen { from { transform: translateX(-80px); } to { transform: translateX(80px); } }
    .js .spotlight__image { animation: rise linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes rise { from { transform: translateY(48px); } to { transform: translateY(-48px); } }
    /* One shared timeline (the whole collage crossing the screen), so the phones move in step. */
    .js .collage { view-timeline: --collage block; }
    .js .collage__phone { animation: drift-phone linear both; animation-timeline: --collage; animation-range: cover; }
    @keyframes drift-phone { from { transform: translate(calc(var(--dx) * -1), calc(var(--dy) * -1)); } to { transform: translate(var(--dx), var(--dy)); } }
    .js .art__comb { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: translateY(28px); } to { transform: translateY(-28px); } }
  }
}
