/* mybuilderapp · coming soon site
   Pages: index.html, roadmap.html, privacy.html
   Fonts: Plus Jakarta Sans (display), Inter (body) via Google Fonts */

/* ---------- Tokens ---------- */
:root {
  --bg: #0F172A;          /* slate ground */
  --surface: #16213A;     /* cards */
  --surface-line: #24304A;
  --line: #1E293B;        /* dividers */
  --line-strong: #334155;
  --text: #F8FAFC;
  --text-soft: #F1F5F9;
  --muted: #CBD5E1;
  --subtle: #94A3B8;

  --lime: #E4F43B;        /* brand accent (dark theme) */
  --lime-hover: #F3FF5E;
  --blue: #4F86F7;        /* Office tag, Next */
  --grey: #475569;        /* Exploring */

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1200px;
  --gutter: 24px;
  --radius: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
}

p { margin: 0; }

a { color: var(--muted); }
a:hover { color: var(--lime); }
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Shared bits ---------- */
.eyebrow,
.status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.meta {
  font-size: 14px;
  color: var(--subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--lime); color: var(--bg); }
.btn--primary:hover { background: var(--lime-hover); color: var(--bg); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo__mark { width: 34px; height: 34px; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.logo__word span { color: var(--lime); }

.back-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--subtle);
}
.site-footer b { color: var(--text-soft); font-weight: 600; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__nav a { text-decoration: none; font-weight: 500; }

/* ---------- Home ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.status { display: flex; align-items: center; gap: 10px; }
.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 244, 59, .45); }
  50% { box-shadow: 0 0 0 8px rgba(228, 244, 59, 0); }
}

.hero__title {
  max-width: 1000px;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero__title span { color: var(--lime); }

.hero__lead {
  max-width: 600px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ---------- House mark build animation ----------
   From the brand book: "Build animation · House mark", dark splash variant.
   Loops every 7s; static under prefers-reduced-motion. */
.splash {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 45px;
  background: linear-gradient(135deg, #2C303A 0%, #39414C 55%, #4A5460 100%);
  box-shadow: inset 0 0 0 1px #4A5460, 0 24px 60px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
}
.splash svg { width: 70%; height: auto; }
.splash--lg { width: 300px; height: 300px; border-radius: 68px; }

.hc{transform-box:fill-box;animation-duration:7s;animation-iteration-count:infinite;animation-fill-mode:both;animation-timing-function:cubic-bezier(.25,.7,.25,1)}
.hbuild{animation:hfade 7s linear infinite}
.hg{transform-origin:center;animation-name:hg}
.hw1{transform-origin:bottom;animation-name:hw1}
.hw2{transform-origin:bottom;animation-name:hw2}
.hr1{animation-name:hr1}
.hr2{animation-name:hr2}
.hb1{transform-origin:bottom;animation-name:hb1}
.hb2{transform-origin:bottom;animation-name:hb2}
@keyframes hfade{0%,88%{opacity:1}95%,100%{opacity:0}}
@keyframes hg{0%{transform:scaleX(0)}6%,100%{transform:scaleX(1)}}
@keyframes hw1{0%,5%{transform:scaleY(0)}13%{transform:scaleY(1.05)}15%,100%{transform:scaleY(1)}}
@keyframes hw2{0%,11%{transform:scaleY(0)}19%{transform:scaleY(1.05)}21%,100%{transform:scaleY(1)}}
@keyframes hr1{0%,23%{transform:translate(-26px,-30px);opacity:0}24%{opacity:1}30%{transform:translate(1px,1.5px);opacity:1}32%,100%{transform:translate(0,0);opacity:1}}
@keyframes hr2{0%,30%{transform:translate(26px,-30px);opacity:0}31%{opacity:1}37%{transform:translate(-1px,1.5px);opacity:1}39%,100%{transform:translate(0,0);opacity:1}}
@keyframes hb1{0%,44%{transform:scaleY(0)}51%{transform:scaleY(1.12)}54%,100%{transform:scaleY(1)}}
@keyframes hb2{0%,52%{transform:scaleY(0)}59%{transform:scaleY(1.1)}62%,100%{transform:scaleY(1)}}

/* Home hero with splash beside the text */
.hero--split { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.hero__body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* Page intro with splash beside it (roadmap, demos) */
.intro-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }

/* ---------- Privacy ---------- */
.legal {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 96px;
  line-height: 1.7;
  color: var(--muted);
}
.legal__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal b { color: var(--text-soft); }
.legal a { color: var(--lime); }
.legal a:hover { color: var(--lime-hover); }

/* ---------- Roadmap ---------- */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 96px;
}

.roadmap__intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.roadmap__intro h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.roadmap__lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

.roadmap h2 { font-weight: 700; font-size: 22px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline__scroll { overflow-x: auto; padding-bottom: 6px; }
.timeline__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  min-width: 920px;
}

.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 20px;
}
/* connecting line */
.phase::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 22px;
  right: 0;
  height: 3px;
  background: var(--line-strong);
}
.phase:last-child::before { display: none; }
.phase--current::before { background: linear-gradient(90deg, var(--lime), var(--line-strong)); }

.phase__marker {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--grey);
}
.phase--current .phase__marker {
  background: var(--lime);
  border: 0;
  box-shadow: 0 0 0 6px rgba(228, 244, 59, .18);
}
.phase--next .phase__marker { border-color: var(--blue); }
.phase--exploring .phase__marker { border-style: dashed; }

.phase__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--subtle);
}
.phase--current .phase__badge { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.phase--next .phase__badge { color: var(--muted); }
.phase--exploring .phase__badge { border-style: dashed; }

.phase h3 { font-size: 20px; font-weight: 700; }
.phase__date { font-size: 14px; color: var(--subtle); }
.phase p:last-child { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Now / Next / Exploring */
.columns { display: flex; flex-wrap: wrap; gap: 20px; }

.column {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.column__title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--grey);
}
.column--now .column__title { border-color: var(--lime); }
.column--next .column__title { border-color: var(--blue); }

.column__cards { display: flex; flex-direction: column; gap: 14px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-line);
}
.card--exploring { background: transparent; border: 1px dashed var(--line-strong); }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
}
.tag--site { background: var(--lime); }
.tag--office { background: var(--blue); }
.tag--portal { background: var(--text-soft); }

/* Latest progress */
.progress {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.progress ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.progress li { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.progress__date { min-width: 110px; color: var(--subtle); }
.progress b { color: var(--text-soft); }

/* Suggest a feature */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
}
.cta div { display: flex; flex-direction: column; gap: 4px; }
.cta p { font-size: 15px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .hero { padding-top: 24px; }
  .cta .btn { width: 100%; justify-content: center; }
  .splash, .splash--lg { width: 140px; height: 140px; border-radius: 32px; }
  .hero--split { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hc, .hbuild { opacity: 1 !important; transform: none !important; }
}
