/* Sign-up and reset-password pages: a short pitch beside one card that moves through steps. */
.auth {
  min-height: calc(100vh - 72px);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--space-section);
  background:
    radial-gradient(45% 60% at 100% 0%, rgb(220 149 255 / 0.3), transparent 70%),
    radial-gradient(40% 55% at 0% 10%, rgb(255 190 251 / 0.35), transparent 70%);
}
.auth-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.auth-pitch { padding-top: 1rem; }
.auth-pitch h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin-bottom: 1rem; }
.auth-pitch > p { color: var(--ink-soft); font-size: var(--fs-lg); max-width: 30rem; }

/* The trial, as a receipt: what they get, what it costs. */
.auth-receipt {
  margin-top: 2rem; max-width: 26rem; padding: 1.25rem 1.4rem;
  background: var(--surface); border: 1px dashed var(--lavender); border-radius: var(--radius);
  display: grid; gap: 0.55rem; font-size: var(--fs-sm);
}
.auth-receipt div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.auth-receipt b { color: var(--ink); }
.auth-receipt .total { border-top: 1px dashed var(--line); padding-top: 0.6rem; margin-top: 0.2rem; font-weight: 700; color: var(--ink); }
.auth-receipt .total b { color: var(--purple); font-size: var(--fs-lg); }

.auth-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.auth-card h2 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.auth-card .lead { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.auth-step[hidden] { display: none; }

.google-slot { min-height: 44px; display: flex; justify-content: center; margin-block: 0.5rem 1rem; }
.auth-note { text-align: center; color: var(--muted); font-size: var(--fs-xs); }
.auth-note a, .auth-card .link { color: var(--purple); font-weight: 700; }

.who {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; margin-bottom: 1.4rem;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.who b { color: var(--ink); word-break: break-all; }
.who button { background: none; border: 0; padding: 0; color: var(--purple); font-weight: 700; font-size: var(--fs-xs); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: 0.35rem; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgb(140 86 212 / 0.18); background: #fff; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 4.2rem; }
.pw button {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--purple); font-weight: 700; font-size: var(--fs-xs); padding: 0.3rem 0.5rem;
}

.agree { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 1.3rem; }
.agree input { margin-top: 0.3rem; accent-color: var(--purple); width: 16px; height: 16px; flex: none; }
.agree a { color: var(--purple); font-weight: 700; }
.auth-card form .btn { width: 100%; margin-top: 1.4rem; }
.auth-card .btn[disabled] { opacity: 0.6; pointer-events: none; }

.auth-error {
  margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: #fdecef; color: #9b2335; font-size: var(--fs-sm); font-weight: 600;
}
.auth-error:empty { display: none; }

/* Done step */
.done-mark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
  background: #e4f7ef; color: #13895b; font-size: 1.6rem; font-weight: 800;
}
.login-box {
  display: grid; gap: 0.5rem; margin: 1.2rem 0; padding: 1rem 1.1rem;
  border-radius: var(--radius-sm); background: var(--bg-soft); font-size: var(--fs-sm); color: var(--ink-soft);
}
.login-box b { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.next-steps { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.next-steps li { display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.next-steps li p { font-size: var(--fs-sm); color: var(--ink-soft); }
.next-steps .btn { width: 100%; }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-pitch { padding-top: 0; }
  .auth-receipt { display: none; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
}

/* Account page */
.link-btn { background: none; border: 0; padding: 0; color: var(--purple); font-weight: 700; font-size: inherit; }
.acc-status { margin: 0.4rem 0 1.2rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; background: #e4f7ef; color: #13704c; }
.acc-status.warn { background: #fff4db; color: #8a5a00; }
.acc-status.bad { background: #fdecef; color: #9b2335; }
.acc-rows { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.5rem; font-size: var(--fs-sm); padding: 1rem 0; border-block: 1px solid var(--line); }
.acc-rows dt { color: var(--muted); font-weight: 600; }
.acc-rows dd { margin: 0; color: var(--ink-soft); word-break: break-word; }
.acc-rows b { color: var(--ink); }
.acc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.4rem; }
#reset-form { margin-top: 1.4rem; }
.acc-saved { margin-top: 0.8rem; color: #13704c; font-weight: 600; font-size: var(--fs-sm); }
.acc-saved:empty { display: none; }
.acc-foot { margin-top: 1.5rem; }
@media (max-width: 560px) { .acc-actions { grid-template-columns: minmax(0, 1fr); } }
.plan-pick { margin-top: 1.2rem; max-width: 30rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--lavender); font-size: var(--fs-sm); font-weight: 600; color: var(--purple-deep); }
.plan-pick[hidden] { display: none; }

/* Account page: payments */
.billing { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.billing h3 { font-size: var(--fs-md); margin-bottom: 0.8rem; }
.bill-line { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0.4rem; }
.bill-line b { color: var(--ink); }
.bill-line.muted { color: var(--muted); }
.bill-hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.6rem; }
.acc-return { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: #e4f7ef; color: #13704c; font-size: var(--fs-sm); font-weight: 600; }
.acc-return[hidden] { display: none; }
.billing[hidden] { display: none; }

.seg { display: flex; gap: 4px; padding: 4px; width: fit-content; border-radius: 999px; background: var(--bg-soft); margin-bottom: 1rem; }
.seg button { border: 0; background: none; padding: 0.45rem 1rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-xs); color: var(--ink-soft); display: inline-flex; gap: 0.4rem; align-items: center; }
.seg button.is-on { background: var(--grad-brand); color: #fff; }
.seg .save { font-size: 0.68rem; padding: 1px 6px; border-radius: 999px; background: #e4f7ef; color: #13895b; }
.seg button.is-on .save { background: rgb(255 255 255 / 0.2); color: #fff; }

.plan-opts { display: grid; gap: 0.6rem; }
.plan-opt {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, background 0.2s;
}
.plan-opt:has(input:checked) { border-color: var(--purple); background: var(--bg-soft); }
.plan-opt input { accent-color: var(--purple); width: 18px; height: 18px; flex: none; }
.plan-opt span { flex: 1; display: grid; }
.plan-opt small { color: var(--muted); font-size: var(--fs-xs); }
.plan-opt em { font-style: normal; font-weight: 800; white-space: nowrap; }

.packs { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: var(--fs-sm); }
.packs span { display: grid; }
.packs small { color: var(--muted); font-size: var(--fs-xs); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: var(--bg); width: 38px; height: 38px; font-size: 1.2rem; font-weight: 700; color: var(--purple); }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper output { min-width: 3.2rem; text-align: center; font-weight: 800; }

.bill-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.bill-total span { font-weight: 700; }
.bill-total small { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); margin-left: 0.3rem; }
.bill-total b { font-size: var(--fs-lg); color: var(--purple); }
#bill-go { width: 100%; margin-top: 1rem; }

.bill-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.bill-list li { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.bill-list b { color: var(--ink); }
.acc-actions { grid-template-columns: minmax(0, 1fr); }
#bill-wa { width: 100%; margin-top: 1rem; }
.auth [hidden] { display: none !important; }
.field-error { font-size: var(--fs-xs); color: #9b2335; font-weight: 600; }
.field-error:empty { display: none; }
