/* WiseRev public site. Palette shared with app.wiserev.ai. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --navy: #1d3a5f;
  --night: #10233a;
  --brass: #b7862b;
  --brass-light: #e8c77a;
  --brass-soft: #f6ecd6;
  --blue: #2a78d6;
  --ink: #172033;
  --ink-2: #3f4b62;
  --muted: #65708a;
  --line: #dfe5ee;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --d-low: #f5f7fa;
  --d-normal: #e4edf8;
  --d-high: #bcd3ef;
  --d-peak: #8fb4e3;
  --shadow: 0 30px 60px -32px rgba(16, 35, 58, .38), 0 2px 6px rgba(16, 35, 58, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); margin: 0; font-weight: 620; }
h1 {
  font-size: clamp(2.5rem, 2.1rem + 2.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  font-stretch: 86%;
  max-width: 13ch;
}
h2 {
  font-size: clamp(1.85rem, 1.5rem + 1.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-stretch: 90%;
}
h1, h2 { text-wrap: balance; }
.hero h1 { max-width: none; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--brass); }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 640; letter-spacing: -0.005em; }
p { margin: 0; max-width: 60ch; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--night); }
.btn-ghost { color: var(--navy); border-color: #b9c6d8; background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-brass { background: var(--brass); color: var(--night); }
.btn-brass:hover { background: var(--brass-light); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-word { font-weight: 680; font-size: 1.32rem; letter-spacing: -0.02em; font-stretch: 92%; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-menu .nav-login { color: var(--navy); font-weight: 620; text-decoration: none; }
.nav-menu .nav-login:hover { text-decoration: underline; }
.nav-menu .btn { color: #fff; }

/* hero */
.hero {
  position: relative;
  padding: 88px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(620px 420px at 80% 45%, rgba(143, 180, 227, .30), transparent 70%),
    radial-gradient(420px 320px at 68% 95%, rgba(232, 199, 122, .20), transparent 70%),
    var(--paper);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.lede { margin-top: 24px; font-size: 1.2rem; color: var(--ink-2); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { margin: 0; }
.cal-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 22px 22px 18px;
}
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.cal-title { font-weight: 650; color: var(--navy); font-size: 1.12rem; letter-spacing: -0.01em; }
.cal-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; font-size: .8rem; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(29, 58, 95, .12); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-dow { font-size: .74rem; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cal-cell {
  position: relative; border-radius: 8px; padding: 7px 8px 8px; min-height: 58px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid transparent;
}
.d-low { background: var(--d-low); border-color: var(--line); }
.d-normal { background: var(--d-normal); }
.d-high { background: var(--d-high); }
.d-peak { background: var(--d-peak); }
.cd { font-size: .74rem; color: var(--ink-2); }
.cp { font-weight: 650; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cal-cell.pick { box-shadow: 0 0 0 2.5px var(--brass), 0 10px 24px -8px rgba(183, 134, 43, .65); z-index: 1; }

/* the month fills in with a gentle diagonal sweep */
@keyframes cell-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pick-in { from { box-shadow: 0 0 0 0 rgba(183, 134, 43, 0); } to { box-shadow: 0 0 0 2.5px var(--brass), 0 10px 24px -8px rgba(183, 134, 43, .65); } }
.cal-cell { animation: cell-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.cal-cell.pick { animation: cell-in .45s cubic-bezier(.2, .7, .2, 1) .585s both, pick-in .5s ease-out 1.05s both; }
.cal-grid > :nth-child(8) { animation-delay: .200s; }
.cal-grid > :nth-child(9), .cal-grid > :nth-child(15) { animation-delay: .255s; }
.cal-grid > :nth-child(10), .cal-grid > :nth-child(16), .cal-grid > :nth-child(22) { animation-delay: .310s; }
.cal-grid > :nth-child(11), .cal-grid > :nth-child(17), .cal-grid > :nth-child(23), .cal-grid > :nth-child(29) { animation-delay: .365s; }
.cal-grid > :nth-child(12), .cal-grid > :nth-child(18), .cal-grid > :nth-child(24), .cal-grid > :nth-child(30) { animation-delay: .420s; }
.cal-grid > :nth-child(13), .cal-grid > :nth-child(19), .cal-grid > :nth-child(25), .cal-grid > :nth-child(31) { animation-delay: .475s; }
.cal-grid > :nth-child(14), .cal-grid > :nth-child(20), .cal-grid > :nth-child(26), .cal-grid > :nth-child(32) { animation-delay: .530s; }
.cal-grid > :nth-child(27), .cal-grid > :nth-child(33) { animation-delay: .585s; }
.cal-grid > :nth-child(34) { animation-delay: .640s; }
.cal-grid > :nth-child(35) { animation-delay: .695s; }

/* benefits */
.section { padding: 104px 0; }
.benefits { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits h2 { text-align: center; margin-inline: auto; }
.benefit-list {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.benefit-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px 32px;
}
.b-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--brass-soft); margin-bottom: 20px;
}
.b-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-list p { margin-top: 8px; color: var(--ink-2); }

/* contact */
.cta {
  background: var(--navy); color: #d5dfec; padding: 104px 0; position: relative; overflow: hidden;
}
.cta::after { /* the logo's rising line, drawn large and faint */
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 560px; height: 300px; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 150'%3E%3Cpolyline points='10,40 70,140 130,70 190,140 270,10' fill='none' stroke='%23e8c77a' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right bottom/contain;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { margin-top: 16px; font-size: 1.15rem; max-width: 46ch; }
.cta .cta-mail { margin-top: 22px; font-size: .98rem; color: var(--brass-light); letter-spacing: .01em; }

/* footer */
.foot { background: var(--night); color: #9fb0c6; padding: 36px 0; font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.logo-light { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: #d5dfec; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { margin-left: auto; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 600px; }
  .benefit-list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-row { min-height: 64px; }
  .nav-menu { gap: 14px; }
  .logo-word { font-size: 1.2rem; }
  .hero { padding: 48px 0 64px; }
  .lede { font-size: 1.08rem; }
  .cal-card { padding: 14px 10px 12px; border-radius: 14px; }
  .cal-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 46px; padding: 5px 4px; border-radius: 6px; }
  .cp { font-size: .8rem; }
  .section, .cta { padding: 72px 0; }
  .benefit-list { margin-top: 36px; }
  .cta::after { width: 320px; height: 170px; }
  .foot-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
