/* ============================================================
   Keepwise — keep-wise-app.com
   Palette sampled directly from the supplied logo PNGs.
   ============================================================ */

/* ---- Self-hosted Poppins (no Google Fonts CDN, no visitor IPs leaving) ---- */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/poppins-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/poppins-400-latin.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:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/poppins-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/poppins-500-latin.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:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/poppins-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/poppins-600-latin.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:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/poppins-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/poppins-700-latin.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;}

/* ---- Tokens ---- */
:root{
  --ink:      #0C263A;   /* wordmark navy — all body text          */
  --ink-2:    #4A6273;   /* muted body                             */
  --teal:     #009883;   /* accent on light: 3.61:1 — large only   */
  --teal-ink: #00705F;   /* darkened teal, safe for small text     */
  --mint:     #5DE9C9;   /* accent on dark                         */
  --grad-a:   #053754;   /* icon gradient start                    */
  --grad-b:   #006E79;   /* icon gradient end                      */
  --paper:    #EEF4F4;   /* page background                        */
  --card:     #FFFFFF;
  --line:     #D7E3E3;
  --amber:    #A05F00;   /* darkened: .verdict is 17.5px bold, below WCAG's
                            large-text threshold, so it needs the full 4.5:1 */
  --red:      #B3261E;
  --blue:     #1A5E86;

  --r:   18px;
  --r-s: 10px;
  --wrap: 1180px;
  --shadow:    0 1px 2px rgba(12,38,58,.05), 0 8px 24px rgba(12,38,58,.06);
  --shadow-lg: 0 2px 4px rgba(12,38,58,.06), 0 18px 48px rgba(12,38,58,.10);
}

/* ---- Reset ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font:400 17px/1.65 'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block}
h1,h2,h3{margin:0; line-height:1.15; letter-spacing:-.02em; font-weight:700}
p{margin:0}
ul,ol{margin:0; padding:0; list-style:none}
a{color:var(--teal-ink)}

.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:12px 20px;z-index:100;border-radius:0 0 var(--r-s) 0}
.skip:focus{left:0}

:where(a,button,input,[tabindex]):focus-visible{
  outline:3px solid var(--teal); outline-offset:3px; border-radius:4px;
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:999px; border:1px solid transparent;
  font:600 15px/1 'Poppins',sans-serif; text-decoration:none; cursor:pointer;
  white-space:nowrap; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--lg{padding:16px 25px; font-size:16px}

/* The App Store CTA has nowhere to point until the listing exists, so it is
   deliberately a non-interactive status pill rather than a dead button. */
