/* DemoFit — public site (landing, contact, legal). Colours come from tokens.css (loaded first).
   One bold element: the hero's demo plan, where a requirement list becomes a selective,
   ready-to-show demo. Everything else stays quiet: navy type, hairlines, one gradient band. */

/* Manrope (SIL Open Font License 1.1, fonts/OFL.txt), served from DemoFit itself: one variable
   file, weights 400 to 800, Latin subset. No call to a font service. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-400-800.101877a7a906.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pub-font: Manrope, var(--df-sans);
  --pub-wrap: 1180px;
  --pub-shadow: 0 1px 2px rgba(26, 40, 54, 0.05), 0 18px 48px -12px rgba(0, 94, 249, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.public {
  margin: 0;
  background: var(--df-paper);
  color: var(--df-navy);
  font: 16px/1.6 var(--pub-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.public > main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--df-blue); text-underline-offset: 3px; }
a:hover { color: var(--df-blue-dark); }
:focus-visible { outline: 3px solid rgba(0, 94, 249, 0.45); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--df-navy); letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--pub-wrap); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px;
  background: var(--df-paper); border-radius: 8px; }
.skip-link:focus { left: 16px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 1rem/1.2 var(--pub-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button-primary { background: var(--df-blue); color: #FFFFFF; box-shadow: 0 8px 20px -8px rgba(0, 94, 249, 0.7); }
.button-primary:hover { background: var(--df-blue-dark); color: #FFFFFF; }
.button-quiet { background: var(--df-paper); color: var(--df-navy); border-color: var(--df-border); }
.button-quiet:hover { border-color: var(--df-blue); color: var(--df-blue); }
.button-small { min-height: 40px; padding: 8px 18px; font-size: 0.94rem; box-shadow: none; }
.button-block { width: 100%; }
.button-on-gradient { background: #FFFFFF; color: var(--df-blue); box-shadow: 0 10px 24px -10px rgba(26, 40, 54, 0.45); }
.button-on-gradient:hover { background: var(--df-blue-soft); color: var(--df-blue-dark); }

/* Header */
.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--df-border);
}
.public-header::before {           /* the symbol's gradient as a thin brand line, as in the app */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--df-gradient);
}
.public-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.public-brand { display: inline-flex; flex: none; }
.public-brand img { display: block; width: 116px; height: auto; }
.public-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.public-nav a:not(.button) { color: var(--df-muted); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.public-nav a:not(.button):hover { color: var(--df-navy); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(0, 210, 214, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 100%, rgba(0, 94, 249, 0.08), transparent 70%),
    linear-gradient(180deg, var(--df-bg), var(--df-paper));
}
.hero-mark {                        /* the D symbol, large and faint behind the demo plan */
  position: absolute;
  right: -90px;
  top: 40px;
  width: 640px;
  height: auto;
  opacity: 0.09;
  mix-blend-mode: multiply;         /* the file's white background disappears on the light hero */
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.3rem, 4.1vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-title span { display: block; }
.hero-title span + span { margin-top: 0.06em; }
.hero-lead { max-width: 34em; margin-top: 28px; color: var(--df-muted); font-size: 1.2rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The demo plan: a requirement list sorted into what to show, then « Ready to Demo » */
.plan {
  margin: 0;
  background: var(--df-paper);
  border: 1px solid var(--df-border);
  border-radius: 18px;
  box-shadow: var(--pub-shadow);
  overflow: hidden;
}
.plan-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; padding: 22px 26px 18px; }
.plan-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.plan-context { margin-top: 2px; color: var(--df-muted); font-size: 0.92rem; }
.plan-tag {
  flex: none;
  padding: 4px 10px;
  border: 1px dashed var(--df-border);
  border-radius: 999px;
  color: var(--df-muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.plan-rows { list-style: none; margin: 0; padding: 0 26px; }
.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--df-border);
}
.plan-requirement { font-weight: 600; }
.plan-row-skipped .plan-requirement { color: var(--df-muted); text-decoration: line-through; text-decoration-color: rgba(91, 102, 117, 0.5); }
.priority {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.priority-must-show { background: var(--df-blue); color: #FFFFFF; }
.priority-should-show { background: var(--df-blue-soft); color: var(--df-blue-dark); }
.priority-do-not-show { background: var(--df-bg); color: var(--df-muted); border: 1px solid var(--df-border); }
.plan-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
  padding: 18px 26px;
  background: var(--df-bg);
  border-top: 1px solid var(--df-border);
}
.plan-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--df-gradient);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
}
.plan-note { color: var(--df-muted); font-size: 0.88rem; font-weight: 600; }

/* Sections */
.section { padding: 104px 0; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.028em; }
.section-intro { margin-top: 18px; color: var(--df-muted); font-size: 1.12rem; line-height: 1.65; }
.section-head-wide { max-width: 720px; margin-bottom: 56px; }

/* Not a clone: the claim on the left, the three promises read as one list on the right */
.section-clone { border-top: 1px solid var(--df-border); }
.clone-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.clone-grid .section-head { position: sticky; top: 120px; }
.promises { list-style: none; margin: 0; padding: 0; }
.promise { position: relative; padding: 30px 0 30px 28px; border-top: 1px solid var(--df-border); }
.promise:last-child { border-bottom: 1px solid var(--df-border); }
.promise::before {
  content: "";
  position: absolute;
  left: 0;
  top: 36px;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--df-gradient);
}
.promise h3 { font-size: 1.3rem; font-weight: 800; }
.promise p { margin-top: 10px; color: var(--df-muted); font-size: 1.04rem; }

