/* Lab 6 Sigma website. Layout: sticky top bar with logo and pages, soft gradient bands (as in the promo video),
   white cards for content, one reading column up to 1120px. Works from phone (360px) to desktop. */
:root {
  --navy: #16254a;
  --ink: #2b3a55;
  --muted: #5d6b82;
  --blue: #1a6ae6;
  --blue-dark: #1452b8;
  --cyan: #10b2d8;
  --line: #e1e8f2;
  --card: #ffffff;
  --bg: #f6f8fd;
  --lav: #eeeafd;
  --mint: #e6f7f1;
  --ok: #1f8a4c;
  --warn: #b4560b;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(22, 37, 74, .08), 0 1px 3px rgba(22, 37, 74, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #9cc2ff; outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---- header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 14.5px; padding: 8px 11px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: #eef3fd; color: var(--blue-dark); }
.nav a[aria-current="page"] { color: var(--blue); background: #e8f0fe; }
.nav a.cta { background: var(--blue); color: #fff; margin-left: 6px; }
.nav a.cta:hover { background: var(--blue-dark); color: #fff; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--sans); cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(22, 37, 74, .12); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 16px; border-bottom: 1px solid #f0f3f8; border-radius: 0; }
  .nav a.cta { margin: 12px 0 0; text-align: center; border-radius: 12px; border: 0; }
  .brand img { height: 34px; }
}

/* ---- bands & type */
.band { padding: 64px 0; }
.band.soft { background: radial-gradient(1200px 500px at 15% 0%, var(--lav), transparent 60%), radial-gradient(900px 500px at 100% 100%, var(--mint), transparent 60%), #fbfcff; }
.band.white { background: #fff; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 14px; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(25px, 3.6vw, 34px); }
h3 { font-size: 20px; }
h2 .hl, h1 .hl { color: var(--blue); }
p { margin: 0 0 14px; max-width: 70ch; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* ---- buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.center .btns { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 600 15.5px var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(26, 106, 230, .25); }
.btn.primary:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border-color: #cfdaea; }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---- hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-logo { width: min(420px, 100%); margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 44px); }
.tagline { font-weight: 600; color: var(--blue); margin-bottom: 4px; }
.byline { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.hero-visual { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 10px; }
.hero-visual video { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; background: #e9eef8; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 36px 0 44px; } }

/* ---- cards & grids */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e8f0fe; color: var(--blue); margin-bottom: 14px; }
.icon-dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ---- checklist */
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.features b { color: var(--navy); }

/* ---- products */
.product { position: relative; display: flex; flex-direction: column; }
.product.featured { border: 2px solid var(--blue); }
.product .badge { position: absolute; top: -13px; right: 20px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.product .kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.product h3 { font-family: var(--sans); font-weight: 700; font-size: 28px; margin: 0 0 4px; display: flex; align-items: center; gap: 12px; }
.product h3 img { width: 44px; height: 44px; border-radius: 10px; }
.product .sub { color: var(--muted); margin-bottom: 4px; }

/* ---- stat strip */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---- calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.calc .in, .calc .out { padding: 28px; }
.calc .out { background: linear-gradient(160deg, #16254a, #1d3a78); color: #fff; }
.calc .out h3 { color: #fff; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .fieldset legend { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--muted); }
.num { display: flex; align-items: center; gap: 10px; }
.num input { width: 130px; }
.num span { white-space: nowrap; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: 400 16px var(--sans); color: var(--navy); background: #fff; border: 1.5px solid #cfdaea; border-radius: 12px; padding: 11px 14px; min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 106, 230, .15); }
.result { border-top: 1px solid rgba(255, 255, 255, .18); padding: 16px 0; display: grid; gap: 2px; }
.result:first-of-type { border-top: 0; padding-top: 4px; }
.result .label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #b9cdf5; font-weight: 600; }
.result .big { font-family: var(--serif); font-size: clamp(34px, 5vw, 46px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .note { font-size: 14px; color: #d3def7; }

/* ---- forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #cfdaea; border-radius: 12px; padding: 10px 16px; min-height: 48px; cursor: pointer; background: #fff; }
.choice input { width: 18px; height: 18px; accent-color: var(--blue); }
.req { color: #c0392b; }
.hidden-field { position: absolute; left: -5000px; }
.notice { border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 15px; }
.notice.ok { background: #e6f5ec; color: #145c33; }
.notice.err { background: #fdecea; color: #8a1f17; }
.notice.info { background: #eaf1fd; color: var(--navy); }

/* ---- media */
.media { background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.media video { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; background: #e9eef8; }
.doc-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.doc-card .thumb { width: 96px; height: 124px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, #fff, #eef3fd); display: grid; place-items: center; color: var(--blue); font-weight: 700; font-size: 13px; box-shadow: 0 6px 16px rgba(22, 37, 74, .08); }
@media (max-width: 480px) { .doc-card { grid-template-columns: 1fr; } }

/* ---- footer */
.foot { background: var(--navy); color: #c8d3ea; padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; }
.foot a { color: #fff; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .fnav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .fnav a { text-decoration: none; color: #dbe4f6; }
.foot .fnav a:hover { color: #fff; text-decoration: underline; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 24px; padding-top: 16px; font-size: 13px; color: #9fb0d2; }
.foot .tag { font-family: var(--serif); color: #fff; font-size: 18px; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
