/* CircuSock — Funnel Design System */
/* Two-Step Funnel: Free + Shipping → Bump → Upsell */
/* Theme: Clean clinical-but-friendly. Modern scrubs meets athleisure. */

:root {
  --teal: #2A9D8F;
  --teal-dark: #1f7a6f;
  --teal-light: #e8f5f3;
  --white: #FAFAF9;
  --charcoal: #264653;
  --charcoal-light: #3d5a66;
  --coral: #E76F51;
  --coral-dark: #d45a3d;
  --cobalt: #2874A6;
  --cobalt-light: #e8f1f8;
  --grey-100: #f5f5f4;
  --grey-200: #e7e5e4;
  --grey-400: #a8a29e;
  --grey-600: #78716c;
  --grey-800: #44403c;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 520px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Wordmark */
.header {
  text-align: center;
  padding: 24px 20px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}

.wordmark {
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}

.wordmark span {
  color: var(--teal);
}

.wordmark-sub {
  font-size: 12px;
  color: var(--grey-600);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Progress Indicator */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 8px;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}

.progress-step.active {
  background: var(--teal);
  color: white;
}

.progress-step.done {
  background: var(--green);
  color: white;
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--grey-200);
}

.progress-line.done {
  background: var(--green);
}

/* Typography */
h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 12px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

p {
  color: var(--grey-800);
  margin-bottom: 12px;
}

.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }
.text-charcoal { color: var(--charcoal); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Sections */
.section {
  padding: 32px 0;
}

.section-alt {
  background: var(--grey-100);
  padding: 32px 20px;
  margin: 0 -20px;
}

.section-teal {
  background: var(--teal-light);
  padding: 32px 20px;
  margin: 0 -20px;
}

/* Brunson Box (intrigue bullets) */
.brunson-box {
  background: white;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

.brunson-box h3 {
  text-align: center;
  color: var(--teal);
  margin-bottom: 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brunson-box ul {
  list-style: none;
}

.brunson-box li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--charcoal);
  font-weight: 600;
  border-bottom: 1px solid var(--grey-100);
}

.brunson-box li:last-child { border-bottom: none; }

.brunson-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Guarantee Badge */
.guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
}

.guarantee-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.guarantee-text {
  font-size: 14px;
  color: #166534;
  font-weight: 600;
  line-height: 1.4;
}

.guarantee-text strong {
  color: #14532d;
}

/* Value Stack */
.value-stack {
  margin: 24px 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-200);
}

.value-item:last-child { border-bottom: none; }

.value-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.value-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.value-content p {
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 0;
}

/* CTA Button */
.cta-button {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  box-shadow: var(--shadow-md);
  margin: 20px 0;
  letter-spacing: 0.3px;
}

.cta-button:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.teal {
  background: var(--teal);
}

.cta-button.teal:hover {
  background: var(--teal-dark);
}

.cta-sub {
  text-align: center;
  font-size: 13px;
  color: var(--grey-600);
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.form-input::placeholder {
  color: var(--grey-400);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * { flex: 1; }

/* Size Selector */
.size-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.size-option {
  flex: 1;
  padding: 14px 8px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.size-option:hover {
  border-color: var(--teal);
}

.size-option.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}

.size-option .size-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
}

.size-option .size-detail {
  font-size: 11px;
  color: var(--grey-600);
  margin-top: 2px;
}

/* Color Selector */
.color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.selected {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--teal);
}

/* Order Bump Card */
.bump-card {
  background: white;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
  transition: all 0.3s;
  cursor: pointer;
}

.bump-card.checked {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: var(--shadow-md);
}

.bump-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bump-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--grey-400);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bump-card.checked .bump-checkbox {
  background: var(--teal);
  border-color: var(--teal);
}

.bump-checkmark {
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: none;
}

.bump-card.checked .bump-checkmark {
  display: block;
}

.bump-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}

.bump-price {
  font-size: 14px;
  color: var(--coral);
  font-weight: 700;
  margin-left: auto;
}

.bump-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--grey-200);
  display: none;
}

.bump-card.checked .bump-body {
  display: block;
}

.bump-detail {
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 6px;
  padding-left: 36px;
  position: relative;
  line-height: 1.5;
}

.bump-detail::before {
  content: '✓';
  position: absolute;
  left: 8px;
  color: var(--teal);
  font-weight: 700;
}

