/* devpal.ai — the app's dark "Nocturne" palette (src/app/globals.css). */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #0d0f13;
  --bg-panel: #13161b;
  --bg-card: #1a1e25;
  --bg-raised: #191d23;
  --border: #262b33;
  --border-strong: #343a44;
  --text: #f4f4f6;
  --text-2: #b4b9c3;
  --text-3: #8a909b;
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-fg: #0d0f13;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font: 400 16px/1.6 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg-page) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { width: 132px; height: auto; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Buttons — pill-shaped, like every control in the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: #a5b4fc; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-raised); }
.btn:disabled { cursor: not-allowed; background: var(--bg-card); color: var(--text-3); border-color: var(--border-strong); }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -0.035em; }
.lede { max-width: 680px; margin: 24px auto 0; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.cta-note { margin-top: 14px; color: var(--text-3); font-size: 14px; }

/* Per-platform downloads: a <span> is "soon", an <a> (set by main.js) is live. */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.platform {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; border: 1px solid var(--border); color: var(--text-3); text-decoration: none;
}
span.platform::after { content: 'soon'; margin-left: 8px; font-size: 12px; color: var(--text-3); opacity: 0.75; }
a.platform { color: var(--text); border-color: var(--border-strong); }
a.platform:hover { background: var(--bg-raised); }

.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.shot-hero { margin-top: 56px; box-shadow: 0 40px 120px -40px rgba(99, 102, 241, 0.35), 0 30px 80px -30px rgba(0, 0, 0, 0.8); }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; max-width: 760px; }

.mode { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-top: 72px; }
.mode-flip .mode-copy { order: 2; }
.mode-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(129, 140, 248, 0.12); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.mode h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.mode p { color: var(--text-2); margin-top: 14px; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 880px; }
.plan { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.plan-business { border-color: rgba(129, 140, 248, 0.45); }
.plan h3 { font-size: 18px; }
.price { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; }
.price-tba { font-size: 22px; line-height: 1.3; color: var(--text-2); padding-top: 10px; }
.plan-sub { color: var(--text-3); margin-top: 4px; }
.plan .ticks { margin-bottom: 28px; }
.plan .btn, .plan-how { margin-top: auto; align-self: flex-start; }
.plan-how { color: var(--text-2); font-size: 15px; }
.fineprint { color: var(--text-3); font-size: 14px; margin-top: 24px; }

.closing { padding: 96px 0; border-top: 1px solid var(--border); background: radial-gradient(60% 80% at 50% 100%, rgba(99, 102, 241, 0.16), transparent 70%); }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.closing h2 { font-size: clamp(28px, 4vw, 44px); }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Tablet */
@media (max-width: 999px) {
  .mode, .mode-flip { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .mode-flip .mode-copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .brand img { width: 112px; }
  .hero { padding-top: 56px; }
  .br-wide { display: none; }
  .shot-hero { margin-top: 40px; }
  .section, .closing { padding: 64px 0; }
  .grid, .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
}