/* From RFP to Ready-to-Demo: a real sequence, so numbered, on one gradient track */
.section-steps { background: var(--df-bg); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 21px;
  height: 2px;
  background: var(--df-gradient);
  opacity: 0.55;
}
.step { position: relative; }
.step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--df-paper);
  border: 2px solid var(--df-blue);
  color: var(--df-blue);
  font-weight: 800;
}
.step:last-child .step-number { background: var(--df-gradient); border-color: transparent; color: #FFFFFF; }
.step h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 800; }
.step p { margin-top: 8px; color: var(--df-muted); font-size: 0.97rem; line-height: 1.55; }

/* Built for presales teams */
.teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.team { padding-top: 22px; border-top: 2px solid var(--df-navy); }
.team h3 { font-size: 1.25rem; font-weight: 800; }
.team p { margin-top: 10px; color: var(--df-muted); font-size: 1.04rem; }

/* Gradient band */
.section-band { padding: 0 0 104px; }
.band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 56px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--df-blue) 0%, var(--df-blue) 35%, var(--df-cyan) 130%);
  color: #FFFFFF;
}
.band::after {                      /* faint echo of the symbol's curve */
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.band-copy { position: relative; max-width: 720px; }
.band h2 { color: #FFFFFF; font-size: clamp(1.8rem, 3.3vw, 2.6rem); font-weight: 800; letter-spacing: -0.028em; }
.band p { margin-top: 14px; color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; }
.band .button { position: relative; flex: none; }

/* Footer (components/_footer.html) */
.site-footer { border-top: 1px solid var(--df-border); background: var(--df-paper); }
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--pub-wrap);
  margin: 0 auto;
  padding: 28px 24px;
  color: var(--df-muted);
  font-size: 0.92rem;
}
.site-footer-owner { display: flex; gap: 12px; margin: 0; }
.site-footer-name { color: var(--df-navy); font-weight: 800; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer-links a { color: var(--df-muted); text-decoration: none; }
.site-footer-links a:hover { color: var(--df-blue); text-decoration: underline; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
  padding-top: 80px;
  padding-bottom: 104px;
}
.contact-intro h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
.contact-lead { margin-top: 20px; color: var(--df-muted); font-size: 1.15rem; line-height: 1.6; max-width: 30em; }
.contact-points { list-style: none; margin: 32px 0 0; padding: 0; }
.contact-points li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--df-border); font-weight: 600; }
.contact-points li:last-child { border-bottom: 1px solid var(--df-border); }
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--df-gradient);
}
.contact-points li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 21px;
  width: 6px;
  height: 10px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-panel {
  padding: 36px;
  background: var(--df-paper);
  border: 1px solid var(--df-border);
  border-radius: 18px;
  box-shadow: var(--pub-shadow);
}
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.94rem; }
.field-optional { color: var(--df-muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--df-border);
  border-radius: 10px;
  background: var(--df-paper);
  color: var(--df-navy);
  font: 1rem/1.5 var(--pub-font);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--df-blue); box-shadow: var(--df-focus); }
.field [aria-invalid="true"] { border-color: var(--df-bad); }
.field-error { margin-top: 6px; color: var(--df-bad); font-size: 0.9rem; font-weight: 600; }
.form-alert {
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--df-bad-soft);
  color: var(--df-bad-text);
  font-weight: 600;
}
.contact-privacy { margin-top: 16px; color: var(--df-muted); font-size: 0.9rem; text-align: center; }

/* Message sent */
.sent { padding-top: 96px; padding-bottom: 120px; }
.sent-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
  background: var(--df-paper);
  border: 1px solid var(--df-border);
  border-radius: 18px;
  box-shadow: var(--pub-shadow);
}
.sent-check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--df-gradient); color: #FFFFFF; }
.sent-card h1 { margin-top: 20px; font-size: 2rem; font-weight: 800; }
.sent-card p { margin: 14px auto 28px; max-width: 26em; color: var(--df-muted); font-size: 1.08rem; }

/* Legal pages */
.legal { padding-top: 72px; padding-bottom: 104px; }
.legal-body { max-width: 720px; }
.legal-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.legal-body h2 { margin-top: 40px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em; }
.legal-body p { margin-top: 12px; font-size: 1.04rem; line-height: 1.7; }
.legal-body .legal-meta { margin-top: 14px; color: var(--df-muted); font-size: 0.94rem; }
.legal-body .legal-meta:last-child { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--df-border); }

/* Tablet */
@media (max-width: 980px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid, .clone-grid, .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-mark { width: 480px; right: -160px; top: auto; bottom: -60px; }
  .clone-grid .section-head { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--df-blue), var(--df-cyan)); }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step-number { grid-row: span 2; }
  .step h3 { margin-top: 9px; }
  .teams { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
}

/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .public-header-inner { min-height: 64px; gap: 12px; }
  .public-brand img { width: 96px; }
  .public-nav { gap: 14px; }
  .public-nav-anchor { display: none; }
  .public-nav .button-small { padding: 8px 14px; font-size: 0.9rem; }
  .hero { padding: 44px 0 64px; }
  .hero-title { font-size: 2.15rem; }
  .hero-lead { font-size: 1.06rem; margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .button { flex: 1 1 100%; }
  .plan-head, .plan-status { padding-left: 18px; padding-right: 18px; }
  .plan-rows { padding: 0 18px; }
  .section { padding: 72px 0; }
  .section-head-wide { margin-bottom: 40px; }
  .section-band { padding-bottom: 72px; }
  .band { padding: 36px 24px; border-radius: 18px; }
  .band .button { width: 100%; }
  .contact { padding-top: 48px; padding-bottom: 72px; gap: 36px; }
  .contact-panel { padding: 24px 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .site-footer-inner { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
  .sent { padding-top: 56px; padding-bottom: 80px; }
  .sent-card { padding: 36px 22px; }
  .legal { padding-top: 48px; padding-bottom: 72px; }
}
