/* Malvicsearch — website styles. System fonts (no CDN), navy + blue brand. */

:root {
  /* Brand */
  --navy-950: #080e1a;
  --navy-900: #0b1220;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;

  /* Neutral (light surfaces) */
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Semantic */
  --bg: var(--white);
  --surface: var(--white);
  --text: var(--slate-900);
  --text-muted: var(--slate-600);
  --border: var(--slate-200);
  --primary: var(--blue-600);
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --gold: #f59e0b;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .1);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
  --shadow-blue: 0 10px 30px -8px rgba(37, 99, 235, .5);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --maxw: 1120px;
}

* { 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;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--slate-900); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 14px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  min-height: 48px; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--slate-900); border-color: var(--border); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-on-dark:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; min-height: 54px; }
.btn svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--slate-900); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--slate-700); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--slate-900); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--slate-900); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 70% -10%, #16233f 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #fff; overflow: hidden; }
.hero .container { padding-top: 72px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #c7d2e4; font-size: 1.2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.3); color: var(--blue-300); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero-badge svg { width: 16px; height: 16px; flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-trust { color: #93a4be; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--blue-400); }

/* App window mockup */
.window { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--slate-100); border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-bar .r { background: #ff5f57; } .window-bar .y { background: #febc2e; } .window-bar .g { background: #28c840; }
.window-title { margin-left: 10px; font-size: .8rem; color: var(--slate-500); }
.window-body { background: #fff; }
.mock-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--slate-500); }
.mock-search svg { width: 18px; height: 18px; color: var(--primary); }
.mock-search .caret { color: var(--slate-900); }
.mock-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; font-size: .82rem; border-bottom: 1px solid var(--slate-100); }
.mock-row:nth-child(odd) { background: var(--slate-50); }
.mock-row .name { color: var(--slate-900); font-weight: 500; }
.mock-row .path { color: var(--slate-500); font-size: .76rem; }
.mock-row .ic { width: 20px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); }

/* Feature cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature .ficon { width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ficon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* Alt (tinted) section */
.section-alt { background: var(--slate-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); margin: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; align-items: start; }
.pricing-single { grid-template-columns: 1fr; max-width: 420px; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 1.15rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.plan .price-note { color: var(--text-muted); font-size: .9rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; color: var(--slate-700); }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.plan li.yes svg { color: var(--success); }
.plan li.no { color: var(--slate-500); }
.plan li.no svg { color: var(--slate-300); }
.plan .btn { width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--slate-900); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; flex: none; color: var(--slate-500); transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text-muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d2e4; max-width: 560px; margin: 0 auto 22px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #aebbd0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer a { color: #aebbd0; display: block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .88rem; color: #7e8ba3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Simple content pages */
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { margin-top: 8px; }
.doc h2 { font-size: 1.4rem; margin-top: 2rem; }
.doc ul, .doc ol { padding-left: 22px; color: var(--text-muted); }
.doc li { margin-bottom: 8px; }
.callout { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 18px 20px; color: #1e3a8a; margin: 20px 0; }
.callout strong { color: #1e40af; }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { position: relative; padding-left: 44px; margin-bottom: 20px; }
.steps-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; background: var(--primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* Placeholder marker (fill before launch) */
.ph { background: #fef9c3; color: #854d0e; border: 1px dashed #eab308; border-radius: 6px; padding: 1px 7px; font-size: .85em; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse the nav to a hamburger early enough that the brand + links never crowd. */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav[data-open="true"] .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; align-items: stretch;
  }
  .nav[data-open="true"] .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .nav[data-open="true"] .nav-links a:hover { background: var(--slate-100); }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .grid-3, .steps, .pricing, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  body { font-size: 16px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
