:root{
  --text:#111827;
  --muted:#4b5563;          /* darker than before for contrast */
  --line:rgba(0,0,0,.10);
  --card:#ffffff;
  --brand:#1d4ed8;
  --bg:#f7f8fb;
  --nav:#ffffff;
  --shadow:0 1px 0 rgba(0,0,0,.02);
  --focus:0 0 0 3px rgba(29,78,216,.22);
  --radius:14px;
}
@media (prefers-color-scheme: dark){
  :root{
    --text:#e5e7eb;
    --muted:#cbd5e1;        /* brighter for contrast */
    --line:rgba(255,255,255,.16);
    --card:#0b1220;
    --brand:#93c5fd;
    --bg:#0a1020;
    --nav:#070c18;
    --shadow:none;
    --focus:0 0 0 3px rgba(147,197,253,.22);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

.skip{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  left:16px;top:16px;width:auto;height:auto;
  background:var(--card);color:var(--text);
  border:1px solid var(--line);border-radius:10px;
  padding:10px 12px;z-index:9999;box-shadow:var(--focus);
}

/* NAV */
nav{
  position:sticky;top:0;z-index:50;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  box-shadow:var(--shadow);
}
@supports (backdrop-filter: blur(1px)) {
  nav {
    backdrop-filter: saturate(1.1) blur(6px);
    background: color-mix(in srgb, var(--nav) 85%, transparent);
  }
}
.nav-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand a{
  font-weight:700;
  font-size:18px;
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
}
.brand a:focus-visible{outline:none;box-shadow:var(--focus)}
.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav-links a{
  font-weight:600;
  color:var(--text);
  opacity:.92;
  padding:10px 10px;
  border-radius:10px;
}
.nav-links a:hover{text-decoration:underline;text-underline-offset:4px}
.nav-links a:focus-visible{outline:none;box-shadow:var(--focus)}
.nav-links a[aria-current="page"]{
  text-decoration:underline;
  text-underline-offset:4px;
}

/* HERO */
header{
  padding:44px 0 30px;
}
.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:34px;
  align-items:center;
}
.hero h1{
  font-size:42px;
  line-height:1.08;
  margin:0 0 12px;
  letter-spacing:-.6px;
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:560px;
}
.hero-media{
  padding:18px;
  overflow:hidden; /* optional */
}
.hero-media img{
  width:min(380px, 100%);
  height:auto;
  display:block;
  margin-inline:auto;
}

/* APPS */
.apps{padding: 64px 0;}
.apps-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.app-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  display:grid;
  grid-template-columns:48px 1fr;
  column-gap:14px;
  row-gap:10px;
  align-items:start;
  min-height:140px;          /* key: keeps all cards aligned */
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

@media (hover:hover){
  .app-card:hover{
    transform:translateY(-2px);
    border-color:rgba(29,78,216,.25);
    box-shadow:0 6px 20px rgba(0,0,0,.06);
  }
}
@media (prefers-color-scheme: dark){
  .app-card:hover{
    box-shadow:0 6px 20px rgba(0,0,0,.35);
  }
}
.app-icon{
  width:44px;
  height:44px;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  display:block;
}
@media (prefers-color-scheme: dark){
  .app-icon{
    border-color:rgba(255,255,255,.25);
  }
}

.app-content{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.app-top{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.app-title{
  margin:0;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
}
.app-subtitle{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.35;
}

/* Learn link aligned to bottom consistently */
.app-actions{
  margin-top:auto;
  padding-top:12px;
}
.learn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:14px;
  color:var(--brand);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  width:max-content;
}
.learn:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}
.learn:focus-visible{outline:none;box-shadow:var(--focus)}
.learn .chev{font-size:12px}

/* 2+2+1: center last card without full-row stretching, keep SAME width */
.apps-grid .app-card:last-child{
  grid-column:1 / -1;
  justify-self:center;
  width:calc((100% - 20px)/2);
}

/* TRUST */
.trust{
  text-align:center;
  padding:44px 0 14px;
}
.trust .small{
  color:var(--muted);
  margin-bottom:6px;
  font-weight:600;
}
.trust .big{
  font-size:36px;
  font-weight:800;
  color:var(--brand);
  letter-spacing:-.4px;
}
.stars{
  margin-top:8px;
  font-weight:800;
  letter-spacing:1px;
  color:#f59e0b;
}
@media (prefers-color-scheme: dark){
  .stars{color:#fbbf24}
}

.learn-suffix{
  font-weight:500;
  color:var(--muted);
}

/* COMMENTS */
.comments{padding:26px 0 60px}
.comments-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.comment{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  font-size:14px;
}
.comment p{margin:0}
.comment .who{
  display:block;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}

/* FOOTER */
footer{
  border-top:1px solid var(--line);
  background:var(--nav);
  padding:28px 0;
  text-align:center;
}
.footer-social{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:12px;
}
.icon-btn{
  width:48px;               /* touch target fix */
  height:48px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--text);
  background:transparent;
}
.icon-btn:hover{
  border-color:rgba(29,78,216,.35);
  color:var(--brand);
}
.icon-btn:focus-visible{outline:none;box-shadow:var(--focus)}

.footer-email {
  border:0;
  padding:10px 0;
}
.footer-email:focus-visible {
  outline:2px solid var(--brand);
  outline-offset:4px;
}

.legal{
  font-size:13px;
  color:var(--muted);
  margin-top:8px;
}
.legal a{
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
  margin:0 6px;
  padding:6px 4px;
  border-radius:8px;
  display:inline-block;
}
.legal a:focus-visible{outline:none;box-shadow:var(--focus)}

.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.app-card.feature{
  grid-template-columns:1fr;
  padding:14px;
  gap:12px;
  min-height:unset;
}
.app-shot{
  width:100%;
  max-width:320px;
  height:auto;
  display:block;
  margin:0 auto 10px;
}
/* .app-shot{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--card);
} */

.cta-text{
  margin:0 auto 20px;
  max-width:520px;
  color:var(--muted);
  font-size:16px;
  line-height:1.45;
}

.store-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.store-badge{
  height:56px;
  display:inline-flex;
  align-items:center;
}
.store-badge img{
  height:56px;
  width:auto;
  display:block;
}

.section-head{margin-bottom:14px}
.section-head h2{margin:0 0 6px;font-size:24px;letter-spacing:-.3px}
.section-sub{margin:0;color:var(--muted);font-size:14px;max-width:640px}

.testimonials{padding:10px 0 56px}
.t-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.t-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  margin:0;
}
.t-card blockquote{margin:0;font-size:14px;line-height:1.55}
.t-card figcaption{margin-top:10px;color:var(--muted);font-size:13px;font-weight:600}

/* MOBILE */
@media (max-width:900px){
  header{padding:38px 0 26px}
  .hero{grid-template-columns:1fr;gap:18px}
  .hero h1{font-size:36px}
  .t-grid{grid-template-columns:1fr}
  .apps{padding:36px 0 28px}
  .apps-grid{grid-template-columns:1fr}
  .apps-grid .app-card:last-child{
    grid-column:auto;
    justify-self:stretch;
    width:100%;             /* ensures same width as all other cards */
  }

  .comments-grid{grid-template-columns:1fr}
}
