/* SLEKE. design system (shared with migrate.sleke.io) + The Grid's map/POI pieces. */
@font-face {
  font-family: "Roboto Flex";
  src: url("fonts/roboto-flex.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/roboto-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #efefef;
  --surface: #ffffff;
  --container: #ffffff;
  --dropped: #f5f5f5;
  --raised: #efefef;
  --text: #000000;
  --text-2: #555555;
  --accent: #48ff00;
  --on-accent: #000000;
  --divider: #bcbcbc;
  --divider-2: #efefef;
  --handle: #000000;
  --on-handle: #ffffff;
  --cta: #000000;
  --cta-label: #ffffff;
  --mark-new: #000000;
  --mark-dot: #000000;
  --rim: rgb(255 255 255 / 0.118);
  --catch: rgb(188 188 188 / 0.086);
  --shadow-raised: 2px 2px 13px rgb(0 0 0 / 0.365), -4px -4px 11px rgb(255 255 255 / 0.788);
  --shadow-pressed: 1px 1px 6px rgb(0 0 0 / 0.251), -2px -2px 5px rgb(255 255 255 / 0.502);
  --inset: inset 3px 3px 8px rgb(141 141 141 / 0.55), inset -3px -3px 6px rgb(255 255 255 / 0.9);
  --glass-body: linear-gradient(180deg, rgb(239 239 239 / 0.54) 0%, rgb(239 239 239 / 0.68) 42%, rgb(239 239 239 / 0.88) 100%);
  --glass-rim: rgb(255 255 255 / 0.14);
  --glass-shadow: 0 8px 16px -3px rgb(188 188 188 / 0.56);
  --focus: #000000;
  /* map */
  --map-bg: #f6f6f3;
  --map-street: #e2e2dc;
  --map-street-major: #d4d4cc;
  --map-park: #dcf2d2;
  --map-water: #d8e7f2;
  --ok: #14532d;
  --ok-bg: #e6f9dc;
  --warn: #6b4a00;
  --warn-bg: #fff3d4;
  --err: #8a2116;
  --err-bg: #fde6e2;

  --sans: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --glide: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --press: cubic-bezier(0.2, 0, 0.7, 1);
  --content: 75rem;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #222222;
    --surface: #1d1d1d;
    --container: #1d1d1d;
    --dropped: #151515;
    --raised: #222222;
    --text: #ffffff;
    --text-2: #bcbcbc;
    --divider: #767676;
    --divider-2: #424242;
    --handle: #ffffff;
    --on-handle: #000000;
    --cta: #ffffff;
    --cta-label: #000000;
    --mark-new: #ffffff;
    --mark-dot: #48ff00;
    --catch: #000000;
    --shadow-raised: 2px 2px 13px rgb(0 0 0 / 0.8), -4px -4px 11px rgb(255 255 255 / 0.051);
    --shadow-pressed: 1px 1px 6px rgb(0 0 0 / 0.6), -2px -2px 5px rgb(255 255 255 / 0.024);
    --inset: inset 0 5px 5px rgb(0 0 0 / 0.2), inset 2px 2px 6px rgb(0 0 0 / 0.5);
    --glass-body: linear-gradient(180deg, rgb(38 38 38 / 0.54) 0%, rgb(21 21 21 / 0.68) 42%, rgb(21 21 21 / 0.88) 100%);
    --glass-shadow: 0 8px 16px -3px rgb(0 0 0 / 0.56);
    --focus: #48ff00;
    --map-bg: #1a1a1a;
    --map-street: #262626;
    --map-street-major: #303030;
    --map-park: #1d2a1a;
    --map-water: #18222b;
    --ok: #b6f5a0;
    --ok-bg: #16260f;
    --warn: #ffd98a;
    --warn-bg: #2b2412;
    --err: #ffb3a8;
    --err-bg: #2d1714;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol[role="list"], ul[role="list"] { list-style: none; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--text); color: var(--page); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img, svg { display: block; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--cta); color: var(--cta-label); font-weight: 500; text-decoration: none; }
.skip:focus-visible { top: 12px; }

.site { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

.raised { background: var(--raised); border: 0.5px solid var(--catch); box-shadow: inset 0 1px 0 var(--rim), var(--shadow-raised); }
.raised-soft { background: var(--raised); border: 0.5px solid var(--catch); box-shadow: inset 0 1px 0 var(--rim), var(--shadow-pressed); }
.press { transition: transform 120ms var(--press), box-shadow 120ms var(--press), background-color 250ms ease; }
.press:active { transform: scale(0.98); }

/* —— Bar —— */
.bar { position: sticky; top: 10px; z-index: 20; padding: 10px 10px 0; }
.bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: calc(var(--content) + 32px); min-height: 62px; margin: 0 auto; padding: 0 10px 0 22px;
  border-radius: 31px; border: 1px solid var(--glass-rim); background: var(--glass-body);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.07), var(--glass-shadow);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.brand svg { width: 20px; height: 22px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-link:hover { background: var(--dropped); }
.get-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 6px; border-radius: 999px;
  background: var(--cta); color: var(--cta-label); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--rim), var(--shadow-pressed);
}
.disc { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.16); }
.disc svg { width: 18px; height: 18px; transition: transform 300ms var(--spring); }
.get-pill .disc { width: 32px; height: 32px; }
.get-pill .disc svg { width: 16px; height: 16px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 26px 0 14px;
  border-radius: 999px; border: 0.5px solid var(--catch); background: var(--cta); color: var(--cta-label);
  box-shadow: inset 0 1px 0 var(--rim), var(--shadow-raised); font: 500 18px/22px var(--sans); text-decoration: none; cursor: pointer;
}
.cta:hover { box-shadow: inset 0 1px 0 var(--rim), var(--shadow-pressed); }
.cta:hover .disc svg, .get-pill:hover .disc svg { transform: translateX(2px); }
.cta:disabled { opacity: 0.6; cursor: progress; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--divider-2); background: var(--container); color: var(--text); font: 500 14px/1 var(--sans); white-space: nowrap; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--dropped); }
.text-link { color: var(--text); text-decoration-line: underline; text-decoration-color: var(--divider); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--text); }

