/* Wholesale page — unified sections, minimal heavy boxes */

.ws-main {
  font-family: var(--font);
}

.ws-hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.ws-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.ws-hero-copy {
  min-width: 0;
}

.ws-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.ws-hero-visual img {
  width: 100%;
  max-width: min(520px, 100%);
  height: auto;
  object-fit: contain;
}

.ws-kicker {
  font-family: var(--font-hero);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.ws-title {
  font-family: var(--font-hero);
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0f172a;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.ws-lede {
  max-width: 38rem;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  color: #475569;
}

.ws-lede p + p {
  margin-top: 0.75rem;
}

/* Why schools */
.ws-why {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg);
}

.ws-section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.ws-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.ws-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg);
  transition: background 0.2s var(--ease);
}

.ws-card:hover {
  background: var(--bg2);
}

.ws-card-title {
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.ws-card-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* Founder block — full width, soft band */
.ws-founder {
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ws-founder-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.ws-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: #0f172a;
  color: #fff;
}

.ws-age {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.ws-founder-title {
  font-family: var(--font-hero);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.ws-founder-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  max-width: 52rem;
}

.ws-founder-link {
  margin: 1.25rem 0 0;
}

.ws-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0a66c2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ws-linkedin-link:hover {
  color: #004182;
  text-decoration: underline;
}

/* Full-width photo break */
.ws-photo-break {
  position: relative;
  width: 100%;
  height: clamp(340px, 42vw, 580px);
  overflow: hidden;
}

.ws-photo-break img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Bottom dark gradient for text legibility */
.ws-photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
  background: linear-gradient(to top, rgba(8, 15, 30, 0.72) 0%, transparent 100%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.ws-photo-tagline {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  max-width: 22ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* Video */
.ws-video {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg);
}

.ws-video-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
  background: #000;
}

.ws-video-wrap iframe {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border: none;
}

/* Pricing */
.ws-pricing {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.ws-pricing-lede {
  text-align: center;
  font-size: 0.9375rem;
  color: #64748b;
  max-width: 36rem;
  margin: -0.5rem auto clamp(32px, 4vw, 44px);
  line-height: 1.55;
}

.ws-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ws-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ws-tier:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.ws-tier--featured {
  border-color: #0369a1;
  box-shadow: 0 10px 36px rgba(3, 105, 161, 0.12);
}

.ws-tier-ribbon {
  position: absolute;
  top: 0;
  right: 16px;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: #0369a1;
  color: #fff;
}

.ws-tier-head {
  margin-bottom: 12px;
}

.ws-tier-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ws-tier-price {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.ws-tier-unit {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ws-tier-qty {
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 8px;
}

.ws-tier-for {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.ws-tier-btn {
  width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  font-size: 0.85rem;
}

/* Mission banner */
.ws-banner {
  padding: clamp(28px, 4vw, 40px) 0;
  background: linear-gradient(90deg, #e8e4f0 0%, #e0e7ff 50%, #ede9fe 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.ws-banner-text {
  text-align: center;
  font-size: clamp(0.9rem, 1.6vw, 1.0625rem);
  line-height: 1.55;
  color: #334155;
  font-weight: 500;
  max-width: 52rem;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .ws-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ws-why-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .ws-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ws-hero-visual {
    order: 1;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .ws-tiers {
    grid-template-columns: 1fr;
  }

  .ws-tier--featured {
    order: -1;
  }

  .ws-title {
    max-width: none;
  }
}

/* --- Wholesale order builder (/wholesale-order) --- */

/* Hero uses .ws-hero + .ws-hero-inner (same as /wholesale); tweak title width */
.wo-page-hero .wo-title {
  max-width: 16ch;
}

@media (max-width: 768px) {
  .wo-page-hero .wo-title {
    max-width: none;
  }
}

.wo-lede {
  max-width: 38rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.65;
  color: #475569;
  margin: 1rem 0 0;
}

.wo-builder {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 10vw, 100px);
  background: var(--bg);
}

.wo-form {
  max-width: 920px;
  margin: 0 auto;
}

.wo-fieldset {
  border: none;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0;
}

.wo-legend {
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding: 0;
}

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

.wo-tier-card {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.wo-tier-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wo-tier-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.wo-tier-card input:focus-visible + .wo-tier-inner {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.wo-tier-card input:checked + .wo-tier-inner {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

.wo-tier-card--featured .wo-tier-ribbon {
  position: absolute;
  top: -8px;
  right: 10px;
  z-index: 1;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #2563eb;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}

.wo-tier-card--featured input:checked + .wo-tier-inner {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.wo-tier-label {
  font-family: var(--font-hero);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.wo-tier-units {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.wo-tier-pu {
  font-size: 0.8125rem;
  color: #475569;
}

.wo-tier-total {
  font-size: 0.8125rem;
  color: #0f172a;
  margin-top: 4px;
}

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

.wo-pack-option {
  margin: 0;
  cursor: pointer;
}

.wo-pack-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wo-pack-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.wo-pack-card strong {
  color: #0f172a;
  font-size: 0.9375rem;
}

.wo-pack-option input:checked + .wo-pack-card {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

.wo-sub-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 16px 0 10px;
}

.wo-style-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wo-style-opt {
  margin: 0;
  cursor: pointer;
}

.wo-style-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wo-style-opt span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  transition: border-color 0.2s, background 0.2s;
}

.wo-style-opt input:checked + span {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.wo-summary-panel {
  margin-top: clamp(24px, 4vw, 36px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.wo-summary-title {
  font-family: var(--font-hero);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

.wo-summary-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 16px;
}

.wo-sum-tier {
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

.wo-sum-line {
  margin: 0 0 6px;
}

.wo-sum-detail {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: #64748b;
}

.wo-sum-price {
  margin: 0;
  font-size: 1rem;
}

.wo-sum-unit {
  color: #64748b;
}

.wo-bulk-panel {
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.wo-bulk-panel p {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.wo-contact-btn {
  display: inline-flex;
}

.wo-error {
  min-height: 1.25em;
  font-size: 0.875rem;
  color: #b91c1c;
  margin: 0 0 10px;
}

.wo-checkout-btn {
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
}

.wo-footnote {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  max-width: 36rem;
}

.wo-back {
  text-align: center;
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 0.875rem;
}

.wo-back a {
  color: #475569;
}

@media (max-width: 900px) {
  .wo-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .wo-tier-grid {
    grid-template-columns: 1fr;
  }

  .wo-pack-row {
    grid-template-columns: 1fr;
  }
}

/* --- Quote request form --- */

.wo-quote-intro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 20px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.wo-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.wo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wo-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wo-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.wo-req {
  color: #b91c1c;
}

.wo-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wo-input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.wo-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.wo-textarea {
  resize: vertical;
  min-height: 76px;
}

.wo-field--country {
  max-width: 260px;
}

/* Success state */
.wo-success {
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.wo-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.wo-success-title {
  font-family: var(--font-hero);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.wo-success-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 10px;
}

.wo-success-ref {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

@media (max-width: 560px) {
  .wo-field-row {
    grid-template-columns: 1fr;
  }

  .wo-field--country {
    max-width: none;
  }
}
