/* =========================================================
   THEME TOKENS
   ========================================================= */
:root {
  color-scheme: dark;

  --max-width: 1120px;
  --header-width: 1180px;

  --bg-main: linear-gradient(135deg, #050814 0%, #07111f 52%, #101b38 100%);

  --surface: rgba(8, 12, 26, 0.88);
  --surface-strong: rgba(8, 11, 23, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.055);

  --text-main: #f7f9ff;
  --text-soft: #dee7f4;
  --text-muted: #aab7cf;

  --accent: #8b0000;

--taprate: #ffc256;
--taprate-soft: rgba(255, 194, 86, 0.13);
--taprate-border: rgba(255, 194, 86, 0.34);
--taprate-strong: #ffd889;
--taprate-bright: #ffcf70;
--taprate-deep: #ff9f43;

  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 79, 100, 0.32);

  --sidebar-bg: rgba(7, 10, 22, 0.96);
  --sidebar-divider: rgba(255, 255, 255, 0.12);

  --btn-text: #ffffff;

  --product-bg: rgba(10, 16, 34, 0.72);
  --product-overlay:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0) 58%);

  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 22px 46px rgba(0, 0, 0, 0.34);
  --shadow-atmosphere:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.26);

--focus-ring: rgba(255, 194, 86, 0.92);

--hero-halo:
  radial-gradient(circle at 50% 38%, rgba(255, 194, 86, 0.15), transparent 26%),
  radial-gradient(circle at 61% 50%, rgba(255, 207, 112, 0.1), transparent 29%);

  --hero-title-gradient: linear-gradient(
    90deg,
    #ffb300 0%,
    #ffd889 32%,
    #ffd166 68%,
    #ffc256 100%
  );

--cursor-aura:
  radial-gradient(circle, rgba(255, 194, 86, 0.28) 0%, rgba(255, 159, 67, 0.17) 44%, transparent 72%);
}

body[data-theme="light"] {
  color-scheme: light;

  --bg-main: linear-gradient(135deg, #fffefd 0%, #fff7fb 52%, #f3edf8 100%);

  --surface: rgba(255, 249, 252, 0.92);
  --surface-strong: rgba(255, 252, 254, 0.94);
  --surface-soft: rgba(67, 48, 86, 0.055);

  --text-main: #181923;
  --text-soft: #2a2d40;
  --text-muted: #676a7b;

  --accent: #9f2449;

--taprate: #a66200;
--taprate-soft: rgba(255, 194, 86, 0.18);
--taprate-border: rgba(166, 98, 0, 0.28);
--taprate-strong: #a66200;
--taprate-bright: #b56d0c;
--taprate-deep: #9a5200;

  --border: rgba(42, 30, 59, 0.11);
  --border-strong: rgba(217, 88, 130, 0.28);

  --sidebar-bg: rgba(255, 249, 252, 0.97);
  --sidebar-divider: rgba(42, 30, 59, 0.12);

  --btn-text: #181923;

  --product-bg: rgba(255, 252, 254, 0.78);
  --product-overlay:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 56%);

  --shadow-soft: 0 12px 24px rgba(50, 32, 65, 0.09);
  --shadow-card: 0 22px 44px rgba(50, 32, 65, 0.13);
  --shadow-atmosphere:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 18px 40px rgba(50, 32, 65, 0.08);

--focus-ring: rgba(166, 98, 0, 0.86);

--hero-halo:
  radial-gradient(circle at 50% 38%, rgba(255, 194, 86, 0.15), transparent 25%),
  radial-gradient(circle at 61% 50%, rgba(255, 207, 112, 0.1), transparent 30%);

  --hero-title-gradient: linear-gradient(
    90deg,
    #7a4300 0%,
    #965800 42%,
    #a66200 100%
  );
--cursor-aura:
  radial-gradient(circle, rgba(255, 194, 86, 0.2) 0%, rgba(255, 159, 67, 0.13) 46%, transparent 72%);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

main#main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  top: -52px;
  left: 16px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  padding: 14px 16px 0;
}

