/* Rushify - production stylesheet
   Design tokens locked May 2026. Warm paper background, IBM Plex type, blue brand. */

:root {
  /* Brand */
  --blue: #0A5BFF;
  --blue-600: #0A5BFF;
  --blue-700: #0945CC;
  --blue-50: #EEF3FF;
  --blue-100: #DBE5FF;

  /* Secondary */
  --coral: #F26A47;
  --coral-50: #FFEFE9;
  --coral-100: #FFD9CB;
  --coral-700: #C9421F;

  --mint: #16A66A;
  --mint-50: #E3F6EC;
  --mint-100: #BDE8CF;
  --mint-700: #0F7A4D;

  --amber: #D89B3A;
  --amber-50: #FBF1DD;
  --amber-100: #F4DFAE;
  --amber-700: #9F6E1C;

  /* Neutrals */
  --ink: #0B1220;
  --ink-2: #1F2937;
  --muted: #5B6478;
  --muted-2: #8A93A6;
  --line: #E6E1D2;
  --line-2: #EFEAD9;
  --bg: #FAF7F0;
  --bg-soft: #F1ECDC;
  --bg-card: #FFFFFF;
  --bg-card-2: #FDFAF2;

  /* Semantic */
  --ok: var(--mint-700);
  --warn: var(--amber-700);
  --bad: #C53030;

  /* Type */
  --font-sans: "IBM Plex Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-serif: "IBM Plex Serif", "Source Serif Pro", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03);
  --shadow-md: 0 4px 14px rgba(28,18,5,0.06), 0 2px 4px rgba(28,18,5,0.04);
  --shadow-lg: 0 28px 48px -16px rgba(28,18,5,0.16), 0 8px 16px rgba(28,18,5,0.06);

  /* Layout */
  --maxw: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
html { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }
button { font-family: inherit; }

/* Headings */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(34px, 7.5vw, 96px); letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: break-word; }
h2 { font-size: clamp(28px, 4.8vw, 64px); letter-spacing: -0.028em; line-height: 1.08; overflow-wrap: break-word; }
h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.12; }
h4 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }

