/* Insulin Dose Calculator — placeholder site
   Simple, responsive, single-file styling.
*/
:root{
    --bg:#FFFFFF;
    --panel:#F8F9FA;
  --text:#0A0E1A;
  --embossed:rgba(74,144,226,.85);
  --muted:rgba(10,14,26,.65);
  --muted2:rgba(10,14,26,.50);
  --border:rgba(10,14,26,.12);
    --accent1:#4A90E2;
    --accent2:#5BA3F5;
  --shadow: 0 16px 40px rgba(0,0,0,.08);
  --bg-gradient-start: #FFFFFF;
  --bg-gradient-mid: #FAFBFC;
  --bg-gradient-end: #FFFFFF;
  --gradient-overlay-1: rgba(91,163,245,.06);
  --gradient-overlay-2: rgba(74,144,226,.05);
}

[data-theme="dark"]{
    --bg:#1A1A1A;
    --panel:#2A2A2A;
  --text:#F5F5F5;
  --embossed:rgba(74,144,226,.85);
  --muted:rgba(245,245,245,.70);
  --muted2:rgba(245,245,245,.55);
  --border:rgba(255,255,255,.15);
    --accent1:#5BA3F5;
    --accent2:#6BB4FF;
  --shadow: 0 16px 40px rgba(0,0,0,.3);
  --bg-gradient-start: #1A1A1A;
  --bg-gradient-mid: #222222;
  --bg-gradient-end: #1A1A1A;
  --gradient-overlay-1: rgba(91,163,245,.08);
  --gradient-overlay-2: rgba(74,144,226,.06);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  padding-top: 80px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, var(--gradient-overlay-1), transparent 60%),
    radial-gradient(1000px 600px at 80% 20%, var(--gradient-overlay-2), transparent 60%),
    linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 560px){
  body{
    padding-top: 70px;
  }
}

a{ 
  color: var(--accent1); 
  text-decoration:none; 
  transition: color 0.3s ease;
}
a:hover{ 
  color: var(--accent2);
  text-decoration:underline; 
}

p{
  color: var(--text);
  transition: color 0.3s ease;
  line-height: 1.6;
}

main .section p,
main .section section p{
  color: var(--text);
}

main .section ul li,
main .section section ul li{
  color: var(--text);
}

main .section strong{
  color: var(--text);
  font-weight: 600;
}

main .section h3{
  color: var(--text);
  transition: color 0.3s ease;
}

main .section p[style*="font-style: italic"],
main .section section p[style*="font-style: italic"]{
  color: var(--muted);
}

