:root {
  --brand: #005f59;
  --brand-deep: #003f3b;
  --brand-bright: #029187;
  --ink: #10201f;
  --muted: #60706e;
  --line: #d7e6e3;
  --soft: #edf8f6;
  --cream: #fffaf2;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 28px 80px rgba(0, 63, 59, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 10%, rgba(2, 145, 135, 0.2), transparent 28rem),
    linear-gradient(135deg, #f4fbf9 0%, #ffffff 46%, #edf7f5 100%);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-radius: 26px;
  padding: 16px 18px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(0, 95, 89, 0.98), rgba(0, 63, 59, 0.98)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
}

.account-entry {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: 32px;
}

.hero-copy {
  border-radius: 34px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(0, 95, 89, 0.98), rgba(0, 63, 59, 0.98)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.hero-copy {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow { color: #9cf4ea; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.proof-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.proof-stack div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.proof-stack strong { color: #fff; }
.proof-stack span { color: rgba(255, 255, 255, 0.72); line-height: 1.45; }

main {
  display: grid;
  gap: 20px;
}

.entry-stack {
  display: grid;
  gap: 16px;
}

.card {
  border: 1px solid rgba(215, 230, 227, 0.95);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(0, 63, 59, 0.11);
  backdrop-filter: blur(10px);
}

.auth-card {
  width: 100%;
  display: grid;
  gap: 24px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.onboarding-form {
  gap: 22px;
}

.form-section {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.form-section + .form-section {
  padding-top: 22px;
  border-top: 1px solid rgba(215, 230, 227, 0.9);
}

.form-section-head {
  display: grid;
  gap: 4px;
}

.form-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 900;
}

.form-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  color: #263937;
  font-size: 0.94rem;
  font-weight: 800;
}

.label-row {
  display: flex;
  min-height: 1.35em;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.optional-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  color: #38625e;
  background: var(--soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus, select:focus, .stripe-card:focus-within {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(2, 145, 135, 0.14);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.password-toggle:hover {
  color: var(--brand);
  background: var(--soft);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary, .secondary, .ghost, .danger-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 18px 34px rgba(0, 95, 89, 0.24);
}

.primary:hover { transform: translateY(-1px); box-shadow: 0 22px 40px rgba(0, 95, 89, 0.28); }
.primary:disabled { cursor: not-allowed; opacity: 0.58; transform: none; }

.secondary, .ghost {
  color: var(--brand);
  background: var(--soft);
  border: 1px solid rgba(2, 145, 135, 0.18);
}

.ghost {
  width: fit-content;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.secondary:hover, .ghost:hover { transform: translateY(-1px); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.provider-button svg {
  width: 20px;
  height: 20px;
}

.provider-button.google {
  border: 1px solid #d8dee8;
  color: #27303f;
  background: #fff;
}

.provider-button.apple {
  border: 1px solid #050505;
  color: #fff;
  background: #050505;
}

.provider-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16, 32, 31, 0.12); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-actions .primary {
  flex: 1 1 180px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.link-button:hover {
  color: var(--brand-dark);
}

.signin-link {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

a {
  color: var(--brand);
  font-weight: 900;
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.onboarding-card {
  max-width: 760px;
}

.muted { color: var(--muted); line-height: 1.6; }
.small { font-size: 0.86rem; line-height: 1.55; }
.hidden { display: none !important; }

.notice {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px 17px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 63, 59, 0.08);
}
.notice.success { border-color: rgba(6, 118, 71, 0.25); background: #ecfdf3; color: var(--success); }
.notice.error { border-color: rgba(180, 35, 24, 0.22); background: #fff2f1; color: var(--danger); }
.notice.info { border-color: rgba(2, 145, 135, 0.18); background: var(--soft); }

.account-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  margin-bottom: 34px;
}

.account-summary, .plan-summary {
  min-height: 190px;
}

.salon-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.salon-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 10px 0 18px;
}

.section-heading > p {
  max-width: 360px;
  text-align: right;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-color: #e5efed;
  border-radius: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.plan-card.recommended {
  border-color: #029187;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08), 0 0 0 4px #ecfdf8;
}

.plan-card.current-plan {
  border-color: rgba(0, 95, 89, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf9 100%);
}

.plan-card.pro-plan {
  color: #fff;
  border-color: rgba(45, 212, 191, 0.34);
  background: #102a2a;
  box-shadow: 0 24px 60px rgba(16, 42, 42, 0.24);
}

.plan-card.pro-plan.current-plan {
  border-color: rgba(45, 212, 191, 0.78);
  background: #102a2a;
}

.plan-card.ending-plan,
.plan-card.scheduled-plan {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 18px 50px rgba(120, 53, 15, 0.1);
}

.plan-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.plan-card .small {
  min-height: 104px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.plan-card.pro-plan .small,
.plan-card.pro-plan .feature-list li,
.plan-card.pro-plan .price span,
.plan-card.pro-plan .founding-note {
  color: rgba(255, 255, 255, 0.72);
}

.plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--brand);
  background: #e9f8f5;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.recommended .badge:first-child {
  color: #fff;
  background: #0f766e;
}

.current-badge {
  color: #fff;
  background: var(--brand);
}

.ending-plan .badge,
.scheduled-plan .badge {
  color: #7a4b00;
  background: #fff4d6;
  border: 1px solid rgba(199, 124, 0, 0.18);
}

.price {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  line-height: 0.95;
}

.price strong {
  font-size: clamp(2.45rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.price span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.founding-badge {
  color: #7a4b00;
  background: #fff4d6;
  border: 1px solid rgba(199, 124, 0, 0.18);
}

.founding-price { color: var(--brand); }

.plan-price,
.launch-price {
  margin-top: 20px;
}

.launch-price {
  border: 1px solid rgba(0, 95, 89, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: #e9f8f5;
}

.launch-label {
  margin: 0 0 8px;
  color: #027a72;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founding-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.founding-note s {
  color: #94a3b8;
  font-weight: 900;
}

.fee-pill {
  width: fit-content;
  margin: 16px 0 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.plan-card.pro-plan .fee-pill {
  color: #d8fffa;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.plan-state-note {
  margin: -10px 0 18px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 14px;
  padding: 12px 14px;
  color: #7a4b00;
  background: #fff8e6;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 32px;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: #2d403e;
  line-height: 1.45;
  font-size: 0.94rem;
}

.feature-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--brand);
  background: #e6fffb;
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-card.pro-plan .feature-list li::before {
  color: #102a2a;
  background: #67e8d4;
}

.plan-card .primary, .plan-card .secondary, .plan-cta {
  margin-top: auto;
  width: 100%;
  border-radius: 16px;
  padding: 16px 18px;
}

.plan-cta {
  border: 0;
  color: #fff;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.plan-cta:hover {
  transform: translateY(-1px);
}

.plan-cta.dark {
  background: #020617;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.16);
}

.plan-cta.brand {
  background: var(--brand);
  box-shadow: 0 18px 34px rgba(0, 95, 89, 0.22);
}

.plan-cta.brand:hover {
  background: var(--brand-deep);
}

.plan-cta.current {
  color: var(--brand);
  background: var(--soft);
  border: 1px solid rgba(2, 145, 135, 0.2);
  box-shadow: none;
}

.plan-card.pro-plan .plan-cta.current {
  color: #d8fffa;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.plan-cta.current:hover {
  transform: none;
}

.payment-card {
  margin-top: 22px;
  max-width: 680px;
}

.payment-field {
  position: relative;
  padding-top: 12px;
}

.stripe-trust-badge {
  position: absolute;
  top: 0;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(99, 91, 255, 0.2);
  background: #fff;
  color: #40506a;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 32, 31, 0.08);
}

.stripe-trust-badge strong {
  color: #635bff;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.lock-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 148, 99, 0.12);
  color: #0d9463;
}

.lock-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stripe-card {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 21px 15px 15px;
}

.billing-heading {
  margin-top: 34px;
}

.billing-actions-card, .subscription-actions-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.billing-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.stripe-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.status-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.status-icon::before {
  font-size: 0.76rem;
  font-weight: 900;
}

.stripe-status.connected {
  color: #067647;
  background: #ecfdf3;
}

.stripe-status.connected .status-icon {
  color: #fff;
  background: #067647;
}

.stripe-status.connected .status-icon::before {
  content: "✓";
}

.stripe-status.not-connected {
  color: #b42318;
  background: #fff2f1;
}

.stripe-status.not-connected .status-icon {
  color: #fff;
  background: #b42318;
}

.stripe-status.not-connected .status-icon::before {
  content: "!";
}

.stripe-status.unknown {
  color: #475569;
  background: #f8fafc;
}

.stripe-status.unknown .status-icon {
  background: #e2e8f0;
}

.stripe-status.unknown .status-icon::before {
  content: "…";
}

.billing-actions-card .primary {
  width: max-content;
  min-width: 190px;
  margin-top: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.button-row button {
  min-width: 150px;
}

.danger-button {
  color: #fff;
  background: #b42318;
}

.danger-button:hover {
  background: #912018;
}

.invoices-card {
  margin-top: 18px;
}

.invoices-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.invoice-list {
  display: grid;
  gap: 10px;
}

.invoice-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.invoice-row strong {
  display: block;
  margin-bottom: 3px;
}

.invoice-row a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.invoice-row a:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .account-entry,
  .account-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding: 18px 0 42px;
  }

  .topbar,
  .hero-copy,
  .card {
    border-radius: 24px;
  }

  .provider-grid,
  .split-fields,
  .invoices-header,
  .invoice-row {
    grid-template-columns: 1fr;
  }

  .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .billing-actions-card .primary,
  .button-row button {
    width: 100%;
  }
}
