/* Landing page — static, no build step. All brand colours flow from --brand
   (overridden at runtime by main.js from the platform_branding row). */
:root {
  --brand: #65b42d;
  --brand-hover: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 16%, #fff);
  --brand-glow: color-mix(in srgb, var(--brand) 14%, transparent);

  --ink: #0d0d0d;
  --ink-2: #3b3d3b;
  --muted: #5f635f;
  --line: #e7e6e2;
  --bg: #ffffff;
  --warm: #f7f7f5;
  --dark: #111111;
  --green: #1f9d55;
  --amber: #e8a317;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 16, .05), 0 2px 8px rgba(16, 16, 16, .04);
  --shadow: 0 2px 6px rgba(16, 16, 16, .05), 0 18px 40px -12px rgba(16, 16, 16, .16);
  --shadow-lg: 0 30px 70px -20px rgba(16, 16, 16, .28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 18px; letter-spacing: -0.015em; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.text-brand { color: var(--brand); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; color: var(--ink); overflow-wrap: anywhere; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: #cfcdc7; }
.btn--white { background: #fff; color: var(--brand-hover); }
.btn--white:hover { background: var(--brand-tint); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Brand wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.wordmark__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); position: relative; flex: none; }
.wordmark__mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
/* The HQ logo is a wordmark + icon PNG: size it by height, never squash it. */
.brand-logo { height: 42px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
@media (max-width: 860px) { .brand-logo { height: 34px; max-width: 190px; } .wordmark { font-size: 20px; } .wordmark__mark { width: 24px; height: 24px; } .wordmark__mark::after { inset: 8px; } }
.brand-logo[hidden], .wordmark[hidden] { display: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--warm); }
.nav__login-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__inner { height: 64px; gap: 12px; }
  .nav__toggle { display: inline-flex; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn { display: none; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { font-size: 16px; padding: 12px 10px; }
  .nav__login-mobile { display: inline-flex; margin-top: 8px; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero__glow { position: absolute; inset: -20% -10% auto 40%; height: 720px; background: radial-gradient(closest-side, var(--brand-glow), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero { padding: 72px 0 112px; } .hero__grid { grid-template-columns: 1.04fr 1fr; gap: 40px; } }
.hero__title { font-size: clamp(36px, 9.4vw, 46px); letter-spacing: -0.035em; margin: 22px 0 22px; text-wrap: balance; max-width: 13em; }
.hero__line { display: block; text-wrap: balance; }
/* Plus Jakarta's heavy full stop carries a wide left side-bearing, which at
   display sizes reads as "restaurant ." — pull it back onto the word. */
.tight-stop { margin-left: -0.1em; }
.tight-apos { margin: 0 -0.03em 0 -0.06em; }
@media (min-width: 600px) { .hero__title { font-size: clamp(46px, 7vw, 58px); } }
@media (min-width: 1024px) { .hero__title { font-size: clamp(42px, 4.2vw, 54px); max-width: none; } }
.lead { font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--muted); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks li::before, .checks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* Screenshot stage (real app screenshots in device frames) */
.hero__visual { position: relative; padding: 10px 0 40px; min-width: 0; }
.laptop { position: relative; width: 82%; max-width: 600px; margin: 0; }
.laptop__screen { background: #1a1a1a; border-radius: 16px 16px 4px 4px; padding: 10px; box-shadow: var(--shadow-lg); }
.laptop__base { height: 14px; margin: 0 -5%; background: linear-gradient(#d9d8d4, #bfbdb8); border-radius: 0 0 14px 14px; position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #aaa8a3; border-radius: 0 0 6px 6px; }
.shot { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--warm); }

.phone { position: absolute; right: 0; bottom: 0; width: 25%; max-width: 168px; aspect-ratio: 9 / 18.5; background: #111; border-radius: 26px; padding: 7px; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.phone__notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 34%; height: 10px; background: #111; border-radius: 0 0 8px 8px; z-index: 2; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 20px; background: var(--warm); }

.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px 9px 9px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.25; animation: float 7s ease-in-out infinite; }
.chip b { display: block; font-weight: 700; }
.chip small { color: var(--muted); font-size: 12.5px; }
.chip__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 800; flex: none; }
.chip__ico--green { background: #e3f5ea; color: var(--green); }
.chip--a { left: -3%; top: -4%; animation-delay: -2s; }
.chip--b { left: 6%; bottom: 0; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 600px) {
  .laptop { width: 88%; }
  .laptop__screen { padding: 6px; border-radius: 12px 12px 3px 3px; }
  .phone { width: 30%; border-radius: 20px; padding: 5px; }
  .phone__shot { border-radius: 15px; }
  .chip { font-size: 11.5px; padding: 6px 10px 6px 6px; border-radius: 12px; }
  .chip small { font-size: 10.5px; }
  .chip__ico { width: 26px; height: 26px; border-radius: 8px; }
  .chip--a { left: 0; top: -14px; }
  .chip--b { left: 0; bottom: -6px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--warm { background: var(--warm); }
@media (max-width: 767px) { .section { padding: 72px 0; } }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow--light { color: color-mix(in srgb, var(--brand) 45%, #fff); }

.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 20px; }
.card__ico .i { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* "See it in action" gallery */
.gallery { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; } }
.shotcard { margin: 0; min-width: 0; }
.shotcard__frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.shotcard:hover .shotcard__frame { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shotcard__bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1f0ed; border-bottom: 1px solid var(--line); }
.shotcard__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8d6d1; }
.shotcard img { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--warm); }
.shotcard figcaption { margin-top: 16px; padding: 0 4px; }
.shotcard figcaption b { display: block; font-size: 17px; letter-spacing: -0.015em; }
.shotcard figcaption span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Offline band */
.offline { background: var(--dark); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.offline::before { content: ""; position: absolute; right: -10%; top: -30%; width: 640px; height: 640px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%); pointer-events: none; }
.offline__grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .offline__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.offline__lead { margin-top: 18px; color: #c9c9c6; font-size: 17px; max-width: 560px; }
.offline__list { margin-top: 26px; display: grid; gap: 12px; }
.offline__list li { display: flex; gap: 12px; align-items: flex-start; color: #ececea; font-weight: 600; }
.offline__list li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.sync { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 26px; min-width: 0; }
.sync__row { display: flex; align-items: center; gap: 8px; }
.sync__dev, .sync__cloud { flex: none; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 14px; }
.sync__cloud { background: var(--brand); }
.sync__line { flex: 1; height: 2px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; border-radius: 2px; min-width: 12px; }
.sync__line i { position: absolute; top: 0; left: 0; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: flow 2.2s linear infinite; }
.sync__line--r i { animation-direction: reverse; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.sync__log { margin-top: 22px; display: grid; gap: 10px; font-size: 14px; color: #d3d3d0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sync__log div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: rgba(255, 255, 255, .04); border-radius: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--amber { background: var(--amber); }
.dot--green { background: #36c172; }
@media (max-width: 480px) { .sync { padding: 18px; } .sync__dev, .sync__cloud { padding: 8px 10px; font-size: 12.5px; } .sync__log { font-size: 12.5px; } }

/* Steps */
.steps { display: grid; gap: 28px; position: relative; counter-reset: s; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-soft) 0 10px, transparent 10px 18px); }
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 800; font-size: 18px; position: relative; box-shadow: 0 0 0 8px #fff; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 899px) {
  .steps { max-width: 520px; margin: 0 auto; }
  .steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: repeating-linear-gradient(180deg, var(--brand-soft) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; margin-top: 4px; }
}

/* Own address */
.address { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .address { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink-2); }
.browser { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f1f0ed; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #d8d6d1; }
.browser__dots i:first-child { background: #ff6159; }
.browser__dots i:nth-child(2) { background: #ffbd2e; }
.browser__dots i:nth-child(3) { background: #28c941; }
.browser__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__url b { color: var(--ink); }
.browser__url .i { width: 14px; height: 14px; color: var(--green); }
.browser__shot img { width: 100%; height: auto; aspect-ratio: 1100 / 885; background: var(--warm); }

/* Pricing */
.pricing { display: grid; gap: 36px; align-items: center; background: linear-gradient(135deg, #fff, var(--warm)); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.pricing__box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.pricing__box .checks { margin: 0 0 26px; }

/* Final CTA */
.cta { background: var(--brand); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .16); pointer-events: none; }
.cta::before { width: 520px; height: 520px; left: -160px; top: -260px; }
.cta::after { width: 420px; height: 420px; right: -120px; bottom: -240px; }
.cta__inner { position: relative; text-align: center; max-width: 760px; }
.cta h2 { font-size: clamp(30px, 4.6vw, 50px); }
.cta p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Footer */
.footer { padding: 56px 0 28px; background: #fff; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer__brand p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.footer__brand .wordmark { font-size: 20px; }
.footer__brand .brand-logo { height: 40px; max-width: 220px; }
@media (max-width: 860px) { .footer__brand .brand-logo { height: 34px; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer__links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.footer__links a:hover { background: var(--warm); color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__geel { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-weight: 600; min-height: 44px; }
.footer__geel img { height: 22px; width: auto; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .chip, .sync__line i { animation: none; }
  .shotcard:hover .shotcard__frame { transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
section[id] { scroll-margin-top: 64px; }
