/* 1. Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; }

/* 2. Design tokens */
:root {
  /* EasyToShop brand */
  --brand-primary: #124c3b;
  --brand-primary-dark: #0b342a;
  --brand-accent: #d98a2b;
  --brand-accent-soft: #ead8be;
  --brand-mint: #6cb7a4;

  /* Text */
  --text-primary: #17211d;
  --text-secondary: #58615d;
  --text-on-dark: #ffffff;

  /* Surfaces */
  --bg-page: #faf9f5;
  --bg-surface: #f2f0e9;
  --bg-white: #ffffff;

  /* UI */
  --border: #dedad0;
  --control-border: #8a908d;
  --focus: #2f7965;
  --nav-text: #4b514e;

  /* Product accents: overridden per product page */
  --product-primary: var(--brand-accent);
  --product-secondary: var(--brand-accent-soft);
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --radius-sm: .65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(23, 33, 29, .05), 0 8px 24px rgba(23, 33, 29, .06);
  --shadow-lg: 0 24px 60px rgba(23, 33, 29, .13);
  --container: 72rem;
  --container-narrow: 47rem;
}

.product-teds {
  --product-primary: #7b5135;
  --product-secondary: #d8b98a;
}

/* 3. Typography */
body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 8vw, 5.2rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.55rem); }
h3 { font-size: 1.4rem; }
p { color: var(--text-secondary); }
.eyebrow { color: var(--brand-primary); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.section-heading { max-width: 44rem; margin-bottom: var(--space-5); }
.section-heading .eyebrow { margin-bottom: var(--space-2); }
.section-heading p { margin-top: var(--space-3); }

/* 4. Layout */
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.container--narrow { width: min(calc(100% - 2rem), var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-7); }
.section--soft { background: var(--bg-surface); }
.section--dark { background: var(--brand-primary-dark); color: var(--text-on-dark); }
.section--dark p { color: rgba(255, 255, 255, .84); }
.grid { display: grid; gap: var(--space-4); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
.split { display: grid; gap: var(--space-5); align-items: center; }
.split > * { min-width: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--bg-white); color: var(--brand-primary); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* 5. Header / navigation */
.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--border); background: rgba(250, 249, 245, .96); }
.nav-wrap { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .58rem; color: var(--text-primary); font-size: 1.02rem; font-weight: 800; line-height: 1; text-decoration: none; letter-spacing: -.03em; white-space: nowrap; }
.brand-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; }
.nav-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-primary); cursor: pointer; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 1.15rem; height: 2px; background: currentColor; content: ""; }
.nav-toggle-lines::before { transform: translateY(-6px); }
.nav-toggle-lines::after { transform: translateY(4px); }
.site-nav { display: none; position: absolute; inset: 4.6rem 0 auto; padding: 1rem; border-bottom: 1px solid var(--border); background: var(--bg-page); box-shadow: var(--shadow-sm); }
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; gap: .25rem; }
.site-nav a { display: block; padding: .75rem; border-radius: .5rem; color: var(--nav-text); font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--brand-primary); }
.site-nav a[aria-current="page"] { background: var(--bg-surface); color: var(--brand-primary-dark); }

