/* ============================================================
   AutoMill landing page — styles
   Palette: warm cream bg, charcoal ink, brass accent.
   Mobile-first. No framework.
   ============================================================ */

:root {
  --cream: #faf7f2;
  --cream-2: #f1ece3;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --brass: #c8a24b;
  --brass-dark: #a9853a;
  --green: #2f8f5b;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 18px 50px rgba(28, 26, 23, 0.14);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; font-weight: 600; }
em { font-style: italic; color: var(--brass-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 64px 0; }
.section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); text-align: center; margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--brass); color: #211c10;
  box-shadow: 0 8px 22px rgba(200, 162, 75, .42);
}
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 162, 75, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { font-size: 1.12rem; padding: 17px 34px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Announce bar ---------- */
.announce {
  background: var(--ink); color: var(--cream);
  text-align: center; font-size: .82rem; font-weight: 600;
  padding: 9px 12px; letter-spacing: .02em;
  display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.announce-sep { opacity: .4; }
.countdown { color: var(--brass); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-tm { font-size: .7rem; vertical-align: super; color: var(--brass-dark); }
.header-cta {
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-weight: 600; font-size: .85rem; padding: 9px 16px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-media { position: relative; }
.hero-copy .stars-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.stars { color: var(--brass); letter-spacing: 2px; }
.stars-count { font-size: .85rem; color: var(--ink-soft); }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 700; margin-bottom: 16px; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 20px; }
.hero-bullets { list-style: none; margin-bottom: 24px; display: grid; gap: 8px; }
.hero-bullets li { font-size: .98rem; font-weight: 500; }

.hero-price { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.price-now { font-size: 2.2rem; font-weight: 800; font-family: "Fraunces", serif; }
.price-was { font-size: 1.2rem; color: var(--ink-soft); text-decoration: line-through; }
.price-tag { background: #f6e2c0; color: var(--brass-dark); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }

.badge-floating {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: var(--cream); font-size: .8rem; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow);
}

/* ---------- Media placeholders (replace with real assets) ---------- */
.media-placeholder {
  background: #ece5d8;
  border: 2px dashed #cdc1ac;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #8a8170; gap: 6px; padding: 20px;
}
.media-placeholder span { font-weight: 600; font-size: 1rem; }
.media-placeholder small { font-size: .75rem; opacity: .8; }
.hero-img { aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); }
.step-img { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.video-placeholder { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }

/* Real <img> assets reuse the same sizing classes */
img.hero-img, img.step-img, img.demo-img {
  width: 100%; object-fit: cover; display: block; border: none;
  background: var(--white);
}
img.demo-img { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }
img.step-img { padding: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink); color: var(--cream); padding: 22px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.trust-inner strong { display: block; font-family: "Fraunces", serif; font-size: 1.25rem; color: var(--brass); }
.trust-inner span { font-size: .78rem; opacity: .85; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; gap: 18px; }
.problem-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.problem-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.problem-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.problem-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- How it works ---------- */
.how { background: var(--cream-2); }
.steps-grid { display: grid; gap: 24px; margin-bottom: 36px; }
.step { position: relative; text-align: center; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: #211c10;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; }
.how .center { margin-top: 8px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature span { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Compare ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table thead th { background: var(--cream-2); font-family: "Fraunces", serif; }
.compare-table .us { background: #fbf4e6; font-weight: 700; }
.compare-table th.us { color: var(--brass-dark); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 20px; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review-card .stars { display: block; margin-bottom: 10px; }
.review-card blockquote { font-size: 1rem; margin-bottom: 12px; }
.review-card figcaption { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.verified { color: var(--green); font-weight: 600; margin-left: 4px; }

/* ---------- Offer / bundles ---------- */
.offer { background: var(--cream-2); }
.offer-sub { text-align: center; color: var(--ink-soft); margin-bottom: 28px; }
.bundle-grid { display: grid; gap: 14px; margin-bottom: 24px; }
.bundle {
  position: relative; display: block; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 52px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.bundle input { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; accent-color: var(--brass); }
.bundle:hover { border-color: var(--brass); }
.bundle:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,162,75,.2); background: #fffdf8; }
.bundle-qty { font-weight: 700; font-size: 1.1rem; }
.bundle-price { margin-top: 4px; }
.bundle-price strong { font-size: 1.3rem; font-family: "Fraunces", serif; }
.bundle-price s { color: var(--ink-soft); font-size: .9rem; margin-left: 6px; }
.bundle-note { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.ribbon {
  position: absolute; top: -11px; right: 16px;
  background: var(--brass); color: #211c10; font-size: .68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.ribbon-alt { background: var(--ink); color: var(--cream); }
.bundle-best { border-color: var(--brass); }

/* Color picker */
.offer-price-block { display: flex; gap: 12px; justify-content: center; align-items: center; margin-bottom: 24px; }
.offer-price-block .price-now { font-size: 2rem; font-weight: 800; font-family: "Fraunces", serif; }
.offer-price-block .price-was { font-size: 1.1rem; color: var(--ink-soft); text-decoration: line-through; }
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.swatch {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px; background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:hover { border-color: var(--brass); }
.swatch:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,162,75,.2); }
.swatch-dot { width: 36px; height: 36px; border-radius: 50%; display: block; }
.swatch-name { font-size: .85rem; font-weight: 600; }

.offer-trust { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 16px; font-size: .82rem; color: var(--ink-soft); }
.payment-logos { text-align: center; font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Guarantee ---------- */
.guarantee-badge {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--green); color: #fff; font-family: "Fraunces", serif; font-weight: 700;
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(47,143,91,.35);
}
.guarantee p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brass-dark); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: var(--cream); }
.final-cta h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 12px; }
.final-cta p { color: rgba(250,247,242,.75); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #14120f; color: #b8b1a4; padding: 40px 0 90px; text-align: center; }
.footer-brand { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--cream); margin-bottom: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 16px; }
.footer-nav a { color: #b8b1a4; text-decoration: none; font-size: .88rem; }
.footer-nav a:hover { color: var(--brass); }
.footer-fine { font-size: .72rem; opacity: .6; max-width: 600px; margin: 0 auto; }

/* ---------- Sticky mobile buy bar ---------- */
.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(28,26,23,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; transform: translateY(120%); transition: transform .3s ease;
}
.sticky-buy.show { transform: translateY(0); }
.sticky-price { font-weight: 800; font-size: 1.2rem; font-family: "Fraunces", serif; }
.sticky-was { text-decoration: line-through; color: var(--ink-soft); font-size: .9rem; margin-left: 6px; }
.sticky-btn { padding: 12px 20px; font-size: .95rem; }

/* ============================================================
   Desktop / tablet
   ============================================================ */
@media (min-width: 760px) {
  .section { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { order: 2; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .bundle-grid { grid-template-columns: repeat(3, 1fr); }
  .bundle { padding: 28px 20px 20px; text-align: center; }
  .bundle input { left: 50%; top: 16px; transform: translateX(-50%); }
  .sticky-buy { display: none; } /* sticky bar is mobile-only */
}