.bump-anchored-price {
  font-size: 12px;
  color: var(--grey-400);
  text-decoration: line-through;
  margin-left: 4px;
  font-weight: 400;
}

/* Order Summary */
.order-summary {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.order-summary h3 {
  font-size: 15px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-600);
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--grey-200);
}

.order-line:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 16px;
  padding-top: 12px;
}

.order-line .item-name {
  color: var(--grey-800);
  flex: 1;
}

.order-line .item-price {
  font-weight: 600;
  white-space: nowrap;
}

.order-line.total {
  color: var(--charcoal);
}

/* Upsell Page */
.upsell-headline {
  text-align: center;
  padding: 20px 0;
}

.upsell-headline .wait {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 8px;
}

.upsell-confirm {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 20px;
}

.upsell-stack {
  background: white;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
}

.upsell-stack h3 {
  text-align: center;
  color: var(--teal);
  margin-bottom: 8px;
}

.upsell-stack .stack-total-pairs {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.upsell-stack .stack-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 16px;
}

.upsell-price {
  text-align: center;
  margin: 20px 0;
}

.upsell-price .price-now {
  font-size: 42px;
  font-weight: 800;
  color: var(--charcoal);
}

.upsell-price .price-value {
  font-size: 16px;
  color: var(--grey-400);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.upsell-price .price-per-day {
  font-size: 13px;
  color: var(--grey-600);
  margin-top: 4px;
}

.upsell-compare {
  background: var(--cobalt-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--cobalt);
  margin: 16px 0;
}

.decline-link {
  display: block;
  text-align: center;
  color: var(--grey-400);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  margin: 16px 0 24px;
  padding: 8px;
}

.decline-link:hover {
  color: var(--grey-600);
}

/* Thank You Page */
.thank-you-icon {
  text-align: center;
  font-size: 64px;
  margin: 24px 0 16px;
}

.confirmation-box {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.confirmation-box .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--grey-800);
}

/* Story / Testimonial Card */
.testimonial {
  background: white;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.testimonial .quote {
  font-style: italic;
  color: var(--grey-800);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.testimonial .author {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 14px;
}

.testimonial .author-role {
  font-size: 12px;
  color: var(--grey-600);
}

/* Before/After Comparison */
.comparison {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.comparison-item {
  flex: 1;
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.comparison-item.before {
  border-top: 3px solid var(--coral);
}

.comparison-item.after {
  border-top: 3px solid var(--green);
}

.comparison-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.comparison-item.before .comparison-label { color: var(--coral); }
.comparison-item.after .comparison-label { color: var(--green); }

.comparison-img {
  width: 100%;
  height: 120px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-400);
  font-size: 12px;
  overflow: hidden;
}

.comparison-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image placeholders */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, var(--teal-light), var(--cobalt-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  min-height: 200px;
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pain point highlight */
.pain-highlight {
  background: #fef2f2;
  border-left: 4px solid var(--coral);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  font-size: 14px;
  color: #991b1b;
}

/* Mechanism explainer */
.mechanism {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.mechanism-icon {
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mechanism-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.mechanism-text p {
  font-size: 13px;
  color: var(--grey-600);
  margin-bottom: 0;
}

/* Payment Form Stripe-style */
.payment-form {
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 20px;
}

.card-element {
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  background: white;
}

.card-element label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey-600);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.card-element input {
  border: none;
  width: 100%;
  font-size: 16px;
  padding: 4px 0;
  color: var(--charcoal);
}

.card-element input:focus {
  outline: none;
}

/* Trust badges */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--grey-600);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trust-icon {
  color: var(--green);
  font-size: 14px;
}

/* FAQ section */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
  padding: 16px 0;
}

.faq-q {
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  font-size: 14px;
  color: var(--grey-600);
  margin-top: 8px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* Utility */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.pb-0 { padding-bottom: 0; }

/* Error states */
.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input {
  border-color: var(--red);
}

.form-group.error .form-error {
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  color: var(--grey-400);
  border-top: 1px solid var(--grey-200);
  margin-top: 32px;
}

.footer a {
  color: var(--grey-600);
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .cta-button { font-size: 16px; padding: 16px 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .comparison { flex-direction: column; }
  .upsell-price .price-now { font-size: 34px; }
  .upsell-stack .stack-total-pairs { font-size: 26px; }
}
