:root {
  color-scheme: dark;
  --bg: #0e1211;
  --card: #151a18;
  --text: #edf1ef;
  --secondary: #8b938e;
  --hairline: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.05);
  --track: rgba(255, 255, 255, 0.08);
  --green: #83c49c;
  --amber: #b4a76e;
  --product-hunt: #da552f;
  --ink: #0e1211;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; background: var(--bg); }

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

button, a { font: inherit; }
a { color: inherit; }
button { border: 0; }
[hidden] { display: none !important; }

.offer-shell { min-height: 100vh; background: var(--bg); }

.offer-nav {
  width: min(560px, 100%);
  height: 62px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
}

.offer-nav__actions { display: inline-flex; align-items: center; gap: 8px; }

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(131, 196, 156, 0.42);
  border-radius: 999px;
  background: rgba(131, 196, 156, 0.12);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.app-store-button:hover { border-color: rgba(131, 196, 156, 0.7); background: rgba(131, 196, 156, 0.2); transform: translateY(-1px); }
.app-store-button:active { transform: translateY(0); }
.app-store-button__arrow { font-size: 13px; line-height: 0.8; opacity: 0.8; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.brand__icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.language-menu { position: relative; }

.language-menu summary {
  padding: 7px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--fill);
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}

.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: "  ▾"; opacity: 0.7; }

.language-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3;
  width: 180px;
  max-height: 300px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: #18211d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.language-menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--secondary);
  font-size: 13px;
  text-decoration: none;
}

.language-menu__panel a:hover,
.language-menu__panel a[aria-current="page"] { background: var(--fill); color: var(--text); }

.offer-main {
  width: min(420px, calc(100% - 48px));
  min-height: calc(100vh - 62px);
  margin: 0 auto;
  padding: 44px 0 30px;
}

.offer-main__content { display: flex; flex-direction: column; align-items: center; }

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid rgba(218, 85, 47, 0.26);
  border-radius: 999px;
  background: rgba(218, 85, 47, 0.14);
  color: var(--product-hunt);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.offer-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--product-hunt); }

h1 {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--text);
  font-family: Nunito, "SF Pro Rounded", ui-rounded, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.offer-sub {
  max-width: 390px;
  margin: 13px 0 0;
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

.counter { width: 100%; margin-top: 30px; }
.counter__row { display: flex; align-items: baseline; justify-content: center; gap: 7px; }
.counter__row strong { color: var(--green); font-family: Nunito, ui-rounded, system-ui, sans-serif; font-size: 26px; font-weight: 800; line-height: 1; }
.counter__row span { color: var(--secondary); font-size: 12.5px; font-weight: 600; }
.counter__of { opacity: 0.75; }
.counter__track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--track); }
.counter__track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--green); transition: width 180ms ease, background 180ms ease; }
.counter__track span.is-low { background: var(--amber); }

.offer-action { width: 100%; margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 11px; }

.offer-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 17px;
  background: var(--green);
  box-shadow: 0 10px 26px rgba(131, 196, 156, 0.24);
  color: var(--ink);
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease;
}

.offer-button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.offer-button:active:not(:disabled) { transform: translateY(0); }
.offer-button:disabled { cursor: wait; }
.offer-button.is-muted { background: var(--fill); border: 1px solid var(--hairline); box-shadow: none; color: var(--text); }
.offer-button__spinner { width: 15px; height: 15px; display: block; border: 2.2px solid rgba(14, 18, 17, 0.25); border-top-color: var(--ink); border-radius: 50%; animation: bcspin 0.7s linear infinite; }
.offer-button__spinner[hidden] { display: none; }
.offer-button__sub { max-width: 340px; margin: 0; color: var(--secondary); font-size: 12px; line-height: 1.45; text-align: center; text-wrap: pretty; }

.code-card, .desktop-card {
  width: 100%;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--card);
}