.btn--soon{
  background:#DCE6E6; color:#4A6273; border-color:#C9D8D8;
  cursor:default; font-weight:600;
}
.btn--ghost{background:var(--card); color:var(--ink); border-color:var(--line); box-shadow:var(--shadow)}
.btn--ghost:hover{transform:translateY(-1px); box-shadow:var(--shadow-lg)}
.btn--mint{background:var(--mint); color:#053026; border-color:var(--mint)}
.btn--mint:hover{transform:translateY(-1px); background:#7BF0D6}

/* ---- Nav ---- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(238,244,244,.86); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav__inner{display:flex; align-items:center; gap:32px; height:78px}
.nav__logo{display:flex; align-items:center; margin-right:auto}
.nav__logo img{width:170px; height:auto}
.nav__links{display:flex; gap:30px}
.nav__links a{color:var(--ink); text-decoration:none; font-weight:500; font-size:15.5px}
.nav__links a:hover{color:var(--teal-ink)}

/* ---- Hero ---- */
.hero{padding:80px 0 96px}
/* 1.12/.88 rather than an even split: the two hero CTAs need ~590px to sit on
   one line, as the wireframe has them. */
.hero__grid{display:grid; grid-template-columns:1.12fr .88fr; gap:64px; align-items:center}
.eyebrow{
  display:inline-block; background:#D3F5EC; color:#03604F;
  padding:7px 16px; border-radius:999px; font-size:13.5px; font-weight:600;
  letter-spacing:.01em; margin-bottom:24px;
}
.hero h1{font-size:clamp(38px,5vw,60px); margin-bottom:24px}
.lede{font-size:18.5px; color:var(--ink-2); max-width:56ch}
.lede--muted{margin-top:14px; font-size:17px}
.hero__cta{display:flex; flex-wrap:wrap; gap:14px; margin-top:36px}

/* ---- Hero email mock ---- */
.hero__visual{min-width:0}
.thread{
  margin:0; background:var(--card); border:1px solid var(--line);
  border-radius:var(--r); padding:20px; box-shadow:var(--shadow-lg);
  display:grid; gap:14px;
}
.mail{border-radius:var(--r-s); padding:16px 18px}
.mail--in{background:#F4F8F8; border:1px solid var(--line)}
.mail--out{background:linear-gradient(140deg,var(--grad-a),var(--grad-b)); color:#fff}
.mail__head{display:flex; align-items:center; gap:11px; margin-bottom:12px}
.avatar{
  width:34px; height:34px; border-radius:50%; flex:none;
  background:#C6D8DD; color:#274B5C; display:grid; place-items:center;
  font-size:12.5px; font-weight:600;
}
.avatar--brand{background:#fff; padding:3px; overflow:hidden}
.avatar--brand img{width:100%; height:100%; border-radius:50%; object-fit:cover}
.mail__from{font-weight:600; font-size:14.5px}
/* Explicit colours rather than opacity — at .72 both of these dropped under
   4.5:1 against their own backgrounds. */
.mail__meta{font-size:12.5px}
.mail--in .mail__meta{color:var(--ink-2)}
.mail--out .mail__meta{color:#D9E9EB}
.mail__subject{font-weight:600; font-size:14px; margin-bottom:6px; color:var(--ink-2)}
.mail__body{font-size:14.8px; line-height:1.6}
/* Paler than brand mint: full mint is only 3.98:1 against the light end of the
   card's gradient, and this is 14.8px bold — not large text. */
.mail--out .mail__body strong{color:#A8F4E3; font-weight:600}
.mail__disclosure{
  margin-top:12px; padding-top:10px; border-top:1px solid rgba(255,255,255,.25);
  font-size:12.3px; color:#D9E9EB; font-style:italic;
}
.thread__verdict{
  display:flex; align-items:center; gap:9px;
  font-size:13px; font-weight:500; color:var(--ink-2);
  background:#F4F8F8; border:1px solid var(--line);
  border-radius:var(--r-s); padding:11px 14px;
}
.dot{width:8px; height:8px; border-radius:50%; background:var(--teal); flex:none}
.caption{margin-top:12px; font-size:12.8px; color:var(--ink-2); text-align:center}

/* ---- Dark bands ---- */
.band{background:var(--ink); color:#fff; padding:84px 0}
.band__title{font-size:clamp(26px,3vw,34px); margin-bottom:44px}
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:36px}
.step__num{
  display:block; color:var(--mint); font-weight:700; font-size:15px;
  letter-spacing:.06em; margin-bottom:14px;
}
.step h3{font-size:18px; margin-bottom:10px; line-height:1.3}
.step p{font-size:15px; color:#A9C0CC; line-height:1.6}

/* ---- Safety ---- */
.safety{padding:96px 0}
.safety__head{max-width:70ch; margin-bottom:40px}
.safety h2{font-size:clamp(28px,3.4vw,40px); margin-bottom:18px}
.safety em{font-style:italic; color:var(--teal-ink)}

.scenarios{background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:28px; box-shadow:var(--shadow)}
.chips{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px}
.chip{
  padding:11px 20px; border-radius:999px; cursor:pointer;
  border:1px solid var(--line); background:#F4F8F8; color:var(--ink);
  font:500 14.5px/1 'Poppins',sans-serif; transition:all .15s ease;
}
.chip:hover{border-color:var(--teal); color:var(--teal-ink)}
.chip[aria-selected="true"]{background:var(--ink); color:#fff; border-color:var(--ink)}

.panel{display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--line); border-radius:var(--r-s); overflow:hidden}
.panel[hidden]{display:none}
.panel__mail{padding:26px; background:var(--card)}
.panel__rule{padding:26px; background:#F4F8F8; border-left:1px solid var(--line)}
.panel__label{
  font-size:11.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-2); margin-bottom:14px;
}
.panel__quote{font-size:18px; line-height:1.55; color:var(--ink)}
.verdict{font-size:17.5px; font-weight:700; margin-bottom:12px; letter-spacing:-.01em}
.verdict--amber{color:var(--amber)}
.verdict--red{color:var(--red)}
.verdict--blue{color:var(--blue)}
.panel__why{font-size:15px; line-height:1.65; color:var(--ink-2)}

/* ---- Pricing ---- */
.pricing{padding:0 0 96px}
.pricing__head{display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:30px}
.pricing h2{font-size:clamp(28px,3.4vw,40px)}
.toggle{display:inline-flex; background:#E1EBEB; border-radius:999px; padding:5px; gap:4px}
.toggle__btn{
  border:0; background:transparent; cursor:pointer; border-radius:999px;
  padding:10px 20px; font:600 14.5px/1 'Poppins',sans-serif; color:var(--ink-2);
  display:inline-flex; align-items:center; gap:8px; transition:all .15s ease;
}
.toggle__btn.is-on{background:var(--card); color:var(--ink); box-shadow:var(--shadow)}
.save{font-size:11.5px; font-weight:600; color:#03604F; background:#D3F5EC; padding:3px 8px; border-radius:999px}

.tiers{background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden}
.tier{
  display:flex; align-items:center; justify-content:space-between; gap:32px;
  padding:28px 32px; border-bottom:1px solid var(--line);
}
.tier:last-child{border-bottom:0}
.tier__name h3{font-size:21px; margin-bottom:6px}
.tier__name p{font-size:15px; color:var(--ink-2); max-width:52ch}
.tier__price{text-align:right; flex:none}
.price{font-size:29px; font-weight:700; letter-spacing:-.02em}
.price__note{font-size:13.5px; color:var(--ink-2); margin-top:3px}
.pricing__foot{margin-top:18px; font-size:13.5px; color:var(--ink-2)}

/* ---- Closing CTA + signup ---- */
.band--cta{background:linear-gradient(150deg,var(--grad-a),var(--grad-b))}
.cta{text-align:center; max-width:820px}
.cta h2{font-size:clamp(26px,3.4vw,38px); margin-bottom:16px}
.cta__sub{font-size:17.5px; color:#CFE6E6; margin-bottom:34px}

.signup__row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
/* Solid rather than translucent: over this gradient, no placeholder colour on a
   see-through field reaches 4.5:1, and these placeholders carry the label text. */
.signup input{
  flex:1 1 250px; max-width:300px; padding:15px 18px; border-radius:999px;
  border:1px solid transparent; background:var(--card);
  color:var(--ink); font:400 15.5px/1 'Poppins',sans-serif;
}
.signup input::placeholder{color:var(--ink-2); opacity:1}
.signup input:focus{outline-color:var(--mint)}
.signup input[aria-invalid="true"]{border-color:var(--red); box-shadow:0 0 0 3px rgba(179,38,30,.25)}
.signup__fine{margin-top:18px; font-size:13px; color:#D9EBEB}
/* Brand mint is only 3.98:1 against the light end of this gradient, so text on
   the CTA band uses paler tints of the same hues. */
.signup__fine a{color:#A8F4E3}
.signup__status{margin-top:14px; font-size:15px; font-weight:500; min-height:1.4em}
.signup__status.is-ok{color:#B8F6E8}
.signup__status.is-err{color:#FFE0DB}
/* honeypot — off-screen rather than display:none, which some bots skip */
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}

/* ---- Footer ---- */
.foot{background:var(--ink); color:#8FA8B5; padding:44px 0}
.foot__inner{display:flex; align-items:center; gap:24px; flex-wrap:wrap}
/* The dark lockup has a solid #0C263A background baked in — the same colour as
   the footer, so it blends. Any opacity here would reveal it as a pale block. */
.foot__logo{width:140px; height:auto; margin-right:auto}
.foot__links{display:flex; gap:24px; flex-wrap:wrap}
.foot__links a{color:#CFE0E6; text-decoration:none; font-size:14.5px}
.foot__links a:hover{color:var(--mint)}
.foot__copy{font-size:13px; width:100%; padding-top:20px; border-top:1px solid #1D3A4E}

/* ---- Document pages (privacy) ---- */
.doc{padding:72px 0 88px}
.doc__inner{max-width:74ch}
.doc h1{font-size:clamp(32px,4vw,44px); margin-bottom:10px}
.doc__stamp{font-size:13.5px; color:var(--ink-2); margin-bottom:28px}
.doc h2{font-size:21px; margin:40px 0 12px}
.doc p{margin-bottom:14px; color:var(--ink-2)}
.doc .lede{color:var(--ink-2); margin-bottom:8px}
.doc strong{color:var(--ink); font-weight:600}
.doc__list{margin:0 0 16px; padding-left:22px; list-style:disc}
.doc__list li{margin-bottom:8px; color:var(--ink-2)}

/* ---- Responsive ---- */
@media (max-width:1000px){
  .hero__grid{grid-template-columns:1fr; gap:48px}
  .steps{grid-template-columns:repeat(2,1fr); gap:32px}
  .nav__links{display:none}
}
@media (max-width:760px){
  body{font-size:16px}
  .hero{padding:56px 0 68px}
  .band,.safety{padding:64px 0}
  .pricing{padding-bottom:64px}
  .steps{grid-template-columns:1fr; gap:28px}
  .panel{grid-template-columns:1fr}
  .panel__rule{border-left:0; border-top:1px solid var(--line)}
  .scenarios{padding:20px}
  .tier{flex-direction:column; align-items:flex-start; gap:14px; padding:24px}
  .tier__price{text-align:left}
  .signup input{max-width:none; flex-basis:100%}
  .signup__row .btn{width:100%}
  .foot__logo{margin-right:0}
}
