/* ============================================================================
   ESearchCy — marketing site. Shares the app's design tokens for one cohesive,
   accessible brand. Landing-page components on top of the same primitives.
   ========================================================================== */

:root {
  --navy-900:#0a1524; --navy-800:#0f2138; --navy-700:#173150;
  --gold-600:#a8842f; --gold-500:#c6a15b; --gold-100:#f5edda;

  --bg:#f6f8fb; --surface:#ffffff; --surface-2:#f1f4f9;
  --line:#e3e8f0; --line-strong:#cfd7e3;
  --text:#111a28; --text-2:#465468; --text-3:#6b7789;
  --brand:#0f2138; --brand-ink:#ffffff;
  --accent:#a8842f; --accent-soft:rgba(168,132,47,.10);
  --ok:#12784a; --ok-bg:#e7f4ec; --err:#b3261e;

  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(16,26,40,.06),0 1px 3px rgba(16,26,40,.08);
  --sh-2:0 4px 12px rgba(16,26,40,.08),0 2px 6px rgba(16,26,40,.06);
  --sh-3:0 18px 48px rgba(16,26,40,.18);
  --ring:0 0 0 3px rgba(168,132,47,.35);

  --sans:"Inter","Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  --serif:"Iowan Old Style",Palatino,Georgia,serif;
  --ease:cubic-bezier(.2,.6,.2,1);
  --max:1120px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--sans);font-size:16px;line-height:1.55;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden;
}
h1,h2,h3,h4{margin:0;font-weight:650;letter-spacing:-.02em;line-height:1.15}
p{margin:0}
a{color:inherit;text-decoration:none}
svg{display:block}
.muted{color:var(--text-3)}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:var(--r-sm)}

/* background decor */
.bg-decor{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(60% 45% at 78% -5%, rgba(168,132,47,.10), transparent 60%),
    radial-gradient(50% 40% at 8% 0%, rgba(23,49,80,.10), transparent 60%);
}

/* ---- Buttons -------------------------------------------------------------- */
.btn-gold,.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:42px;padding:0 20px;border-radius:var(--r-md);font-weight:650;font-size:15px;
  border:1px solid transparent;cursor:pointer;transition:.16s var(--ease);white-space:nowrap;
}
.btn-gold{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:var(--sh-1)}
.btn-gold:hover{filter:brightness(.96);transform:translateY(-1px);box-shadow:var(--sh-2)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--line-strong)}
.btn-ghost:hover{background:var(--surface-2)}
.btn-gold.big{height:52px;padding:0 30px;font-size:17px;border-radius:var(--r-lg)}

