
:root{
  --bg1:#4671A2;
  --bg2:#2b4c73;
  --teal:#0F7B82;
  --teal2:#0c6d73;
  --panel:#355E89;
  --panel2:#2e547d;
  --card: rgba(0,0,0,.18);
  --line: rgba(255,255,255,.22);
  --text:#f3f7ff;
  --muted: rgba(243,247,255,.82);
  --btn:#BFE3EC;
  --btn2:#A9D7E3;
  --btnText:#0b1a2b;
  --shadow:0 10px 24px rgba(0,0,0,.26);
  --radius:14px;
  --max:1080px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1000px 650px at 15% -10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(15,123,130,.22), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 78%, #223a57);
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 18px;}
/* Header / Footer bars */
.bar{
  background:linear-gradient(180deg, var(--teal), var(--teal2));
  border-bottom:1px solid rgba(255,255,255,.25);
}
.bar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px;
}
.badge{
  width:18px; height:18px; border-radius:5px;
  background:linear-gradient(135deg, #eaf7ff, #9ce7ee);
  box-shadow:0 4px 10px rgba(0,0,0,.25);
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
/* Buttons (match CDM aqua look) */
.cdm-btn{
  appearance:none;
  border:1px solid rgba(0,0,0,.18);
  background:linear-gradient(180deg, var(--btn), var(--btn2));
  color:var(--btnText);
  font-weight:900;
  padding:10px 14px;
  border-radius:10px;
  box-shadow:0 2px 0 rgba(0,0,0,.25), 0 8px 18px rgba(0,0,0,.18);
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:170px;
}
.cdm-btn:hover{filter:brightness(1.03)}
.cdm-btn:active{transform:translateY(1px)}
.cdm-btn.small{min-width:0; padding:9px 12px; font-size:14px;}
.cdm-btn.secondary{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.25);
  color:var(--text);
  box-shadow:none;
}
/* Page sections */
.hero{
  padding:34px 0 18px;
}
.hero h1{
  margin:0 0 8px;
  font-size:40px;
  line-height:1.08;
  letter-spacing:.2px;
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}
.pills{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;}
.pill{
  font-size:12px; font-weight:900;
  padding:7px 10px; border-radius:999px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.22);
}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
  .cdm-btn{min-width:150px}
  .hero h1{font-size:34px}
}
.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px 16px;
}
.card h2{
  margin:0 0 8px;
  font-size:18px;
}
.card p{margin:0; color:var(--muted); line-height:1.55;}
.section{
  margin-top:24px;
}
.section h2{
  margin:0 0 10px;
  font-size:22px;
}
.section p{color:var(--muted); line-height:1.6}
.figure{
  margin:14px 0 18px;
  background:rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.figure img{
  width:100%;
  height:auto;
  display:block;
}
.figcap{
  padding:10px 14px 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}
/* Instructions styling */
.instructions{
  background:rgba(0,0,0,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 18px;
}
.instructions h3{
  margin:16px 0 6px;
  font-size:16px;
}
.instructions p{
  margin:0 0 10px;
  color:var(--muted);
}
.instructions ul{margin:8px 0 10px 20px; color:var(--muted);}
.instructions li{margin:6px 0}
/* Footer */
.footer{
  margin-top:34px;
  padding:18px 0 10px;
  border-top:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.12);
}
.copyright{
  text-align:center;
  color:rgba(243,247,255,.7);
  font-size:12px;
  padding:10px 0 18px;
}


/* --- Overrides / additions (v2) --- */

/* Purchase / Store buttons — match CDM app look (blue, rounded, white text) */
.cdm-btn.cdm-btn-buy{
  background: linear-gradient(180deg, #17aee5, #0a90c6);
  color:#ffffff;
  border:1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
  font-weight:800;
}
.cdm-btn.cdm-btn-buy:hover{
  filter: brightness(1.04);
}
.cdm-btn.cdm-btn-buy:active{
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,.22);
}

/* Header/Footer button layout */
.bar-actions, .actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
@media (max-width: 740px){
  .bar-actions, .actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
  .cdm-btn.cdm-btn-buy{flex:1 1 220px; text-align:center;}
}

/* Demo video */
.video{margin-top:18px;}
.video .muted{opacity:.92; max-width: 80ch;}
.video-frame{
  margin-top:10px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  box-shadow: var(--shadow);
  padding:12px;
}
.video-frame video{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
}

/* Screenshot figures */
.figure img{width:100%; height:auto; display:block;}
.figure figcaption{font-size:14px; line-height:1.35;}


/* Header/Footer CTA buttons — match CDM app purchase buttons */
.cta-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:6px;
  font-weight:800;
  letter-spacing:.1px;
  text-decoration:none;
  color:#ffffff;
  background:linear-gradient(180deg,#12a3da,#0f8fc2);
  border:1px solid rgba(0,0,0,.15);
  box-shadow:0 6px 14px rgba(0,0,0,.25);
  min-width: 230px;
}
.cta-btn:hover{filter:brightness(1.04)}
.cta-btn:active{transform:translateY(1px)}
@media (max-width: 720px){
  .cta-btn{min-width: 100%;}
}
