:root {
  --ink: #1b1b1b;
  --muted: #5a6879;
  --line: #d9dee8;
  --line-strong: #c4d8ff;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --search: #eaeaf0;
  --yellow: #ffbc00;
  --blue: #4182ff;
  --blue-dark: #0e6ef4;
  --footer: #021414;
  --danger: #b4230d;
  --danger-soft: #fff0ea;
  --green: #07c03b;
  --purple: #a020f0;
  --container: 1376px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(218, 221, 229, 0.72);
}

.nav-shell {
  width: min(100%, var(--container));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 32px;
  display: grid;
  grid-template-columns: auto minmax(240px, 400px) 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  white-space: nowrap;
}

.brand-word,
.footer-logo {
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-note {
  margin-top: 4px;
  color: var(--blue-dark);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.search {
  position: relative;
  height: 44px;
  border-radius: 999px;
  background: var(--search);
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
  color: #5a6879;
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  padding: 0 20px 0 46px;
  border-radius: inherit;
}

.search input:focus-visible {
  box-shadow: 0 0 0 3px rgba(65, 130, 255, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  font-weight: 500;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.nav-badge {
  padding: 1px 6px 2px;
  color: var(--blue-dark);
  background: #e9f2ff;
  border: 1px solid #b9d2ff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #001616;
  background: transparent;
  border: 0;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.login-link {
  min-width: 94px;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-link:hover {
  background: #f4f4f4;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 24px 32px;
  background: linear-gradient(179deg, #ffffff 14%, #d8e5ff 61%, #e7dfff 100%);
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 594px);
  margin: 0 auto;
  padding: 58px 64px 56px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(195, 214, 255, 0.38);
  text-align: center;
}

.mascot {
  position: absolute;
  top: -29px;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #031616;
  border: 4px solid #ffffff;
  border-radius: 50%;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.hero h1 {
  margin: 0 auto 14px;
  max-width: 470px;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
}

.hero p {
  margin: 0 0 22px;
}

.signup-form,
.dialog-form {
  display: grid;
  gap: 14px;
}

.signup-form input,
.dialog-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #c7ced7;
  border-radius: 4px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
}

.signup-form input:focus-visible,
.dialog-form input:focus-visible {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 130, 255, 0.24);
}

.signup-form button,
.dialog-form button {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.signup-form button:hover,
.dialog-form button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.hero-tiles {
  position: absolute;
  inset: 0;
  width: min(100%, var(--container));
  margin: 0 auto;
  pointer-events: none;
}

.tile {
  position: absolute;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(30, 49, 90, 0.18);
}

.tile-a {
  top: 54px;
  left: 13%;
  background: #080808;
  transform: rotate(-12deg);
}

.tile-b {
  top: 200px;
  left: 4%;
  color: #178a3c;
  background: #ffffff;
  transform: rotate(-13deg);
}

.tile-c {
  bottom: -18px;
  left: 13%;
  background: #1155d9;
  transform: rotate(-11deg);
}

.tile-d {
  top: 62px;
  right: 13%;
  background: #e95110;
  transform: rotate(10deg);
}

.tile-e {
  top: 198px;
  right: 4%;
  color: #050505;
  background: #ffd721;
  transform: rotate(12deg);
}

.tile-f {
  bottom: -12px;
  right: 13%;
  color: #dc243b;
  background: #ffffff;
  transform: rotate(12deg);
}

.proof-row {
  width: min(100%, 1040px);
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-weight: 700;
}

.proof-row div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.proof-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  border-radius: 4px;
}

.proof-icon.hand {
  background: var(--yellow);
  clip-path: polygon(10% 45%, 32% 45%, 32% 18%, 47% 18%, 47% 45%, 63% 45%, 63% 26%, 78% 26%, 78% 58%, 60% 86%, 26% 86%, 10% 66%);
}

.proof-icon.calendar {
  border: 2px solid var(--green);
  border-top-width: 6px;
}

.proof-icon.medal {
  background: var(--purple);
  clip-path: polygon(26% 0, 43% 0, 50% 20%, 57% 0, 74% 0, 62% 34%, 82% 56%, 50% 100%, 18% 56%, 38% 34%);
}

.section-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 58px 32px 0;
}

.section-heading {
  text-align: center;
}

.section-heading h2,
.split-heading h2 {
  margin: 0;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.section-heading p {
  margin: 10px 0 0;
}

.ranked-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 72px;
  row-gap: 54px;
}

.ranked-card {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  color: var(--ink);
  border-radius: 8px;
}

.ranked-card:hover h3,
.ending-card:hover h3 {
  color: var(--blue-dark);
}

.rank-number {
  position: absolute;
  left: -4px;
  top: -24px;
  z-index: -1;
  color: #ebeef5;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 90px;
  line-height: 1;
  font-weight: 800;
}

.product-logo {
  width: 56px;
  height: 56px;
  margin-left: 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(20, 30, 50, 0.13);
}

.product-logo.small {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: none;
}

.ranked-copy h3,
.ending-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}

.ranked-copy p,
.ending-card p {
  margin: 0 0 10px;
  color: #101418;
}

.rating-row,
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.rating {
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.reviews {
  color: #1d5fd6;
  font-size: 14px;
}

.price-row {
  margin-top: 10px;
  gap: 4px;
}

.price {
  font-size: 22px;
  font-weight: 800;
}

.period {
  font-size: 14px;
}

.old-price {
  margin-left: 5px;
  color: #566274;
  font-size: 14px;
  text-decoration: line-through;
}

.split-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.outline-link {
  min-width: 126px;
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.outline-link svg {
  width: 18px;
  height: 18px;
}

.outline-link:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.ending-section {
  padding-bottom: 0;
}

.ending-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ending-card {
  min-height: 282px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ending-card:hover {
  border-color: #a9c5ff;
  box-shadow: 0 16px 30px rgba(32, 55, 90, 0.12);
  transform: translateY(-2px);
}

.ending-body {
  flex: 1;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
}

.ending-title {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ending-card p {
  flex: 1;
}

.deal-button {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.deadline {
  min-height: 33px;
  padding: 6px 10px;
  display: grid;
  place-items: center;
  color: var(--danger);
  background: var(--danger-soft);
  border-top: 1px solid #ff9d89;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.deadline.mini {
  min-height: 24px;
  width: 96px;
  margin: 8px 0 0 0;
  padding: 3px 6px;
  border: 1px solid #ff9d89;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.1;
}

.sticky-offer {
  position: fixed;
  left: 24px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: #050505;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.2s ease, padding 0.2s ease, font-size 0.2s ease;
}

.sticky-offer:hover,
.sticky-offer:focus-visible {
  width: 136px;
  padding: 0 16px;
  justify-content: flex-start;
  font-size: 14px;
}

.sticky-offer span {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #ffffff;
}

.offer-dialog {
  width: min(92vw, 680px);
  border: 2px solid #ff8a00;
  border-radius: 4px;
  padding: 48px 86px 42px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.offer-dialog::backdrop {
  background: rgba(3, 8, 15, 0.5);
}

.offer-dialog h2 {
  margin: 0;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 800;
}

.dialog-kicker {
  margin: 14px 0 22px;
  font-size: 24px;
  text-transform: uppercase;
}

.dialog-copy {
  margin: 0 auto 24px;
  max-width: 410px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.25;
}

.dialog-form button {
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #a5a5a5;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.plain-dismiss {
  margin-top: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.offer-dialog small {
  display: block;
  margin-top: 20px;
  color: #7b8491;
}

.site-footer {
  margin-top: 0;
  color: #ffffff;
  background: var(--footer);
}

.footer-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 42px 32px 54px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 56px;
}

.footer-brand p {
  max-width: 260px;
  margin: 18px 0;
  line-height: 1.55;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.1;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--yellow);
}

.social-row {
  display: flex;
  gap: 18px;
}

.social-row a {
  width: 22px;
  height: 22px;
}

.social-row svg {
  width: 22px;
  height: 22px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .brand {
    align-items: center;
    min-width: 0;
  }

  .brand-word {
    font-size: 22px;
  }

  .brand-note {
    font-size: 12px;
  }

  .search,
  .login-link {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  }

  .nav-links.is-open {
    display: flex;
  }

  .header-actions {
    gap: 8px;
  }

  .tile {
    width: 74px;
    height: 74px;
    font-size: 16px;
  }

  .ranked-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 42px;
  }

  .ending-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .nav-shell {
    min-height: 56px;
    padding: 8px 14px;
    grid-template-columns: 34px 1fr auto;
  }

  .icon-button {
    width: 28px;
    height: 28px;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .hero {
    padding: 44px 16px 28px;
  }

  .hero-card {
    padding: 46px 18px 20px;
  }

  .hero h1 {
    font-size: 23px;
    max-width: 260px;
  }

  .hero p {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .tile {
    display: none;
  }

  .proof-row {
    margin-top: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 350px);
  }

  .proof-row div {
    white-space: normal;
  }

  .section-shell {
    padding: 40px 16px 0;
  }

  .section-heading h2,
  .split-heading h2 {
    font-size: 24px;
  }

  .ranked-grid {
    margin-top: 34px;
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .ranked-card {
    grid-template-columns: 78px 1fr;
    gap: 14px;
  }

  .rank-number {
    top: -18px;
    font-size: 76px;
  }

  .product-logo {
    margin-left: 30px;
    width: 50px;
    height: 50px;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .outline-link {
    width: 100%;
  }

  .ending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ending-body {
    padding: 14px 10px 10px;
  }

  .ending-title {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }

  .product-logo.small {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .ending-card h3 {
    font-size: 14px;
  }

  .ending-card p {
    font-size: 12px;
    line-height: 1.35;
  }

  .rating {
    font-size: 12px;
    letter-spacing: 0;
  }

  .reviews,
  .period,
  .old-price {
    font-size: 12px;
  }

  .price {
    font-size: 18px;
  }

  .deal-button {
    min-height: 36px;
    margin-top: 12px;
    font-size: 14px;
  }

  .deadline {
    min-height: 42px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .sticky-offer {
    display: none;
  }

  .offer-dialog {
    padding: 40px 24px 28px;
  }

  .offer-dialog h2 {
    font-size: 44px;
  }

  .dialog-kicker {
    font-size: 18px;
  }

  .dialog-copy {
    font-size: 16px;
  }

  .footer-grid {
    padding: 34px 16px 48px;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
  }
}

@media (max-width: 390px) {
  .brand-word {
    font-size: 20px;
  }

  .brand-note {
    font-size: 11px;
  }

  .ending-grid {
    gap: 10px;
  }
}
