/* Sign-up page (signup.html). Uses the tokens and header/footer from styles.css. */
.su-back { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.su-back:hover { color: var(--text); }

.su { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 80px; }
.su-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.su-head h1 { font-size: clamp(34px, 4.4vw, 52px); }
.su-head p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

.su-steps { list-style: none; padding: 0; margin: 28px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--dim); }
.su-steps li { display: flex; align-items: center; gap: 8px; }
.su-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.su-steps li.on { color: var(--text); font-weight: 600; }
.su-steps li.on b { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.su-steps[hidden] { display: none; }

.su-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.su-grid[hidden] { display: none; }
.su-form { display: flex; flex-direction: column; gap: 18px; }
.su-form fieldset { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 16px; }
.su-form legend { padding: 0 6px; margin-left: -6px; font-weight: 700; font-size: 16px; }

.su-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.su-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--inset); cursor: pointer; }
.su-plan input { position: absolute; opacity: 0; pointer-events: none; }
.su-plan-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pc); }
.su-plan-name i, .su-sum-plan i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.su-plan-for { font-size: 13px; line-height: 1.4; color: var(--muted); }
.su-plan:has(input:checked) { border-color: var(--pc); box-shadow: inset 0 0 0 1px var(--pc); background: color-mix(in srgb, var(--pc) 8%, var(--inset)); }
.su-plan:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

.su-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.su-billing { display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line-2); }
.su-billing label { cursor: pointer; }
.su-billing input { position: absolute; opacity: 0; pointer-events: none; }
.su-billing span { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.su-billing em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--on-btn); background: var(--green); padding: 2px 8px; border-radius: 999px; }
.su-billing input:checked + span { background: var(--chip); color: var(--text); }
.su-billing input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.su-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.su-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--btn); flex: none; }
.su-check b { color: var(--text); font-weight: 600; margin-right: 4px; }

.su-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.su-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.su-wide { grid-column: 1 / -1; }
.su-field input, .su-field select, .su-field textarea { width: 100%; background: var(--inset); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--text); font: 15px "Space Grotesk", sans-serif; }
.su-field input, .su-field select { height: 48px; padding-top: 0; padding-bottom: 0; }
.su-field textarea { resize: vertical; }
.su-field input::placeholder, .su-field textarea::placeholder { color: var(--faint); }
.su-field input:focus, .su-field select:focus, .su-field textarea:focus { outline: none; border-color: var(--green); }
.su-field small { font-weight: 400; color: var(--dim); }
.su-web { display: flex; align-items: center; background: var(--inset); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.su-web:focus-within { border-color: var(--green); }
.su-web input { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.su-web input:focus { border: 0; }
.su-web span { padding: 0 14px 0 2px; color: var(--dim); font-weight: 500; font-size: 15px; white-space: nowrap; }
.su-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.su-yearly-note { font-size: 13px; color: var(--dim); margin-top: -8px; padding-left: 28px; }
.su-yearly-note[hidden], .su-error[hidden], .su-done[hidden] { display: none; }
.su-error { color: #f59a8f; font-size: 14px; font-weight: 600; }
.su-form > .btn { align-self: flex-start; }

.su-summary { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.su-sum-card { padding: 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--pc, var(--green)); display: flex; flex-direction: column; gap: 14px; }
.su-sum-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.su-sum-plan { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; color: var(--pc); margin-top: -6px; }
.su-sum-lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.su-sum-lines div, .su-sum-total { display: flex; justify-content: space-between; gap: 12px; }
.su-sum-total { align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.su-sum-total b { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.su-sum-total small { font-size: 13px; font-weight: 500; color: var(--dim); }
.su-sum-note { font-size: 13px; line-height: 1.5; color: var(--dim); }
.su-promise { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.su-promise li { position: relative; padding-left: 24px; }
.su-promise li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.su-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--green); }
.su-done h2 { color: var(--text); font-size: 28px; }
.su-done p { color: var(--muted); max-width: 46ch; line-height: 1.6; }

@media (max-width: 900px) {
  .su-grid { grid-template-columns: minmax(0, 1fr); }
  .su-summary { position: static; order: -1; }
}
@media (max-width: 600px) {
  .su-plans, .su-fields { grid-template-columns: minmax(0, 1fr); }
  .su-form fieldset { padding: 18px; }
}

/* The online shop add-on is a switch in its add-on purple, as in the POS's Settings > Modules. */
.su-switch { align-items: center; }
.su-switch input { appearance: none; -webkit-appearance: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .2s; flex: none; }
.su-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e6ebe8; transition: transform .2s; }
.su-switch input:checked { background: var(--pc); }
.su-switch input:checked::after { transform: translateX(18px); }
.su-switch input:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; }
.su-switch b { color: var(--pc); }
@media (prefers-reduced-motion: reduce) { .su-switch input, .su-switch input::after { transition: none; } }
/* Keep the add-on switch beside Monthly/Yearly; its words wrap instead of dropping it to the next line. */
.su-row2 { flex-wrap: nowrap; }
.su-row2 .su-addon { flex: 1; min-width: 0; }
@media (max-width: 600px) { .su-row2 { flex-wrap: wrap; } }
.su-row2 .su-addon b { display: block; margin: 0 0 1px; }
@media (max-width: 600px) { .su-row2 .su-addon { flex: 1 1 100%; } }
.su-field small.su-good { color: var(--green); }
.su-field small.su-bad { color: #f59a8f; font-weight: 600; }
