/* Shared styles for signup.html / confirm.html / checkout.html — a slim
   standalone subset of the brochure theme (DM Sans, --pp-* colors). */
:root {
  --sf-theme: #6048E4;
  --sf-theme-2: #7C63F0;
  --sf-header: #282C34;
  --sf-text: #6D6B7B;
  --sf-border: #CCCBD13D;
  --sf-bg: #FAFAFA;
  --sf-white: #fff;
  --sf-shadow: 0px 1px 14px 0px rgba(0, 0, 0, 0.13);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--sf-bg);
  color: var(--sf-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-header {
  background: var(--sf-header);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sf-header img {
  height: 40px;
  width: auto;
}

.sf-header a.sf-signin {
  color: var(--sf-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.sf-header a.sf-signin:hover {
  color: var(--sf-theme-2);
}

.sf-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px;
}

.sf-card {
  background: var(--sf-white);
  border-radius: 12px;
  box-shadow: var(--sf-shadow);
  width: 100%;
  max-width: 480px;
  padding: 40px 36px;
}

.sf-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--sf-header);
  margin-bottom: 6px;
  text-align: center;
}

.sf-card .sf-sub {
  text-align: center;
  font-size: 14px;
  margin-bottom: 24px;
}

.sf-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  background: color-mix(in srgb, var(--sf-theme) 12%, transparent);
  color: var(--sf-theme);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.sf-field {
  margin-bottom: 16px;
}

.sf-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sf-header);
  margin-bottom: 6px;
}

.sf-field input[type="text"],
.sf-field input[type="email"],
.sf-field input[type="password"] {
  width: 100%;
  border: 1px solid var(--sf-border);
  background: var(--sf-bg);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--sf-header);
  outline: none;
}

.sf-field input:focus {
  border-color: var(--sf-theme);
}

.sf-field input::placeholder {
  color: color-mix(in srgb, var(--sf-text) 55%, transparent);
}

.sf-error {
  background: color-mix(in srgb, #e5484d 10%, transparent);
  color: #b32529;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

.sf-terms {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.sf-terms a {
  color: var(--sf-theme);
  text-decoration: none;
}

.sf-terms a:hover {
  text-decoration: underline;
}

.sf-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--sf-white);
  background: linear-gradient(270deg, var(--sf-theme-2) 0%, var(--sf-theme) 100%);
  line-height: 1;
  padding: 17px 24px;
  border-radius: 100px;
  transition: opacity 300ms ease;
}

.sf-btn:disabled {
  opacity: .6;
  cursor: default;
}

.sf-alt {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.sf-alt a {
  color: var(--sf-theme);
  text-decoration: none;
  font-weight: 500;
}

.sf-alt a:hover {
  text-decoration: underline;
}

.sf-footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

.sf-footer a {
  color: var(--sf-theme);
  text-decoration: none;
}

/* OTP code input + spinner */
.sf-code {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 20px;
  text-align: center;
  letter-spacing: 8px;
  font-size: 22px;
}

.sf-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--sf-border);
  border-top-color: var(--sf-theme);
  border-radius: 50%;
  animation: sf-spin 700ms linear infinite;
}

@keyframes sf-spin {
  to { transform: rotate(360deg); }
}

/* Checkout summary rows */
.sf-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  background: var(--sf-bg);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.sf-plan-row .sf-plan-name {
  font-weight: 700;
  color: var(--sf-header);
}

.sf-plan-row .sf-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--sf-header);
}

.sf-plan-row .sf-plan-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--sf-text);
}

.sf-fine {
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
}

.sf-center {
  text-align: center;
  padding: 30px 0;
}

.sf-center .sf-spinner {
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .sf-card {
    padding: 30px 22px;
  }

  .sf-header {
    padding: 14px 18px;
  }
}