h1 { font-weight: 300; font-size: clamp(38px, 1.6rem + 2.8vw, 64px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-weight: 300; font-size: clamp(28px, 1.2rem + 1.4vw, 38px); line-height: 1.25; text-wrap: balance; }
h3 { font-weight: 500; font-size: 18px; line-height: 1.35; }
.lede { color: var(--text-2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font: 400 13px/1 var(--mono); color: var(--text-2); letter-spacing: 0.02em; }
.live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(72 255 0 / 0.55); }
.accent-dot { color: var(--accent); }

/* —— Hero —— */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 104px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy .lede { max-width: 32rem; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.hero-note { color: var(--text-2); font-size: 14px; }
.hero-note b { color: var(--text); font-weight: 500; }

/* The map card: streets, a park, a river, "you are here", pins popping in. */
.map {
  position: relative; aspect-ratio: 1 / 0.92; border-radius: 36px; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(var(--map-street-major) 0 0) 0 38% / 100% 10px no-repeat,
    linear-gradient(var(--map-street-major) 0 0) 62% 0 / 10px 100% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 46px, var(--map-street) 46px 50px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--map-street) 46px 50px),
    var(--map-bg);
}
.map::before { /* park */
  content: ""; position: absolute; left: 8%; top: 52%; width: 34%; height: 30%; border-radius: 22px; background: var(--map-park); z-index: -1;
}
.map svg.river { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.map svg.river path { fill: none; stroke: var(--map-water); stroke-width: 26; stroke-linecap: round; }
.here { position: absolute; left: 62%; top: 38%; translate: -50% -50%; }
.here i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); }
.ring { position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); translate: -50% -50%; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pin-bubble {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 8px; rotate: -45deg;
  background: var(--cta); color: var(--cta-label); box-shadow: 0 6px 14px rgb(0 0 0 / 0.25);
}
.pin-bubble svg { width: 20px; height: 20px; rotate: 45deg; }
.pin.hot .pin-bubble { background: var(--accent); color: var(--on-accent); }
.pin-label {
  padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.14);
}
.pin-label small { color: var(--text-2); font-weight: 400; }
.map-chip { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }

