/* The Webtzm Form section: real captures of a form page, then what each plan gives it.

   Owned apart from landing.css for the same reason landing-assistants.css is: it is one section
   with its own vocabulary (a fan of page captures, a strip of editor captures, a plan list) and
   nothing else on the page reuses it. Every picture is a capture of the real product, so it is
   framed and never filtered: the shared radii and elevation tokens give it an edge, and a dark
   page does not invert it. Every colour is a shared token, so both themes follow without a rule
   of their own and nothing here changes geometry between them. The plan facts are type on the
   page, divided by rules, rather than a card around each.

   The fan is three crops of one form page in contrasting themes with the phone view in front.
   It is sized by its own aspect ratio and every capture is placed in percentages of it, so the
   composition scales as one piece and the section never grows a scrollbar or reflows when the
   lazy images arrive. On a phone the fan is recomposed (a taller box, larger captures) rather
   than shrunk. */
.form-page-stage {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.form-page-showcase,
.form-page-extras figure {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.form-page-showcase figcaption,
.form-page-extras figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.form-page-fan {
  position: relative;
  width: 100%;
  aspect-ratio: 1150 / 540;
}

.form-page-shot {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-raised);
  container-type: inline-size;
}

.form-page-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* A desktop capture sits in a browser window: a bar with the three window controls and an empty address field,
   drawn in the page's own tokens and scaled with the window (cqi), so the frame reads at every size. It is
   decoration and hidden from assistive technology; the capture keeps its alt text. No address is written in it:
   a frame must not show a link that does not exist. */
.form-page-window__bar {
  display: flex;
  align-items: center;
  gap: 4cqi;
  height: 7cqi;
  padding: 0 3cqi;
  border-bottom: 1px solid var(--line);
}

.form-page-window__dots {
  display: flex;
  flex: none;
  gap: 1.2cqi;
}

.form-page-window__dots i {
  display: block;
  width: 1.8cqi;
  height: 1.8cqi;
  border-radius: 50%;
  background: var(--line-strong);
}

.form-page-window__address {
  display: block;
  flex: 0 1 46%;
  height: 3.4cqi;
  margin-right: auto;
  margin-left: 8cqi;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* The phone capture sits in a device bezel of the same tokens. The bezel is the image's margin, in the frame's own
   units: an element's container units never measure the element itself, so a padding in cqi would read the page's. */
.form-page-device img {
  width: calc(100% - 8cqi);
  margin: 4cqi;
  border-radius: 12px;
}

.form-page-shot--paper {
  z-index: 1;
  left: 0;
  top: 12%;
  width: 34%;
}

.form-page-shot--midnight {
  z-index: 1;
  left: 66%;
  top: 12%;
  width: 34%;
}

.form-page-shot--bold {
  z-index: 2;
  left: 29%;
  top: 0;
  width: 42%;
}

.form-page-shot--phone {
  z-index: 3;
  left: 57%;
  top: 28%;
  width: 16%;
}

.form-page-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}

.form-page-extras {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}

.form-page-extras li {
  min-width: 0;
}

.form-page-extras img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 184px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-surface);
}

/* What a page can do, as one list in plain words. A feature that needs Pro carries the landing page's Pro mark
   (landing.css, .plan-mark) after it, as every other feature list here does; the copy never names a plan. */
.form-page-plan-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.form-page-plan-list > li {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.form-page-plan-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.form-page-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.form-page-foot p {
  min-width: 0;
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .form-page-stage {
    gap: 32px;
  }

  .form-page-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-page-extras img {
    height: 200px;
  }
}

@media (max-width: 760px) {
  .form-page-stage {
    width: min(var(--container), calc(100% - 36px));
  }

  .form-page-fan {
    aspect-ratio: 342 / 330;
  }

  .form-page-shot {
    border-radius: 12px;
  }

  .form-page-shot--paper {
    left: 0;
    top: 14%;
    width: 46%;
  }

  .form-page-shot--midnight {
    left: 54%;
    top: 14%;
    width: 46%;
  }

  .form-page-shot--bold {
    left: 19%;
    top: 0;
    width: 62%;
  }

  .form-page-shot--phone {
    left: 60%;
    top: 32%;
    width: 32%;
  }

  .form-page-extras {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 24px;
  }

  .form-page-extras img {
    height: 200px;
  }

  .form-page-extras li:nth-child(2) img {
    width: 100%;
    height: auto;
    max-width: 280px;
  }

  .form-page-foot .btn {
    width: 100%;
  }
}
