/* ============================================================
   SoberLine — global styles
   Static site (no build). Palette + fonts mirror Website.dc.html.
   ============================================================ */

:root{
  --bg:#FBFDFC;
  --ink:#2C3E50;
  --blue:#5DADE2;
  --blue-dark:#3E92CD;
  --green:#5FB97C;
  --green-2:#57B592;
  --green-dark:#3f8f5f;
  --teal:#54B39F;
  --amber:#F5B041;
  --amber-2:#F8C471;
  --muted:#5b6b78;
  --muted-2:#8497a6;
  --line:#EEF2F4;
  --card:#ffffff;
  --footer:#2C3E50;
  --maxw:1140px;
  --grad:linear-gradient(100deg,#5DADE2,#5FB97C);
  --grad-brand:linear-gradient(150deg,#5DADE2,#5FB97C);
  --font-head:'Quicksand',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Nunito Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  font-family:var(--font-body);
  color:var(--ink);
  line-height:1.6;
}
a{color:var(--blue);text-decoration:none;transition:color .15s ease,opacity .15s ease}
a:hover{color:var(--blue-dark)}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{max-width:100%}
h1,h2,h3{font-family:var(--font-head);color:var(--ink);margin:0;letter-spacing:-.01em;line-height:1.12}
p{margin:0}

.wrap{max-width:var(--maxw);margin:0 auto;padding-left:28px;padding-right:28px}
.eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}

/* ---------- Store / app buttons (official Apple badge) ---------- */
.apple-badge{display:inline-block;line-height:0}
.apple-badge img{width:200px;height:auto;max-width:100%;display:block;transition:transform .2s ease}
.apple-badge:hover img{transform:translateY(-2px)}

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap{
  position:sticky;top:0;z-index:50;
  background:rgba(251,253,252,.82);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .2s ease;
}
.nav-wrap.scrolled{box-shadow:0 6px 20px rgba(44,62,80,.06)}
.nav{
  max-width:var(--maxw);margin:0 auto;padding:16px 28px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{display:flex;align-items:center;gap:10px}
.brand__mark{
  width:40px;height:40px;border-radius:12px;flex:none;overflow:hidden;
  background:var(--grad-brand);box-shadow:0 4px 12px rgba(87,181,146,.3);
}
.brand__mark img{width:100%;height:100%;object-fit:cover;transform:scale(1.42);display:block}
.brand__name{font-family:var(--font-head);font-weight:700;font-size:22px;color:var(--ink)}
.brand__name .accent{color:var(--blue)}
.brand:hover .brand__name{color:var(--ink)}

.nav__links{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.nav__link{font-weight:700;font-size:15px;color:#5b6b78}
.nav__link:hover{color:var(--ink)}
.nav__cta{
  font-weight:700;font-size:15px;padding:10px 20px;border-radius:13px;
  background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(87,181,146,.28);
}
.nav__cta:hover{color:#fff;opacity:.94}

.nav__toggle{display:none;width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center}
.nav__toggle svg{display:block}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,#EAF6FB 0%,#EAF7EE 60%,#FBFDFC 100%);
}
.hero__glow{
  position:absolute;top:-160px;right:-120px;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(93,173,226,.16),rgba(93,173,226,0) 65%);
  pointer-events:none;
}
.hero__inner{
  max-width:var(--maxw);margin:0 auto;padding:76px 28px 40px;
  display:flex;align-items:center;gap:40px;flex-wrap:wrap;
}
.hero__copy{flex:1;min-width:320px}
.hero__badge{
  display:inline-flex;align-items:center;gap:8px;background:#fff;
  padding:7px 14px;border-radius:20px;box-shadow:0 4px 14px rgba(44,62,80,.06);
  font-size:13px;font-weight:700;color:var(--green-dark);margin-bottom:22px;
}
.hero h1{font-size:clamp(30px,4.3vw,49px);text-wrap:balance}
.hero h1 .accent{color:var(--green-2)}
.hero__lede{font-size:clamp(17px,2vw,20px);color:var(--muted);margin:22px 0 30px;max-width:520px}
.hero__ctas{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.hero__assur{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted-2);font-weight:600}

/* device cluster */
.hero__devices{
  flex:1;min-width:340px;position:relative;height:520px;
  display:flex;justify-content:center;align-items:flex-end;
}
.hero__device{position:absolute;bottom:34px}
.hero__device--cal{left:6%;transform:rotate(-8deg)}
.hero__device--ins{right:6%;transform:rotate(8deg)}
.hero__device--home{position:relative;bottom:0;z-index:3}

/* ---------- Phone frame ---------- */
.phone{
  width:var(--w,232px);aspect-ratio:1 / 2.09;flex:none;
  border-radius:calc(var(--w,232px) * .23);
  background:#1f2a33;padding:calc(var(--w,232px) * .035);
  box-shadow:0 26px 60px rgba(31,42,51,.28);
}
.phone__inner{
  width:100%;height:100%;overflow:hidden;background:#F4F7F8;
  border-radius:calc(var(--w,232px) * .20);
}
.phone img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.float-a{animation:dlFloat 8s ease-in-out infinite}
.float-b{animation:dlFloat 8s ease-in-out infinite 1.2s}
.float-c{animation:dlFloat 9s ease-in-out infinite .5s}

@keyframes dlFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}

/* ============================================================
   TRUST CHIPS  (replaces fabricated stat numbers)
   ============================================================ */
.trust{max-width:var(--maxw);margin:0 auto;padding:20px 28px 10px}
.trust__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.trust__card{
  background:var(--card);border-radius:18px;padding:22px 18px;text-align:center;
  box-shadow:0 8px 24px rgba(44,62,80,.05);
}
.trust__icon{font-size:30px;line-height:1}
.trust__label{font-size:14.5px;color:var(--ink);font-weight:700;margin-top:10px;line-height:1.35}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head{text-align:center;max-width:640px;margin:0 auto 20px}
.section-head h2{font-size:clamp(28px,4vw,42px);margin:10px 0 12px}
.section-head p{font-size:17px;color:var(--muted)}

/* ============================================================
   FEATURES
   ============================================================ */
.features{max-width:var(--maxw);margin:0 auto;padding:70px 28px 20px}
.feature{
  display:flex;align-items:center;gap:clamp(24px,5vw,64px);
  flex-wrap:wrap;justify-content:center;padding:44px 0;
}
.feature--reverse{flex-direction:row-reverse}
.feature__text{flex:1;min-width:300px;max-width:460px}
.feature__icon{
  display:inline-flex;width:52px;height:52px;border-radius:15px;
  align-items:center;justify-content:center;font-size:26px;margin-bottom:16px;
}
.feature__text h3{font-size:clamp(24px,3vw,32px)}
.feature__body{font-size:16.5px;color:var(--muted);margin:12px 0 18px}
.feature__points{display:flex;flex-direction:column;gap:10px}
.point{display:flex;align-items:flex-start;gap:10px;font-size:15.5px;color:#42535f;font-weight:600}
.point svg{flex:none;margin-top:2px}
.feature__media{flex:none}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how{background:linear-gradient(180deg,#FBFDFC,#EAF7EE 50%,#FBFDFC);padding:70px 0}
.how__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.step{
  background:var(--card);border-radius:22px;padding:28px;position:relative;
  box-shadow:0 10px 28px rgba(44,62,80,.06);
}
.step__num{
  position:absolute;top:24px;right:26px;font-family:var(--font-head);
  font-weight:700;font-size:44px;line-height:1;
}
.step__icon{
  width:54px;height:54px;border-radius:16px;display:flex;align-items:center;
  justify-content:center;font-size:27px;margin-bottom:16px;
}
.step h3{font-size:21px}
.step p{font-size:15px;color:var(--muted);margin-top:8px}

/* ============================================================
   BENEFITS BAND
   ============================================================ */
.benefits{max-width:var(--maxw);margin:0 auto;padding:70px 28px}
.benefits__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.benefit-card{border-radius:26px;padding:34px;color:#fff}
.benefit-card--green{background:linear-gradient(150deg,#5FB97C,#54b39f);box-shadow:0 16px 36px rgba(95,185,124,.24)}
.benefit-card--blue{background:linear-gradient(150deg,#5DADE2,#3E92CD);box-shadow:0 16px 36px rgba(93,173,226,.24)}
.benefit-card__kicker{font-size:14px;font-weight:800;opacity:.9;text-transform:uppercase;letter-spacing:.06em}
.benefit-card__big{font-family:var(--font-head);font-weight:700;font-size:clamp(30px,4.4vw,46px);margin:10px 0 6px;line-height:1.1}
.benefit-card__big small{font-size:20px;opacity:.85;font-weight:700}
.benefit-card p{font-size:16px;opacity:.94}

/* ============================================================
   BLOG
   ============================================================ */
.blog{background:#F4F7F8;padding:70px 0}
.blog__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:32px}
.blog__head-copy{max-width:560px}
.blog__head-copy h2{font-size:clamp(28px,4vw,42px);margin:10px 0 10px}
.blog__head-copy p{font-size:17px;color:var(--muted)}
.blog__all{
  font-weight:700;font-size:15px;padding:11px 20px;border-radius:13px;background:#fff;
  box-shadow:0 6px 16px rgba(44,62,80,.06);white-space:nowrap;color:var(--ink);
}
.blog__all:hover{color:var(--ink);opacity:.9}
.blog__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.post{
  background:#fff;border-radius:22px;overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 10px 28px rgba(44,62,80,.06);
}
.post__cover{height:150px;display:flex;align-items:center;justify-content:center;font-size:48px}
.post__body{padding:22px;display:flex;flex-direction:column;flex:1}
.post__tag{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.post h3{font-size:19px;margin:8px 0;line-height:1.25}
.post__excerpt{font-size:14.5px;color:var(--muted-2);flex:1}
.post__meta{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:#a4b1bb;font-weight:600}

/* ============================================================
   TESTIMONIAL / PHILOSOPHY
   ============================================================ */
.quote{max-width:900px;margin:0 auto;padding:76px 28px;text-align:center}
.quote__leaf{font-size:40px;margin-bottom:18px}
.quote blockquote{
  font-family:var(--font-head);font-weight:700;font-size:clamp(22px,3vw,32px);
  color:var(--ink);line-height:1.35;margin:0;
}
.quote__by{margin-top:22px;font-size:15px;color:var(--muted-2);font-weight:700}

/* ============================================================
   FAQ
   ============================================================ */
.faq{max-width:820px;margin:0 auto;padding:20px 28px 76px}
.faq h2{font-size:clamp(28px,4vw,40px);text-align:center;margin-bottom:32px}
.faq__list{display:flex;flex-direction:column;gap:12px}
.faq__item{background:#fff;border-radius:18px;box-shadow:0 6px 18px rgba(44,62,80,.05);overflow:hidden}
.faq__q{
  width:100%;text-align:left;padding:20px 22px;display:flex;align-items:center;
  justify-content:space-between;gap:16px;
}
.faq__q span:first-child{font-family:var(--font-head);font-weight:700;font-size:17.5px;color:var(--ink)}
.faq__plus{font-size:24px;color:var(--blue);font-weight:400;flex:none;transition:transform .2s ease}
.faq__item.open .faq__plus{transform:rotate(45deg)}
.faq__a{
  padding:0 22px;font-size:15.5px;color:var(--muted);line-height:1.6;
  max-height:0;overflow:hidden;transition:max-height .28s ease,padding .28s ease;
}
.faq__item.open .faq__a{padding:0 22px 22px;max-height:400px}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta{max-width:var(--maxw);margin:0 auto 76px;padding:0 28px}
.cta__inner{
  border-radius:32px;padding:clamp(36px,6vw,64px);text-align:center;color:#fff;
  background:linear-gradient(120deg,#5DADE2,#57B592 55%,#5FB97C);
  box-shadow:0 24px 60px rgba(87,181,146,.3);position:relative;overflow:hidden;
}
.cta__glow{position:absolute;top:-80px;right:-60px;width:300px;height:300px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 65%)}
.cta__inner h2{color:#fff;font-size:clamp(28px,4vw,44px);position:relative}
.cta__inner p{font-size:18px;opacity:.95;max-width:520px;margin:16px auto 28px;position:relative}
.cta__buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;position:relative}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:var(--footer);color:#cdd8de;padding:56px 0 32px}
.site-footer__grid{
  max-width:var(--maxw);margin:0 auto;padding:0 28px;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;
}
.site-footer__brand{min-width:220px}
.site-footer__brand-row{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.site-footer__mark{
  width:36px;height:36px;border-radius:10px;flex:none;overflow:hidden;background:var(--grad-brand);
}
.site-footer__mark img{width:100%;height:100%;object-fit:cover;transform:scale(1.42);display:block}
.site-footer__name{font-family:var(--font-head);font-weight:700;font-size:20px;color:#fff}
.site-footer__blurb{font-size:14px;color:#93a3ad;max-width:280px}
.site-footer__crisis{font-size:12.5px;color:#6f818c;margin-top:16px}
.site-footer__col-title{font-family:var(--font-head);font-weight:700;color:#fff;font-size:15px;margin-bottom:14px}
.site-footer__links{display:flex;flex-direction:column;gap:10px;font-size:14px}
.site-footer__links a{color:#cdd8de}
.site-footer__links a:hover{color:#fff}
.site-footer__bar{
  max-width:var(--maxw);margin:32px auto 0;padding:20px 28px 0;
  border-top:1px solid #3c4d5c;font-size:13px;color:#6f818c;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal-hero{
  background:linear-gradient(180deg,#EAF6FB 0%,#EAF7EE 60%,#FBFDFC 100%);
  padding:64px 28px 36px;text-align:center;
}
.legal-hero h1{font-size:clamp(30px,4vw,46px)}
.legal-hero p{color:var(--muted);margin-top:12px;font-size:16px}
.legal{max-width:820px;margin:0 auto;padding:48px 28px 80px}
.legal h2{font-size:24px;margin:36px 0 12px}
.legal h3{font-size:18px;margin:22px 0 8px}
.legal p{color:#42535f;margin:12px 0;font-size:16px}
.legal ul{color:#42535f;padding-left:22px;margin:12px 0;font-size:16px}
.legal li{margin:7px 0}
.legal a{font-weight:700}
.legal__note{
  background:#EAF7EE;border:1px solid #d4ecdc;border-radius:16px;padding:18px 20px;
  font-size:14.5px;color:var(--green-dark);margin:24px 0;
}

/* ============================================================
   MOBILE MENU + RESPONSIVE
   ============================================================ */
.nav__links.mobile-open{display:flex}

@media (max-width:900px){
  .hero__inner{padding-top:56px}
  .hero__devices{height:440px;min-width:300px}
  .hero__device--home .phone{--w:210px}
  .hero__device--cal .phone{--w:150px}
  .hero__device--ins .phone{--w:150px}
  .site-footer__grid{grid-template-columns:1fr 1fr;gap:28px}
  .site-footer__brand{grid-column:1 / -1}
}

@media (max-width:768px){
  .nav__toggle{display:flex}
  .nav__links{
    display:none;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:6px;
    background:#fff;border-bottom:1px solid var(--line);
    padding:14px 20px 20px;box-shadow:0 12px 24px rgba(44,62,80,.08);
  }
  .nav{position:relative}
  .nav__link{padding:10px 4px}
  .nav__cta{text-align:center}
  .feature,.feature--reverse{flex-direction:column;text-align:left}
  .feature__text{max-width:520px}
  .blog__head{flex-direction:column;align-items:flex-start}
  /* Stack the hero explicitly instead of relying on flex-wrap. */
  .hero__inner{flex-direction:column;align-items:flex-start}
  .hero__copy{min-width:0;width:100%}
  .hero__devices{min-width:0;width:100%;justify-content:center}
}

@media (max-width:600px){
  .wrap,.hero__inner,.features,.benefits,.trust,.faq,.cta,.quote{padding-left:20px;padding-right:20px}
  .hero__inner{padding-left:20px;padding-right:20px}
  .hero__devices{height:420px}
  .hero__device--cal,.hero__device--ins{display:none}
  .hero__device--home .phone{--w:230px}
  .site-footer__grid{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .float-a,.float-b,.float-c{animation:none}
  *{transition:none !important}
}
