/* FilterWiseHome. Calm, bright, water-blue. See DESIGN.md. */
/* Fonts are self-hosted (latin subset): Newsreader and Figtree, both SIL OFL. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/figtree-0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/figtree-0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/figtree-0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/newsreader-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #0d2b40;
  --ink-soft: #3a5266;
  --water: #1a6aa3;
  --water-deep: #12527f;
  --sky: #eaf4fb;
  --mist: #f6fafd;
  --line: #d5e5f0;
  --white: #fff;
  --focus: #0b57d0;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(13, 43, 64, .06), 0 4px 14px rgba(13, 43, 64, .06);
  --shadow-md: 0 2px 4px rgba(13, 43, 64, .06), 0 14px 36px rgba(26, 106, 163, .14);
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, video { display: block; max-width: 100%; }
a { color: var(--water-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.6rem; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.skip:hover { color: #fff; }
.eyebrow { font-size: 1rem; font-weight: 600; color: var(--water-deep); margin: 0 0 .9rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(213,229,240,.8); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-weight: 400; }
.wordmark span { color: var(--water); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sky); color: var(--water-deep); }
.nav a[aria-current="page"] { color: var(--water-deep); background: var(--sky); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.menu-btn:hover { border-color: var(--water); background: var(--mist); }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 8px; }
  .js .menu-btn { display: inline-block; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 10px; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Buttons and form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem; background: var(--water); color: #fff; border: 0; border-radius: 999px; padding: 15px 26px; cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(13,43,64,.12), 0 6px 18px rgba(26,106,163,.28); transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--water-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(13,43,64,.14), 0 10px 24px rgba(26,106,163,.34); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { background: #fff; color: var(--water-deep); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.btn-ghost:hover { background: var(--sky); color: var(--ink); box-shadow: inset 0 0 0 1px var(--water), var(--shadow-sm); }
.signup { max-width: 520px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 999px; padding: 15px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.signup input[type="email"]::placeholder { color: #5f7587; }
.signup input[type="email"]:hover { border-color: #9cc3dd; }
.signup input[type="email"]:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 4px rgba(26,106,163,.18); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-note { font-size: .85rem; color: var(--ink-soft); margin: 12px 4px 0; }
.signup-status { min-height: 1.5em; margin: 10px 4px 0; font-size: .95rem; font-weight: 500; }
.signup-status.ok { color: #0f6b3f; }
.signup-status.err { color: #a32020; }
.ts-box { margin-top: 12px; min-height: 0; }
@media (max-width: 520px) { .signup-row { flex-direction: column; } .signup-row .btn { width: 100%; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #eef6fc; min-height: min(86vh, 820px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media video, .hero-media img { width: 100%; height: 100%; }
.hero-media img, .hero-media video { object-fit: cover; object-position: 78% 40%; transform-origin: 70% 50%; animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
.hero-media video { position: absolute; inset: 0; animation: none; }
@keyframes drift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.07) translate3d(-1.2%, -.8%, 0); } }
.hero-shimmer { position: absolute; inset: -10% -30%; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%); animation: shimmer 16s ease-in-out infinite; opacity: .55; }
@keyframes shimmer { 0% { transform: translateX(-35%); } 100% { transform: translateX(35%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.74) 34%, rgba(255,255,255,0) 62%); }
.hero-inner { padding-block: clamp(56px, 10vh, 110px); }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
.hero .lede { margin-bottom: 1.8rem; }
@media (max-width: 960px) {
  .hero { align-items: flex-start; min-height: 0; background: #fff; }
  .hero-media { top: auto; height: 62%; min-height: 380px; bottom: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%); }
  .hero-media img, .hero-media video { object-position: 72% 62%; }
  .hero::after { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.94) 58%, rgba(255,255,255,0) 82%); }
  .hero-inner { padding-block: 40px 400px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-media video, .hero-shimmer { animation: none !important; }
  .hero-shimmer { display: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.tint { background: linear-gradient(180deg, var(--mist), var(--sky)); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.why article { border-top: 1px solid var(--line); padding-top: 20px; }
.why .num { font-family: var(--serif); font-size: 2.4rem; color: var(--water); line-height: 1; display: block; margin-bottom: 14px; }
.why p { color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s, transform .25s; display: flex; flex-direction: column; align-items: flex-start; }
.card:hover { box-shadow: var(--shadow-md); border-color: #b4d3e8; transform: translateY(-3px); }
.card p { color: var(--ink-soft); flex: 1; }
.card .more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; color: var(--water-deep); }
.card .more::after { content: "\2192"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.reminder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.reminder .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.reminder .row:last-child { border-bottom: 0; }
.reminder .tag { font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--water-deep); white-space: nowrap; }
.reminder .cap { font-size: .9rem; color: var(--ink-soft); margin: 0 0 4px; font-weight: 600; }
.cta-band { text-align: left; }
.cta-band .signup { margin-top: 24px; }
@media (max-width: 860px) {
  .why, .cards, .split { grid-template-columns: 1fr; }
}

/* Inner pages */
.page-head { background: linear-gradient(180deg, var(--sky), #fff); padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16em; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose.legal { font-size: 1rem; }
.prose.legal h2 { font-size: 1.6rem; }
.callout { background: var(--sky); border: 1px solid #b9d7ea; padding: 16px 20px; border-radius: 12px; margin: 0 0 1.6em; font-size: .98rem; }
.updated { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.6em; }
.confirm { background: #fff3c4; color: #5a4300; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .9em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 0; }
.checklist li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a6aa3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* Footer */
.site-footer { background: var(--ink); color: #cfe0ec; padding-block: 56px 36px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-family: var(--sans); font-size: .9rem; color: #8fb2cb; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .wordmark { color: #fff; font-size: 1.5rem; }
.site-footer .wordmark span { color: #8cc6ee; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size: .88rem; color: #9fbace; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.hp-label { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-head + section { padding-top: clamp(24px, 4vw, 48px); }