/* 6. Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--space-5); }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 999px; background: var(--brand-primary); color: var(--text-on-dark); font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { background: var(--brand-primary-dark); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button--secondary { border-color: var(--border); background: transparent; color: var(--text-primary); }
.button--secondary:hover { background: var(--bg-surface); }
.button--light { background: var(--bg-white); color: var(--brand-primary-dark); }
.button--light:hover { background: var(--brand-accent-soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.section--dark :focus-visible, .price-card :focus-visible, .site-footer :focus-visible { outline-color: var(--brand-accent-soft); }

/* 7. Cards */
.card { height: 100%; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-white); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .65rem; }
.card-icon { display: grid; width: 2.8rem; height: 2.8rem; margin-bottom: 1.1rem; place-items: center; border-radius: .8rem; background: var(--bg-surface); color: var(--brand-primary); font-weight: 800; }
.number { font-family: Georgia, serif; font-size: 1.15rem; }
.check-list, .plain-list { display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before { position: absolute; left: 0; color: var(--brand-primary); font-weight: 900; content: "✓"; }
.plain-list li { padding-bottom: .8rem; border-bottom: 1px solid var(--border); }

/* 8. Homepage */
.home-hero { padding-block: var(--space-7); overflow: hidden; }
.home-hero h1 { max-width: 13ch; }
.home-hero .lede { max-width: 39rem; margin-top: var(--space-4); }
.hero-art { position: relative; min-height: 20rem; margin-top: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-surface); overflow: hidden; }
.hero-art::before, .hero-art::after { position: absolute; border-radius: 999px; content: ""; }
.hero-art::before { width: 16rem; height: 16rem; top: -3rem; right: -3rem; background: var(--brand-accent-soft); }
.hero-art::after { width: 8rem; height: 8rem; bottom: 2rem; left: 2rem; border: 1px solid rgba(18, 76, 59, .3); }
.art-card { position: absolute; z-index: 2; inset: 3rem 1.5rem auto; padding: 2rem; border-radius: var(--radius-md); background: var(--brand-primary); color: var(--text-on-dark); box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.art-card small { color: rgba(255, 255, 255, .78); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.art-card strong { display: block; max-width: 10ch; margin-top: .8rem; font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; }
.art-note { position: absolute; z-index: 3; right: 1rem; bottom: 1.2rem; width: 10rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-white); box-shadow: var(--shadow-sm); font-size: .83rem; font-weight: 700; }
.featured-card { display: grid; overflow: hidden; padding: 0; }
.featured-visual { min-height: 15rem; padding: var(--space-5); display: flex; flex-direction: column; justify-content: flex-end; background: var(--brand-primary); color: var(--text-on-dark); }
.featured-visual span { color: rgba(255, 255, 255, .78); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.featured-visual strong { max-width: 8ch; margin-top: .5rem; font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.5rem); line-height: .98; }
.featured-copy { padding: var(--space-5); }
.featured-copy .button { margin-top: 1.25rem; }
.transparency { padding: var(--space-5); border-left: 4px solid var(--brand-accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--bg-surface); }

/* 9. Product landing */
.disclosure-bar { padding: .7rem 0; border-bottom: 1px solid var(--border); background: var(--bg-surface); font-size: .82rem; }
.disclosure-bar p { color: var(--nav-text); }
.product-hero { padding-block: var(--space-6); }
.product-hero h1 { font-size: clamp(2.125rem, 7.2vw, 4.8rem); }
.product-hero .lede { margin-top: var(--space-4); }
.trust-line { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.4rem; color: var(--text-secondary); font-size: .87rem; font-weight: 650; }
.trust-line span::before { color: var(--product-primary); content: "◆"; margin-right: .45rem; }
.product-hero-image { min-height: 22rem; border-radius: var(--radius-lg); background: var(--border) center / cover no-repeat; box-shadow: var(--shadow-lg); overflow: hidden; }
.product-hero-image img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; object-position: 58% center; }
.stat-band { display: grid; gap: 1px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--border); overflow: hidden; }
.stat { padding: 1.4rem; background: var(--bg-white); }
.stat strong { display: block; color: var(--brand-primary); font-family: Georgia, serif; font-size: 1.8rem; }
.category-card { position: relative; isolation: isolate; display: flex; aspect-ratio: 4 / 3; min-height: 15rem; align-items: flex-end; padding: 0; overflow: hidden; border-color: rgba(123, 81, 53, .28); background: linear-gradient(145deg, var(--brand-primary-dark), var(--product-primary)); color: var(--text-on-dark); box-shadow: var(--shadow-sm); transform: translateY(0); transition: transform 240ms cubic-bezier(.2, .7, .2, 1), box-shadow 240ms ease, border-color 240ms ease; }
.category-card__media, .category-card__overlay { position: absolute; inset: 0; }
.category-card__media { z-index: -2; background: linear-gradient(145deg, var(--brand-primary-dark), var(--product-primary)); }
.category-card__image { width: 100%; height: 100%; object-fit: cover; opacity: .84; transform: scale(1.01); transition: opacity 240ms ease, transform 240ms cubic-bezier(.2, .7, .2, 1); }
.category-card__overlay { z-index: -1; background: linear-gradient(to top, rgba(11, 52, 42, .96) 0%, rgba(11, 52, 42, .72) 48%, rgba(11, 52, 42, .22) 100%); transition: opacity 240ms ease; }
.category-card__content { width: 100%; padding: clamp(1.25rem, 4vw, 2rem); transform: translateY(0); transition: transform 240ms cubic-bezier(.2, .7, .2, 1); }
.category-card span { display: block; margin-bottom: .45rem; color: var(--product-secondary); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-card h3 { margin-bottom: .45rem; color: var(--text-on-dark); font-size: clamp(1.5rem, 3vw, 1.85rem); text-shadow: 0 1px 12px rgba(11, 52, 42, .22); }
.category-card p { max-width: 30ch; color: rgba(255, 255, 255, .88); font-size: .9rem; line-height: 1.45; }
.compare { display: grid; gap: var(--space-4); }
.compare .card:first-child { border-top: 4px solid var(--brand-primary); }
.compare .card:last-child { border-top: 4px solid var(--product-primary); }
.price-card { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--brand-primary-dark); color: var(--text-on-dark); box-shadow: var(--shadow-lg); }
.price-card p { color: rgba(255, 255, 255, .84); }
.price-card .eyebrow { color: var(--brand-accent-soft); }
.price { font-family: Georgia, serif; font-size: clamp(3.5rem, 10vw, 5rem); line-height: 1; }
.price small { font-family: Inter, sans-serif; font-size: .9rem; }
.guarantee { padding: 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); background: rgba(255,255,255,.07); }
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-white); }
.faq summary { position: relative; padding: 1.1rem 3rem 1.1rem 1.15rem; cursor: pointer; font-weight: 750; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 1.05rem; right: 1.1rem; color: var(--brand-primary); content: "+"; font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.15rem 1.15rem; }
.final-cta { text-align: center; }
.final-cta h2 { max-width: 18ch; margin-inline: auto; }
.final-cta p { max-width: 40rem; margin: 1rem auto 0; }
.final-cta .actions { justify-content: center; }
.microcopy { font-size: .8rem; }
.has-sticky-cta { padding-bottom: 5.25rem; }
.sticky-cta { position: fixed; z-index: 25; right: 1rem; bottom: .75rem; left: 1rem; display: flex; opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity .2s, transform .2s; }
.sticky-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Content pages */
.page-hero { padding-block: var(--space-6); border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.page-hero h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); }
.page-hero p { max-width: 42rem; margin-top: 1rem; }
.prose { padding-block: var(--space-6); }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: 1.75rem; }
.prose h3 { margin: 1.7rem 0 .55rem; font-size: 1.2rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0; padding-left: 1.3rem; list-style: disc; color: var(--text-secondary); }
.contact-grid { display: grid; gap: var(--space-5); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 750; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--control-border); border-radius: .6rem; background: var(--bg-white); color: var(--text-primary); }
.field textarea { min-height: 10rem; resize: vertical; }
.status-message { min-height: 1.5rem; font-size: .88rem; }

