/* ApplyAnyway landing — self-contained, system fonts, dark-scheme aware. */

:root {
  --accent: #ee5a33;
  --accent-hover: #d94c27;
  --accent-soft: rgba(238, 90, 51, 0.12);
  --bg: #fdfcfb;
  --bg-alt: #f4f1ee;
  --surface: #ffffff;
  --text: #1d1a17;
  --text-muted: #6b645e;
  --border: #e3ddd6;
  --shadow: 0 1px 3px rgba(29, 26, 23, 0.07);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff6f45;
    --accent-hover: #ff8560;
    --accent-soft: rgba(255, 111, 69, 0.14);
    --bg: #161311;
    --bg-alt: #1e1a17;
    --surface: #24201c;
    --text: #f0ece7;
    --text-muted: #a89f96;
    --border: #383029;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { width: 28px; height: 28px; }

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.header-nav { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  padding: 12px 26px;
  color: var(--text);
  background: var(--bg-alt);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-small { font-size: 0.85rem; padding: 8px 18px; background: var(--accent-soft); color: var(--accent); }
.btn-small:hover { background: var(--accent); color: #fff; }

/* Hero */
.hero { padding: 72px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 34em;
}

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero-note { font-size: 0.85rem; color: var(--text-muted); max-width: 18em; }

.hero-art { display: flex; justify-content: center; }

.radar-svg { width: 100%; max-width: 340px; height: auto; }

.radar-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}

/* Sections */
.section { padding: 64px 0; }

.section-alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.section p { margin-bottom: 14px; }
.section p:last-child { margin-bottom: 0; }

.callout {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.93rem; color: var(--text-muted); }

/* How it works */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.hiw-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hiw-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.hiw-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.hiw-step p { font-size: 0.93rem; color: var(--text-muted); }

/* USP */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.usp-section { padding-top: 0; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.split p { color: var(--text-muted); }

/* Steps */
.steps {
  margin-top: 24px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--accent);
}

/* Screenshot placeholder */
.shot-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  background: var(--bg-alt);
}

.shot-placeholder svg { width: 100%; max-width: 480px; height: auto; opacity: 0.8; }

.shot-placeholder p { margin-top: 10px; color: var(--text-muted); font-size: 0.9rem; }

.shot-frame { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.shot-bar { fill: var(--bg-alt); }
.shot-dot { fill: var(--border); }
.shot-line { fill: var(--accent-soft); }
.shot-row { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1; }

/* Waitlist */
.waitlist-box {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.waitlist-box h3 { font-size: 1.25rem; margin-bottom: 8px; }
.waitlist-box > p { color: var(--text-muted); margin-bottom: 18px; }

.field-row { display: flex; gap: 10px; flex-wrap: wrap; }

.field-row input[type="email"] {
  flex: 1 1 240px;
  font: inherit;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}

.field-row input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* Honeypot: visually removed, still in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg { min-height: 1.4em; margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }
.form-msg.success { color: #2e7d32; }
.form-msg.error { color: #c62828; }

@media (prefers-color-scheme: dark) {
  .form-msg.success { color: #81c784; }
  .form-msg.error { color: #ef9a9a; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .radar-svg { max-width: 220px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .header-row { height: 56px; }
  .brand-name { font-size: 1rem; }
}
