/* ════════════════════════════════════════════════════════════════════════
   Marketing / product-explainer pages (PagesController, "marketing" layout).

   Loaded after application.css, so it overrides the app's sidebar body grid
   and layers a self-contained marketing design on top of the shared tokens.
   Display headings use a warm serif to give the marketing voice its own
   character, distinct from the Inter-based product UI.
   ════════════════════════════════════════════════════════════════════════ */

body.marketing {
  /* Undo the application sidebar grid — marketing pages are a normal flow. */
  display: block;
  background: var(--color-surface-2);
  color: var(--color-content);

  --mkt-max: 1180px;
  --mkt-pad: clamp(20px, 5vw, 64px);
  --mkt-serif: "Georgia", "Times New Roman", serif;
  --mkt-band: #EEF3E4;          /* soft green wash for alternating sections */
}

body.marketing h1,
body.marketing h2 {
  font-family: var(--mkt-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--color-content);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.mkt_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.mkt_btn:hover { text-decoration: none; transform: translateY(-1px); }
.mkt_btn--lg { padding: 15px 30px; font-size: 1.05rem; }

.mkt_btn--primary {
  background: var(--color-brand-0);
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 92, 10, 0.22);
}
.mkt_btn--primary:hover { background: #34500a; color: #fff; box-shadow: 0 10px 26px rgba(61, 92, 10, 0.28); }

.mkt_btn--ghost {
  background: transparent;
  color: var(--color-brand-0);
  border-color: var(--color-separators);
}
.mkt_btn--ghost:hover { color: var(--color-brand-0); border-color: var(--color-brand-1); background: var(--mkt-band); }

.mkt_btn--invert {
  background: #fff;
  color: var(--color-brand-0);
}
.mkt_btn--invert:hover { background: #f3f6ec; color: var(--color-brand-0); }

/* ── Header ──────────────────────────────────────────────────────────── */
.mkt_header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px var(--mkt-pad);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-separators);
}
.mkt_brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mkt-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-content);
}
.mkt_brand:hover { text-decoration: none; color: var(--color-content); }

/* logo.svg is white-fill — seat it on a brand chip so it reads on light bg. */
.mkt_logo {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 7px;
  background: var(--color-brand-0);
}

.mkt_nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.mkt_nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-content-muted);
}
.mkt_nav a:hover { color: var(--color-brand-0); text-decoration: none; }

.mkt_actions { display: flex; align-items: center; }

/* ── Main / sections ─────────────────────────────────────────────────── */
.mkt_main > section {
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--mkt-pad);
}

.mkt_eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-1);
  margin-bottom: 14px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.mkt_hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(48px, 7vw, 88px);
}
.mkt_hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 22px;
}
.mkt_lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-content-muted);
  max-width: 38ch;
  margin-bottom: 30px;
}
.mkt_cta_row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Screenshot frame ────────────────────────────────────────────────── */
.mkt_shot {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface-1);
  border: 1px solid var(--color-separators);
  box-shadow: 0 24px 60px -24px rgba(26, 43, 26, 0.4);
}
.mkt_shot img { display: block; width: 100%; height: auto; }

/* Placeholder shown until the real screenshot is dropped in. */
.mkt_shot_placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 120% at 50% 0%, #fff 0%, var(--mkt-band) 100%);
  color: var(--color-brand-1);
  --icon-size: 40px;
}
.mkt_shot_placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-content-muted);
}
.mkt_shot--hero .mkt_shot_placeholder { aspect-ratio: 5 / 4; }

/* ── Feature row ─────────────────────────────────────────────────────── */
.mkt_features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.mkt_feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 16px 0 8px;
}
.mkt_feature p {
  color: var(--color-content-muted);
  line-height: 1.55;
}
.mkt_feature_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--mkt-band);
  color: var(--color-brand-0);
  --icon-size: 26px;
}

/* ── Explore (cross-links between feature pages) ─────────────────────── */
.mkt_explore { text-align: center; }
.mkt_explore h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 36px;
}
.mkt_explore_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 28px);
  max-width: 760px;
  margin: 0 auto;
}
.mkt_explore_card {
  display: block;
  text-align: left;
  padding: 28px;
  border-radius: 16px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-separators);
  color: var(--color-content);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mkt_explore_card:hover {
  text-decoration: none;
  color: var(--color-content);
  transform: translateY(-3px);
  border-color: var(--color-brand-1);
  box-shadow: 0 16px 36px -20px rgba(26, 43, 26, 0.45);
}
.mkt_explore_card h3 { font-size: 1.15rem; font-weight: 700; margin: 14px 0 6px; }
.mkt_explore_card p { color: var(--color-content-muted); line-height: 1.5; margin-bottom: 12px; }
.mkt_explore_more { font-size: 0.9rem; font-weight: 600; color: var(--color-brand-1); }

