/* Signup surface. Loads the marketing stylesheet first for the shared chrome, palette and
   typography, then adds only what the purchase form needs. Its own selectors are prefixed s-
   so they cannot collide with the marketing ones: .s-wrap, .s-card, .s-plan, .s-plans, .s-step and .s-foot
   all exist in both, and an unprefixed rule here would silently fight that file. */
:root { --bad: #b00020; }
.s-wrap { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
header h1 { margin: 0 0 2rem; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; }
.lead { margin: 0 0 .5rem; font-size: .95rem; line-height: 1.5; }
.lead strong { font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 1.25rem; font-size: .92rem; line-height: 1.5; }
.sub a, .agree a { color: var(--accent); }

.s-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 2.2rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }

/* Numbered step headings */
.s-step { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.s-step:not(:first-child) { margin-top: 2rem; }
.step-sub { color: var(--muted); font-size: .85rem; margin: -.6rem 0 1rem; padding-left: 1.6rem; }

/* Plan cards, matched to the pricing section on the home page: same three columns, radius,
   border, shadow and price scale. The differences are the ones the job requires — these are
   buttons, so they take a pointer, a focus ring and a selected state. */
.s-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.s-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.s-plan:hover { border-color: #c3d6ee; }
.s-plan:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Selected reads like the emphasised card in the pricing section. */
.s-plan.sel { border-color: var(--accent); box-shadow: 0 1px 2px rgba(31, 95, 168, .08), 0 10px 30px rgba(31, 95, 168, .12); }
.s-plan .toplabel { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.s-plan .price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: .85rem 0 1rem; }
.s-plan .desc { font-size: .95rem; color: var(--ink); }

@media (max-width: 860px) {
  .s-plans { grid-template-columns: 1fr; }
}

/* Number of users + inline total formula */
.usercount { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
#qty { width: 110px; padding: .6rem .75rem; font: inherit; font-size: .95rem; border: 1px solid var(--line); border-radius: 9px; }
.quote { font-size: 1.05rem; }
.quote .op { color: var(--muted); }
.quote strong { color: var(--ink); font-weight: 700; }
.quote .disc { color: var(--ok); font-size: .85rem; }
.quote .contact { color: var(--accent); font-size: .95rem; }

/* Email + agreement + button */
#email { display: block; width: 100%; max-width: 480px; padding: .6rem .75rem; font: inherit; font-size: .95rem; border: 1px solid var(--line); border-radius: 9px; }
.agree { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; font-size: .95rem; }
.agree input { width: 1.1rem; height: 1.1rem; }
button { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 999px; padding: .8rem 1.6rem; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 1.1rem; }
button:disabled { background: #aab2bd; border-color: #aab2bd; cursor: not-allowed; }
.finehint { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 1rem 0 0; }
.msg { font-size: .85rem; color: var(--muted); min-height: 1.1em; margin: .6rem 0 0; }
.msg.err { color: var(--bad); }
.s-foot { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.s-foot a { color: var(--accent); }

/* The nav is sticky, so a heading scrolled flush to the top would sit underneath it. */
.s-step { scroll-margin-top: 88px; }
