@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
  font-family: 'Sailec';
  src: url('fonts/Sailec-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Sailec';
  src: url('fonts/Sailec-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Sailec';
  src: url('fonts/Sailec-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Sailec';
  src: url('fonts/Sailec-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #000;
  --surface: #1F1E1E;
  --border: #1E1E1E;
  --accent: #FFF42A;
  --text: #fff;
  --text-muted: #fff;
  --font-body: 'Sailec', system-ui, sans-serif;
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; }
a { color: inherit; text-decoration: none; }

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; height: 60px; box-sizing: border-box; }
.logo.home-active { display: none; }
.logo svg { height: 20px; width: auto; }
.logo-svg { height: 17.6px; width: auto; }

/* NAV DROPDOWNS */
nav { display: flex; gap: 0; flex: 1; justify-content: center; }

.nav-item { position: relative; }

.nav-item > a {
  display: block;
  padding: 0 14px;
  line-height: 60px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color 0.15s;
  white-space: nowrap;
  cursor: default;
}
.nav-item.active > a { color: var(--text); border-bottom: 2px solid var(--accent); }
.nav-item > a:hover { color: var(--accent); }

.dropdown {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  width: max-content;
  padding: 8px 0;
  z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.nav-item:last-child .dropdown { left: auto; right: 0; }

.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  transition: color 0.1s;
}
.dropdown a:hover { color: var(--accent); background: rgba(255,255,255,0.03); }
.dropdown a[href="#"],
.dropdown a[href="credit-check.html"],
.dropdown a[href="llm-guidelines.html"],
.dropdown a[href="brand-guidelines-jaywing.html"],
.dropdown a[href="brand-guidelines-3scoops.html"],
.dropdown a[href="brand-guidelines-frank.html"] { opacity: 0.4; }
.dropdown-item-with-flyout > a[href="#"] { opacity: 1; }
.dropdown-item-with-flyout:has(a[href="brand-guidelines-jaywing.html"]) > a[href="#"],
.dropdown a[href="brand-guidelines-jaywing.html"],
.dropdown a[href="brand-guidelines-3scoops.html"],
.dropdown a[href="brand-guidelines-frank.html"] { opacity: 0.4; pointer-events: none; cursor: default; }
.dropdown-group {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 20px 4px;
  margin-top: 4px;
}
.dropdown a.sub {
  padding-left: 32px;
  font-size: 11px;
}

/* FLYOUT (3rd tier) */
.dropdown-item-with-flyout { position: relative; }
.dropdown-item-with-flyout > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.flyout-arrow { font-size: 14px; opacity: 0.5; }
.flyout {
  display: none;
  position: absolute;
  top: -1px;
  left: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  width: max-content;
  padding: 8px 0;
  z-index: 300;
}
.dropdown-item-with-flyout:hover .flyout { display: block; }

.ask-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.ask-btn:hover { opacity: 0.85; }

/* HERO */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: flex-start;
  padding: 10vh 48px 80px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 900px; }
.hero-logo {
  height: 88px;
  width: auto;
  display: block;
  margin-left: -22px;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(100px, 14vw, 180px);
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  max-width: 680px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 14px 20px;
  max-width: 480px;
  cursor: text;
  transition: border-color 0.15s;
}
.hero-search:hover { border-color: var(--accent); }
.hero-search-icon { font-size: 16px; color: #666; flex-shrink: 0; }
.hero-search-placeholder { font-size: 15px; color: #666; font-family: var(--font-body); }

.hero-note {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin-top: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

/* SECTIONS GRID */
.sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.section-card {
  background: #0A0A0A;
  border-top: 4px solid var(--accent);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s;
  cursor: pointer;
}
.section-card:nth-child(3n) { border-right: none; }
.section-card:hover { background: #141414; }

.card-num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}
.card-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
}
.card-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}
.card-arrow {
  display: block;
  font-size: 18px;
  color: var(--accent);
  margin-top: 28px;
}

/* INNER PAGE */
.page-content-full {
  padding: 48px 48px 48px; /* was 8px top — matches the 48px outer-margin standard elsewhere */
}

.page-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 60px);
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 40px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 24px 10px;
}
.sidebar a {
  display: block;
  padding: 9px 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all 0.12s;
}
.sidebar a:hover { color: var(--text); }
.sidebar a.active { color: var(--accent); border-left-color: var(--accent); }

.page-content { padding: 56px 64px; }

.breadcrumb {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--text); }