/* ── Pillar blocks ───────────────────────────────────────────────────── */
.mkt_block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.mkt_block--reverse .mkt_block_copy { order: 2; }
.mkt_block h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 16px;
}
.mkt_block_copy > p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--color-content-muted);
  margin-bottom: 22px;
}
.mkt_checklist { display: grid; gap: 12px; }
.mkt_checklist li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.mkt_checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--color-brand-1);
  mask: var(--svg) center / 20px no-repeat;
  -webkit-mask: var(--svg) center / 20px no-repeat;
  --svg: url("/assets/icons/circle-check-fb350e8e.svg");
}

/* ── How it works ────────────────────────────────────────────────────── */
.mkt_steps {
  max-width: none !important;
  background: var(--color-brand-0);
  color: #fff;
  text-align: center;
}
.mkt_steps > * { max-width: var(--mkt-max); margin-inline: auto; }
body.marketing .mkt_steps h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.mkt_steps_lede {
  max-width: 46ch;
  margin: 0 auto 52px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-brand-2);
}
.mkt_steps_list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 56px);
  text-align: center;
}
/* Connector line tying the three step markers together (markers sit on top). */
.mkt_steps_list::before {
  content: "";
  position: absolute;
  top: 33px;            /* vertical centre of the 66px marker */
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: rgba(168, 201, 107, 0.35);  /* brand-2 tint */
  z-index: 0;
}
.mkt_steps_list li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mkt_step_marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--color-brand-0);   /* same as band → occludes the connector */
  border: 2px solid var(--color-brand-2);
  color: var(--color-brand-2);
  --icon-size: 28px;
}
.mkt_step_num {
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-brand-2);
  color: var(--color-brand-0);
  font-family: var(--mkt-serif);
  font-size: 0.85rem;
  font-weight: 700;
}
.mkt_steps_list h3 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.mkt_steps_list p { color: var(--color-brand-2); line-height: 1.55; max-width: 30ch; }
.mkt_steps_foot {
  margin-top: 44px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.mkt_faq h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  text-align: center;
  margin-bottom: 40px;
}
.mkt_faq_list { max-width: 760px; margin: 0 auto; }
.mkt_faq details {
  border-bottom: 1px solid var(--color-separators);
  padding: 6px 0;
}
.mkt_faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mkt_faq summary::-webkit-details-marker { display: none; }
.mkt_faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-brand-1);
  transition: transform 0.2s ease;
}
.mkt_faq details[open] summary::after { transform: rotate(45deg); }
.mkt_faq details p {
  padding: 0 4px 20px;
  line-height: 1.65;
  color: var(--color-content-muted);
  max-width: 62ch;
}

/* ── Closing CTA band ────────────────────────────────────────────────── */
.mkt_cta_band {
  max-width: none !important;
  background: var(--gradient-0);
  color: #fff;
  text-align: center;
}
body.marketing .mkt_cta_band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 18ch;
  margin: 0 auto 12px;
}
.mkt_cta_band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.mkt_footer {
  background: var(--color-content);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px var(--mkt-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: start;
}
.mkt_footer .mkt_logo { background: var(--color-brand-1); }
.mkt_footer_brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mkt-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.mkt_footer_brand p {
  flex-basis: 100%;
  font-family: var(--mkt-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}
.mkt_footer_nav { display: flex; gap: 24px; flex-wrap: wrap; }
.mkt_footer_nav a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.mkt_footer_nav a:hover { color: #fff; }
.mkt_copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .mkt_nav { display: none; }
  .mkt_nav, .mkt_actions { margin-left: auto; }
  .mkt_hero,
  .mkt_block,
  .mkt_features,
  .mkt_explore_grid,
  .mkt_steps_list { grid-template-columns: 1fr; }
  .mkt_block--reverse .mkt_block_copy { order: 0; }
  .mkt_shot--hero { order: -1; }
  .mkt_steps_list::before { display: none; }   /* no connector when stacked */
  .mkt_footer { grid-template-columns: 1fr; }
}
