/*
 * Free trial page (page-free-trial.php).
 * Uses the site's own tokens, fonts, .eyebrow, .grad-text, .wrap and .btn from the theme,
 * so it matches the designed pages (same hero background, type scale and form card).
 */

/* ---- Hero ---------------------------------------------------------------- */
.a4ft-hero {
  --accent: #913884;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 104px;
  background:
    radial-gradient(60% 70% at 78% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(145, 56, 132, 0.06), transparent 70%),
    #fff;
}
.a4ft-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
}
.a4ft-copy { padding-top: 8px; }
.a4ft-copy h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.a4ft-outcome {
  display: block;
  margin-top: 12px;
  font-size: 0.62em;
  line-height: 1.08;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}
.a4ft-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 28px;
}

/* What's included */
.a4ft-points {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.a4ft-points li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.a4ft-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.a4ft-points li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.a4ft-points--last { margin-bottom: 0; }

/* Numbered steps (thank-you page hero) */
.a4ft-steps {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.a4ft-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.a4ft-steps .mono { font-size: 12px; letter-spacing: 0.12em; color: var(--magenta); padding-top: 3px; }
.a4ft-steps strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.a4ft-steps p { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---- Form card (same look as the Demo page's request form) -------------- */
.a4ft .form-card {
  position: relative;
  padding: 36px 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 32px 64px rgba(79, 42, 155, 0.1);
}
.a4ft .form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-h);
}
.a4ft .form-card-header { margin-bottom: 24px; }
.a4ft .form-card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(95, 57, 143, 0.07);
  margin-bottom: 14px;
}
.a4ft .form-card-title {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.a4ft .form-card-sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.a4ft .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.a4ft .form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a4ft .form-group.full,
.a4ft .form-submit,
.a4ft .mrtf-message { grid-column: 1 / -1; }
.a4ft .form-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.a4ft .form-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--alt);
  transition: border-color 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.a4ft .form-input::placeholder { color: var(--faint); opacity: 0.7; }
.a4ft .form-input:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(95, 57, 143, 0.1);
}
.a4ft .form-input.mrtf-invalid { border-color: #c0392b; background: #fff; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08); }

.a4ft .form-submit { width: 100%; height: 52px; margin-top: 4px; font-size: 16px; }
.a4ft .form-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Honeypot: off screen, still in the form for bots */
.a4ft .mrtf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.a4ft .mrtf-message { min-height: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.a4ft .mrtf-message:empty { display: none; }
.a4ft .mrtf-message.is-error,
.a4ft .mrtf-message.is-success { padding: 10px 14px; border-radius: 10px; }
.a4ft .mrtf-message.is-error { color: #a12a1f; background: rgba(192, 57, 43, 0.07); border: 1px solid rgba(192, 57, 43, 0.18); }
.a4ft .mrtf-message.is-success { color: #1d6b45; background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(29, 107, 69, 0.18); }

.a4ft .form-legal { margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.a4ft .form-alt { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft); }
.a4ft .form-legal a,
.a4ft .form-alt a { color: var(--purple); font-weight: 600; text-decoration: none; }
.a4ft .form-legal a:hover,
.a4ft .form-alt a:hover { color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sections below the hero ------------------------------------------- */
.a4ft-section { padding: 128px 0; }
.a4ft-alt { background: var(--alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.a4ft-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.a4ft-head .eyebrow { justify-content: center; }
.a4ft-head .h-section { margin: 0; text-wrap: balance; }
.a4ft-head .lede { margin: 16px auto 0; max-width: 640px; }

/* What's included: the site's feature grid (joined cells, number top right, line icon) */
.a4ft-feat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.a4ft-cell {
  position: relative;
  padding: 32px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background-color 0.3s var(--ease-standard);
}
@media (hover: hover) { .a4ft-cell:hover { background: var(--alt); } }
.a4ft-n { position: absolute; top: 32px; right: 32px; font-size: 11px; color: var(--faint); }
.a4ft-icon { width: 24px; height: 24px; margin-bottom: 24px; fill: none; stroke: var(--purple); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.a4ft-cell h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; padding-right: 32px; }
.a4ft-cell p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Three steps: numbered nodes on a gradient rail */
.a4ft-flow {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.a4ft-flow::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: calc((100% - 64px) / 3 - 24px);
  height: 1px;
  background: var(--grad-h);
  opacity: 0.5;
}
.a4ft-flow__step { position: relative; }
.a4ft-flow__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 0 0 8px var(--alt);
}
.a4ft-flow__tag { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); margin-bottom: 8px; }
.a4ft-flow__step h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 10px; }
.a4ft-flow__step p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Trial FAQ: the site's FAQ rows (number, question, +/− button) */
.a4ft-faq-wrap { max-width: 928px; }
.a4ft-faq { border-top: 1px solid var(--line); }
.a4ft-faq__item { border-bottom: 1px solid var(--line); }
.a4ft-faq__item summary {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.a4ft-faq__item summary::-webkit-details-marker { display: none; }
.a4ft-faq__item summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 8px; }
.a4ft-faq__item summary:hover .a4ft-faq__q { color: var(--purple); }
.a4ft-faq__q { transition: color 0.25s var(--ease-standard); }
.a4ft-faq__n { font-size: 12px; font-weight: 500; color: var(--faint); }
.a4ft-faq__icon { position: relative; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); transition: background-color 0.3s var(--ease-standard), border-color 0.3s var(--ease-standard); }
.a4ft-faq__icon::before,
.a4ft-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--ink); transition: transform 0.3s var(--ease-standard), background-color 0.3s var(--ease-standard); }
.a4ft-faq__icon::after { transform: rotate(90deg); }
.a4ft-faq__item[open] .a4ft-faq__icon { background: var(--ink); border-color: var(--ink); }
.a4ft-faq__item[open] .a4ft-faq__icon::before,
.a4ft-faq__item[open] .a4ft-faq__icon::after { background: #fff; }
.a4ft-faq__item[open] .a4ft-faq__icon::after { transform: rotate(0deg); }
.a4ft-faq__item p { margin: 0; padding: 0 48px 24px 64px; max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.a4ft-faq__item[open] p { animation: a4ft-fade 0.3s var(--ease-standard); }
.a4ft-faq__item p a { color: var(--purple); font-weight: 600; text-decoration: none; white-space: nowrap; }
.a4ft-faq__item p a:hover { color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }
@keyframes a4ft-fade { from { opacity: 0; transform: translateY(-4px); } }

/* Closing call to action: the site's gradient band */
.a4ft-cta-wrap { padding: 0 0 128px; }
.a4ft-cta {
  border-radius: var(--radius-lg);
  background: var(--grad-finale);
  color: #fff;
  text-align: center;
  padding: 88px 32px;
  overflow: hidden;
}
.a4ft-cta::after { opacity: 0.14; }
.a4ft-cta__eyebrow { justify-content: center; color: rgba(255, 255, 255, 0.85); }
.a4ft-cta__eyebrow::after { background: rgba(255, 255, 255, 0.5); }
.a4ft-cta h2 { position: relative; z-index: 1; font-size: clamp(32px, 4.6vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; max-width: 900px; margin: 0 auto 16px; text-wrap: balance; }
.a4ft-cta p { position: relative; z-index: 1; font-size: 18px; line-height: 1.6; opacity: 0.92; max-width: 620px; margin: 0 auto; }
.a4ft-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Optional page-editor content below the sections */
.a4ft-more { padding: 72px 0 112px; border-top: 1px solid var(--line-soft); }

/* ---- Entrance (same timing as the site's page heroes) -------------------- */
.a4ft-rise { animation: a4ft-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--d, 0) * 0.08s); }
@keyframes a4ft-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
  .a4ft-hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
  .a4ft-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* On one column the form follows "what you get"; the three steps come after it. */
  .a4ft-copy { display: contents; }
  .a4ft-copy > * { order: 1; }
  .a4ft-points { margin-bottom: 32px; }
  .a4ft-book { order: 2; max-width: 620px; margin-bottom: 48px; }
  .a4ft-steps { order: 3; }
}
@media (max-width: 991px) {
  .a4ft-section { padding: 88px 0; }
  .a4ft-head { margin-bottom: 40px; }
  .a4ft-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a4ft-flow { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .a4ft-flow::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; background: var(--grad); }
  .a4ft-flow__step { padding-left: 72px; }
  .a4ft-flow__node { position: absolute; left: 0; top: 0; margin: 0; }
  .a4ft-cta-wrap { padding-bottom: 88px; }
  .a4ft-cta { padding: 64px 24px; }
}
@media (max-width: 600px) {
  .a4ft .form-card { padding: 28px 20px 22px; }
  .a4ft-feat { grid-template-columns: minmax(0, 1fr); }
  .a4ft-cell { padding: 28px 24px 32px; }
  .a4ft-faq__item summary { grid-template-columns: 32px 1fr 32px; font-size: 16px; }
  .a4ft-faq__item p { padding: 0 0 24px 48px; }
  .a4ft .form-grid { grid-template-columns: minmax(0, 1fr); }
  .a4ft-lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .a4ft-rise,
  .a4ft-faq__item[open] p { animation: none; }
}