.lede { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); padding: 7px 12px;
  background: var(--blue-50); border-radius: 999px;
  max-width: 100%;
}
.eyebrow.muted { color: var(--muted); background: var(--line-2); }
.eyebrow.coral { color: var(--coral-700); background: var(--coral-50); }
.eyebrow.mint  { color: var(--mint-700); background: var(--mint-50); }
.eyebrow.amber { color: var(--amber-700); background: var(--amber-50); }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.it    { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue); letter-spacing: -0.02em; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #E9EEF8; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lede { color: #B4BDD0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Top nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-wrap > .container { position: relative; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.nav ul a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}
.nav ul a:hover { background: var(--line-2); color: var(--ink); }
.nav ul a.active { color: var(--blue); }
.nav .actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger button - hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .15s, border-color .15s;
}
.nav-toggle:hover { background: var(--line-2); border-color: var(--ink-2); }
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile panel - slides down under the sticky bar. Hidden entirely on desktop. */
.nav-panel {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 16px;
}
.nav-panel ul { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-panel ul a {
  display: block; padding: 14px 16px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.nav-panel ul a:hover, .nav-panel ul a.active { background: var(--blue-50); color: var(--blue); }
.nav-panel .panel-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-panel .panel-actions .btn { width: 100%; }

/* Hamburger + panel only exist below 760px. On desktop they are forced hidden
   regardless of any class state, so the panel can never leak onto a wide screen. */
.nav-panel, .nav-panel.open { display: none; }

@media (max-width: 760px) {
  .nav { height: 64px; }
  .nav ul { display: none; }
  .nav .actions .btn { display: none; }  /* Hide CTA on small screens, move it into the panel */
  .nav-toggle { display: inline-flex; }
  .nav-panel.open { display: block; }     /* Only here can the panel open */
}

@media (max-width: 380px) {
  .nav { height: 60px; }
}

/* Brand wordmark */
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand-img { height: 52px; width: auto; display: block; transition: transform .2s ease; }
.brand:hover .brand-img { transform: translateX(2px); }
.brand.sm .brand-img { height: 36px; }
@media (max-width: 760px) {
  .brand-img { height: 36px; }
}
@media (max-width: 380px) {
  .brand-img { height: 32px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-700); color: #fff; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 56px; padding: 0 24px; font-size: 16px; border-radius: 12px; }

/* URL input (legacy single-line - still used in some places) */
.url-form {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 8px; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  transition: border-color .2s, box-shadow .2s;
}
.url-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50), var(--shadow-lg); }
.url-form .prefix {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 12px; color: var(--muted-2);
  font-family: var(--font-mono); font-size: 14px;
}
.url-form input {
  flex: 1; height: 48px; border: 0; outline: 0;
  font-family: var(--font-mono); font-size: 16px; color: var(--ink);
  background: transparent; min-width: 0;
}
.url-form input::placeholder { color: var(--muted-2); }
.url-form .btn { height: 48px; padding: 0 22px; }

/* Check form - dual-input URL + email, gated. Primary entry point. */
.check-form {
  background: #fff; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  padding: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.check-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50), var(--shadow-lg); }
.check-form .row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line-2);
}
.check-form .row:last-of-type { border-bottom: 0; }
.check-form .prefix-ico {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.check-form .mono-prefix {
  font-family: var(--font-mono); font-size: 14px; color: var(--muted-2);
  flex-shrink: 0;
}
.check-form input {
  flex: 1; height: 44px; border: 0; outline: 0;
  font-family: var(--font-mono); font-size: 15px; color: var(--ink);
  background: transparent; min-width: 0;
}
.check-form input[type="email"] {
  font-family: var(--font-sans); font-size: 15px;
}
.check-form input::placeholder { color: var(--muted-2); }
.check-form .submit-row {
  margin-top: 10px; padding: 0;
  border: 0;
}
.check-form .btn {
  width: 100%; height: 48px; font-size: 15px;
}

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Grid helpers */
.row { display: grid; gap: 24px; }
.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
}

/* Footer */
.foot { padding: 48px 0 64px; border-top: 1px solid var(--line); margin-top: 32px; background: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot h5 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { color: var(--ink-2); font-size: 14px; }
.foot ul a:hover { color: var(--blue); }
.foot .legal { display: flex; justify-content: space-between; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
@media (max-width: 760px) {
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .legal { flex-direction: column; gap: 8px; }
}

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--blue-100);
}

/* Platform chip */
.platform-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: #fff;
}
.platform-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* Score gauge / grade pills */
.grade-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600;
  width: 60px; height: 60px; border-radius: 14px; font-size: 26px;
  color: #fff;
}
.grade-A { background: #1F9D55; }
.grade-B { background: #38A169; }
.grade-C { background: #B7791F; }
.grade-D { background: #DD6B20; }
.grade-E { background: #C53030; }

/* Small utility */
.small { font-size: 13px; color: var(--muted); }
.tag {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--line-2); color: var(--ink-2);
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* Waitlist modal (Pricing page Pro / Pro+ buttons) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11, 18, 32, 0.55);
  z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  max-width: 480px; width: 100%; padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal .close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 0; font-size: 22px; cursor: pointer;
  color: var(--muted-2); width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.modal .close:hover { background: var(--line-2); color: var(--ink); }
.modal h3 { font-size: 24px; margin-bottom: 8px; }
.modal p.lede { font-size: 16px; margin-bottom: 22px; color: var(--muted); }
.modal label {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.modal input[type="email"] {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: #fff; outline: 0; margin-bottom: 14px;
}
.modal input[type="email"]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.modal .modal-actions { display: flex; gap: 10px; }
.modal .btn { flex: 1; }
.modal .fine { font-size: 12px; color: var(--muted-2); margin-top: 14px; }
.modal .success { color: var(--mint-700); font-weight: 500; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp .6s ease-out both; }