.page-header { margin-bottom: 4px; }
.page-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
/* Figma Type Scale, Heading/H1 — was Bebas Neue display, same fix as .hero h1 */
.page-header h1 {
  font-family: 'Sailec', Arial, sans-serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: normal;
  margin-bottom: 0;
}
.page-header p { font-size: 14px; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

/* PROCESS PAGE */
.process-intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  max-width: 100%;
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 40px;
}
.process-section {
  padding-top: 40px;
  margin-bottom: 56px;
}
.process-section-heading {
  font-family: 'Sailec', Arial, sans-serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.process-step {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.process-step:last-child { margin-bottom: 0; }
.process-step-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.process-step-bullets li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.process-step-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.process-step-bullets strong { font-weight: 500; }

.callout {
  background: var(--accent);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 16px 0 8px;
}
.callout p {
  font-size: 15px;
  font-weight: 700 !important;
  line-height: 1.7;
  margin: 0 0 10px;
  color: #000 !important;
}
.callout p:last-child { margin-bottom: 0; }
.callout a { color: #000 !important; text-decoration: underline; }

.stage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.stage-tag {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}
.stage-tag span {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.3px;
}
.process-step p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}
.process-step p:last-child { margin-bottom: 0; }
.process-step p strong { font-weight: 500; }
.process-step p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.process-section-heading + p { margin-top: 0; }
.process-sub-heading + p { margin-top: 0; }
.process-sub-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 20px 0 6px;
}
.process-step-bullets + .process-sub-heading { margin-top: 20px; }
.process-step-bullets + .process-section-heading { margin-top: 40px; }
.process-section-heading + .process-sub-heading { margin-top: 0; }
.process-sub-heading--accent { color: var(--accent); }
.process-img-wrapper {
  position: relative;
  display: block;
}
.process-img-box {
  background: #F0EFEF;
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.process-img-box .process-step-img {
  border: none;
  border-radius: 0;
  width: 100%;
}
.process-step-img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}
.img-highlight {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 3px;
  pointer-events: none;
  top: var(--ht);
  left: var(--hl);
  width: var(--hw);
  height: var(--hh);
}

/* FIGMA EMBED */
.figma-embed {
  margin: 0 -48px;
}
.figma-embed-bar {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.figma-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.figma-embed iframe { width: 100%; height: calc(100vh - 110px); border: none; display: block; }

.figma-placeholder {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.figma-placeholder p { font-size: 14px; font-weight: 600; }
.figma-placeholder span { font-size: 12px; color: var(--text-muted); }
.figma-open-btn {
  margin-top: 8px;
  background: var(--accent);
  color: #000;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}
.figma-open-btn:hover { opacity: 0.85; }

.content-block {
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 12px;
}
.content-block h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.content-block p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* PAGE DESC */
.page-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}

/* SUB-SECTION CARDS — brought in line with .city-cards: 32px gutter (was 0, relying on
   doubled padding), grey cell + yellow top border (was plain bg + grey-box hover),
   Heading/H2 token instead of Bebas display caps. */
.sub-section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.sub-section-card {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  padding: 32px;
  display: block;
}
.sub-card-num { display: none; }
.sub-card-name {
  font-family: 'Sailec', Arial, sans-serif;
  font-weight: 300;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: normal;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  transition: color 0.15s;
}
.sub-section-card:hover .sub-card-name { color: var(--accent); }
.sub-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CITY CARDS — grey cell + yellow top border per column, matching the design-system
   demo's .pb-col pattern. City name is Heading/H2 (44px/48px), not the display font. */
.city-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.city-card {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  padding: 32px;
}
.city-label { display: none; }
.city-name {
  font-family: 'Sailec', Arial, sans-serif;
  font-weight: 300;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: normal;
  color: var(--text);
  margin-bottom: 24px;
}
.city-row {
  padding: 0;
  margin-bottom: 20px;
  border-top: none;
}
.city-row:last-child { margin-bottom: 0; }
.city-row-heading {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--text); /* was --text-muted, read too dim against the demo's bright sub-heading */
  margin-bottom: 6px;
}
.city-row-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.city-placeholder { color: var(--text-muted); font-style: italic; }

/* LAUNCH BLOCK */
.launch-block {
  margin-top: 32px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  max-width: 480px;
}
.launch-block p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.launch-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.launch-btn:hover { opacity: 0.85; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ASK MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.ask-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 620px;
  max-width: 90vw;
}
.ask-modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ask-modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.ask-modal-header span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; }
.ask-messages { padding: 28px 28px; min-height: 160px; }
.ask-messages p { font-size: 13px; color: var(--text-muted); font-style: italic; line-height: 1.7; }
.ask-input-row {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.ask-input-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 11px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.ask-input-row input:focus { border-color: var(--accent); }
.ask-input-row button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 11px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
}

/* SEARCH */
.search-field {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.search-field:focus { border-color: var(--accent); }
.search-results { padding: 0 28px 16px; min-height: 60px; max-height: 380px; overflow-y: auto; }
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  gap: 12px;
}
.search-result-item:hover { color: var(--accent); }
.search-result-label { flex: 1; min-width: 0; }
.search-result-section {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-result-group { border-bottom: 1px solid var(--border); }
.search-result-group .search-result-item { border-bottom: none; }
.search-subs { padding: 0 0 10px 28px; }
.search-sub-item {
  display: block; padding: 5px 0;
  color: #888; font-size: 13px; text-decoration: none;
}
.search-sub-item:hover { color: var(--accent); }
