/* =========================================================
   Organize Eats — shared site styles
   Brand tokens: gradient (blue→purple→pink), Comfortaa + Lora
   ========================================================= */

:root {
  /* ---- Brand gradient (logo + accents) ---- */
  --grad-blue:   #4F7CFF;
  --grad-purple: #A95CFF;
  --grad-pink:   #FF6FB1;
  --brand-gradient: linear-gradient(
    90deg,
    var(--grad-blue)   0%,
    var(--grad-purple) 55%,
    var(--grad-pink)   100%
  );
  --brand-gradient-soft: linear-gradient(
    135deg,
    rgba(79, 124, 255, 0.10)  0%,
    rgba(169, 92, 255, 0.10) 55%,
    rgba(255, 111, 177, 0.10) 100%
  );

  /* ---- Neutrals (UI foundation) ---- */
  --bg:        #FBFAF7;   /* page background, slightly warm */
  --surface:   #FFFFFF;
  --surface-2: #F4F5F8;   /* cards / muted sections */
  --border:    #E7E9EE;
  --border-2:  #EFF0F3;

  /* ---- Typography colors ---- */
  --ink:       #1F2A44;   /* primary text — dark navy */
  --ink-2:     #4A5568;   /* secondary text */
  --muted:     #94A3B8;   /* muted / hint text */

  /* ---- Accents (used sparingly) ---- */
  --accent-mint:   #6FD7B5;
  --accent-amber:  #F5B461;

  /* ---- Type ---- */
  --font-display: "Comfortaa", system-ui, sans-serif;
  --font-body:    "Lora", Georgia, serif;

  /* ---- Radii & shadows (soft, airy) ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 42, 68, 0.06);
  --shadow-lg: 0 24px 60px rgba(31, 42, 68, 0.08);

  /* ---- Layout ---- */
  --maxw: 1160px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(169, 92, 255, 0.18); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }

p  { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
p.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 38em;
}

ul, ol { color: var(--ink-2); padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grad-purple);
  margin: 0 0 18px;
  display: inline-block;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 880px) {
  section { padding: 72px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a {
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 160ms ease;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  margin-left: 8px;
}

/* Social icons — ghost pills that fill with the brand gradient on hover */
.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a.social-link {
  width: 30px;
  height: 30px;
  padding: 0;
  opacity: 1;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease, background 200ms ease,
              border-color 200ms ease, transform 160ms ease;
}
.nav-links a.social-link svg { width: 15px; height: 15px; display: block; }
.nav-links a.social-link:hover {
  color: #fff;
  background: var(--brand-gradient);
  background-clip: padding-box;
  border-color: transparent;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .nav-social { display: none; }
}
@media (max-width: 720px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links .nav-cta { display: none; }
}

/* ---------- Logo wordmark ---------- */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.logo .lm-organize {
  background: linear-gradient(90deg, var(--grad-blue) 0%, var(--grad-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.logo .lm-eats {
  background: linear-gradient(90deg, var(--grad-purple) 0%, var(--grad-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-left: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-gradient);
  /* Clip the gradient to the padding box so it doesn't bleed under the
     1px transparent border inherited from .btn (otherwise a blue/pink
     sliver shows at the rounded left/right ends of the pill). */
  background-clip: padding-box;
  color: white;
  box-shadow: 0 8px 20px -8px rgba(169, 92, 255, 0.55),
              0 1px 0 rgba(255,255,255,0.4) inset;
}
.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(169, 92, 255, 0.65),
              0 1px 0 rgba(255,255,255,0.4) inset;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-arrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.btn-arrow svg { transition: transform 200ms ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-2);
  background: var(--surface);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--ink-2);
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 400;
  transition: color 160ms ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-col p { font-size: 15px; max-width: 28ch; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Brand symbol marks (Circle/Square/Triangle/Arrow) ---------- */
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}
.brand-mark.large {
  width: 72px; height: 72px;
  border-radius: 20px;
}

/* ---------- Legal / long-form ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
}
.legal-toc {
  position: sticky;
  top: 96px;
  font-family: var(--font-display);
  font-size: 14px;
}
.legal-toc h5 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}
.legal-toc a {
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  padding: 4px 0;
  transition: color 160ms ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover { color: var(--ink); }

.legal-body { max-width: 68ch; }
.legal-body h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 18px;
  padding-top: 8px;
  scroll-margin-top: 96px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; }
.legal-body strong { color: var(--ink); font-weight: 600; }
