/* ==========================================================================
   MarketRoo brand system: premium deep-saffron on a light, airy base.
   Refined-premium look. Owns tokens, type, layout, components, reveal base.
   ========================================================================== */

:root {
  --saffron: #C2711A;      /* deep saffron (primary) */
  --saffron-2: #E9A23C;    /* lighter saffron */
  --grad: linear-gradient(120deg, #E9A23C 0%, #C2711A 100%);
  --ink: #211A12;          /* espresso text */
  --muted: #7A6E5E;        /* warm grey-brown */
  --bg: #FBF7EF;           /* ivory base */
  --panel: #F4EEE2;        /* warm panel */
  --card: #FFFFFF;
  --espresso: #241C12;     /* dark contrast sections */
  --line: rgba(33,26,18,0.12);
  --line-d: rgba(255,255,255,0.14);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.65; }
h1,h2,h3,h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
::selection { background: rgba(194,113,26,0.22); }
a { color: var(--saffron); text-decoration: none; }
img { max-width: 100%; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.bg-ivory { background: var(--bg); }
.bg-panel { background: var(--panel); }
.bg-espresso { background: var(--espresso); color: #FBF7EF; }
.bg-espresso .muted { color: rgba(251,247,239,0.7); }
.bg-espresso .lead { color: rgba(251,247,239,0.82); }

/* soft warm glow */
.glow { position: relative; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: -10% -5% auto -5%; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 300px at 20% 0%, rgba(233,162,60,0.18), transparent 60%), radial-gradient(520px 300px at 85% 10%, rgba(194,113,26,0.12), transparent 60%); }
.glow > .wrap { position: relative; z-index: 1; }

/* --- Type ----------------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: 0.22em; font-family: 'Manrope',sans-serif; font-size: 12.5px; font-weight: 700; color: var(--saffron); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--grad); }
.display { font-size: clamp(38px, 6.4vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.03; text-wrap: balance; }
.h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; text-wrap: balance; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #4A4136; line-height: 1.6; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif-em { font-family: 'Fraunces',Georgia,serif; font-style: italic; }

/* --- Buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 15px 30px; cursor: pointer; border: 1px solid transparent; font-family: 'Manrope',sans-serif; transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .25s, filter .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(194,113,26,0.28); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 16px 44px rgba(194,113,26,0.38); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--saffron); transform: translateY(-2px); }
.bg-espresso .btn-ghost { background: transparent; color: #FBF7EF; border-color: rgba(255,255,255,0.3); }
.btn-lg { padding: 17px 36px; font-size: 17px; }

/* --- Chips + cards -------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(194,113,26,0.10); color: var(--saffron); border: 1px solid rgba(194,113,26,0.24); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; }
.chip .spark { width: 8px; height: 8px; border-radius: 999px; background: var(--grad); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 12px 34px rgba(33,26,18,0.06); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
a.card, .card-link { cursor: pointer; text-decoration: none; color: inherit; display: block; }
a.card:hover, .card-link:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(33,26,18,0.12); border-color: rgba(194,113,26,0.35); }
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--saffron); font-weight: 700; font-size: 14px; }
.card-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(194,113,26,0.12); color: var(--saffron); margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }

/* --- Brand watermark accent ----------------------------------------------- */
.brand-accent { position: relative; overflow: hidden; }
.brand-accent > .wrap { position: relative; z-index: 1; }
.brand-accent::after { content: ""; position: absolute; z-index: 0; pointer-events: none; width: 480px; height: 480px; right: -140px; top: -150px; background: url("../assets/marketroo-chart-watermark.svg") no-repeat center / contain; opacity: 0.06; }
.brand-accent.ba-left::after { right: auto; left: -150px; top: auto; bottom: -160px; }
@media (max-width: 700px) { .brand-accent::after { width: 300px; height: 300px; } }

/* --- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,239,0.8); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-lockup .mark svg { height: 40px; width: 40px; display: block; }
.brand-lockup .word { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 23px; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.brand-lockup .word b { color: var(--saffron); font-weight: 800; }
.brand-logo { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink { color: #4A4136; font-size: 15px; font-weight: 600; transition: color .2s; }
.nav-links a.navlink:hover { color: var(--saffron); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute; top: 82px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 22px 24px; }
  .menu-btn { display: inline-flex; }
  .nav-links.open .btn { width: 100%; }
  .brand-lockup .word { font-size: 20px; }
  .brand-lockup .mark svg { height: 34px; width: 34px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--saffron); }
.hero-media { position: relative; }
.arch { border-radius: 220px 220px 26px 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(33,26,18,0.18); }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/4.7; }
.rounded { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(33,26,18,0.14); }
.rounded img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge { position: absolute; left: -12px; bottom: 26px; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 34px rgba(33,26,18,0.14); }
.hero-badge .n { font-family: 'Fraunces',serif; font-weight: 600; font-size: 24px; }
.hero-badge small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } .hero-media { order: -1; max-width: 440px; } }

/* --- Marquee -------------------------------------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marq 36s linear infinite; } }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: #6b5f4f; font-family: 'Manrope',sans-serif; font-weight: 700; font-size: 17px; white-space: nowrap; }
.marquee-item svg { width: 16px; height: 16px; color: var(--saffron); }

/* --- Two-column media ----------------------------------------------------- */
.media-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.media-2 .rounded img { aspect-ratio: 3/2.3; }
@media (max-width: 820px) { .media-2 { grid-template-columns: 1fr; gap: 30px; } }

/* --- Steps ---------------------------------------------------------------- */
.how-steps { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 820px) { .how-steps { grid-template-columns: 1fr; } }
.step-num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: 'Fraunces',serif; font-weight: 600; font-size: 18px; flex: none; }

/* --- Band ----------------------------------------------------------------- */
.band { position: relative; overflow: hidden; }
.band .band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(36,28,18,0.94) 0%, rgba(36,28,18,0.82) 45%, rgba(36,28,18,0.5) 100%); }
.band .wrap { position: relative; z-index: 2; }
.band, .band .muted { color: #FBF7EF; }

/* --- Testimonials --------------------------------------------------------- */
.tgrid { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 900px) { .tgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .tgrid { grid-template-columns: 1fr; } }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; height: 100%; margin: 0; box-shadow: 0 12px 30px rgba(33,26,18,0.06); }
.tstat { font-family: 'Fraunces',serif; font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.tstat small { display: block; font-family: 'Manrope',sans-serif; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 8px; letter-spacing: .02em; text-transform: uppercase; }
.tcard .stars { color: var(--saffron); font-size: 13px; margin-top: 14px; letter-spacing: 2px; }
.tcard blockquote { margin: 12px 0 0; color: #3f382e; font-size: 15px; line-height: 1.6; flex: 1; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(194,113,26,0.12); color: var(--saffron); flex: none; }
.avatar svg { width: 22px; height: 22px; }

/* --- Industry cards ------------------------------------------------------- */
.ind-grid { display: grid; gap: 20px; grid-template-columns: repeat(5,1fr); }
@media (max-width: 1000px) { .ind-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
.ind { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/3.4; display: block; text-decoration: none; box-shadow: 0 12px 30px rgba(33,26,18,0.08); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.ind:hover { transform: translateY(-5px); }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,28,18,0) 40%, rgba(36,28,18,0.82) 100%); }
.ind .lbl { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-family: 'Manrope',sans-serif; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ind .lbl svg { width: 18px; height: 18px; color: var(--saffron-2); }

/* --- Partner logos -------------------------------------------------------- */
.logo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 720px) { .logo-grid { grid-template-columns: 1fr; } }
.logo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; box-shadow: 0 10px 26px rgba(33,26,18,0.05); }
.logo-card img { height: 36px; width: auto; max-width: 100%; }
.logo-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* --- Stats band ----------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; } }
.stat-tile .num { font-family: 'Fraunces',serif; font-size: clamp(30px,4.4vw,48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat-tile .lbl2 { color: rgba(251,247,239,0.7); font-size: 13.5px; margin-top: 8px; }

/* --- Proof micro-line ----------------------------------------------------- */
.proof { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; }
.proof svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--saffron); }
.proof span { color: #5b5142; font-weight: 500; }
.proof b { color: var(--ink); font-weight: 700; }

/* --- FAQ ------------------------------------------------------------------ */
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 6px 22px; background: var(--card); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 17px; font-family: 'Manrope',sans-serif; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; color: #5b5142; font-size: 15.5px; }

/* --- CTA panel ------------------------------------------------------------ */
.cta-panel { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: radial-gradient(700px 300px at 20% 0%, rgba(233,162,60,0.3), transparent 60%), var(--espresso); color: #FBF7EF; padding: clamp(36px,6vw,72px); text-align: center; }
.cta-panel .lead { color: rgba(251,247,239,0.85); }

/* --- Contact + forms ------------------------------------------------------ */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
.form-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 16px 40px rgba(33,26,18,0.08); }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: #4A4136; }
.field { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; color: var(--ink); font-size: 15.5px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: #a99e8d; }
.field:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(194,113,26,0.15); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C2711A' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; font-size: 15px; padding: 0; margin-top: 4px; }
.form-msg:not(:empty) { padding: 13px 16px; margin-top: 16px; }
.form-msg.ok, .form-msg.demo { background: rgba(194,113,26,0.1); color: var(--saffron); border: 1px solid rgba(194,113,26,0.3); }
.form-msg.err { background: rgba(200,30,30,0.08); color: #b3261e; border: 1px solid rgba(200,30,30,0.25); }

/* --- Footer + sticky CTA -------------------------------------------------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); }
.site-footer a { color: #4A4136; }
.site-footer a:hover { color: var(--saffron); }
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(251,247,239,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 880px) { .sticky-cta { display: block; } body { padding-bottom: 80px; } }

/* --- Legal prose ---------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose p, .prose li { color: #3f382e; font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--saffron); text-decoration: underline; }

/* --- Reveal base (refined premium) ---------------------------------------- */
.reveal, .reveal-l, .reveal-r, .reveal-s { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on .reveal { opacity: 0; transform: translateY(26px); }
.reveal-on .reveal-l { opacity: 0; transform: translateX(-34px); }
.reveal-on .reveal-r { opacity: 0; transform: translateX(34px); }
.reveal-on .reveal-s { opacity: 0; transform: scale(.94); }
.reveal-on .reveal.in, .reveal-on .reveal-l.in, .reveal-on .reveal-r.in, .reveal-on .reveal-s.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal, .reveal-on .reveal-l, .reveal-on .reveal-r, .reveal-on .reveal-s { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}
