/* jiggleproof.com — marketing site. Same blue as the product; the dashboard screenshots sit on it as-is. */

:root {
  --ink: #0d1626;
  --ink-2: #3d4757;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-wash: #eaf2fc;
  --jiggler: #d4532c;
  --dark: #0d1626;
  --dark-2: #182235;
  --dark-ink: #e9edf3;
  --dark-muted: #a3adbd;
  --radius: 14px;
  --shadow-lg: 0 1px 2px rgba(13, 22, 38, 0.06), 0 24px 60px -18px rgba(13, 22, 38, 0.28);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  padding: 15px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(13, 22, 38, 0.12); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: #cfd5de; }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 720; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-actions .signin { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; background: radial-gradient(1200px 520px at 50% -140px, var(--accent-wash), transparent 70%); }
.hero-copy { max-width: 800px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--accent-ink); background: var(--accent-wash); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.26rem); color: var(--ink-2); max-width: 680px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 16px; height: 16px; flex: none; background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%232a78d6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero-shot { margin: 56px auto 0; max-width: 1040px; }

/* Screenshots sit in a light window frame. */
.frame { border-radius: var(--radius); background: #f2f2ef; border: 1px solid rgba(13, 22, 38, 0.10); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #fbfbfa; border-bottom: 1px solid rgba(13, 22, 38, 0.08); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe2e6; }
.frame-bar span { margin-left: 10px; font: 12.5px var(--mono); color: var(--muted); }
.caption { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .card { border-color: #e1e5eb; }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.warm { background: #fdeee8; color: var(--jiggler); }

.myth { position: relative; padding-left: 26px; }
.myth::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: #f0c4b4; }
.myth h3 { margin: 0 0 6px; }
.bridge { margin-top: 44px; font-size: 1.2rem; font-weight: 600; max-width: 760px; }
.bridge span { color: var(--accent-ink); }

/* How it works */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }
.diagram { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; }
.diagram svg { width: 100%; height: auto; display: block; }
/* On phones the diagram keeps a readable size and scrolls sideways inside its box. */
@media (max-width: 720px) {
  .diagram { overflow-x: auto; padding: 20px 16px; }
  .diagram svg { width: 720px; max-width: none; }
  .diagram::after { content: "Scroll sideways to see the whole diagram →"; display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
}
.diagram text { font-family: var(--font); }

.rules { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.rule { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule:nth-child(3n) { border-right: 0; }
.rule:nth-last-child(-n + 3) { border-bottom: 0; }
.rule-id { font: 600 12.5px var(--mono); color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.rule h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.rule p { font-size: 15px; color: var(--ink-2); }

/* Catches */
.catch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.catch h3 { margin: 0 0 6px; }
.catch .how { margin-top: 10px; font-size: 14px; color: var(--muted); }
.catch .how code { font: 600 12.5px var(--mono); color: var(--ink-2); }

/* Field test */
.field { background: var(--dark); color: var(--dark-ink); }
.field .kicker { color: #8fbbf0; }
.field h2 { color: #fff; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.field p { color: var(--dark-muted); font-size: 1.08rem; margin-top: 18px; }
.field p strong { color: var(--dark-ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--dark-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; color: #fff; line-height: 1.05; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--dark-muted); }
.stat.hot b { color: #f39a74; }

/* Feature rows: text beside a screenshot */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p { color: var(--ink-2); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-wash) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231c5cab' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* Privacy band */
.privacy-band { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.promise .card { padding: 26px; }
.promise h3 { font-size: 1.05rem; }
.never { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.never span { font-size: 15px; padding: 8px 16px 8px 34px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); position: relative; }
.never span::before { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 2px; background: var(--jiggler); transform: translateY(-50%) rotate(45deg); }
.never span::after { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 2px; background: var(--jiggler); transform: translateY(-50%) rotate(-45deg); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font-size: 1.12rem; font-weight: 620; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }
.faq details p + p { margin-top: -10px; }

/* Demo form */
.demo { background: var(--dark); color: var(--dark-ink); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.demo h2 { color: #fff; }
.demo .kicker { color: #8fbbf0; }
.demo-copy p { color: var(--dark-muted); font-size: 1.08rem; margin-top: 16px; }
.demo .ticks li { color: var(--dark-muted); }
.demo .ticks li strong { color: var(--dark-ink); }
.demo .ticks li::before { background-color: rgba(143, 187, 240, 0.16); }
.form { background: var(--bg); color: var(--ink); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 1.3rem; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 16px/1.4 var(--font); color: var(--ink); width: 100%;
  padding: 12px 13px; border: 1px solid #cfd5de; border-radius: 10px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--accent-wash); border-color: var(--accent); }
.form textarea { min-height: 112px; resize: vertical; }
.form .btn { width: 100%; margin-top: 20px; }
.form .fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form-status.ok { background: #e9f7ee; color: #14532d; }
.form-status.err { background: #fdecea; color: #8a1c1c; }
.form.sent .fields, .form.sent .btn, .form.sent .fine { display: none; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-row .brand { font-size: 17px; }
.footer-row nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-row nav a { color: var(--ink-2); text-decoration: none; }
.footer-row nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { margin-top: 18px; }

/* Simple content pages (privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule:nth-child(3n) { border-right: 1px solid var(--line); }
  .rule:nth-child(2n) { border-right: 0; }
  .rule:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .rule:nth-last-child(-n + 2) { border-bottom: 0; }
  .feature, .field-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .feature-copy { order: 0; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding: 14px 0 18px; }
  .site-header.open .nav-links { display: grid; gap: 4px; width: 100%; margin: 8px 0 0; order: 3; }
  .site-header.open .nav-links a { padding: 10px 0; font-size: 17px; }
  .site-header.open .nav-actions { display: flex; width: 100%; order: 4; margin: 8px 0 0; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .rules, .promise { grid-template-columns: minmax(0, 1fr); }
  .rule { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .rule:last-child { border-bottom: 0 !important; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 22px; }
  .hero-ctas .btn { width: 100%; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 18px; }
  .footer-row nav { margin-left: 0; }
}
