/* eSellBridge marketing site.
   Palette matches the application (web/templates/base.html) so the site and
   the product do not look like two different companies. */

:root {
  --ink: #16191d;
  --ink-2: #39414b;
  --muted: #5f6b7a;
  --line: #d8dee6;
  --line-soft: #e8ecf1;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --accent: #1c5fd0;
  --accent-deep: #16418f;
  --accent-soft: #eaf1fd;
  --ok: #1a7f4b;
  --ok-soft: #eaf7f0;
  --warn: #8a5a00;
  --warn-soft: #fdf5e5;
  --shadow: 0 1px 2px rgba(22, 25, 29, .06), 0 8px 24px -18px rgba(22, 25, 29, .3);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #edf0f4;
    --ink-2: #c3cad3;
    --muted: #98a3b1;
    --line: #2e3640;
    --line-soft: #252b33;
    --bg: #12151a;
    --panel: #191d23;
    --accent: #6fa2f0;
    --accent-deep: #a8c6f7;
    --accent-soft: #182436;
    --ok: #6cc79a;
    --ok-soft: #16261e;
    --warn: #d7a44a;
    --warn-soft: #272016;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.05rem); }
h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -.008em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }
.prose p, .prose li { max-width: 68ch; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; gap: 1rem; padding-block: 14px; }
.brand {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.08rem;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-content: center; color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: 0;
}
nav.main { margin-left: auto; display: flex; gap: .15rem; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-2); text-decoration: none; font-size: .93rem;
  padding: .5rem .6rem; border-radius: 7px; min-height: 40px;
  display: inline-flex; align-items: center;
}
nav.main a:hover { background: var(--line-soft); color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); font-weight: 600; }
nav.main a.cta { margin-left: .3rem; }
nav.main .btn { min-height: 38px; padding: .35rem .85rem; font-size: .9rem; }
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: .4rem; }
  nav.main { width: 100%; margin-left: 0; justify-content: flex-start; }
  nav.main a { padding: .45rem .5rem; font-size: .88rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .6rem 1.25rem; border-radius: 9px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-deep); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 8vw, 86px); }
section.tight { padding-block: clamp(34px, 5vw, 54px); }
section + section { border-top: 1px solid var(--line-soft); }
.eyebrow {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 .9rem;
}
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 62ch; }
.section-head { margin-bottom: 2.2rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(52px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.22rem; margin-top: .3rem; }
.hero-note { margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: .97rem; }

/* ---------- Steps: a real sequence, so numbered ---------- */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
ol.steps > li { display: grid; grid-template-columns: 40px 1fr; gap: 0 1.1rem; }
ol.steps > li::before {
  counter-increment: step; content: counter(step);
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .96rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-content: center; font-variant-numeric: tabular-nums;
}
ol.steps h3 { margin-top: .3rem; }
ol.steps p { color: var(--ink-2); }
ol.steps p:last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 780px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--accent); border-width: 2px; }
.plan .tier {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem;
  margin-bottom: .15rem;
}
.plan .who { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; min-height: 2.6em; }
.plan .price {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 2.1rem; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .per { font-size: .86rem; color: var(--muted); margin: .3rem 0 1.1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.3rem; font-size: .93rem; }
.plan li { padding: .36rem 0 .36rem 1.4rem; position: relative; color: var(--ink-2); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 9px; height: 5px; border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.plan li.none::before {
  border: none; content: "—"; color: var(--muted);
  top: .36rem; width: auto; height: auto; transform: none;
}
.plan .btn { margin-top: auto; width: 100%; }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  padding: .2rem .5rem; border-radius: 999px; vertical-align: middle;
  margin-left: .4rem;
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { text-align: left; padding: .72rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th {
  font-family: "Archivo", sans-serif; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Callouts ---------- */
.note {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 1rem 1.15rem; border-radius: 0 9px 9px 0; margin-block: 1.4rem;
  font-size: .97rem;
}
.note.warn { border-color: var(--warn); background: var(--warn-soft); }
.note.ok { border-color: var(--ok); background: var(--ok-soft); }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 700; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--line-soft); padding: .3rem 0;
}
details.faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600; font-size: 1.02rem; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: .9rem;
  font-size: 1.4rem; font-weight: 400; color: var(--muted); line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
details.faq .body { padding: 0 0 1.1rem; color: var(--ink-2); }
details.faq .body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .3rem; }
input, textarea, select {
  width: 100%; padding: .7rem .8rem; font-size: 16px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--ink); font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 130px; }
.field-hint { font-size: .86rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.22rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.02rem; margin-top: 1.6rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .45rem; color: var(--ink-2); }
.legal .updated { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line-soft); background: var(--panel);
  padding-block: 46px 34px; margin-top: 0;
}
.foot { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot h4 {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8rem; font-weight: 600;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .5rem; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.foot a:hover { color: var(--accent); }
.foot .about p { font-size: .92rem; color: var(--muted); max-width: 42ch; }
.legal-line {
  border-top: 1px solid var(--line-soft); margin-top: 2.2rem; padding-top: 1.3rem;
  font-size: .86rem; color: var(--muted);
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .btn-row { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.stack > * + * { margin-top: 1rem; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }


/* ---------- Hero mock: the draft, with where each field came from ---------- */
.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}
.draft {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  font-size: .93rem; max-width: 100%;
}
.draft-head {
  padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: .5rem;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: .82rem;
  letter-spacing: .02em; color: var(--muted);
}
.draft-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.draft-row { padding: .72rem 1rem; border-bottom: 1px solid var(--line-soft); }
.draft-row:last-child { border-bottom: none; }
.draft-label {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-family: "Archivo", sans-serif; font-weight: 600;
}
.draft-value { margin-top: .12rem; color: var(--ink); font-weight: 500; word-break: break-word; }
.prov {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem;
  font-size: .73rem; font-weight: 600; padding: .16rem .5rem; border-radius: 999px;
  letter-spacing: .01em;
}
.prov::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prov.photo  { background: var(--ok-soft); color: var(--ok); }
.prov.lookup { background: var(--accent-soft); color: var(--accent); }
.prov.you    { background: var(--line-soft); color: var(--ink-2); }
.prov.worked { background: var(--warn-soft); color: var(--warn); }
.draft-caption { margin-top: .9rem; font-size: .87rem; color: var(--muted); }
