/* Forge — base styles. No Tailwind. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  background: #fbfaf4;
  color: #091717;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Layout helpers ---- */

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Typography ---- */

.heading-display {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #824182;
  margin: 0;
}

/* ---- Buttons ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.25rem;
  border-radius: 0.5rem;
  background: #824182;
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #a555a5;
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(251, 250, 244, 0.8);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 160ms ease, color 160ms ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fbfaf4;
}

/* ---- Navbar ---- */

.site-nav {
  border-bottom: 1px solid #e7dece;
  background: #091717;
  color: #fbfaf4;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1152px;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
}

.site-nav__brand-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.site-nav__divider {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(251, 250, 244, 0.4);
}

.site-nav__forge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
}

.site-nav__forge-icon {
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.375rem;
}

.site-nav__forge-name {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav__link {
  color: rgba(251, 250, 244, 0.8);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: #fbfaf4;
}

/* PandaiTech brand expander */
.pt-brand {
  align-items: center;
  display: inline-flex;
  height: 28px;
  overflow: hidden;
  position: relative;
  width: 28px;
  transition: width 260ms ease;
}

.pt-brand:hover,
.pt-brand:focus-within,
.pt-brand.is-expanded {
  width: 108px;
}

.pt-brand-button,
.pt-brand-logo-wrap {
  left: 0;
  position: absolute;
}

.pt-brand-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  padding: 0;
  width: 28px;
}

.pt-brand-favicon {
  background: #ffffff;
  border-radius: 6px;
  height: 28px;
  width: 28px;
}

.pt-brand-logo-wrap {
  align-items: center;
  display: inline-flex;
  height: 28px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.pt-brand-logo {
  height: 20px;
  max-width: none;
  width: auto;
}

.pt-brand:hover .pt-brand-button,
.pt-brand:focus-within .pt-brand-button,
.pt-brand.is-expanded .pt-brand-button {
  opacity: 0;
  pointer-events: none;
}

.pt-brand:hover .pt-brand-logo-wrap,
.pt-brand:focus-within .pt-brand-logo-wrap,
.pt-brand.is-expanded .pt-brand-logo-wrap {
  opacity: 0.9;
}

/* Flash messages */
.flash-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #fbfaf4;
  color: #091717;
}

.flash-bar__inner {
  max-width: 1152px;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.flash-bar__message {
  margin: 0;
  font-weight: 500;
  color: #091717;
}

.flash-bar__message--warning {
  color: #b45309;
}

.flash-bar__message--success {
  color: #047857;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid #e7dece;
  background: #fbfaf4;
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 1152px;
  margin-inline: auto;
}

.site-footer__links {
  display: flex;
  gap: 1rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #824182;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- Cards / surfaces ---- */

.surface-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
}

/* ---- Centered main column (404, login, payment-*, register) ---- */

.centered-main {
  display: flex;
  flex: 1;
  align-items: center;
  width: 100%;
  margin-inline: auto;
  padding: 3rem 1.25rem;
}

.centered-main--xs { max-width: 28rem; }
.centered-main--sm { max-width: 36rem; }
.centered-main--md { max-width: 42rem; }
.centered-main--lg { max-width: 56rem; }

.surface-card--shadow {
  box-shadow: 0 24px 60px -46px rgba(9, 23, 23, 0.35);
}

/* ---- Card content / typography helpers ---- */

.card-title {
  margin: 0.75rem 0 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card-title--lg {
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .card-title--lg {
    font-size: 2.25rem;
  }
}

.card-text {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #4b5563;
}

.card-text--lg {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: #4b5563;
}

.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(130, 65, 130, 0.1);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #824182;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
  }
}

.cta-single {
  margin-top: 1.5rem;
}

/* ---- Forms ---- */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-label--spaced {
  margin-top: 1rem;
}

.form-label--first {
  margin-top: 1.5rem;
}

.form-input {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.75rem 0.75rem;
  font: inherit;
  background: #fff;
  color: inherit;
}

.form-input:focus-visible {
  outline: 2px solid #824182;
  outline-offset: 1px;
}

.form-input--disabled,
.form-input:disabled {
  background: #f9fafb;
  color: #6b7280;
}

.form-submit {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #824182;
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: #a555a5;
}

.form-submit--test {
  margin-top: 0.75rem;
  background: #059669;
}

.form-submit--test:hover,
.form-submit--test:focus-visible {
  background: #047857;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ---- Button variants ---- */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #f9fafb;
}

.btn-outline--block {
  width: 100%;
  min-height: 0;
  padding: 0.75rem 1rem;
}

.btn-outline--stacked {
  margin-top: 0.75rem;
}

.btn-google {
  margin-top: 1.5rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #091717;
}

.btn-google:hover,
.btn-google:focus-visible {
  background: #f9fafb;
}

/* ---- Divider with text ---- */

.divider-or {
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.divider-or__line {
  height: 1px;
  flex: 1;
  background: #e5e7eb;
}

.divider-or__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

/* ---- Alerts ---- */

.alert-error {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #b91c1c;
}

.code-ref {
  margin-top: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fbfaf4;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---- Utility ---- */

.hidden {
  display: none !important;
}

/* ---- Payment-success media row ---- */

.media-row {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.media-row__icon {
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
  .media-row {
    flex-direction: row;
    align-items: flex-start;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Payment page ---- */

.payment-grid {
  display: grid;
  width: 100%;
  max-width: 56rem;
  flex: 1;
  margin-inline: auto;
  padding: 3rem 1.25rem;
}

@media (min-width: 768px) {
  .payment-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.payment-summary {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  padding: 1.75rem;
}

.payment-form {
  border: 1px solid #e5e7eb;
  border-top: 0;
  background: #fff;
  border-radius: 0 0 1rem 1rem;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .payment-summary {
    border-radius: 1rem 0 0 1rem;
    border-right: 0;
  }
  .payment-form {
    border-top: 1px solid #e5e7eb;
    border-left: 0;
    border-radius: 0 1rem 1rem 0;
  }
}

.payment-card-heading {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.package-box {
  margin-top: 1.5rem;
  border: 1px solid #e5e7eb;
  background: #fbfaf4;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.package-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.package-box__name {
  margin: 0;
  font-weight: 600;
}

.package-box__sub {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.package-box__price {
  margin: 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #824182;
}

.package-box__list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}