/* ---- Nav ------------------------------------------------------------------ */
.nav{
  position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  gap:20px;max-width:var(--max);margin:0 auto;padding:16px 24px;
}
.nav::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(246,248,251,.82);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);}
.brand{display:inline-flex;align-items:center;gap:2px;font-family:var(--serif);
  font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.brand .mark{color:var(--gold-500);margin-right:6px;font-size:24px}
.brand .tld{color:var(--text-3);font-weight:600}
.nav-links{display:flex;align-items:center;gap:22px}
.nav-links a{color:var(--text-2);font-weight:550;font-size:15px;transition:.16s}
.nav-links a:hover{color:var(--text)}
.nav-links a.btn-ghost{color:var(--text)}
.nav-links a.btn-gold{color:#fff}
.menu-btn{display:none;border:1px solid var(--line-strong);background:var(--surface);
  width:42px;height:42px;border-radius:var(--r-md);font-size:20px;cursor:pointer;color:var(--text)}

/* ---- Hero ----------------------------------------------------------------- */
.hero{max-width:var(--max);margin:0 auto;padding:72px 24px 40px;text-align:center}
.eyebrow{display:inline-block;font-size:13px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;
  color:var(--accent);background:var(--accent-soft);padding:6px 14px;border-radius:var(--r-pill);margin-bottom:22px}
.hero h1{font-family:var(--serif);font-size:clamp(40px,7vw,68px);letter-spacing:-.03em;line-height:1.02}
.hero h1 .grad{background:linear-gradient(100deg,var(--gold-600),var(--gold-500));-webkit-background-clip:text;
  background-clip:text;color:transparent}
.hero .lead{max-width:640px;margin:22px auto 0;font-size:19px;color:var(--text-2);line-height:1.6}

.search-wrap{max-width:720px;margin:38px auto 0}
.searchbar{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--r-lg);padding:8px 8px 8px 16px;box-shadow:var(--sh-2)}
.searchbar:focus-within{box-shadow:var(--sh-2),var(--ring)}
.s-ico{width:22px;height:22px;flex:none;fill:none;stroke:var(--text-3);stroke-width:2;stroke-linecap:round}
.searchbar input{flex:1;border:none;outline:none;background:none;font:inherit;font-size:16px;color:var(--text);min-width:0}
.searchbar button{flex:none;height:44px;padding:0 24px;border:none;border-radius:var(--r-md);
  background:var(--accent);color:#fff;font-weight:650;font-size:15px;cursor:pointer;transition:.16s}
.searchbar button:hover{filter:brightness(.96)}
.trust{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;margin-top:20px;color:var(--text-3);font-size:14px}

/* search results (shared shape with the app's rows) */
.results{margin-top:16px;text-align:left}
.result{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--sh-1)}
.result + .result{margin-top:10px}
.result .nm{font-weight:650}
.result .meta{color:var(--text-3);font-size:13px;margin-top:2px}
.result .former{color:var(--accent);font-size:12px;margin-top:3px}
.result > div:first-child{flex:1;min-width:0}
.result .right{display:flex;align-items:center;gap:12px;flex:none}
.result .price{font-size:13px;color:var(--text-2);white-space:nowrap}
.result .order{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:var(--r-md);
  background:var(--accent);color:#fff;font-weight:600;font-size:14px;transition:.16s}
.result .order:hover{filter:brightness(.96)}
.notice{display:flex;align-items:center;gap:10px;padding:14px 16px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);color:var(--text-2)}
.spin{display:inline-block;width:16px;height:16px;border:2px solid var(--line-strong);
  border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- Use-cases strip ------------------------------------------------------ */
.usecases{max-width:var(--max);margin:24px auto 0;padding:0 24px;display:flex;align-items:center;gap:18px;
  flex-wrap:wrap;justify-content:center;color:var(--text-3);font-size:14px}
.usecases .chips{display:flex;flex-wrap:wrap;gap:10px}
.usecases .chips div{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:6px 14px;font-weight:550;color:var(--text-2)}

/* ---- Sections ------------------------------------------------------------- */
.section{max-width:var(--max);margin:0 auto;padding:76px 24px}
.section.alt{background:var(--surface);max-width:none}
.section.alt > *{max-width:var(--max);margin-left:auto;margin-right:auto}
.section-head{text-align:center;max-width:640px;margin:0 auto 44px}
.kicker{font-size:13px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}
.section-head h2{font-family:var(--serif);font-size:clamp(28px,4vw,40px)}
.section-head p{margin-top:14px;color:var(--text-2);font-size:17px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;box-shadow:var(--sh-1)}
.step-n{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-family:var(--serif);
  font-weight:700;font-size:18px;color:#fff;background:var(--brand);margin-bottom:16px}
.step h3{font-size:20px;margin-bottom:8px}
.step p{color:var(--text-2)}

.features{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.feature{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg);padding:26px}
.f-ico{font-size:26px;margin-bottom:12px}
.feature h3{font-size:18px;margin-bottom:6px}
.feature p{color:var(--text-2);font-size:15px}

/* ---- Pricing -------------------------------------------------------------- */
.price-card{max-width:520px;margin:0 auto;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:32px;box-shadow:var(--sh-2)}
.price-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.price-name{font-weight:650;font-size:18px}
.price-amt{font-family:var(--serif);font-size:40px;font-weight:700;color:var(--text)}
.price-amt span{font-family:var(--sans);font-size:15px;font-weight:550;color:var(--text-3)}
.price-list{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-direction:column;gap:12px}
.price-list li{display:flex;gap:10px;color:var(--text-2)}
.price-list li::before{content:"✓";color:var(--ok);font-weight:700}
.price-card .btn-gold{width:100%}
.price-foot{margin-top:14px;text-align:center;color:var(--text-3);font-size:14px}
.price-note{max-width:520px;margin:16px auto 0;text-align:center;color:var(--text-3);font-size:14px}

/* ---- Custom-solution quote form ------------------------------------------- */
.quote-card{max-width:680px;margin:0 auto;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:28px;box-shadow:var(--sh-2)}
.q-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quote-card .field{margin-bottom:14px}
.quote-card label{display:block;font-size:13px;font-weight:600;color:var(--text-2);margin-bottom:6px}
.quote-card input,.quote-card textarea{width:100%;padding:11px 12px;border:1px solid var(--line-strong);
  border-radius:var(--r-md);background:var(--surface);color:var(--text);font:inherit;font-size:15px}
.quote-card textarea{resize:vertical}
.quote-card input:focus,.quote-card textarea:focus{outline:none;box-shadow:var(--ring);border-color:var(--accent)}
.q-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.q-msg{font-size:14px;color:var(--text-2)}
.q-msg.ok{color:var(--ok)}.q-msg.err{color:var(--err)}
.q-note{margin-top:14px;font-size:13px;color:var(--text-3)}
@media (max-width:560px){.q-grid{grid-template-columns:1fr}}

/* ---- CTA ------------------------------------------------------------------ */
.cta{max-width:840px;margin:20px auto 76px;padding:56px 32px;text-align:center;
  background:linear-gradient(160deg,var(--navy-800),var(--navy-900));color:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-3)}
.cta h2{font-family:var(--serif);font-size:clamp(26px,3.6vw,36px)}
.cta p{margin:14px auto 26px;max-width:520px;color:rgba(255,255,255,.82);font-size:17px}

/* ---- Footer --------------------------------------------------------------- */
.footer{background:var(--surface);border-top:1px solid var(--line)}
.foot-grid{max-width:var(--max);margin:0 auto;padding:56px 24px 30px;display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px}
.foot-grid h4{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-3);margin-bottom:14px}
.foot-grid a{display:block;color:var(--text-2);font-size:15px;margin-bottom:9px;transition:.16s}
.foot-grid a:hover{color:var(--text)}
.foot-grid .brand{margin-bottom:12px}
.foot-grid .muted{font-size:14px;max-width:260px}
.foot-note{max-width:var(--max);margin:0 auto;padding:20px 24px 40px;border-top:1px solid var(--line);
  color:var(--text-3);font-size:13px;line-height:1.6}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width:860px){
  .steps,.features{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .nav-links{position:fixed;top:74px;right:16px;left:16px;flex-direction:column;align-items:stretch;gap:8px;
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;
    box-shadow:var(--sh-3);display:none}
  .nav-links.open{display:flex}
  .nav-links a{padding:8px 6px}
  .menu-btn{display:grid;place-items:center}
  .steps,.features,.foot-grid{grid-template-columns:1fr}
  .hero{padding-top:48px}
  .searchbar{flex-wrap:wrap}
  .searchbar input{width:100%;padding:6px 0}
  .searchbar button{width:100%}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto}}
