:root {
  color-scheme: light;
  --ink: #06111f;
  --muted: #65717f;
  --soft: #eef7fc;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(6, 17, 31, 0.14);
  --line-strong: rgba(6, 17, 31, 0.24);
  --button: #07111f;
  --blue: #1550ad;
  --gold: #8b98a5;
  --shadow: 0 28px 80px rgba(29, 60, 84, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: #f5fbff;
}

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

button,
input,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 26px clamp(20px, 5vw, 64px) 44px;
}

.home {
  background:
    linear-gradient(90deg, rgba(247, 252, 255, 0.98) 0%, rgba(247, 252, 255, 0.72) 42%, rgba(211, 240, 253, 0.12) 100%),
    url("snow-credit-ice-hero.jpg") right top / auto 100vh no-repeat,
    #f5fbff;
}

.quiet-page {
  background:
    radial-gradient(circle at top right, rgba(205, 235, 250, 0.62), transparent 36rem),
    linear-gradient(180deg, #f8fcff 0%, #eef7fc 100%);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  position: relative;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  isolation: isolate;
}

.brand > span:not(.brand-mark) {
  display: none;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--button);
  opacity: 1;
  -webkit-mask: url("snowflake-logo.png") center / contain no-repeat;
  mask: url("snowflake-logo.png") center / contain no-repeat;
}

.brand,
.brand-mark {
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover .brand-mark {
  opacity: 0.82;
}

/* Legacy text styles stay isolated in case the wordmark is restored later. */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  color: #1c2838;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.links a[aria-current="page"] {
  color: var(--blue);
}

.nav-cta {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(7, 17, 31, 0.88);
  border-radius: 2px;
  padding: 0 24px;
  color: #fff;
  background: var(--button);
  box-shadow: 0 18px 38px rgba(2, 12, 27, 0.14);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.44);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button span {
  font-size: 1.35rem;
  line-height: 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 120px);
  align-content: center;
  padding: clamp(56px, 11vh, 124px) 0 32px;
}

.hero-copy {
  max-width: 780px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(3.3rem, 6.7vw, 6.55rem);
  line-height: 0.94;
}

.lead {
  max-width: 650px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.45vw, 1.32rem);
  font-weight: 300;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.finder {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr auto;
  gap: 18px;
  width: min(100%, 1160px);
  margin-top: clamp(56px, 9vh, 110px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  color: #7c8794;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.control,
.input,
.select {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(7, 19, 38, 0.13);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.62);
  color: #1b2737;
  font-size: 0.98rem;
  font-weight: 500;
}

.select {
  appearance: none;
  padding: 0 34px 0 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8996a6 50%),
    linear-gradient(135deg, #8996a6 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input {
  padding: 0 18px;
}

.select-wrap {
  position: relative;
}

.select-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.coin,
.flag {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.coin {
  background: linear-gradient(135deg, #ffc14a, #f59d13);
}

.flag {
  border-radius: 5px;
  background: #d73846;
}

.finder .button {
  min-height: 58px;
  align-self: end;
  padding: 0 28px;
}

.section {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-header {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 44px;
}

.section-header h1,
.section-header h2 {
  margin: 0;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 60px rgba(29, 60, 84, 0.1);
  backdrop-filter: blur(20px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  display: grid;
  min-height: 300px;
  align-content: space-between;
  padding: 28px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.post-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.post-card time,
.meta {
  color: #7c8794;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 30px 0 16px;
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  line-height: 1;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.article-body {
  color: #2f3b4a;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  font-weight: 300;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body h2 {
  margin: 2em 0 0.55em;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.article-aside {
  padding: 24px;
}

.article-aside dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.article-aside dt {
  color: #7c8794;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-aside dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: #66727f;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 22px;
  margin-bottom: 24px;
}

.compare-tools .select {
  padding-left: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab.is-active {
  color: #fff;
  background: var(--button);
  border-color: var(--button);
}

.table-wrap {
  overflow: auto;
}

.compare-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  text-align: left;
}

.compare-table th {
  color: #7c8794;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.compare-table td {
  color: #263243;
  font-size: 0.95rem;
}

.compare-table strong {
  color: var(--ink);
  font-weight: 500;
}

.rate {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.fineprint {
  margin: 18px 0 0;
  color: #7c8794;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.5;
}

.empty-state {
  display: none;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article {
    grid-template-columns: 1fr;
  }

  .compare-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home {
    background:
      linear-gradient(180deg, rgba(247, 252, 255, 0.96) 0%, rgba(247, 252, 255, 0.84) 54%, rgba(247, 252, 255, 0.96) 100%),
      url("snow-credit-ice-hero.jpg") center top / auto 72vh no-repeat,
      #f5fbff;
  }

  .nav {
    gap: 16px;
  }

  .finder {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }
}

@media (max-width: 560px) {
  .page {
    padding-inline: 18px;
  }

  .nav .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero {
    padding-top: 58px;
  }
}
