:root {
  --ink: #102321;
  --muted: #5d716e;
  --paper: #ffffff;
  --wash: #f3f8f7;
  --line: #dce9e6;
  --brand: #0f766e;
  --brand-dark: #0b5d57;
  --accent: #ccfbf1;
  --warm: #fff8eb;
  --shadow: 0 18px 45px rgba(16, 70, 64, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
.container { width: min(1100px, calc(100% - 30px)); margin: auto; }

button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .28);
  outline-offset: 2px;
}

.page { padding: 19px 0 54px; }
.page > h1 {
  max-width: 930px;
  margin: 0;
  padding: 2px 0 3px 14px;
  border-left: 4px solid var(--brand);
  font-size: clamp(1.75rem, 7.5vw, 2.65rem);
  font-weight: 810;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
  animation: rise-in .38s ease-out both;
}
.page > h1:focus { outline: none; }
.page-description {
  max-width: 770px;
  margin: 10px 0 17px;
  color: #49615e;
  font-size: .95rem;
  animation: rise-in .38s .05s ease-out both;
}
.page-section {
  margin-top: 31px;
  scroll-margin-top: 65px;
  animation: rise-in .44s .1s ease-out both;
}
.page-section:first-of-type { margin-top: 0; }
.section-title, .faq h2 {
  margin: 0 0 5px;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.section-description {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .94rem;
}

.coupon-list, .deal-list, .expired-list { display: grid; gap: 12px; }
.coupon {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  padding: 16px;
  box-shadow: 0 5px 20px rgba(16, 35, 33, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.coupon.is-revealed {
  border-color: var(--brand);
  background: #f5fffc;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12), var(--shadow);
}
.coupon.is-recommended {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12), var(--shadow);
}
.coupon h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.016em; }
.coupon-description { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.coupon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.code {
  border: 1px dashed #66bdb4;
  border-radius: 8px;
  background: #effcf9;
  color: var(--brand-dark);
  padding: 9px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  font-weight: 800;
}
.coupon.is-revealed .coupon-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 54px;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed #66bdb4;
  border-radius: 11px;
  background: #effcf9;
}
.coupon.is-revealed .code {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 13px 14px;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy, .savings-form button, .savings-result button {
  width: 100%;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-weight: 760;
  box-shadow: 0 5px 14px rgba(15, 118, 110, .18);
  transition: background .18s ease, transform .12s ease;
}
.copy:hover, .savings-form button:hover, .savings-result button:hover { background: var(--brand-dark); }
.copy:active, .savings-form button:active, .savings-result button:active { transform: scale(.98); }
.copy.is-copied { background: #16845b; }
.coupon.is-revealed .copy {
  align-self: stretch;
  width: auto;
  min-width: 88px;
  margin: 6px;
  border-radius: 999px;
  background: #d5ebe7;
  color: #075e57;
  padding: 7px 14px;
  box-shadow: none;
}
.coupon.is-revealed .copy:hover,
.coupon.is-revealed .copy:focus {
  background: #c3e1dc;
}
.coupon.is-revealed .copy.is-copied,
.coupon.is-revealed .copy.is-copied:hover,
.coupon.is-revealed .copy.is-copied:focus {
  background: #16845b;
  color: #fff;
}

.savings-tool {
  display: grid;
  gap: 15px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 17px;
}
.savings-label {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.savings-tool h2 { margin: 0; font-size: 1.25rem; line-height: 1.22; letter-spacing: -.03em; }
.savings-tool-copy > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.savings-form { display: grid; gap: 9px; }
.savings-form > label:first-child { font-size: .84rem; font-weight: 760; }
.money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bfd2cf;
  border-radius: 9px;
  background: #fff;
}
.money-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.money-input span { padding-left: 12px; color: var(--muted); font-weight: 750; }
.money-input input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 10px 12px 10px 5px; background: transparent; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.check-row input { width: 17px; height: 17px; accent-color: var(--brand); }
.savings-result { min-height: 54px; border-radius: 10px; background: #f1f7f6; padding: 13px 14px; color: #49615e; font-size: .9rem; }
.savings-result strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 1rem; }
.savings-result p { margin: 0; }
.savings-result button { margin-top: 10px; }

.deal-card {
  border: 1px solid #cce7e2;
  border-left: 4px solid var(--brand);
  border-radius: 15px;
  background: linear-gradient(135deg, #eaf9f6, #fbfffe);
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.deal-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.deal-card p { margin: 0; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.status-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px; }
.status-card strong { display: block; font-size: 1.35rem; letter-spacing: -.04em; }
.status-card span { color: var(--muted); font-size: .8rem; }
.expired-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}
.expired-details { display: grid; gap: 3px; }
.expired-code { color: #546562; font-weight: 800; text-decoration: line-through; }
.expired-offer { color: var(--muted); font-size: .88rem; }
.expired-label {
  flex: 0 0 auto;
  border: 1px solid #f4c7ca;
  border-radius: 999px;
  background: #fff3f3;
  color: #a73c44;
  padding: 5px 8px;
  font-size: .68rem;
  font-weight: 820;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 16px;
}
.faq details { border-top: 1px solid var(--line); transition: background .18s ease; }
.faq details[open] { margin: 0 -8px; border-radius: 10px; background: #f2faf8; padding: 0 8px 12px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 12px 0;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 730;
  line-height: 1.35;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-dark);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq-answer { color: var(--muted); font-size: .91rem; }
.faq-answer p { margin: 0; }
.faq-answer ol, .faq-answer ul { margin: 0; padding-left: 1.25rem; }
.faq-answer li + li { margin-top: 5px; }
@supports selector(details::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    overflow: hidden;
    block-size: 0;
    opacity: 0;
    transition: block-size .2s ease, opacity .18s ease, content-visibility .2s;
    transition-behavior: allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; color: var(--muted); font-size: .86rem; }
.footer-inner { width: min(1100px, calc(100% - 30px)); margin: auto; }
.footer-inner p { max-width: 820px; margin: 0; }
.notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 950;
  transform: translate(-50%, 110px);
  border-radius: 9px;
  background: #16322f;
  color: #fff;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 720;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.notice.show { transform: translate(-50%, 0); }
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .18s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); }

@media (hover: hover) {
  .coupon:hover, .deal-card:hover { transform: translateY(-2px); border-color: #9dd2cb; box-shadow: 0 11px 27px rgba(16, 70, 64, .09); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
@media (min-width: 800px) {
  .page { padding-top: 25px; }
  .page > h1 { max-width: 100%; padding-left: 18px; font-size: clamp(2.25rem, 3.15vw, 2.7rem); }
  .page-description, .section-description { max-width: 1000px; }
  .coupon { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 19px; }
  .coupon-actions { width: auto; flex-wrap: nowrap; justify-content: flex-end; }
  .copy { width: auto; min-width: 112px; }
  .coupon.is-revealed .coupon-actions { width: 310px; }
  .savings-tool { grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); align-items: start; padding: 20px; }
  .savings-result { grid-column: 1 / -1; }
  .savings-result button { width: auto; }
  .status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
