/* Concept B: Warm neutral + deep teal. Grounded, calm, professional, less default SaaS. */
:root {
  /* Fonts */
  --font-sans: Georgia, "Times New Roman", serif;

  /* Main colors */
  --page-bg: #F8F6F2;
  --card-bg: #FFFDF8;
  --text: #24302F;
  --heading: #17211F;
  --muted: #66706E;
  --border: #DDD8CF;

  /* Action and state colors */
  --accent: #0F766E;
  --accent-hover: #115E59;
  --success: #15803D;
  --warning: #A16207;
  --error: #B91C1C;
  --focus: #5EEAD4;

  /* Form colors */
  --input-border: #CFC8BB;
  --input-bg: #FFFFFF;
  --switch-bg: rgba(255,253,248,.76);

  /* Brand mark */
  --mark-bg: #0F766E;
  --mark-text: #FFFFFF;
  --mark-shadow: 0 8px 20px rgba(15,118,110,.16);

  /* Small decorative/status colors */
  --trust-dot: #CCFBF1;
  --trust-dot-inner: #0F766E;
  --status-icon-bg: #DCFCE7;
  --status-icon-text: #15803D;
  --warning-bg: #FEF3C7;

  /* Page layout */
  --page-width: 1020px;
  --page-pad-y: 58px;
  --checkout-columns: minmax(0, .9fr) minmax(420px, 540px);
  --layout-gap: 44px;
  --layout-align: start;

  /* Component spacing and shape */
  --hero-pad: 32px 10px 0 0;
  --card-pad: 38px;
  --card-radius: 22px;
  --input-radius: 12px;
  --button-radius: 999px;
  --mark-radius: 50%;

  /* Effects and type scale */
  --shadow: 0 18px 44px rgba(61, 50, 34, 0.08);
  --button-shadow: 0 12px 22px rgba(15, 118, 110, 0.18);
  --h1-size: 38px;

  /* Status page alignment */
  --status-align: center;
  --status-icon-margin: 0 auto 18px;
  --action-justify: center;
}

/* Theme-specific overrides */
body,
input,
button {
  font-family: Source Sans 3, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
  font-family: Merriweather, Georgia, serif;
  letter-spacing: -0.035em;
}

.hero-panel {
  border-left: 3px solid var(--border);
  padding-left: 26px;
}

.payment-card {
  position: relative;
  overflow: hidden;
}

.payment-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #0F766E, #5EEAD4);
}

/* Base page styles */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--mark-radius);
  display: grid;
  place-items: center;
  background: var(--mark-bg);
  color: var(--mark-text);
  font-weight: 750;
  letter-spacing: -0.03em;
  box-shadow: var(--mark-shadow);
}

.brand-name,
.brand-kicker {
  margin: 0;
}

.brand-name {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-kicker {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.concept-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.concept-switcher a {
  border: 1px solid var(--border);
  background: var(--switch-bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.concept-switcher a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Main checkout layout */
.page-shell {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  padding: var(--page-pad-y) 0 44px;
}

.checkout-shell {
  display: grid;
  grid-template-columns: var(--checkout-columns);
  gap: var(--layout-gap);
  align-items: var(--layout-align);
}

.hero-panel {
  padding: var(--hero-pad);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, var(--h1-size));
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.trust-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.trust-list li {
  position: relative;
  padding-left: 26px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--trust-dot);
  box-shadow: inset 0 0 0 4px var(--trust-dot-inner);
}

/* Cards */
.payment-card,
.status-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.payment-card {
  padding: var(--card-pad);
}

/* Payment form */
.payment-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 7px;
}

label {
  color: var(--heading);
  font-weight: 750;
  font-size: 15px;
}

.helper,
.microcopy,
.security-note,
.field-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.helper,
.microcopy,
.security-note {
  color: var(--muted);
}

.microcopy {
  font-size: 13px;
}

input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

input.is-invalid {
  border-color: var(--error);
}

.amount-input-wrap {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}

.amount-input-wrap input {
  padding-left: 32px;
}

/* Buttons and links */
.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--button-shadow);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.primary-button:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-link:focus-visible,
.concept-switcher a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.primary-button:disabled {
  opacity: .78;
  cursor: wait;
  transform: none;
}

/* Form errors */
.error-summary {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--error) 35%, white);
  background: color-mix(in srgb, var(--error) 8%, white);
  color: var(--error);
  padding: 12px 14px;
  font-weight: 650;
}

.error-summary p {
  margin: 0;
}

.field-error {
  color: var(--error);
  font-weight: 650;
}

/* Success and cancel pages */
.status-shell {
  max-width: 680px;
}

.status-card {
  padding: clamp(28px, 6vw, 44px);
  text-align: var(--status-align);
}

.status-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: var(--status-icon-margin);
  font-weight: 850;
  background: var(--status-icon-bg);
  color: var(--status-icon-text);
}

.cancel-card .status-icon {
  background: var(--warning-bg);
  color: var(--warning);
}

.action-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: var(--action-justify);
  gap: 16px;
  flex-wrap: wrap;
}

.link-button {
  min-width: 190px;
}

.secondary-link {
  font-weight: 750;
}

/* Footer */
.site-footer {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 8px 0 34px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Small screens */
@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .concept-switcher {
    justify-content: flex-start;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 0;
  }

  .page-shell {
    padding-top: 30px;
  }

  .payment-card {
    padding: 24px;
  }

  .primary-button {
    width: 100%;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-link {
    text-align: center;
  }
}

/* Production refinement: concept switcher removed; keep header simple on all screen sizes. */
.site-header {
  justify-content: flex-start;
}

.brand-lockup {
  max-width: 100%;
}
