@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --navy: #071a42;
  --ink: #142b53;
  --muted: #50617c;
  --lime: #d3f554;
  --surface: #f4f7fc;
  --line: #d7e0ee;
  --display: 'Space Grotesk', 'DM Sans', sans-serif;
  font: 16px/1.5 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #547be4; outline-offset: 4px; }
.frame { width: min(1184px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { background: #081936; color: white; border-bottom: 1px solid #ffffff22; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { position: relative; display: block; flex: 0 0 150px; height: 48px; overflow: hidden; border-radius: 8px; background: #fff; }
.brand img { position: absolute; width: 100%; height: auto; left: 0; top: 50%; transform: translateY(-50%); display: block; }
.navigation { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 3vw, 36px); }
.navigation a { padding-block: 7px; color: #d5e1fa; text-decoration: none; font-weight: 700; font-size: .9rem; }
.navigation a:hover, .navigation a[aria-current] { color: var(--lime); }
.navigation a[aria-current] { box-shadow: inset 0 -2px var(--lime); }

.hero {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: white;
  background-color: var(--navy);
  background-image: linear-gradient(#c1d2ff0c 1px, transparent 1px), linear-gradient(90deg, #c1d2ff0c 1px, transparent 1px), radial-gradient(ellipse at 84% 16%, #1d4589, transparent 62%);
  background-size: 36px 36px, 36px 36px, auto;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto -130px -365px auto;
  width: 640px;
  height: 660px;
  border: 1px solid #d3f55455;
  border-radius: 50%;
  box-shadow: 0 0 0 32px #d3f55415, 0 0 0 66px #d3f55410, 0 0 0 103px #d3f5540b;
  transform: rotate(-27deg) scaleX(1.16);
  pointer-events: none;
}
.hero-inner { padding-block: 28px 82px; }
.breadcrumb { display: flex; gap: 9px; color: #b9cae9; font-size: .82rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 305px); align-items: end; gap: 46px; margin-top: clamp(34px, 5vw, 65px); }
.eyebrow { font-weight: 700; font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; color: #3b5110; }
.hero .eyebrow { color: var(--lime); }
.marker { display: inline-block; margin-right: 6px; width: 8px; height: 8px; border: 1px solid; transform: rotate(45deg); }
h1, h2, h3 { font-family: var(--display); line-height: 1.09; letter-spacing: -.045em; }
h1 { margin-top: 14px; font-size: clamp(2.55rem, 6.3vw, 5.7rem); }
h1 em { color: var(--lime); font-style: normal; }
.intro { color: #cfddf4; max-width: 510px; margin-top: 18px; font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; color: #e2ebfc; font-size: .79rem; }
.hero-meta span { background: #ffffff0f; border: 1px solid #d3e0ff33; padding: 4px 10px; border-radius: 999px; }
.hero-meta b { color: var(--lime); }
.how-to { padding: 18px 20px; border: 1px solid #d3e0ff42; background: #081a40cf; border-radius: 15px; }
.how-to h2 { margin-top: 7px; font-size: 1.28rem; }
.how-to ol { padding-left: 20px; margin: 11px 0 0; color: #d8e3f7; font-size: .88rem; }
.how-to li + li { margin-top: 5px; }
.how-to li::marker { color: var(--lime); }

.content { position: relative; margin-top: -30px; margin-bottom: 44px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #e9eff8; box-shadow: 0 6px 24px #071a420e; }
.tabs button { border: 1px solid transparent; border-radius: 10px; background: transparent; color: #435570; min-height: 44px; padding: 8px; font-weight: 700; }
.tabs button[aria-selected=true] { border-color: var(--line); background: white; color: var(--ink); box-shadow: 0 2px 5px #071a420b; }
.panel { background: #eaf0f8; border: 1px solid var(--line); border-radius: 19px; margin-top: 26px; padding: clamp(17px, 3.3vw, 34px); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-bottom: 21px; }
.panel-heading h2 { margin-block: 6px 5px; font-size: clamp(1.65rem, 3.7vw, 2.6rem); }
.panel-heading p:not(.eyebrow), .empty p, .feed-card p, .fine-print { color: var(--muted); }
.count, .tag { width: fit-content; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 4px 11px; font-size: .78rem; font-weight: 700; }
.empty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: clamp(16px, 2.5vw, 25px); border: 1px dashed #aabbd6; border-radius: 13px; background: #fff; }
.empty h3 { margin-bottom: 4px; font-size: 1.15rem; }
.empty-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #e8f4c8; color: #3b5110; }
.empty .button { margin-left: auto; }
.fine-print { margin-top: 16px; font-size: .85rem; }
.fine-print strong { color: var(--ink); margin-right: 4px; }

.offer-grid, .feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.offer-grid:empty { display: none; }
.offer-card, .feed-card { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.offer-card::before { content: ''; display: block; height: 6px; background: var(--lime); }
.offer-card:nth-child(3n+2)::before { background: #8fabfb; }
.offer-card:nth-child(3n+3)::before { background: #26b9ac; }
.offer-body, .feed-card { padding: 19px; }
.offer-body { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.offer-body h3, .feed-card h3 { font-size: 1.35rem; }
.offer-issuer, .offer-conditions { color: var(--muted); font-size: .88rem; }
.offer-conditions ul { margin: 0; padding-left: 17px; }
.offer-conditions li + li { margin-top: 4px; }
.coupon { border: 1px dashed #75924a; padding: 10px; border-radius: 9px; background: #f2f8e5; }
.coupon label { display: block; margin-bottom: 5px; font-size: .73rem; font-weight: 700; color: #3b5110; }
.coupon-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon-controls input { flex: 1 1 112px; min-width: 0; width: 100%; background: white; color: var(--ink); border: 1px solid #c5d3af; border-radius: 6px; padding: 6px 8px; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 6px 13px; background: #123472; color: white; font-size: .88rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #09224e; }
.button.secondary { border-color: #b7c7df; color: var(--ink); background: #f0f4fb; }
.button.secondary:hover { background: #e2ebf8; }
.offer-body > .button { margin-top: auto; }
.feed-card { gap: 10px; }
.feed-card a { margin-top: auto; color: #18468f; font-size: .9rem; font-weight: 700; text-underline-offset: 3px; }
.copy-status { position: fixed; z-index: 2; right: 18px; bottom: 18px; max-width: calc(100vw - 36px); border-radius: 10px; padding: 10px 16px; background: var(--navy); color: white; }
.copy-status:empty { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; }

.footer { background: #081936; color: #d5e1fa; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; font-size: .82rem; }
.footer strong { color: white; }
.footer nav { display: flex; gap: 14px; }

@media (max-width: 900px) {
  .offer-grid, .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 36px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .hero-inner { padding-top: 20px; padding-bottom: 62px; }
  .how-to { max-width: 390px; }
  .empty .button { margin-left: 0; }
}
@media (max-width: 520px) {
  .frame { width: calc(100% - 28px); }
  .brand { flex-basis: 106px; height: 36px; }
  .header-inner { min-height: 62px; gap: 8px; padding-block: 7px; }
  .navigation { flex-wrap: wrap; gap: 3px 11px; }
  .navigation a, .tabs button { font-size: .8rem; }
  .offer-grid, .feed-grid { grid-template-columns: minmax(0, 1fr); }
}
