/* Marketing cover page — the public face of the product.
 *
 * Follows the shape of infin8.digital: a navy hero, numbered 01–05 sections
 * alternating white and #FAFAFA at generous vertical rhythm, flame CTAs with
 * fully rounded corners.
 */

.marketing {
  background: var(--paper);
}

/* ------------------------------------------------------------------- nav */

.m-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 42, 58, 0.98);
  backdrop-filter: saturate(150%) blur(8px);
  color: #fff;
}
.m-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.m-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}
.m-nav a:hover {
  color: #fff;
}
.m-nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.m-nav .btn {
  padding: 9px 22px;
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 96px 0 88px;
  overflow: hidden;
}
/* A soft flame/teal wash rather than an image: nothing to load, nothing to
 * block under the content-security policy. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 780px;
  height: 780px;
  background: radial-gradient(
    circle,
    rgba(246, 65, 33, 0.22) 0%,
    rgba(0, 128, 128, 0.12) 45%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--flame);
}
.hero .lede {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-deadline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(246, 65, 33, 0.16);
  border: 1px solid rgba(246, 65, 33, 0.4);
  color: #fff;
  border-radius: var(--pill);
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 26px;
}
.hero-deadline .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame);
  flex: none;
}
/* The countdown reflows every second as the digits change width. Tabular
 * figures stop the whole pill jittering, which is distracting rather than
 * urgent. */
.hero-deadline .cd-text {
  font-variant-numeric: tabular-nums;
}
.hero-deadline.is-overdue {
  background: rgba(246, 65, 33, 0.3);
  border-color: var(--flame);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------ login panel */

.login-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.login-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.login-panel .hint {
  margin-bottom: 20px;
}
.login-panel .btn {
  width: 100%;
  margin-top: 4px;
}
.login-alt {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--slate);
  text-align: center;
}

/* --------------------------------------------------------------- sections */

.m-section {
  padding: 104px 0;
}
/* Tinted by class, not by position.
 *
 * This was :nth-of-type(even), which counts every <section> on the page — and
 * .hero and .band are sections with their own dark backgrounds that happen to
 * fall on odd indices. So the alternation depended on the exact number of
 * sections between them, and removing one silently flipped the ground colour of
 * three others. Saying which sections are tinted survives the next edit. */
.m-section-tint {
  background: var(--mist);
}
.m-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.m-num {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--flame);
  display: block;
  margin-bottom: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* A card on a tinted section keeps its white ground, so it still reads as a
 * card rather than as a lighter patch of the same colour. */
.m-section-tint .feature {
  background: #fff;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature p {
  color: var(--slate);
  font-size: 0.94rem;
  margin-bottom: 0;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-15);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 700;
}
.feature-icon.flame {
  background: var(--flame-16);
  color: var(--flame-dark);
}

/* Named for its section rather than generically: `.step` and `.steps`
 * belong to the report progress stepper in app.css, which this page also
 * loads. Sharing the names put that component's flex layout and its
 * between-step arrows onto these cards. */
/* Five steps, read downwards.
 *
 * They were an auto-fit grid, which on a wide screen laid five numbered
 * circles out in a row of three and a row of two — so the eye went 1 2 3 then
 * back and down to 4 5, and the one thing this section has to communicate is
 * an order. A vertical run reads in the order the steps happen, and the rail
 * between the markers makes the sequence a single object rather than five
 * cards that happen to be numbered.
 *
 * The rail is drawn on each step rather than as one element behind them, so it
 * stops exactly at the last marker instead of running past it — and it is a
 * ::after on the step, which means it inherits the step's own height and needs
 * no measurement. */
.how-steps {
  counter-reset: step;
  margin-top: 8px;
  max-width: 760px;
}
.how-step {
  position: relative;
  padding: 0 0 34px 74px;
}
.how-step:last-child {
  padding-bottom: 0;
}
.how-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Above the rail, so the line meets the circle rather than crossing it. */
  z-index: 1;
  box-shadow: 0 0 0 6px var(--paper);
  transition: background 0.2s ease, transform 0.2s ease;
}
/* The rail, from under one marker to the top of the next. */
.how-step::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(var(--ink-12), var(--ink-06));
}
.how-step:last-child::after {
  display: none;
}
.how-step h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
  /* Optically level with the middle of its own marker. */
  padding-top: 11px;
}
.how-step p {
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0;
}
/* The step you are reading. Hovering anywhere on the row lights its marker, so
 * a long paragraph still tells you which number it belongs to. */
.how-step:hover::before {
  background: var(--flame);
  transform: scale(1.05);
}

/* A tinted section is not on --paper, so the ring that hides the rail behind
 * each marker has to match the ground it is actually on. */
.m-section-tint .how-step::before {
  box-shadow: 0 0 0 6px var(--mist);
}

@media (max-width: 560px) {
  .how-step {
    padding-left: 60px;
    padding-bottom: 28px;
  }
  .how-step::before {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
    box-shadow: 0 0 0 4px var(--paper);
  }
  .how-step::after {
    left: 18px;
    top: 38px;
  }
  .how-step h3 {
    padding-top: 7px;
  }
}


.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.96rem;
}
.check-list svg {
  margin-top: 4px;
  color: var(--teal);
  flex: none;
}

.band {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.band h2 {
  color: #fff;
}
.band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 30px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--flame);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  margin: 14px 0 0;
  color: var(--slate);
  max-width: 72ch;
}

.built-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.built-by strong {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .m-section {
    padding: 68px 0;
  }
  .m-nav-links a:not(.btn) {
    display: none;
  }
}

/* What it costs.
 *
 * Two panels, equal in width and weight, because the point being made is a
 * comparison and not an upsell: the free side is the larger claim and reads
 * first. The paid panel is the only one with the brand colour on it, which is
 * enough to tell them apart without making the free one look like a lesser
 * tier. */
.price-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.price-panel {
  background: #fff;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.price-panel-paid {
  border-color: rgba(246, 65, 33, 0.35);
  box-shadow: 0 0 0 1px rgba(246, 65, 33, 0.12);
}
.price-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate);
}
.price-panel-paid .price-tag {
  color: var(--flame);
}
.price-figure {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 10px 0 14px;
}
/* Beside the figure rather than under it: the rate is a qualifier on the price,
 * not a second price. */
.price-vat {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  vertical-align: middle;
}
.price-what {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}
.price-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}
