:root {
  color-scheme: light;
  --ink: #0a1830;
  --muted: #52637b;
  --page: #071a35;
  --page-deep: #041126;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --line: #dce5f0;
  --blue: #1767d8;
  --blue-dark: #0f4fae;
  --focus: #71a7ff;
  --white: #fff;
  --shadow: 0 16px 42px rgba(0, 15, 38, .22);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 105, 220, .34), transparent 31rem),
    radial-gradient(circle at 84% 18%, rgba(15, 155, 165, .17), transparent 25rem),
    linear-gradient(145deg, rgba(10, 40, 83, .97), rgba(3, 20, 41, .98)),
    url("/assets/background/chips.png") center / 560px auto repeat;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hero::after {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  top: -34rem;
  left: 50%;
  border-radius: 50%;
  background: rgba(65, 135, 255, .2);
  filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 34px;
  text-align: center;
}

.hero__eyebrow,
.section-kicker,
.cell-label {
  margin: 0;
  color: #73a9ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__site {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .045em;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  margin: 9px 0 0;
  color: var(--white);
  font-size: clamp(35px, 4.7vw, 56px);
  line-height: 1.02;
  letter-spacing: -.048em;
}

.hero h1 span { color: #8fb9ff; }

.hero__flag {
  width: 50px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
}

.hero__lead {
  width: min(760px, 100%);
  margin: 15px auto 0;
  color: #cbd8e9;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.58;
}

.hero__proofs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  color: #e4ecf8;
  font-size: 12px;
  font-weight: 750;
}

.hero__proofs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__proofs span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(129, 231, 201, .38);
  border-radius: 50%;
  color: #83e7c8;
  background: rgba(22, 165, 126, .13);
  font-size: 10px;
}

main {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
}

.comparison { padding: 28px 0 36px; }

.comparison__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 4px 16px;
}

.comparison__heading h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.comparison__heading > p {
  max-width: 470px;
  margin: 0;
  color: #aebed4;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.offers {
  display: grid;
  gap: 14px;
}

