@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------------------
   Homepage stylesheet. Standalone: index.html links this instead of styles.css.
   --------------------------------------------------------------------------- */

:root {
  --blue:#3454f4;
  --blue-deep:#2440d6;
  --ink:#101a2e;
  --ground:#f1f2f7;
  --white:#ffffff;
  --muted:#5a6377;
  --rule:#d5d8e3;
  --gutter:max(28px, calc((100vw - 1292px) / 2));
  --radius:14px;
  --bounce:.4s cubic-bezier(.34,1.56,.64,1); /* overshoots, so a hover lift lands with a small bounce */
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:'Poppins', sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
::selection { background:#c3cfff; color:var(--ink); }
a { color:inherit; }
button { cursor:pointer; font:inherit; color:inherit; }
h1,h2,h3 { margin:0; font-weight:700; letter-spacing:-.04em; line-height:.95; }
p { margin:0; }
ol,ul { margin:0; padding:0; list-style:none; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:12px; left:12px; z-index:100; padding:12px 16px; background:var(--white); color:var(--ink); font-size:14px; font-weight:700; text-decoration:none; transform:translateY(-160%); transition:transform .16s ease; }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.lead :focus-visible, .close :focus-visible, .site-header :focus-visible { outline-color:var(--white); }

/* --- the blue field: header + hero ---------------------------------------- */

.lead { background:var(--blue); color:var(--white); }

.site-header {
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:20px var(--gutter);
  background:var(--blue);
  color:var(--white);
}
.wordmark { font-size:18px; font-weight:700; letter-spacing:-.04em; text-decoration:none; }
.site-header nav { display:flex; align-items:center; gap:28px; }
.site-header nav a { color:#e4e9ff; font-size:15px; font-weight:500; text-decoration:none; }
.site-header nav a:hover { color:var(--white); }
.site-header nav a[aria-current="page"] { color:var(--white); text-decoration:underline; text-underline-offset:7px; text-decoration-thickness:1.5px; }
.site-header nav a.nav-button { padding:11px 17px; background:var(--white); color:var(--blue); font-weight:700; }
.site-header nav a.nav-button:hover { background:#e4e9ff; color:var(--blue); }
.nav-toggle { display:none; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border:0; background:transparent; color:var(--white); }

.hero { padding:clamp(56px,8vw,104px) var(--gutter) clamp(28px,3.4vw,44px); }
.hero h1 {
  max-width:17ch;
  text-wrap:balance;
  font-size:clamp(3rem,7.6vw,7rem);
  font-weight:700;
  line-height:.94;
  letter-spacing:-.045em;
}
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:clamp(36px,4.5vw,56px); }

.action {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:54px; padding:0 26px;
  border:1.5px solid transparent;
  font-size:15px; font-weight:700; text-decoration:none; white-space:nowrap;
  transition:background-color .14s ease, color .14s ease;
}
.action-solid { background:var(--white); color:var(--blue); }
.action-solid:hover { background:#dfe5ff; }
.action-ghost { border-color:rgba(255,255,255,.65); color:var(--white); }
.action-ghost:hover { background:rgba(255,255,255,.14); }
.action-ink { background:var(--ink); color:var(--white); }
.action-ink:hover { background:#25334f; }
.action-line { border-color:var(--ink); color:var(--ink); }
.action-line:hover { background:var(--ink); color:var(--white); }


/* --- the shelf: four real demos straddling the blue edge ------------------- */

.shelf-band { position:relative; background:var(--ground); }
.shelf-band::before { content:""; position:absolute; top:0; left:0; right:0; height:172px; background:var(--blue); }
.shelf {
  position:relative;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  padding:42px max(28px, calc((100vw - 1680px) / 2)) 38px;
}
.shelf-card { display:block; scroll-snap-align:start; text-decoration:none; color:inherit; }
.shelf-shot {
  display:block; container-type:inline-size;
  aspect-ratio:1440/900; overflow:hidden;
  background:var(--white);
  box-shadow:0 22px 44px rgba(16,26,46,.22);
  transition:box-shadow .3s ease, transform var(--bounce);
}
.shelf-shot iframe {
  display:block; width:1440px; height:900px; border:0;
  transform-origin:top left; transform:scale(calc(100cqw / 1440px));
  pointer-events:none;
}
.shelf-card:hover .shelf-shot,
.shelf-card:focus-visible .shelf-shot { box-shadow:0 26px 50px rgba(16,26,46,.3); transform:translateY(-5px); }
.shelf-meta { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-top:16px; }
.shelf-name { font-size:18px; font-weight:600; letter-spacing:-.03em; }
.shelf-open { color:var(--blue); font-size:14px; font-weight:700; }
.shelf-card:hover .shelf-open { text-decoration:underline; text-underline-offset:4px; }

/* --- the price ------------------------------------------------------------- */

.prices { padding:clamp(48px,5.4vw,74px) var(--gutter) clamp(52px,6vw,80px); background:var(--white); }
.prices h2 { font-size:clamp(2.2rem,3.6vw,3.6rem); }
.packages {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin-top:clamp(28px,3.4vw,40px);
}
.packages li > a { display:block; height:100%; padding:30px 28px; background:var(--ground); border-radius:var(--radius); color:inherit; text-decoration:none; }
.pkg-name { display:block; font-size:15px; font-weight:600; }
.packages b { display:block; margin-top:10px; font-size:clamp(2.2rem,3.6vw,3.2rem); font-weight:700; letter-spacing:-.05em; line-height:1; font-variant-numeric:tabular-nums; }
.pkg-link { display:inline-block; margin-top:clamp(28px,3vw,40px); color:var(--blue); font-size:15px; font-weight:700; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:2px; }
.pkg-link:hover { color:var(--blue-deep); }

/* --- hover lift on the card links (packages, steps) ------------------------- */

.packages li > a, .steps li > a { transition:transform var(--bounce), box-shadow .3s ease; }
.packages li > a:hover, .steps li > a:hover { transform:translateY(-5px); box-shadow:0 12px 26px rgba(16,26,46,.1); }

/* --- how a build runs ------------------------------------------------------ */

.sheet {
  padding:clamp(56px,7vw,92px) var(--gutter);
  background:var(--ground);
}
.sheet h2 { font-size:clamp(2.2rem,3.6vw,3.6rem); }
.steps {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin-top:clamp(28px,3.4vw,40px);
}
.steps li > a { display:block; height:100%; padding:32px 28px; background:var(--white); border:1px solid #e3e5ee; border-radius:var(--radius); color:inherit; text-decoration:none; }
.steps .n { display:flex; align-items:center; justify-content:center; width:48px; height:48px; margin-bottom:18px; background:var(--blue); color:#fff; border-radius:50%; font-size:20px; font-weight:700; }
.steps strong { display:block; font-size:18px; font-weight:600; letter-spacing:-.02em; line-height:1.25; }
.steps p { margin-top:8px; color:var(--muted); font-size:15px; }

/* --- close ----------------------------------------------------------------- */

.close {
  display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:32px 56px;
  padding:clamp(56px,6.5vw,88px) var(--gutter);
  background:var(--blue); color:var(--white);
}
.close h2 { max-width:22ch; font-size:clamp(2rem,3.8vw,3.6rem); font-weight:700; text-wrap:balance; }
.close-actions { display:flex; flex-wrap:wrap; gap:14px; }

/* --- reveal on scroll ------------------------------------------------------
   html.motion is set by an inline <head> snippet (IntersectionObserver only);
   reveal.js adds .is-in (and any sibling stagger) as each one scrolls into view.
   The whole block sits inside the no-preference query, so reduced-motion users
   get the page exactly as it was, nothing hidden and nothing moving. --------- */

@media (prefers-reduced-motion:no-preference) {
  html.motion :is(.reveal, .reveal-group > *) {
    opacity:0;
    transform:translateY(22px);
    transition:opacity .6s ease-out, transform .6s cubic-bezier(.22,.61,.36,1);
  }
  html.motion :is(.reveal, .reveal-group > *).is-in { opacity:1; transform:none; }
}

/* --- footer ---------------------------------------------------------------- */

.site-footer { padding:52px var(--gutter) 28px; background:var(--ink); color:#fff; }
.footer-top { display:flex; flex-wrap:wrap; gap:40px 96px; padding-bottom:36px; }
.footer-links { display:flex; flex-wrap:wrap; gap:56px; }
.footer-col { display:flex; flex-direction:column; gap:11px; }
.footer-col span { color:#8b96ad; font-size:13px; font-weight:700; }
.footer-col a { color:#d3d8e4; font-size:15px; text-decoration:none; }
.footer-col a:hover { color:#fff; }
.footer-bottom { padding-top:24px; border-top:1px solid rgba(255,255,255,.14); color:#8b96ad; font-size:13px; }

/* --- responsive ------------------------------------------------------------ */

@media (max-width:1080px) {
  .shelf-band::before { height:192px; }
  .shelf {
    grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:430px;
    padding:42px var(--gutter) 38px;
    overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x proximity; scroll-padding-left:var(--gutter);
    scrollbar-width:thin; scrollbar-color:#b9bfd2 transparent;
  }
  .steps, .packages { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:760px) {
  body { font-size:16px; }
  .site-header { padding:14px 18px; }
  .nav-toggle { display:flex; }
  .site-header nav {
    position:absolute; top:calc(100% + 6px); right:18px; z-index:20;
    display:none; flex-direction:column; align-items:stretch; gap:0;
    min-width:214px; max-width:calc(100vw - 36px);
    padding:6px 16px 14px;
    background:var(--white);
    box-shadow:0 18px 34px rgba(16,26,46,.24);
  }
  .site-header nav.nav-open { display:flex; }
  .site-header nav a { padding:13px 2px; border-bottom:1px solid #e6e8ef; color:#3d4759; font-size:16px; }
  .site-header nav a:hover { color:var(--ink); }
  .site-header nav a[aria-current="page"] { color:var(--ink); text-decoration:none; font-weight:700; }
  .site-header nav a.nav-button { margin-top:10px; padding:13px 15px; border-bottom:0; background:var(--blue); color:var(--white); text-align:center; }
  .site-header nav :focus-visible { outline-color:var(--ink); }

  :root { --gutter:18px; }
  .hero { padding:46px 18px 44px; }
  .hero h1 { max-width:none; font-size:clamp(2.75rem,11vw,4.1rem); }
  .hero-actions { width:100%; }
  .action { width:100%; min-height:52px; }

  .shelf-band::before { height:126px; }
  .shelf { grid-auto-columns:80vw; gap:16px; padding:28px 18px 30px; }
  .shelf-shot { box-shadow:0 16px 30px rgba(16,26,46,.2); }

  .prices { padding:40px 18px 44px; }
  .packages { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .packages li > a { padding:20px 18px; }
  .packages b { font-size:2rem; }

  .sheet { padding:48px 18px; }
  .steps { grid-template-columns:1fr; gap:16px; }
  .steps li > a { padding:24px 20px; }
  .steps .n { width:40px; height:40px; margin-bottom:14px; font-size:16px; }
  .steps strong { font-size:17px; }
  .steps p { font-size:14.5px; }

  .close { padding:48px 18px; }
  .close-actions { width:100%; }
  .site-footer { padding:40px 18px 24px; }
  .footer-top { gap:30px; }
  .footer-links { gap:34px; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .shelf-shot, .action, .packages li > a, .steps li > a { transition:none; }
  .shelf-card:hover .shelf-shot, .packages li > a:hover, .steps li > a:hover { transform:none; }
}