.code-card__label { color: var(--secondary); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.code-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.code-card code { color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; font-weight: 600; letter-spacing: 1.5px; word-break: break-all; }
.code-card p, .desktop-card p { margin: 10px 0 0; color: var(--secondary); font-size: 11.5px; line-height: 1.45; text-wrap: pretty; }
.copy-button { padding: 7px 13px; border-radius: 10px; background: rgba(131, 196, 156, 0.13); color: var(--green); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.copy-button:hover { background: rgba(131, 196, 156, 0.2); }
.desktop-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.desktop-card__qr { width: 126px; height: 126px; image-rendering: pixelated; }

.offer-steps { width: 100%; margin: 30px 0 0; padding: 22px 0 0; display: flex; flex-direction: column; gap: 13px; border-top: 1px solid var(--hairline); list-style: none; }
.offer-steps li { display: flex; align-items: center; gap: 12px; }
.offer-steps li > span { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(131, 196, 156, 0.14); color: var(--green); font-family: Nunito, ui-rounded, system-ui, sans-serif; font-size: 11.5px; font-weight: 800; }
.offer-steps p { margin: 0; color: var(--secondary); font-size: 13.5px; line-height: 1.4; text-wrap: pretty; }
.offer-error { width: 100%; margin: 18px 0 0; padding: 11px 13px; border: 1px solid rgba(180, 167, 110, 0.3); border-radius: 12px; color: var(--amber); font-size: 12px; line-height: 1.45; text-align: center; }

.offer-seo { width: 100%; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--hairline); }
.offer-seo h2 { margin: 0; color: var(--text); font-family: Nunito, "SF Pro Rounded", ui-rounded, system-ui, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.35px; line-height: 1.2; }
.offer-seo h2 + p { margin-top: 13px; }
.offer-seo p { margin: 12px 0 0; color: var(--secondary); font-size: 13.5px; line-height: 1.55; text-wrap: pretty; }
.offer-seo h2:nth-of-type(2) { margin-top: 30px; }
.offer-seo__faq { margin-top: 12px; padding: 13px 14px; border: 1px solid var(--hairline); border-radius: 13px; background: var(--fill); }
.offer-seo__faq summary { color: var(--text); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.4; }
.offer-seo__faq p { margin-top: 9px; font-size: 12.5px; }

.offer-footer { width: min(420px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 30px; border-top: 1px solid var(--hairline); text-align: center; }
.offer-legal { margin: 0; color: var(--secondary); font-size: 11px; line-height: 1.5; opacity: 0.85; }
.offer-links { margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.offer-links a { color: var(--green); font-size: 12px; font-weight: 600; text-decoration: none; }
.offer-links a:hover { text-decoration: underline; }
.offer-links span { width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); opacity: 0.45; }
.offer-copyright { margin: 13px 0 0; color: var(--secondary); font-size: 11px; opacity: 0.7; }

.analytics-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 8;
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(21, 26, 24, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.45;
}

.analytics-consent p { margin: 0; }
.analytics-consent > a { display: inline-block; margin-top: 4px; color: var(--green); font-size: 11px; }
.analytics-consent__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.analytics-consent__actions button { padding: 7px 11px; border-radius: 9px; background: var(--fill); color: var(--secondary); cursor: pointer; font-size: 11.5px; font-weight: 700; }
.analytics-consent__actions button:last-child { background: var(--green); color: var(--ink); }
.analytics-consent__actions button:hover { filter: brightness(1.08); }

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

@keyframes bcspin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .offer-nav { padding: 0 18px; }
  .offer-main { width: min(100% - 32px, 420px); padding-top: 38px; }
  .offer-footer { width: min(100% - 32px, 420px); }
  h1 { font-size: 32px; }
  .analytics-consent { right: 8px; bottom: 8px; left: 8px; width: calc(100% - 16px); }
}

@media (max-width: 380px) {
  .offer-nav { padding-inline: 12px; }
  .offer-nav__actions { gap: 6px; }
  .app-store-button { padding-inline: 9px; }
  .language-menu summary { padding-inline: 9px; }
  .brand { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