.offer-card {
  --accent: #1767d8;
  --tint: #eef5ff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(185px, .8fr) minmax(225px, 1.03fr) 150px minmax(250px, 1.12fr) 170px;
  grid-template-rows: minmax(132px, auto) auto;
  grid-template-areas:
    "brand deal payment benefits action"
    "terms terms terms terms terms";
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .985);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.offer-card--chill { --accent: #5f42c6; --tint: #f1efff; }
.offer-card--paratiisi { --accent: #138c6e; --tint: #eaf9f4; }
.offer-card--panosta { --accent: #1475bd; --tint: #edf7ff; }
.offer-card--ruhtinas { --accent: #9b7100; --tint: #fff8db; }

.offer-card:not(.offer-card--disabled):hover {
  transform: translateY(-3px);
  border-color: rgba(133, 174, 239, .78);
  box-shadow: 0 22px 52px rgba(0, 15, 38, .29);
}

.offer-card:has(.offer-card-link:focus-visible) {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.offer-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.offer-card-link:focus-visible { outline: none; }

.brand-cell,
.deal-cell,
.payment-cell,
.benefits-cell,
.action-cell {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.brand-cell {
  grid-area: brand;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px 18px;
  background:
    radial-gradient(circle at 10% 0%, var(--tint), transparent 68%),
    #fff;
}

.offer-badge {
  position: absolute;
  top: 11px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 26px);
  min-height: 24px;
  padding: 5px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, white);
  border-radius: 999px;
  color: var(--accent);
  background: var(--tint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70px;
  border-radius: 12px;
}

.brand-link--disabled { z-index: auto; }

.brand-link:focus-visible,
.offer-button:focus-visible,
.support-link:focus-visible,
.policy-back:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.brand-logo {
  width: auto;
  height: auto;
  max-width: 172px;
  max-height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(7, 23, 49, .1));
}

.brand-logo--chill { max-height: 62px; }
.brand-logo--paratiisi { max-height: 64px; }
.brand-logo--panosta { max-height: 59px; }
.brand-logo--ruhtinas { max-height: 62px; }

.deal-cell {
  grid-area: deal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 17px 20px;
  background: linear-gradient(135deg, #fff 0%, var(--tint) 100%);
  text-align: center;
}

.cell-label { color: #718198; }

.deal-cell h3 {
  margin: 7px 0 5px;
  color: #17243a;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.13;
  letter-spacing: -.026em;
}

.deal-cell h3 strong {
  color: var(--accent);
  font-size: 1.12em;
}

.deal-cell > p:last-child {
  margin: 0;
  color: #4c5d74;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.payment-cell {
  grid-area: payment;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 16px 12px;
  background: #fff;
  text-align: center;
}

.payment-logo {
  width: auto;
  height: auto;
  max-width: 108px;
  max-height: 35px;
  object-fit: contain;
}

.payment-cell > span {
  color: #4e6077;
  font-size: 11px;
  font-weight: 750;
}

.benefits-cell {
  grid-area: benefits;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 15px 18px;
  background: #fff;
}

.benefits-cell ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.benefits-cell li {
  position: relative;
  padding-left: 19px;
  color: #34455d;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.25;
}

.benefits-cell li::before {
  content: "✓";
  position: absolute;
  top: .02em;
  left: 0;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 8px;
  font-weight: 900;
}

.action-cell {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 18px 15px;
  border-right: 0;
  background: linear-gradient(135deg, #fff, #f7faff);
}

.offer-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(12, 67, 148, .28);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #1e74e8, #1056be);
  box-shadow: 0 11px 23px rgba(20, 91, 196, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.offer-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 14px 27px rgba(20, 91, 196, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.action-cell > span {
  color: #7a899d;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.offer-button--disabled {
  z-index: auto;
  border-color: #cdd5df;
  color: #66758a;
  background: #e7ebf0;
  box-shadow: none;
  cursor: not-allowed;
}

.offer-card--disabled {
  border-style: solid;
  box-shadow: 0 12px 34px rgba(0, 15, 38, .16);
}

.offer-card--disabled .brand-logo { filter: saturate(.7) drop-shadow(0 3px 7px rgba(7, 23, 49, .08)); }

.offer-terms {
  grid-area: terms;
  margin: 0;
  padding: 7px 14px 8px;
  border-top: 1px solid var(--line);
  color: #687990;
  background: #f7f9fc;
  font-size: 10px;
  line-height: 1.35;
}

.offer-terms strong { color: #45566e; }

.site-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin: 0 0 36px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  color: #c8d5e7;
  background: rgba(2, 15, 34, .56);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
}

.site-notes h2 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: 18px;
  letter-spacing: -.015em;
}

.site-notes p,
.footer p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
}

.support-link {
  display: inline-flex;
  margin-top: 12px;
  color: #83e7c8;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.footer {
  padding: 30px max(20px, calc((100% - 900px) / 2)) 26px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #92a4bd;
  background: rgba(1, 10, 23, .48);
  text-align: center;
}

.footer p + p { margin-top: 9px; }
.footer strong { color: #dce6f3; }
.footer .copyright { margin-top: 18px; color: #6f829c; font-size: 10px; }

.footer-link {
  color: #8dddc8;
  font-weight: 800;
  text-underline-offset: 4px;
}

.policy-main {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 60px;
}

.policy-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .985);
  box-shadow: var(--shadow);
}

.policy-back {
  display: inline-flex;
  margin-bottom: 27px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.policy-card .section-kicker { color: var(--blue); }

.policy-card h1 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.policy-card h2 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 19px;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.policy-card ul { padding-left: 21px; }
.policy-card a { color: var(--blue); text-underline-offset: 3px; }

@media (max-width: 1120px) {
  .offer-card {
    grid-template-columns: minmax(170px, .75fr) minmax(210px, 1fr) 135px minmax(220px, 1.1fr) 150px;
  }
  .brand-cell { padding-inline: 14px; }
  .brand-logo { max-width: 150px; }
  .deal-cell { padding-inline: 14px; }
  .benefits-cell { padding-inline: 13px; }
  .benefits-cell li { font-size: 10.8px; }
  .action-cell { padding-inline: 11px; }
}

@media (max-width: 900px) {
  main { width: min(760px, calc(100% - 22px)); }
  .offer-card {
    grid-template-columns: 190px minmax(0, 1fr) 150px;
    grid-template-rows: minmax(118px, auto) auto auto;
    grid-template-areas:
      "brand deal payment"
      "benefits benefits action"
      "terms terms terms";
  }
  .brand-cell,
  .deal-cell,
  .payment-cell { border-bottom: 1px solid var(--line); }
  .payment-cell,
  .action-cell { border-right: 0; }
  .benefits-cell {
    padding-block: 13px;
    border-right: 1px solid var(--line);
  }
  .benefits-cell ul {
    grid-template-columns: 1fr 1fr;
    gap: 7px 20px;
  }
  .benefits-cell li { font-size: 11px; }
  .action-cell { min-height: 84px; padding-block: 13px; }
  .offer-button { min-height: 48px; }
}

@media (max-width: 680px) {
  .hero__inner { width: min(100% - 28px, 600px); padding: 34px 0 29px; }
  .hero h1 { gap: 8px; }
  .hero__flag { width: 43px; height: 27px; border-radius: 7px; }
  .hero__lead { font-size: 14px; }
  .hero__proofs { gap: 7px 15px; margin-top: 17px; }
  .comparison { padding-top: 20px; }
  .comparison__heading { align-items: start; flex-direction: column; gap: 6px; }
  .comparison__heading > p { text-align: left; }
  .offers { gap: 11px; }
  .offer-card {
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    grid-template-rows: minmax(112px, auto) auto auto auto;
    grid-template-areas:
      "brand deal"
      "payment action"
      "benefits benefits"
      "terms terms";
    border-radius: 18px;
  }
  .brand-cell {
    min-height: 112px;
    padding: 38px 11px 13px;
  }
  .brand-logo { max-width: min(140px, 100%); max-height: 54px; }
  .offer-badge {
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    min-height: 21px;
    padding: 4px 8px;
    font-size: 7.7px;
  }
  .deal-cell {
    min-height: 112px;
    padding: 13px 10px;
    border-right: 0;
  }
  .deal-cell h3 { margin: 5px 0 4px; font-size: clamp(16px, 4.6vw, 20px); }
  .deal-cell > p:last-child { font-size: 9.5px; }
  .cell-label { font-size: 8.5px; }
  .payment-cell {
    min-height: 63px;
    padding: 9px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .payment-cell .cell-label { display: none; }
  .payment-logo { max-width: 88px; max-height: 28px; }
  .payment-cell > span { font-size: 9px; }
  .action-cell {
    min-height: 63px;
    gap: 0;
    padding: 8px;
    border-bottom: 1px solid var(--line);
  }
  .action-cell > span:last-child:not(.offer-button) { display: none; }
  .offer-button { min-height: 47px; border-radius: 12px; font-size: 12px; }
  .benefits-cell {
    padding: 12px;
    border-right: 0;
  }
  .benefits-cell ul { margin-top: 7px; gap: 7px 12px; }
  .benefits-cell li { padding-left: 17px; font-size: 10px; }
  .benefits-cell li::before { width: 13px; height: 13px; }
  .offer-terms { padding: 7px 10px; font-size: 9px; }
  .site-notes { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 31px; }
  .hero__flag { width: 39px; height: 24px; }
  .hero__proofs { align-items: center; flex-direction: column; gap: 6px; }
  main { width: calc(100% - 14px); }
  .comparison__heading { margin-inline: 3px; }
  .brand-cell { padding-inline: 8px; }
  .brand-logo { max-width: min(126px, 100%); }
  .deal-cell h3 { font-size: 15.5px; }
  .deal-cell > p:last-child { font-size: 9px; }
  .benefits-cell ul { grid-template-columns: 1fr; gap: 6px; }
}

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