/* HometownHeroPromoCode.com ------------------------------------------
   Palette from brand assets:
   teal  #1B4356 (wordmark)  ·  terracotta #DB7E5A (tab icon)
   cream #F6F0E4             ·  Jost display / Inter body
--------------------------------------------------------------------- */

:root {
  --bg:          #F6F0E4;
  --bg-soft:     #EFE6D3;
  --surface:     #FDFBF5;
  --ink:         #1B4356;
  --muted:       #58707E;
  --accent:      #DB7E5A;
  --accent-deep: #C4643F;
  --accent-ink:  #FFFFFF;
  --code-bg:     #1B4356;
  --code-ink:    #F6F0E4;
  --line:        rgba(27, 67, 86, 0.16);
  --shadow:      0 18px 40px -18px rgba(27, 67, 86, 0.35);
}

html[data-theme="dark"] {
  --bg:          #0E2530;
  --bg-soft:     #0A1D26;
  --surface:     #16323F;
  --ink:         #F1E9D8;
  --muted:       #9DB3BD;
  --accent:      #E08A64;
  --accent-deep: #C4643F;
  --accent-ink:  #14232B;
  --code-bg:     #F1E9D8;
  --code-ink:    #14313F;
  --line:        rgba(241, 233, 216, 0.16);
  --shadow:      0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Jost', 'Futura', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

a { color: var(--accent-deep); }
html[data-theme="dark"] a { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- announcement bar ---- */
.announce {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ---- header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease;
}
.theme-toggle:hover { transform: scale(1.07); }
html[data-theme="light"] .ico-sun,
html[data-theme="dark"] .ico-moon { display: none; }

/* ---- hero ---- */
.hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
}

.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.hero h1 .accent { color: var(--accent); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}
.lede strong { color: var(--ink); }

/* ---- the coupon (signature element) ---- */
.coupon {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.75rem 1.75rem;
  max-width: 30rem;
  margin: 0 auto;
}

.coupon-mascot {
  position: absolute;
  top: -52px;
  right: -18px;
  width: 96px;
  height: 96px;
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 12px rgba(27, 67, 86, 0.25));
}

/* punched notches on the tear line */
.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 4.35rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.coupon::before { left: -14px; border-left-color: transparent; }
.coupon::after  { right: -14px; border-right-color: transparent; }

.coupon-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.coupon-tag {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-deep);
}
html[data-theme="dark"] .coupon-tag { color: var(--accent); }

.coupon-min {
  font-size: 0.82rem;
  color: var(--muted);
}

.coupon-tear {
  border-top: 2px dashed var(--line);
  margin: 1.1rem -1.75rem 1.4rem;
}

.coupon-body {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.promo-code {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  user-select: all;
}

.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-copy {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-deep);
}
html[data-theme="dark"] .btn-copy { color: var(--accent); }
.btn-copy.is-copied {
  background: var(--accent);
  color: var(--accent-ink);
}

.coupon-actions { margin-top: 1rem; }

.btn-shop {
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
  text-align: center;
}
.btn-shop:hover { background: var(--accent-deep); color: #fff; }

/* ---- sections ---- */
.steps, .faq {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.steps h2, .faq h2, .cta-final h2 { text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.9rem); }

.step-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step-list h3 { font-size: 1rem; margin-bottom: 0.35em; }
.step-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-list p strong { color: var(--ink); }

/* ---- about ---- */
.about {
  background: var(--bg-soft);
  padding: 3rem 1.25rem;
  transition: background-color .25s ease;
}

.about-photo, .about-copy {
  max-width: 62rem;
  margin: 0 auto;
}
.about-photo { margin-bottom: 2rem; }
.about-photo img { border-radius: 16px; box-shadow: var(--shadow); }
.about-copy h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.about-copy p { color: var(--muted); max-width: 46rem; }
.about-copy em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ---- FAQ ---- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.25rem;
  margin-top: 0.85rem;
}
.faq details:first-of-type { margin-top: 2rem; }

.faq summary {
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 500;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* ---- final CTA ---- */
.cta-final {
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  max-width: 30rem;
  margin: 0 auto;
}
.cta-final p { color: var(--muted); margin: 0 0 1.5rem; }
.cta-final p strong { color: var(--ink); letter-spacing: 0.1em; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.site-footer p { max-width: 44rem; margin: 0 auto 0.6rem; }

.unofficial {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--ink);
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .step-list { grid-template-columns: 1fr; }
  .coupon-body { flex-direction: column; }
  .promo-code { font-size: 1.45rem; padding: 0.8rem 1rem; }
  .coupon-mascot { width: 72px; height: 72px; top: -40px; right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .theme-toggle:hover { transform: none; }
}