.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 22px;
  background: rgba(var(--bg-rgb, 255,255,255),.98);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .header{
  background: rgba(26,26,26,.98);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.mobile-menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-toggle span{
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1){
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2){
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3){
  transform: rotate(-45deg) translate(7px, -7px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.logo{
  width:78.75px;
  height:78.75px;
  display:grid;
  place-items:center;
  border:none;
  background: var(--bg);
  border-radius:14px;
  overflow:hidden;
  flex-shrink: 0;
}
.logo svg{ width:78.75px; height:78.75px; }
.logo img{ width:78.75px; height:78.75px; display:block; object-fit:cover; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-name{ font-weight:700; letter-spacing:.2px; color:var(--text); }
.brand-sub{ font-size:.85rem; color:var(--muted); }

.nav{
  display:flex;
  align-items:center;
  gap:16px;
  font-weight:600;
  color:var(--muted);
  transition: all 0.3s ease;
}

.nav a{ opacity:.95; }
.nav a:hover{ opacity:1; }

@media (max-width: 768px){
  .nav{
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  [data-theme="dark"] .nav{
    background: rgba(26,26,26,.98);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  
  .nav.nav-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav a{
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
  }
  
  .nav a.button{
    background: linear-gradient(135deg, rgba(74,144,226,.95), rgba(91,163,245,.95));
    color: #FFFFFF;
    border: none;
  }
  
  .mobile-menu-toggle{
    display: flex;
  }
  
  .theme-toggle{
    display: flex;
  }
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius:14px;
  border:1px solid rgba(74,144,226,.2);
  background: linear-gradient(135deg, rgba(74,144,226,.95), rgba(91,163,245,.95));
  color:#FFFFFF;
  font-weight:800;
  box-shadow: 0 10px 26px rgba(74,144,226,.25);
  text-decoration:none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.button:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.button:active{ transform: translateY(0); }
.button.small{ padding: 9px 12px; border-radius:12px; }
.button.ghost{
  background: var(--panel);
  color: var(--text);
  border:1px solid var(--border);
}
.button.ghost:hover{ background: var(--panel); opacity: 0.8; }

.hero{
  padding: 54px 22px 10px;
}
.hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.hero-copy{
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px){
  .hero{
    padding: 24px 16px 10px;
  }
  
  .hero-inner{
    gap: 24px;
  }
}

.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-weight:600;
  width: fit-content;
}

h1{
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color:var(--text);
}
.lead{
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
}

/* Theme Toggle Button */
.theme-toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  margin-left: 12px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover{
  background: var(--bg);
  border-color: var(--accent1);
  transform: scale(1.05);
}

.theme-toggle:active{
  transform: scale(0.95);
}

@media (max-width: 768px){
  .theme-toggle{
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-left: 8px;
  }
}

.cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 16px 0 18px; }

@media (max-width: 480px){
  .cta{
    flex-direction: column;
  }
  
  .cta .button{
    width: 100%;
    justify-content: center;
  }
}

.trust{
  list-style:none;
  padding:0;
  margin: 18px 0 8px;
  display:grid;
  gap:10px;
  color: var(--muted);
  font-weight:600;
}

@media (max-width: 480px){
  .trust{
    font-size: 0.95rem;
  }
}
.trust .dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  margin-right:10px;
  transform: translateY(1px);
}

.disclaimer{
  margin-top: 16px;
  font-size:.95rem;
  color: var(--muted2);
  border-left: 3px solid rgba(74,144,226,.6);
  padding-left: 12px;
}

.hero-card{
  border: 2px solid rgba(74,144,226,.3);
  background: linear-gradient(135deg, rgba(74,144,226,.12), rgba(91,163,245,.08));
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(74,144,226,.15);
  overflow:hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.mock{
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 450px;
}

@media (max-width: 768px){
  .mock{
    max-height: 350px;
  }
}

@media (max-width: 480px){
  .mock{
    max-height: 280px;
  }
}
.mock img{
  width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
}
.mock-top{
  display:flex;
  align-items:center;
  gap:7px;
  padding: 10px 10px 12px;
  border:1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.mock-dot{
  width:10px;height:10px;border-radius:99px;background: var(--muted2);
}
.mock-title{
  margin-left: 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: .95rem;
}
.mock-body{ padding: 14px 6px 4px; }
.kpi{
  display:flex;
  justify-content:space-between;
  padding: 10px 10px;
  border:1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  margin: 10px 0;
}
.kpi-label{ color: var(--muted2); font-weight:650; }
.kpi-value{ font-weight:850; letter-spacing:.2px; }
.kpi-value.accent{
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.divider{ height:1px; background: rgba(74,144,226,.3); margin: 14px 0; }
.rows{ display:grid; gap:10px; }
.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 10px;
  border:1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  color: var(--muted);
  font-weight:650;
}
.chip{
  font-size:.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--panel);
  color: var(--muted2);
}
.mock-note{
  margin-top: 12px;
  font-size:.9rem;
  color: var(--muted2);
}

.card-footer{
  padding: 14px 16px;
  border-top:1px solid rgba(74,144,226,.2);
  color: var(--muted2);
  background: linear-gradient(135deg, rgba(74,144,226,.08), rgba(91,163,245,.05));
}

.section{
  padding: 54px 22px;
}
.section.alt{
  background: var(--panel);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.container{
  max-width: 1120px;
  margin: 0 auto;
}
h1{
  margin:0 0 24px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -.02em;
  color:var(--text);
  font-weight: 700;
}

h2{
  margin:0 0 18px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.01em;
  color:var(--text);
  font-weight: 600;
}
h3{ color:var(--text); }
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature{
  padding: 18px 18px;
  border:2px solid rgba(74,144,226,.3);
  background: linear-gradient(135deg, rgba(74,144,226,.12), rgba(91,163,245,.08));
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(74,144,226,.12);
}
.feature h3{ margin: 0 0 8px; font-size: 1.05rem; color:var(--text); }
.feature p{ margin:0; color: var(--muted); line-height:1.5; }

.two-col{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items:start;
}
.callout{
  padding: 18px;
  border-radius: 18px;
  border:1px solid rgba(74,144,226,.25);
  background: linear-gradient(180deg, rgba(74,144,226,.10), rgba(91,163,245,.06));
}
.callout h3{ margin: 0 0 8px; color:var(--text); }
.callout p{ margin:0 0 10px; color: var(--muted); }
.mini{ margin:0; padding-left: 18px; color: var(--muted); line-height:1.6; }
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .9em;
  color: rgba(74,144,226,.85);
}

/* Download Section */
.download-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.download-button{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover{
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-button:active{
  transform: translateY(0);
}

.store-badge-img{
  width: 154px;
  height: 45px;
  display: block;
  border-radius: 10px;
  transition: all 0.3s ease;
  object-fit: contain;
}

.download-button:hover .store-badge-img{
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

@media (max-width: 768px){
  .download-buttons{
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px){
  .download-buttons{
    gap: 16px;
  }
  
  .store-badge-img{
    width: 137px;
    height: 40px;
  }
}

.contact{
  font-size: 1.2rem;
  font-weight: 800;
  margin: 10px 0 18px;
}
.details{
  border:1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 10px 14px;
  max-width: 860px;
}

@media (max-width: 480px){
  .details{
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}
.details summary{
  cursor:pointer;
  font-weight: 800;
  color:var(--text);
}
.details-body{
  padding: 10px 2px 2px;
  color: var(--muted);
  line-height:1.6;
}

.footer{
  margin-top: 26px;
  padding-top: 18px;
  border-top:1px solid rgba(74,144,226,.3);
  color: var(--muted2);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content: center;
  text-align: center;
}
.footer a{ color: var(--muted); }
.sep{ opacity:.5; }

@media (max-width: 480px){
  .footer{
    flex-direction: column;
    gap: 8px;
  }
  
  .sep{
    display: none;
  }
}

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  .grid{ grid-template-columns: 1fr; }
  .section{ padding: 40px 16px; }
  .container{ padding: 0; }
}

@media (max-width: 560px){
  .header{ padding: 12px 16px; }
  .logo{
    width: 60px;
    height: 60px;
  }
  .logo img, .logo svg{
    width: 60px;
    height: 60px;
  }
  .brand-text{
    font-size: 0.9rem;
  }
  .brand-sub{
    font-size: 0.75rem;
  }
  .hero{
    padding: 20px 16px 10px;
  }
  .section{
    padding: 32px 16px;
  }
  h1{
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
  .lead{
    font-size: 1rem;
  }
  .button{
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  .contact{
    font-size: 1.1rem;
    word-break: break-word;
  }
}

/* Lightbox Modal */
.lightbox{
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content{
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-content picture{
  display: block;
  max-width: 100%;
}

.lightbox-content img{
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: transform 0.3s ease;
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 40px;
  color: #FFFFFF;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  transition: opacity 0.2s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  border-radius: 50%;
}

.lightbox-close:hover{
  opacity: 0.7;
  background: rgba(0,0,0,.5);
}

@media (max-width: 768px){
  .lightbox-close{
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-content{
    max-width: 100%;
    padding: 10px;
  }
  
  .lightbox-content img{
    max-height: 80vh;
  }
  
  .lightbox-controls{
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lightbox-btn{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.lightbox-controls{
  display: flex;
  gap: 12px;
  align-items: center;
}

.lightbox-btn{
  background: linear-gradient(135deg, rgba(74,144,226,.95), rgba(91,163,245,.95));
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(74,144,226,.3);
}

.lightbox-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74,144,226,.4);
}

.lightbox-btn:active{
  transform: translateY(0);
}

/* Section Separators */
.section-separator{
  width: 100%;
  height: 2px;
  background: rgba(74,144,226,.3);
  margin: 0;
  padding: 0;
}

/* Screenshots Gallery */
.screenshots-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.screenshot-item{
  position: relative;
  border: 2px solid rgba(74,144,226,.3);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74,144,226,.12), rgba(91,163,245,.08));
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(74,144,226,.12);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.screenshot-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(74,144,226,.2);
  border-color: rgba(74,144,226,.5);
}

.screenshot-item img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.screenshot-item:hover img{
  transform: scale(1.05);
}

.screenshot-overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay{
  opacity: 1;
}

.screenshot-icon{
  font-size: 48px;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

@media (max-width: 1200px){
  .screenshots-gallery{
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px){
  .screenshots-gallery{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px){
  .screenshots-gallery{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .screenshot-item{
    border-radius: 14px;
  }
}