/* —— Sections —— */
.band { padding-block: clamp(56px, 7vw, 104px); border-block: 1px solid var(--divider-2); background: var(--surface); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 28px; }
.pillar .disc { width: 44px; height: 44px; }
.pillar .disc svg { width: 22px; height: 22px; }
.pillar p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* When demo */
.when-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.demo { display: flex; flex-direction: column; gap: 16px; padding: clamp(16px, 2.2vw, 24px); border-radius: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--container); color: var(--text); font: 500 14px/1 var(--sans); cursor: pointer;
  box-shadow: inset 0 1px 0 var(--rim), var(--shadow-pressed);
}
.chip-btn[aria-pressed="true"] { background: var(--handle); color: var(--on-handle); }
.list { border-radius: 18px; background: var(--container); overflow: hidden; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.item + .item { border-top: 1px solid var(--divider-2); }
.item .tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--dropped); }
.item .tile svg { width: 22px; height: 22px; }
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item-title { font-size: 15px; line-height: 1.3; }
.item-sub { color: var(--text-2); font-size: 13px; }
.badge { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--dropped); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.now { background: var(--handle); color: var(--on-handle); display: inline-flex; align-items: center; gap: 6px; }
.demo-note { color: var(--text-2); font-size: 12px; padding: 0 4px; }

/* Sources */
.sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.source { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.source.you { background: var(--accent); color: var(--on-accent); }

/* —— Add a calendar —— */
.add { position: relative; }
.add-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.big-claim { font-size: clamp(30px, 1.2rem + 2vw, 44px); }
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 24px; }
.step-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--handle); color: var(--on-handle); font-weight: 500; }
.step-title { font-size: 17px; }
.step-body { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.examples span { padding: 6px 12px; border-radius: 999px; background: var(--dropped); font-size: 13px; color: var(--text-2); }

.form-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 32px; }
.form-card h3 { font-size: 22px; font-weight: 300; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; }
.field .hint { color: var(--text-2); font-weight: 400; font-size: 13px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--page); color: var(--text);
  font: 400 16px var(--sans); box-shadow: var(--inset);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-card .cta { width: 100%; }
.fine { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.result { padding: 18px 20px; border-radius: 22px; }
.result h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.result p { margin: 0; font-size: 14px; }
.result ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.warn { background: var(--warn-bg); color: var(--warn); }
.result.err { background: var(--err-bg); color: var(--err); }
.spinner { display: inline-block; width: 13px; height: 13px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.principle { padding: 22px; border-radius: 24px; display: flex; flex-direction: column; gap: 8px; }
.principle svg { width: 24px; height: 24px; }
.principle p { color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; max-width: 820px; }
.faq details { border-radius: 22px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; transition: rotate 250ms var(--glide); }
.faq details[open] summary svg { rotate: 90deg; }
.faq details p { padding: 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 680px; }

/* Final */
.final { padding-block: clamp(64px, 9vw, 128px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final .mark-big { width: 56px; height: 60px; }
.footer { margin-top: auto; padding-block: 24px 36px; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--divider-2); color: var(--text-2); font-size: 14px; }
.footer-inner b { color: var(--text); font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* —— Motion —— */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-26px) scale(0.6); } 60% { opacity: 1; transform: translateY(3px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes wave { 0% { scale: 0.3; opacity: 0; } 15% { opacity: 0.8; } 100% { scale: 1.25; opacity: 0; } }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgb(72 255 0 / 0.55); } to { box-shadow: 0 0 0 6px rgb(72 255 0 / 0); } }
@keyframes bob { 0%, 100% { translate: -50% -100%; } 50% { translate: -50% calc(-100% - 4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 1s var(--glide) both; }
  .hero .lede { animation: rise 1s 100ms var(--glide) both; }
  .hero-actions { animation: rise 1s 200ms var(--glide) both; }
  .pin { animation: bob 4s calc(var(--i) * 0.6s + 2s) ease-in-out infinite; }
  .pin > * { animation: drop 700ms calc(var(--i) * 280ms + 400ms) var(--spring) both; }
  .ring { animation: wave 3.6s calc(var(--r) * 1.2s) ease-out infinite; }
  .live { animation: pulse 1.6s ease-out infinite; }
  .list .item { animation: swap 450ms calc(var(--i) * 60ms) var(--glide) both; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--glide), transform 700ms var(--glide); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  html { scroll-behavior: auto; }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid, .when-grid, .add-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .nav-link { display: none; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .bar-inner { padding-left: 16px; }
  .get-pill span.label-long { display: none; }
  .pin-label { font-size: 11px; padding: 4px 9px; }
  .pin-bubble { width: 38px; height: 38px; }
  .map { border-radius: 28px; }
  .cta { min-height: 58px; font-size: 17px; }
}

.field textarea { resize: vertical; min-height: 84px; font: inherit; line-height: 1.5; }
