@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --page: #f6f9ff;
  --surface: #ffffff;
  --raised: #e7f1fd;
  --text: #102447;
  --muted: #465e80;
  --cyan: #0067bd;
  --line: #c8d9ee;
  font-family: Roboto, system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.storefront { background: radial-gradient(ellipse 850px 540px at 73% 290px, #dcecff 0%, transparent 83%); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1144px, calc(100% - 72px)); margin-inline: auto; }

.top { border-bottom: 1px solid var(--line); background: #ffffffd9; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header { min-height: 74px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-right: 10px;
  font-weight: 900;
  font-size: 25px;
  font-style: italic;
  color: #ffffff;
  background: linear-gradient(135deg, #125b9c, #0b2143);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px #41caff65;
}
.mark::after { content: ''; position: absolute; inset: 1px -4px; border: 1.5px solid #3aa9ff; border-radius: 50%; transform: rotate(-22deg); }
.brand-dot { color: var(--cyan); }
.header nav, .footer nav { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 700; }
.header nav a { padding: 8px 10px; border-radius: 22px; white-space: nowrap; }
.header nav a:hover, .header .nav-home { background: #e4f0ff; color: #06498f; }
.footer a:hover { color: var(--cyan); }
.outline, .secondary, .primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #2d6398;
  padding: 10px 15px;
  font-weight: 800;
  font-size: 14px;
}
.outline { background: #ffffffcc; }
.outline:hover, .secondary:hover { background: #e2efff; border-color: #75a9db; }
.primary { color: #fff; background: linear-gradient(170deg, #007db7, #054cba); border-color: #279ee7; box-shadow: inset 0 1px 1px #63daff66, 0 8px 23px #0074ff42; }
.primary:hover { background: linear-gradient(170deg, #0084c1, #1559bf); }
.secondary { background: #edf5ff; font-size: 13px; min-height: 36px; padding: 8px 12px; }

.hero { display: grid; align-items: center; min-height: 430px; isolation: isolate; gap: 22px; padding-block: 24px 10px; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.hero-copy { position: relative; z-index: 1; padding-block: 38px; }
h1 { font-size: clamp(42px, 5.1vw, 69px); line-height: .99; letter-spacing: -.058em; font-weight: 900; }
h1 em { display: block; color: var(--cyan); font-style: normal; }
.hero p { margin-top: 19px; max-width: 380px; font-size: 17px; color: var(--muted); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.hero-art { position: relative; align-self: stretch; display: grid; place-items: center; min-width: 0; }
.hero-art img {
  width: 100%;
  max-width: 750px;
  height: auto;
  display: block;
  border: 1px solid #bdd5f5;
  border-radius: 22px;
  box-shadow: 0 20px 45px #18386929;
}

.featured, .steps, .offers, .faq { padding-top: 44px; scroll-margin-top: 12px; }
h2 { font-size: clamp(28px, 3.5vw, 39px); line-height: 1.08; letter-spacing: -.04em; font-weight: 900; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.text-link { color: var(--cyan); font-weight: 800; font-size: 14px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.feature-grid, .steps-grid, .cards, .settings-grid { display: grid; gap: 15px; }
.feature-grid, .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.feature-card, .steps article, .card {
  background: linear-gradient(150deg, #f0f7ff, #ffffff 76%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 16px #254e8b0a;
}
.feature-card { position: relative; display: grid; align-content: start; gap: 18px; min-height: 149px; padding: 20px 46px 18px 18px; }
.feature-card:hover { border-color: #7dace3; }
.feature-card h3 { font-size: 17px; line-height: 1.2; }
.feature-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 29px; height: 29px; background: #e1efff; border-radius: 50%; color: #075b9f; }
.feature-icon { display: block; position: relative; width: 59px; height: 42px; background: linear-gradient(155deg, #68dcff, #0663d2 65%, #123ab0); border: 1px solid #82dcff; box-shadow: inset 0 1px 2px #ccf6ff8a, 0 8px 16px #0095ff35; }
.feature-icon.debit, .feature-icon.credit { width: 58px; height: 37px; margin: 4px 0 1px 3px; border-radius: 7px; transform: rotate(-12deg); }
.feature-icon.debit::after, .feature-icon.credit::after { content: ''; position: absolute; left: 10px; top: 11px; width: 13px; height: 9px; background: #d6edff; border-radius: 3px; box-shadow: 12px 11px 0 -3px #66aaff; }
.feature-icon.credit { background: linear-gradient(150deg, #88b5ff, #4d51d8 67%, #402f91); box-shadow: inset 0 1px 2px #d8eeff7f, 5px -5px 0 #335bba, 0 8px 20px #2d64ff6c; }
.feature-icon.business { width: 52px; height: 36px; border-radius: 9px; margin: 6px 0 0 3px; transform: rotate(-7deg); }
.feature-icon.business::before { content: ''; position: absolute; left: 17px; top: -8px; width: 14px; height: 9px; border: 2px solid #71daff; border-bottom: 0; border-radius: 5px 5px 0 0; }
.feature-icon.business::after { content: ''; position: absolute; left: 21px; top: 14px; width: 9px; height: 8px; border-radius: 2px; background: #b8ebff; }
.feature-icon.insurance { width: 43px; height: 42px; border-radius: 10px 10px 18px 18px; display: grid; place-items: center; margin-left: 5px; color: #eafaff; font-size: 23px; font-weight: 900; transform: rotate(-8deg); }
.steps article { display: grid; grid-template-columns: 41px 1fr; gap: 13px; align-items: start; padding: 19px 15px; }
.step-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 10px; background: #e4f1ff; color: var(--cyan); font-size: 23px; font-weight: 800; box-shadow: inset 0 0 0 1px #54c0ff55; }
.steps h3 { font-size: 17px; }
.steps p, .faq p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 6px; }

.section-head p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.filter-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.15fr; gap: 12px; margin: 21px 0 15px; }
.filter-row label, .admin label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; min-width: 0; }
.filter-row input, .filter-row select, .admin input, .admin select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 10px 11px; }
.filter-row input, .filter-row select {
  min-height: 43px;
  border-radius: 12px;
  box-shadow: 0 2px 6px #254e8b0b;
}
.filter-row select { cursor: pointer; }
.filter-row input:hover, .filter-row select:hover { border-color: #82b2e2; }

@supports (appearance: base-select) and selector(::picker(select)) {
  .filter-row select,
  .filter-row select::picker(select) { appearance: base-select; }
  .filter-row select { align-items: center; gap: 10px; }
  .filter-row select:open { border-color: #4b9cdb; box-shadow: 0 0 0 3px #cce7ff; }
  .filter-row select::picker-icon { color: var(--cyan); font-size: 12px; }
  .filter-row select:open::picker-icon { rotate: 180deg; }
  .filter-row select::picker(select) {
    margin-block: 6px;
    max-block-size: min(365px, 52vh);
    max-inline-size: calc(100vw - 28px);
    padding: 5px;
    border: 1px solid #c6daf1;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 12px 32px #153a652e, 0 3px 9px #244f7818;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #96b6d8 transparent;
  }
  .filter-row select option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    min-block-size: 34px;
    border-radius: 8px;
    white-space: normal;
    cursor: pointer;
  }
  .filter-row select option:checked { background: #ddebff; color: #064b87; font-weight: 800; }
  .filter-row select option:hover, .filter-row select option:focus { background: #edf5ff; }
  .filter-row select option:focus-visible { outline: 2px solid #6aa9e5; outline-offset: -2px; }
  .filter-row select option::checkmark { order: 1; margin-inline-start: auto; color: var(--cyan); content: '✓'; }

  @media (prefers-reduced-motion: no-preference) {
    .filter-row select::picker-icon { transition: rotate .18s ease; }
    .filter-row select:open::picker(select) { animation: backdrop-in .16s ease; }
  }
}

input::placeholder { color: #617797; }
.catalog-status { color: var(--muted); font-size: 13px; margin-bottom: 13px; }
.card { min-width: 0; display: flex; flex-direction: column; padding: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; min-height: 43px; }
.card-head > div { min-width: 0; overflow-wrap: anywhere; }
.offer-logo { flex: none; object-fit: contain; background: #edf6ff; padding: 4px; border-radius: 7px; }
.card small, .bonus small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.card h3 { margin-top: 3px; font-size: 16px; line-height: 1.25; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 11px 0 14px; flex: 1; }
.card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.bonus strong { display: block; color: var(--cyan); font-size: 23px; letter-spacing: -.025em; }
.card .bonus strong { display: inline-block; color: #084d86; background: #d8eeff; padding: 3px 8px; border-radius: 7px; font-size: 17px; margin-top: 4px; }
.notice { margin-top: 14px; }
.faq { display: grid; grid-template-columns: 1fr 1.55fr; gap: 24px; margin-bottom: 54px; }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq summary { font-size: 15px; font-weight: 800; }
footer { border-top: 1px solid var(--line); background: #eaf2ff; }
.footer { padding-block: 22px; }

dialog { width: min(542px, calc(100% - 28px)); max-height: calc(100dvh - 30px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--text); background: #ffffff; }
dialog::backdrop { background: #0a1b3b80; }
.dialog-close { float: right; margin-left: 12px; }
.dialog-close button { background: #edf5ff; border: 1px solid var(--line); border-radius: 8px; width: 33px; height: 33px; font-size: 23px; line-height: 1; }
.dialog-body h2 { font-size: 29px; margin: 6px 0 13px; }
.dialog-body p, .dialog-body li { font-size: 14px; color: var(--muted); line-height: 1.55; }
.dialog-body p + p, .dialog-body li + li { margin-top: 6px; }
.dialog-bonus { margin: 14px 0; }
.offer-terms { display: grid; gap: 13px; margin: 16px 0; }
.offer-term { border-top: 1px solid var(--line); padding-top: 10px; }
.offer-term h3 { font-size: 15px; margin-bottom: 5px; }
.offer-term ul { padding-inline-start: 19px; margin: 0; }
.offer-about { margin-block: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f2f7ff; }
.offer-about summary { padding: 12px 14px; font-weight: 800; }
.offer-about .about-text { padding: 0 14px 14px; color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.dialog-body .offer-restriction { border-radius: 8px; background: #fff2d8; color: #704309; padding: 10px 12px; }
.status { color: #075b9f; font-weight: 800; margin-top: 10px; }

.admin { padding-block: 28px 48px; }
.admin h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 22px; }
.settings-grid { grid-template-columns: 1fr 1fr; }
.settings-grid h2 { font-size: 26px; }
.settings-grid .secondary { align-self: start; }
.inline-form { display: flex; align-items: end; gap: 8px; }
.link-form { display: grid; grid-template-columns: minmax(164px, 1fr) minmax(124px, 1fr); gap: 8px; align-items: end; }
.payout-fields { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 5px; }
.inline-form input { width: 130px; }
.admin .offers p { font-size: 14px; color: var(--muted); margin: 12px 0; }
.admin #admin-search { width: min(300px, 100%); }
.table-scroll { overflow: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); text-align: left; font-size: 13px; }
td, th { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: middle; }
th { background: var(--raised); }
td small { display: block; margin-top: 4px; color: var(--muted); }
td:nth-child(2), td:nth-child(3) { white-space: nowrap; }
.link-form .secondary { justify-self: start; }
.share-link { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: end; }
.share-link .share-status { grid-column: 1 / -1; margin-top: 0; }
.share-status:empty { display: none; }
.bulk-links { max-width: 610px; padding: 12px 15px; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bulk-links summary { font-weight: 700; }
.bulk-links form { display: grid; justify-items: start; gap: 8px; margin-top: 10px; }
.bulk-links label { width: 100%; }
.bulk-links textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: var(--surface); font: inherit; }
.bulk-links p:empty { display: none; }
.admin .status { min-height: 1em; }
.account { max-width: 920px; }
.account-email, .account-note { color: var(--muted); line-height: 1.55; margin-bottom: 20px; overflow-wrap: anywhere; }
.application-entry { max-width: 580px; align-items: start; }
.application-entry h2 { font-size: 26px; }
.back-to-offers { display: inline-block; }
.application-list { display: grid; gap: 14px; }
.application-views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.application-views [aria-current="page"] { background: var(--raised); border-color: var(--cyan); color: var(--cyan); }
.application-card { padding: 20px; }
.application-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.application-heading h3 { margin: 0; font-size: 19px; }
.application-status { border-radius: 8px; background: #e1eeff; color: #064b87; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.application-status.confirmed, .application-status.paid { background: #e2f6eb; color: #15593b; }
.application-status.rejected { background: #fce9e8; color: #872e32; }
.application-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr)); gap: 12px; margin: 16px 0 0; }
.application-data dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.application-data dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; font-size: 14px; }
.application-code { font-variant-numeric: tabular-nums; }
.application-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.application-form label { flex: 1 1 160px; }
.offer-share { display: grid; gap: 8px; margin-top: 12px; }
.offer-share button { justify-self: start; }
.offer-share input { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); }
.offer-share p:empty { display: none; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 44px); }
  .hero { min-height: 370px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header nav { gap: 6px; }
}
@media (max-width: 760px) {
  .header { flex-wrap: wrap; gap: 9px 12px; padding-block: 13px; }
  .header nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 4px; }
  .header nav a { padding: 6px 9px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 28px 0; }
  .hero-art img { width: min(100%, 480px); }
  .featured, .steps, .offers, .faq { padding-top: 31px; }
  .feature-grid, .cards, .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 475px) {
  .wrap { width: calc(100% - 28px); }
  h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero p { font-size: 15px; }
  .hero-actions { gap: 8px; }
  .hero-actions a { font-size: 13px; padding-inline: 10px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .feature-card { min-height: 130px; padding: 13px 33px 13px 12px; gap: 11px; }
  .feature-card h3 { font-size: 15px; }
  .feature-arrow { right: 7px; bottom: 9px; width: 24px; height: 24px; }
  .cards, .faq, .settings-grid { grid-template-columns: 1fr; }
  .faq { gap: 5px; }
  .footer { align-items: start; flex-direction: column; gap: 13px; }
  .footer nav { gap: 12px; flex-wrap: wrap; }
}
@keyframes rise-in {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes hero-in {
  from { opacity: 0; translate: 0 12px; scale: .98; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes device-float {
  50% { translate: 0 -7px; }
}

@keyframes dialog-in {
  from { opacity: 0; translate: 0 9px; scale: .985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ease: cubic-bezier(.2, .75, .28, 1); }
  html { scroll-behavior: smooth; }

  .hero-copy > * { animation: rise-in .55s var(--motion-ease) backwards; }
  .hero-copy p { animation-delay: .08s; }
  .hero-actions { animation-delay: .15s; }
  .hero-art { animation: hero-in .75s var(--motion-ease) .08s backwards; }
  .hero-art img { animation: device-float 4.5s ease-in-out .85s 2; }

  .cards > .card:nth-child(-n+8) {
    animation: rise-in .32s var(--motion-ease) var(--card-delay, 0s) backwards;
  }
  .cards > .card:nth-child(4n+2) { --card-delay: .035s; }
  .cards > .card:nth-child(4n+3) { --card-delay: .07s; }
  .cards > .card:nth-child(4n+4) { --card-delay: .105s; }

  .outline, .primary, .secondary, .dialog-close button {
    transition: translate .18s var(--motion-ease), scale .18s var(--motion-ease),
      box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  }
  .feature-card, .cards > .card {
    transition: transform .24s var(--motion-ease), border-color .24s ease, box-shadow .24s ease;
  }
  .feature-arrow { transition: translate .24s var(--motion-ease), background-color .24s ease; }
  .primary:active, .outline:active, .secondary:active { scale: .98; }
  dialog[open] { animation: dialog-in .22s var(--motion-ease) both; }
  dialog[open]::backdrop { animation: backdrop-in .2s ease both; }
  .faq details[open] > p { animation: dialog-in .24s var(--motion-ease); }

  @media (hover: hover) {
    .feature-card:hover, .cards > .card:hover {
      transform: translateY(-4px);
      border-color: #449de0;
      box-shadow: inset 0 1px 0 #67baff42, 0 10px 25px #0066df26;
    }
    .feature-card:hover .feature-arrow { translate: 3px 0; background-color: #c7e5ff; }
    .hero-actions .primary:hover { translate: 0 -2px; box-shadow: 0 9px 30px #008dff60; }
  }
}
