/* ==========================================================================
   THE EVERYDAY ADVANTAGE — Shared Design System
   One stylesheet for the whole platform: marketing site, product pages,
   customer dashboard, admin dashboard. Every page links this file.
   Brand direction: deep ink navy + confident teal (evolved from the EA
   store identity) + warm amber accent. System-font stack for speed.
   ========================================================================== */

:root {
  /* Color */
  --ink-900: #0c1a24;        /* primary text / dark surfaces */
  --ink-700: #24404f;
  --ink-500: #4c6a7a;
  --ink-300: #9db4c0;
  --paper: #ffffff;
  --mist: #f2f7f8;           /* page background tint */
  --mist-2: #e4eef0;         /* card borders / hairlines */
  --teal-600: #0e7c7b;       /* primary brand */
  --teal-700: #0a6362;
  --teal-100: #d9efee;
  --amber-500: #e8a33d;      /* accent / highlights */
  --amber-100: #fbeed3;
  --green-600: #2e7d4f;
  --red-600: #b3372f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(12, 26, 36, .08);
  --shadow-lg: 0 24px 60px rgba(12, 26, 36, .14);
  --maxw: 1140px;
  /* Type */
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink-900); color: #eaf3f5; }
.section--ink a { color: var(--amber-500); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--amber-500); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; margin-bottom: 16px; }
h3 { font-size: 1.18rem; font-weight: 700; }
.lede { font-size: 1.18rem; color: var(--ink-500); max-width: 640px; }
.section--ink .lede { color: var(--ink-300); }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--mist-2);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.06rem; color: var(--ink-900); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--teal-600), var(--ink-900));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.brand small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-700); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--teal-700); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font: 700 .98rem var(--font); padding: 13px 26px; border-radius: 999px;
  background: var(--teal-600); color: #fff; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--teal-700); text-decoration: none; transform: translateY(-1px); }
.btn--amber { background: var(--amber-500); color: var(--ink-900); }
.btn--amber:hover { background: #d8942a; }
.btn--ghost { background: transparent; color: var(--ink-900); border: 2px solid var(--mist-2); }
.btn--ghost:hover { border-color: var(--ink-300); background: var(--paper); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 84px; background:
  radial-gradient(900px 420px at 85% -10%, var(--teal-100), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, var(--amber-100), transparent 55%),
  var(--paper); }
.hero .lede { margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-500); }

/* ---------- Cards / product grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--mist-2); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card p { color: var(--ink-500); font-size: .97rem; }
.card .card-link { margin-top: auto; font-weight: 700; }
.product-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--teal-100); color: var(--teal-700);
}
.product-icon--amber { background: var(--amber-100); color: #9a6714; }
.badge {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-600); color: #fff;
}
.badge--soon { background: var(--ink-500); }
.badge--plan { background: var(--amber-500); color: var(--ink-900); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--mist-2); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step); flex: none;
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink-900); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step p { color: var(--ink-500); }

/* ---------- Pricing ---------- */
.price-card { text-align: left; }
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.price span { font-size: .95rem; font-weight: 600; color: var(--ink-500); }
.price-card ul { list-style: none; margin: 8px 0 18px; }
.price-card li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-700); font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-600); font-weight: 800; }
.price-card--featured { border: 2px solid var(--teal-600); box-shadow: var(--shadow-lg); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--mist-2); padding: 22px 0; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--ink-500); max-width: 760px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: 400 1rem var(--font); padding: 12px 14px; border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-900); width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal-600); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: .88rem; color: var(--ink-500); }

/* ---------- Dashboard shells ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side { background: var(--ink-900); color: #dbe9ec; padding: 26px 20px; display: flex; flex-direction: column; gap: 6px; }
.dash-side .brand { color: #fff; margin-bottom: 22px; }
.dash-side a { color: #b9cfd6; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .94rem; }
.dash-side a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.dash-side a.active { background: var(--teal-600); color: #fff; }
.dash-main { background: var(--mist); padding: 34px; }
.dash-main h1 { font-size: 1.7rem; margin-bottom: 6px; }
.dash-sub { color: var(--ink-500); margin-bottom: 26px; }
.stat { background: var(--paper); border: 1px solid var(--mist-2); border-radius: var(--radius); padding: 20px; }
.stat .num { font-size: 1.9rem; font-weight: 800; }
.stat .lbl { color: var(--ink-500); font-size: .88rem; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--mist-2); }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--mist-2); font-size: .94rem; }
.table th { background: var(--mist); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.pill { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); }
.pill--grey { background: var(--mist-2); color: var(--ink-500); }
.pill--amber { background: var(--amber-100); color: #9a6714; }
.shell-note {
  border: 1px dashed var(--amber-500); background: var(--amber-100); color: #6d4a0e;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 56px 0 36px; }
.site-footer .grid { gap: 34px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--ink-300); display: block; padding: 3px 0; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .86rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