.header-shell {
  width: min(var(--header-width), calc(100vw - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--surface-soft), transparent),
    var(--surface);
  box-shadow: var(--shadow-atmosphere);
}

.brand__mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__sub {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav > a,
.desktop-products-toggle {
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  appearance: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a:focus-visible,
.desktop-products-toggle:hover,
.desktop-products-toggle:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-soft);
  border-color: var(--border);
}

.desktop-nav > a.active,
.desktop-nav > a[aria-current="page"],
.desktop-products-toggle.is-active {
  border-color: var(--taprate-border);
  background: var(--surface-soft);
  font-weight: 500;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
}

.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.22s ease;
}

.desktop-products-toggle[aria-expanded="true"] .toggle-icon,
.submenu-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.dropdown-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  transform: translateX(4px);
  background: var(--surface-soft);
  color: var(--text-main);
}

.dropdown-panel a.active,
.dropdown-panel a[aria-current="page"] {
  background: var(--taprate-soft);
  color: var(--taprate-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-soft);
  border-color: var(--taprate-border);
}

.theme-toggle__icon {
  line-height: 1;
}

.hamburger {
  display: none;
}

.hamburger__lines {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
}

.hamburger__line {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    top 0.22s ease;
}

.hamburger__line--top {
  top: 0;
}

.hamburger__line--middle {
  top: 6.75px;
}

.hamburger__line--bottom {
  top: 13.5px;
}

.hamburger.active .hamburger__line--top {
  top: 6.75px;
  transform: rotate(45deg);
}

.hamburger.active .hamburger__line--middle {
  opacity: 0;
  transform: scaleX(0.72);
}

.hamburger.active .hamburger__line--bottom {
  top: 6.75px;
  transform: rotate(-45deg);
}

/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(4, 6, 12, 0.52);
  backdrop-filter: blur(4px);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1100;
  width: min(340px, 88vw);
  padding: 92px 24px 28px;
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transform: translateX(-104%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    visibility 0.28s ease;
}

.sidebar.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.sidebar > ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar li {
  border-bottom: 1px solid var(--sidebar-divider);
}

.sidebar li.has-submenu {
  border-bottom: none;
  margin-bottom: -0.2rem;
}

.sidebar a {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  transform: translateX(4px);
  color: var(--taprate-strong);
}

.sidebar a.active,
.sidebar a[aria-current="page"] {
  position: relative;
  transform: translateX(4px);
  color: var(--taprate-strong);
}

.sidebar a.active::before,
.sidebar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--taprate), var(--taprate-deep));
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.22);
  transform: translateY(-50%);
}

.menu-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-divider);
}

.menu-link {
  flex: 1;
  min-height: 50px;
  padding: 0;
}

.submenu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--taprate-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--taprate);
  background: var(--surface-soft);
}

.submenu {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1rem;
  padding-left: 0.3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sidebar-divider);
}

.submenu li {
  margin-right: 20px;
}

.submenu a {
  min-height: 38px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   PRODUCT HERO
   ========================================================= */
.product-hero {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 92px 16px 46px;
  text-align: center;
  isolation: isolate;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 48px 14% auto;
  z-index: -1;
  height: 230px;
  background: var(--hero-halo);
  filter: blur(48px);
  opacity: 0.78;
}

.product-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--taprate-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-hero h1 {
  display: inline-block;
  margin-inline: -0.04em;
  padding: 0 0.1em 0.08em 0.04em;
  background: var(--hero-title-gradient);
  font-size: clamp(2.7rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.06em;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  max-width: 50ch;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* =========================================================
   TAPRATE TOOL
   ========================================================= */
.taprate-section {
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
  padding: 14px 0 78px;
}

.taprate-card {
  position: relative;
  overflow: hidden;
  padding: 2.1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    var(--product-overlay),
    linear-gradient(135deg, var(--taprate-soft), transparent 44%),
    var(--product-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.taprate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 58%);
  opacity: 0.62;
  pointer-events: none;
}

.taprate-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--taprate), var(--taprate-deep));
  pointer-events: none;
}

.taprate-card:hover,
.taprate-card:focus-within {
  transform: translateY(-5px);
  border-color: var(--taprate-border);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(255, 209, 102, 0.08);
}