/* 10. Footer */
.site-footer { padding-block: var(--space-6) var(--space-4); border-top: 1px solid rgba(255,255,255,.12); background: var(--brand-primary-dark); color: var(--text-on-dark); }
.footer-grid { display: grid; gap: var(--space-5); }
.site-footer p, .site-footer a { color: rgba(255, 255, 255, .78); }
.footer-brand p { max-width: 24rem; margin-top: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; }
.footer-links a:hover { color: var(--brand-accent-soft); }
.copyright { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

/* 11. Responsive rules */
@media (min-width: 40rem) {
  .container { width: min(calc(100% - 3rem), var(--container)); }
  .container--narrow { width: min(calc(100% - 3rem), var(--container-narrow)); }
  .grid--2, .compare, .stat-band { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card, .price-card, .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .featured-visual { min-height: 24rem; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 52rem) {
  .section { padding-block: var(--space-8); }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: .2rem; }
  .site-nav a { padding: .55rem .8rem; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .home-hero .split { grid-template-columns: 1.05fr .95fr; }
  .home-hero { padding-block: var(--space-8); }
  .hero-art { min-height: 30rem; margin-top: 0; }
  .art-card { inset: 4rem 3rem auto; }
  .art-note { right: 2rem; bottom: 2rem; }
  .product-hero .split { grid-template-columns: .93fr 1.07fr; }
  .product-hero-image, .product-hero-image img { min-height: 36rem; }
  .stat-band { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { right: 1rem; bottom: 1rem; left: auto; display: inline-flex; }
}
@media (min-width: 64rem) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (hover: hover) and (pointer: fine) {
  .category-card__image { opacity: .72; }
  .category-card:hover { border-color: var(--product-secondary); box-shadow: 0 18px 42px rgba(23, 33, 29, .16); transform: translateY(-4px); }
  .category-card:hover .category-card__image { opacity: 1; transform: scale(1.06); }
  .category-card:hover .category-card__overlay { opacity: .9; }
  .category-card:hover .category-card__content { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .category-card, .category-card__image, .category-card__content { transform: none !important; transition: none !important; }
  .category-card__overlay { transition: none !important; }
}

/* 12. Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-link { color: var(--brand-primary); font-weight: 750; text-underline-offset: .18em; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.center { text-align: center; }
