/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF7F2;
  --surface: #F2EDE4;
  --primary: #4A7C6B;
  --accent: #D4943A;
  --text: #2C2420;
  --text-muted: #7A6E65;
  --border: #E2D8CE;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; color: var(--text); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === HERO === */
.hero {
  padding: 6rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-accent {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foot-illustration {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 20px 60px rgba(74,124,107,0.12));
}

.hero-badge {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-cta {
  grid-column: 1 / -1;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
}

/* === CONDITIONS === */
.conditions {
  padding: 6rem 3rem;
  background: var(--surface);
}

.conditions-header {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.conditions-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.conditions-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.condition-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease;
}

.condition-card:hover { transform: translateY(-3px); }

.condition-icon { margin-bottom: 1.25rem; }

.condition-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.condition-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 7rem 3rem;
  background: var(--text);
  color: var(--bg);
}

.philosophy-inner { max-width: 900px; margin: 0 auto; }

.philosophy .section-label { color: var(--accent); }

.philosophy h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: var(--bg);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.philosophy-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #C8BDB3;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.philosophy-rule {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rule-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.rule-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  padding-top: 0.2rem;
}

.rule-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.rule-item p {
  font-size: 0.9rem;
  color: #9A8A7E;
  line-height: 1.7;
}

/* === OUTCOMES === */
.outcomes { padding: 7rem 3rem; }

.outcomes-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.outcomes-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.outcome-item { position: relative; padding-top: 1.5rem; }

.outcome-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.outcome-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.outcome-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 8rem 3rem;
  background: var(--surface);
  text-align: center;
}

.closing-inner { max-width: 720px; margin: 0 auto; }

.closing h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #B0A49A;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* === PRODUCT PAGE === */

/* Checkout alerts */
.checkout-alert {
  padding: 1rem 3rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
}
.checkout-alert--success { background: #4A7C6B; color: white; }
.checkout-alert--cancel { background: #D4943A; color: white; }

/* Nav link */
.nav-shop-link {
  margin-left: auto;
  margin-right: 0;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-shop-link:hover { background: #3a6355; }

/* Hero shop button */
.hero-shop-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: background 0.15s;
  width: fit-content;
}
.hero-shop-btn:hover { background: #3a6355; }

/* Product hero */
.product-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.product-nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.product-nav-tagline { font-size: 0.85rem; color: var(--text-muted); }

.product-hero { padding: 4rem 3rem; }
.product-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.product-gallery {}
.product-main-image {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-img-placeholder { width: 100%; padding: 2rem; }
.insole-placeholder-svg { width: 100%; display: block; }

.product-thumb-row { display: flex; gap: 0.75rem; }
.product-thumb {
  flex: 1;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-thumb.active { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { font-size: 0.7rem; color: var(--text-muted); text-align: center; padding: 0.5rem; }

.product-info {}
.product-name { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; color: var(--text); }
.product-tagline { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.product-rating { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.rating-text { font-size: 0.85rem; color: var(--text-muted); }

.product-price-row { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.product-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.product-price-note { font-size: 0.82rem; color: var(--text-muted); }

/* Size selector */
.size-selector { margin-bottom: 1.25rem; }
.size-label { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.size-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.size-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.size-btn.active, .size-btn:hover { border-color: var(--primary); background: #4A7C6B15; color: var(--primary); }
.size-guide-link { font-size: 0.78rem; color: var(--primary); text-decoration: underline; }

/* Add to cart */
.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 1rem;
}
.btn-add-cart:hover { background: #3a6355; }

.product-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.product-badges span { font-size: 0.78rem; color: var(--text-muted); }

/* Benefits */
.benefits-section { padding: 7rem 3rem; background: var(--surface); }
.benefits-inner { max-width: 1100px; margin: 0 auto; }
.benefits-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.benefits-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.benefits-intro { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.benefit-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 1.75rem; }
.benefit-icon { margin-bottom: 1.25rem; }
.benefit-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.benefit-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* Materials */
.materials-section { padding: 7rem 3rem; }
.materials-inner { max-width: 900px; margin: 0 auto; }
.materials-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.materials-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.materials-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.material-layer { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.layer-badge { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--primary); color: white; padding: 0.2rem 0.6rem; border-radius: 100px; margin-bottom: 0.75rem; }
.material-layer h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.material-layer p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.materials-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.spec-item { display: flex; flex-direction: column; gap: 0.25rem; }
.spec-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.spec-value { font-size: 0.92rem; color: var(--text); font-weight: 500; }

/* Sizing */
.sizing-section { padding: 7rem 3rem; background: var(--surface); }
.sizing-inner { max-width: 900px; margin: 0 auto; }
.sizing-intro { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 3rem; max-width: 600px; }
.sizing-table-wrapper { overflow-x: auto; margin-bottom: 2rem; }
.sizing-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sizing-table th { text-align: left; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0.75rem 1rem; border-bottom: 2px solid var(--border); }
.sizing-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.sizing-table tr:last-child td { border-bottom: none; }
.sizing-table tr.active td { background: #4A7C6B10; font-weight: 500; }
.sizing-notes { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.sizing-note { font-size: 0.85rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; line-height: 1.6; }

/* Return policy */
.return-section { padding: 7rem 3rem; }
.return-inner { max-width: 700px; margin: 0 auto; }
.return-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 3rem; display: flex; gap: 2.5rem; align-items: flex-start; }
.return-icon { flex-shrink: 0; }
.return-content {}
.return-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.return-content p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.75rem; }
.return-steps { display: flex; flex-direction: column; gap: 0.75rem; }
.return-step { display: flex; align-items: center; gap: 1rem; }
.step-num { width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.return-step span:last-child { font-size: 0.88rem; color: var(--text); }

/* Proof strip */
.proof-strip { padding: 4rem 3rem; background: var(--text); color: var(--bg); }
.proof-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.proof-stat {}
.proof-num { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.proof-label { display: block; font-size: 0.8rem; color: #C8BDB3; letter-spacing: 0.05em; }

/* Product CTA section */
.product-cta-section { padding: 7rem 3rem; background: var(--surface); text-align: center; }
.product-cta-inner { max-width: 600px; margin: 0 auto; }
.product-cta-inner h2 { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.product-cta-inner p { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn-product-cta { display: inline-block; background: var(--primary); color: white; padding: 1rem 2.5rem; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.btn-product-cta:hover { background: #3a6355; }
.cta-note { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem 3rem; }
  .hero-cta { grid-column: auto; flex-direction: column; gap: 1rem; text-align: center; }
  .condition-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .rule-item { grid-template-columns: 48px 1fr; gap: 1rem; }
  .nav { padding: 1rem 1.5rem; }
  .conditions, .philosophy, .outcomes, .closing { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.4rem; }
  .footer-brand { flex-direction: column; gap: 0.5rem; }
  .footer-tagline { border-left: none; padding-left: 0; }
}