.taprate-card__intro,
.taprate-panel {
  position: relative;
  z-index: 2;
}

.taprate-card__intro {
  max-width: 68ch;
  margin-bottom: 1.8rem;
}

.product-kicker {
  margin-bottom: 0.65rem;
  color: var(--taprate-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.taprate-card h2 {
  margin-bottom: 0.55rem;
  color: var(--text-main);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.taprate-card p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* =========================================================
   RATING PANEL
   ========================================================= */
.taprate-panel {
  padding: clamp(1.35rem, 3vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 194, 86, 0.08), rgba(255, 159, 67, 0.04)),
    var(--surface);
  box-shadow: var(--shadow-atmosphere);
  text-align: center;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.taprate-panel:hover,
.taprate-panel:focus-within {
  transform: translateY(-2px);
  border-color: var(--taprate-border);
  box-shadow:
    var(--shadow-atmosphere),
    0 0 26px rgba(255, 209, 102, 0.11);
}

.rate-top {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.rate-logo {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  object-fit: contain;
  border: 1px solid var(--taprate-border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, var(--surface-soft), transparent),
    var(--surface);
  box-shadow: var(--shadow-atmosphere);
}

.rate-title {
  max-width: 36ch;
  margin: 0 auto 0.45rem;
  color: var(--text-main);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.rate-hint {
  margin-bottom: 1.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.rate-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}

.rating {
  width: min(100%, 164px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    filter 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rating:hover,
.rating:focus-visible {
  transform: translateY(-3px) scale(1.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 38px rgba(0, 0, 0, 0.3);
}

.rating:active {
  transform: scale(0.94);
}

.rating .emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 1;
  transform: translateY(2px);
}

.rating--angry {
  background: linear-gradient(135deg, #ff5a5f, #c81e2b);
}

.rating--sad {
  background: linear-gradient(135deg, #ff9f43, #e46b1a);
}

.rating--neutral {
  background: linear-gradient(135deg, #ffd166, #e5a900);
}

.rating--happy {
  background: linear-gradient(135deg, #a3d977, #57ad4f);
}

.rating--great {
  background: linear-gradient(135deg, #5ee2a0, #1f8f5f);
}

.rate-buttons.sending .rating {
  opacity: 0.52;
  filter: grayscale(0.18);
  pointer-events: none;
  transform: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  z-index: 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.78em 1.55em;
  border: 1px solid var(--product-button-border, var(--taprate-border));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--product-button-bg, linear-gradient(135deg, rgba(255, 194, 86, 0.14), rgba(255, 207, 112, 0.075)));
  color: var(--btn-text);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    opacity 0.24s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0 30%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 0.36s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) scale(1.018);
  border-color: var(--product-button-border-hover, rgba(255, 207, 112, 0.66));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    var(--product-button-hover, linear-gradient(135deg, rgba(255, 194, 86, 0.82), rgba(255, 159, 67, 0.56)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--product-button-shadow, 0 14px 30px rgba(255, 194, 86, 0.16));
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(110%);
}

.btn--secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.035);
}

body[data-theme="light"] .btn {
  color: #181923;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(50, 32, 65, 0.06);
}

/* =========================================================
   SUPPORT LINKS
   ========================================================= */
.tool-links,
.seo-note {
  max-width: 720px;
  margin-inline: auto;
  color: var(--text-muted);
  text-align: center;
}

.tool-links {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  line-height: 1.8;
}

.tool-links a {
  color: var(--taprate-strong);
  font-weight: 600;
  transition: color 0.2s ease;
}

.tool-links a:hover,
.tool-links a:focus-visible {
  color: var(--text-main);
}

.seo-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.back-btn {
  min-width: 190px;
}

/* =========================================================
   THANKS OVERLAY
   ========================================================= */
.thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 12, 0.62);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.thanks-overlay[aria-hidden="false"] {
  display: flex;
  pointer-events: auto;
}

.thanks-box {
  width: min(94vw, 860px);
  padding: clamp(1.35rem, 4vw, 2.1rem);
  border: 1px solid var(--taprate-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--surface-strong);
  color: var(--text-main);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* =========================================================
   CURSOR AURA
   ========================================================= */
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1600;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--cursor-aura);
  opacity: 0;
  filter: blur(10px) saturate(1.1);
  pointer-events: none;
  transform: translate3d(-120px, -120px, 0);
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
  will-change: transform;
}

.cursor-aura::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.72);
  image-rendering: pixelated;
  box-shadow:
    4px 0 0 rgba(255, 255, 255, 0.72),
    8px 0 0 rgba(255, 255, 255, 0.48),
    4px 4px 0 rgba(255, 255, 255, 0.82),
    4px 8px 0 rgba(255, 255, 255, 0.52);
}

body[data-theme="light"] .cursor-aura::before {
  background: rgba(255, 194, 86, 0.74);
  box-shadow:
    4px 0 0 rgba(255, 194, 86, 0.74),
    8px 0 0 rgba(255, 159, 67, 0.42),
    4px 4px 0 rgba(255, 255, 255, 0.82),
    4px 8px 0 rgba(255, 194, 86, 0.44);
}

.cursor-aura.is-visible {
  opacity: 0.62;
}

.cursor-aura.is-active {
  opacity: 0.88;
  filter: blur(7px) saturate(1.16);
}

.cursor-aura.is-pressed {
  opacity: 0.48;
}

/* =========================================================
   FOCUS
   ========================================================= */
a:focus-visible,
button:focus-visible,
.taprate-card:focus-visible,
.taprate-panel:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: grid;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .header-shell,
  .product-hero,
  .taprate-section {
    width: calc(100vw - 24px);
  }

  .brand__sub {
    display: none;
  }

  .product-hero {
    padding-top: 78px;
    padding-bottom: 34px;
  }

  .product-hero::before {
    inset: 42px 8% auto;
    height: 185px;
    filter: blur(42px);
  }

  .product-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
  }

  .product-hero h1 {
    margin-inline: -0.04em;
    padding: 0 0.1em 0.09em 0.04em;
    font-size: clamp(2.45rem, 14vw, 3.4rem);
    line-height: 1.06;
  }

  .subtitle {
    max-width: 36ch;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .taprate-section {
    padding-top: 4px;
    padding-bottom: 64px;
  }

  .taprate-card {
    padding: 1.45rem 1.2rem 1.35rem;
    border-radius: 22px;
  }

  .taprate-card__intro {
    margin-bottom: 1.25rem;
  }

  .taprate-card h2 {
    font-size: 1.65rem;
  }

  .taprate-card p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .taprate-panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .rate-buttons {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 0.45rem;
  }

  .rating {
    width: min(100%, 74px);
  }

  .rating .emoji {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
  }

  .btn {
    width: 100%;
    min-height: 42px;
    padding: 0.72rem 1.15rem;
    font-size: 0.88rem;
  }

  .tool-links {
    margin-top: 1.05rem;
    font-size: 0.82rem;
  }

  .seo-note {
    font-size: 0.84rem;
    line-height: 1.62;
  }

  .site-footer {
    margin-bottom: 2rem;
    padding: 0 12px;
  }
}

@media (max-width: 420px) {
  .rate-buttons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.32rem;
  }

  .rating {
    width: min(100%, 54px);
  }

  .rating .emoji {
    font-size: 1.65rem;
  }
}

@media (max-width: 360px) {
  .taprate-card {
    padding-inline: 1rem;
  }

  .submenu li {
    margin-right: 12px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .product-hero {
    padding-top: 44px;
    padding-bottom: 22px;
  }

  .rate-logo {
    width: 62px;
    height: 62px;
  }

  .rating {
    width: min(100%, 82px);
  }

  .rating .emoji {
    font-size: 2.4rem;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .cursor-aura {
    display: none !important;
  }

  .taprate-card:hover,
  .taprate-panel:hover,
  .desktop-nav > a:hover,
  .desktop-products-toggle:hover,
  .icon-button:hover,
  .submenu-toggle:hover,
  .rating:hover,
  .btn:hover {
    transform: none !important;
  }
}