/* ============================================================
   marketing.css — shared chrome + theme for the PUBLIC marketing/legal
   pages (about, contact, privacy, terms, refund) so they match the
   landing (index.php) EXACTLY. App/dashboard (main.css) is untouched.
   Palette + nav + footer copied 1:1 from the landing's inline styles.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #F7F6EF;
  --bg-soft:   #FAFAF7;
  --bg-card:   #FFFFFF;
  --ink:       #1F1F1D;
  --ink-soft:  #5F615D;
  --ink-mute:  #6E706B;
  --ink-faint: #CFCFC6;
  --line:      #E3E2DB;
  --line-soft: #EBEAE2;
  --green:     #2F6F6C;
  --green-d:   #1F4A48;
  --green-bg:  #E8F5EF;
  --tw-blue:   #2563EB;
  --tw-blue-d: #1D4ED8;
  --tw-blue-soft: #B7C7FF;
  --r-xs: 8px; --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16,23,18,.05), 0 2px 8px rgba(16,23,18,.04);
  --sh-2: 0 12px 32px -16px rgba(16,23,18,.18);
  --f-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-serif:   'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1120px; --pad: 18px;

  /* Aliases so the legal pages' existing inline var(--c-*) keep working, now
     mapped to the cream theme instead of the app's blue/white palette. */
  --c-text:         var(--ink);
  --c-text-soft:    var(--ink-soft);
  --c-muted:        var(--ink-mute);
  --c-border:       var(--line);
  --c-bg-page:      var(--bg);
  --c-bg-soft:      var(--bg-soft);
  --c-primary:      var(--tw-blue);
  --c-primary-dark: var(--tw-blue-d);
  --c-primary-soft: var(--green-bg);
  --radius-md:      var(--r-m);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--f-body); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
.wrap, .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--f-body); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: var(--r-s); border: 1px solid transparent; cursor: pointer; min-height: 40px; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; text-decoration: none; }
.btn-lg { padding: 11px 22px; font-size: 15px; min-height: 44px; }
.btn-primary { background: var(--tw-blue); color: #fff; box-shadow: 0 3px 11px -6px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--tw-blue-d); transform: translateY(-2px); box-shadow: 0 9px 20px -10px rgba(37,99,235,.35); }
.btn-ghost { background: var(--bg-card); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: rgba(21,37,30,.06); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--tw-blue); outline-offset: 2px; }

.eyebrow { display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }

/* ---------- Nav (identical to landing) ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(252,251,244,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; padding-bottom: 15px; }
.brand { display: inline-flex; align-items: baseline; font-family: 'Inter Tight', var(--f-body); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0; color: var(--ink); text-decoration: none; }
.brand-dot { color: #E7B53F; }
.nav-links { display: none; gap: 28px; font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-links a:hover { color: var(--ink-mute); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; }
.auth-lang { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px; }
.auth-lang-opt { border: none; background: transparent; cursor: pointer; font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--ink-mute); padding: 5px 11px; border-radius: var(--r-pill); line-height: 1; transition: background .18s ease, color .18s ease; }
.auth-lang-opt:hover:not(.is-active) { color: var(--ink); }
.auth-lang-opt.is-active { background: var(--tw-blue-soft); color: var(--ink); }
.nav-auth { display: inline-flex; align-items: center; background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.nav-auth a { font-family: var(--f-display); font-weight: 500; font-size: 13.5px; line-height: 1; border-radius: var(--r-pill); padding: 8px 16px; transition: background .18s ease, color .18s ease; }
.nav-auth .na-in { color: var(--ink); }
.nav-auth .na-in:hover { color: var(--tw-blue); }
.nav-auth .na-up { background: var(--tw-blue); color: #fff; }
.nav-auth .na-up:hover { background: var(--tw-blue-d); }

/* ---------- Content (legal / marketing text pages) ---------- */
main { flex: 1 0 auto; }
.section { padding: 44px 0 60px; }
.section-title { margin-bottom: 22px; }
.section-title h1 { font-family: var(--f-serif); font-weight: 600; font-size: 32px; line-height: 1.14; letter-spacing: -0.01em; color: var(--ink); margin: 4px 0 8px; }
.section-title p { color: var(--ink-mute); font-size: 14px; }
.section p { color: var(--ink-soft); }
.section a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* Contact form card + fields (used by contact.php) */
.auth-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; box-shadow: var(--sh-1); }
.auth-foot { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-mute); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font-family: var(--f-body); font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 10px 13px; transition: border-color .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tw-blue); }

/* ---------- Footer (identical to landing) ---------- */
.footer { flex-shrink: 0; background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0 26px; font-size: 13.5px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { font-size: 26px; }
.footer-brand p { color: var(--ink-mute); max-width: 32ch; margin-top: 10px; line-height: 1.55; font-size: 13px; }
.footer h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer a { transition: color .18s; }
.footer a:hover { color: var(--green); }
.footer-bottom { padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-mute); }
.footer-bottom a { color: var(--green); }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  :root { --pad: 26px; }
  .nav-links { display: flex; }
  .section-title h1 { font-size: 38px; }
}
@media (min-width: 900px) {
  :root { --pad: 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1; }
}

/* ---- "A Shilpi Clouds product" footer credit ---- */
.footer-bottom .foot-shilpi { display: inline-flex; align-items: center; white-space: nowrap; color: inherit; text-decoration: none; }
.footer-bottom .foot-shilpi img { height: 14px; width: auto; display: block; opacity: .75; }
.footer-bottom .foot-shilpi:hover img { opacity: 1; }
.footer-bottom .foot-shilpi .fs-ico { height: 15px; margin-right: 4px; }
