/* Ninja Takeoff marketing site. Mobile-first; breakpoints at 720px and 1000px. */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --ink: #0b0b0d;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e7e5e4;
  --accent: #dc2626;
  --accent-ink: #b91c1c;
  --accent-soft: #fef2f2;
  --dark: #0b0b0d;
  --dark-2: #17171a;
  --radius: 16px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.accent { color: var(--accent); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .75em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #27272a; }

/* Pills */
.pill { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-blue { background: #e0f2fe; color: #0369a1; }
.pill-green { background: #dcfce7; color: #15803d; }
.pill-orange { background: var(--accent-soft); color: var(--accent-ink); }

/* Logo — two-line wordmark (same rule as UpYours' REVIEWS): TAKEOFF is forced to
   NINJA's exact width and its letters spread edge to edge, so the second line
   starts and ends exactly under the first. */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.logo .word { display: flex; flex-direction: column; line-height: 1; font-weight: 800; letter-spacing: .02em; }
.logo .sub { display: flex; justify-content: space-between; width: 0; min-width: 100%; box-sizing: border-box; padding: 0 0.02em 0 0.04em; margin-top: 3px; font-size: 0.5em; font-weight: 800; color: var(--accent); }
.logo-mark {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.logo-mark::before { /* headband */
  content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 6px; background: var(--accent);
}
.logo-mark::after { /* eye slit */
  content: ''; position: absolute; left: 8px; right: 8px; top: 21px; height: 3px; border-radius: 2px; background: #fff;
}
.footer .logo { color: #fff; }
.footer .logo-mark { background: #27272a; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.nav-links { display: none; }
.nav-cta { margin-left: auto; }
.nav-toggle { width: 44px; height: 44px; border: 0; background: none; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .nav-links {
  display: flex; flex-direction: column;
  position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 16px;
}
.nav-links a { text-decoration: none; font-weight: 700; color: var(--ink-2); padding: 12px 0; min-height: 44px; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 48px 0 32px; background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* App mock */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(220,38,38,.35), var(--shadow); overflow: hidden; max-width: 520px; margin: 0 auto; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--dark); }
.mock-top span { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; }
.mock-top em { margin-left: 10px; font-style: normal; font-size: .72rem; color: #a1a1aa; }
.mock-body { padding: 16px; font-size: .86rem; }
.mock-project { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock-project strong { display: block; font-size: 1rem; }
.mock-project small { color: var(--muted); }
.mock-label { margin: 14px 0 8px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.token { padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .78rem; }
.token b { color: var(--ink); margin-left: 4px; }
.lines { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.line { display: grid; grid-template-columns: 1fr auto 72px; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line span:nth-child(2) { color: var(--muted); }
.line b { text-align: right; }
.mock-total { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--dark); color: #fff; font-weight: 700; }
.mock-total b { color: var(--accent); font-size: 1.05rem; }
.mock-sign { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sig { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 1.5rem; color: #1e3a8a; }

/* Flow strip */
.flow { background: var(--dark); color: #fff; }
.flow-steps { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: s; }
.flow-steps li { counter-increment: s; display: flex; flex-direction: column; padding-left: 34px; position: relative; }
.flow-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.flow-steps b { font-size: 1rem; }
.flow-steps span { font-size: .85rem; color: #a1a1aa; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.05rem; }

/* Features */
.features { display: grid; gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crm { margin-top: 24px; padding: 24px; border-radius: var(--radius); border: 1.5px dashed #fca5a5; background: var(--accent-soft); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.crm p { margin: 0; color: var(--ink-2); }

/* Steps */
.steps { display: grid; gap: 16px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step p { margin: 0; color: var(--ink-2); }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Switch */
.switch { display: grid; gap: 32px; align-items: center; }
.switch > div > p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.switch-card { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 8px 20px; box-shadow: var(--shadow); }
.switch-row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid #27272a; font-weight: 600; }
.switch-row:first-child { border-top: 0; }
.switch-row b { color: var(--accent); }

/* Pricing */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(220,38,38,.45); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .92rem; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: .92rem; }
.price-sub { color: var(--muted); font-size: .85rem; min-height: 1.4em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--ink-2); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.05rem; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { display: grid; gap: 32px; }
.contact > div p { color: #a1a1aa; font-size: 1.05rem; }
.contact-form { display: grid; gap: 14px; background: var(--dark-2); border: 1px solid #27272a; border-radius: var(--radius); padding: 20px; }
.field-row { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: #d4d4d8; }
.contact-form em { font-weight: 400; color: #71717a; font-style: normal; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #3f3f46; border-radius: 10px;
  background: #0b0b0d; color: #fff;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: #f87171; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.5em; font-size: .92rem; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* Footer */
.footer { background: var(--dark); color: #a1a1aa; border-top: 1px solid #27272a; padding: 32px 0; }
.footer-row { display: grid; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { text-decoration: none; padding: 10px 0; }
.footer nav a:hover { color: #fff; }
.fine { font-size: .8rem; margin: 0; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .flow-steps { grid-template-columns: repeat(5, 1fr); padding: 26px 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .crm { flex-direction: row; align-items: center; justify-content: space-between; }
  .crm > div { max-width: 640px; }
  .footer-row { grid-template-columns: auto 1fr; align-items: center; }
  .footer nav { justify-content: flex-end; }
  .fine { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 26px; margin-left: 32px; }
  .nav-links a { padding: 0; min-height: 0; font-size: .95rem; }
  .nav-cta { margin-left: 0; }
  .nav-links .nav-login { margin-left: auto; }
  .nav-links { flex: 1; }
  .hero { padding: 88px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .switch { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .contact { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
  .section { padding: 104px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
