/* =========================================================
   Iron Karnet — "Ember" design system
   OLED black · motivational red · per-module neon accents
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Brand */
  --accent:        #E11D48;  /* PRIMARY */
  --accent-light:  #FB7185;
  --accent-deep:   #9F1239;

  /* Module accents */
  --neon-blue:   #38BDF8;  /* Water */
  --neon-green:  #34D399;  /* Success / progress */
  --neon-orange: #FB923C;  /* Workout */
  --neon-gold:   #FBBF24;  /* Achievements */
  --neon-purple: #A78BFA;  /* Supplements */

  /* Surfaces */
  --bg:            #000000;
  --bg-2:          #0A0A0A;
  --bg-3:          #111111;
  --surface:       #1A1A1A;
  --surface-light: #242424;

  /* Text */
  --text:      #FFFFFF;
  --text-dim:  #B0B0B0;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #E11D48 0%, #FB7185 100%);
  --grad-accent:  linear-gradient(135deg, #E11D48 0%, #9F1239 100%);
  --grad-warm:    linear-gradient(135deg, #F97316 0%, #E11D48 100%);
  --grad-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  --grad-gold:    linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  --grad-bg:      linear-gradient(180deg, #000000 0%, #0A0A0A 50%, #111111 100%);

  /* Type — SF Pro Rounded on Apple via ui-rounded, Nunito elsewhere */
  --font: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system,
          BlinkMacSystemFont, system-ui, sans-serif;

  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Section labels */
.eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
}

h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =================== NAV =================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad-accent);
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: #fff;
  box-shadow: 0 4px 14px rgba(225,29,72,0.45);
}
.brand .mark-img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 700; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 6px 20px rgba(225,29,72,0.4);
  transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(225,29,72,0.55); }
.btn.ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(255,255,255,0.1); box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-light); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; padding: 6px 4px; }

@media (max-width: 720px){
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0,0,0,0.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 24px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16px; }
  .nav-links a.btn { margin-top: 10px; justify-content: center; }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  background: var(--grad-bg);
  padding: 90px 0 60px;
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(600px 400px at 78% 12%, rgba(225,29,72,0.22), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(56,189,248,0.10), transparent 70%);
  pointer-events:none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 16px 0 18px; }
.hero p.lede { font-size: 19px; color: var(--text-dim); max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.tagline-sub { margin-top: 18px; font-size: 13px; color: var(--text-dim); }

/* Phone mockup */
.phone {
  position: relative;
  width: 290px; aspect-ratio: 1290 / 2796;
  margin: 0 auto;
  border-radius: 46px;
  background: #050505;
  border: 2px solid #2a2a2a;
  box-shadow: 0 30px 70px rgba(0,0,0,0.7), 0 0 0 8px #0d0d0d;
  padding: 12px;
}
.phone::after {
  content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%);
  width: 92px; height: 26px; background:#000; border-radius:14px;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.hero .phone { width: 320px; }

/* Multi-screenshot gallery (e.g. Water module) */
.gallery { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.phone.sm {
  width: 150px;
  border-radius: 30px;
  padding: 7px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6), 0 0 0 5px #0d0d0d;
}
.phone.sm::after { width: 46px; height: 14px; top: 9px; border-radius: 8px; }
.phone.sm .screen { border-radius: 23px; }
.phone.sm .screen img, .phone.sm .screen video { border-radius: 23px !important; }

/* Apple Watch frame */
.watch {
  position: relative; width: 168px; aspect-ratio: 205/251;
  margin: 0 auto; padding: 11px;
  background: #050505; border: 2px solid #2a2a2a; border-radius: 44px;
  box-shadow: 0 20px 46px rgba(0,0,0,0.7), 0 0 0 5px #0d0d0d;
}
.watch .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--surface); padding: 0; }
.watch .screen img, .watch .screen video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
@media (max-width: 880px){ .watch { width: min(160px, 50vw); } }

/* Screenshot placeholder slot */
.slot {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 26px; text-align: center;
  border: 2px dashed rgba(255,255,255,0.14);
  border-radius: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px);
}
.slot .ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
}
.slot .name { font-weight: 900; font-size: 16px; }
.slot .spec { font-size: 11px; color: var(--text-dim); line-height: 1.45; }
.slot .badge {
  font-size: 9px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bg); padding: 4px 10px; border-radius: 999px;
}

/* =================== STATS STRIP =================== */
.strip { border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); background: var(--bg-2); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; padding: 34px 24px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 900; }
.stat .lbl { font-size: 12px; color: var(--text-dim); font-weight: 700; letter-spacing: .5px; }

/* =================== FEATURES =================== */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 12px 0; }
.section-head p { color: var(--text-dim); font-size: 17px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text .eyebrow { color: var(--mod, var(--accent-light)); }
.feature-text h3 { font-size: 30px; margin: 12px 0 14px; }
.feature-text p { color: var(--text-dim); font-size: 16.5px; max-width: 460px; }
.feature-text ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.feature-text li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #d8d8d8; font-weight: 600; }
.feature-text li::before {
  content:""; width: 18px; height: 18px; border-radius: 6px;
  background: var(--mod, var(--accent)); flex: none;
  box-shadow: 0 0 12px var(--mod, var(--accent));
}
.feature-visual { display: flex; justify-content: center; }

/* =================== DOWNLOAD CTA =================== */
.cta {
  position: relative; text-align: center; padding: 96px 24px;
  background: var(--grad-accent); overflow: hidden;
}
.cta::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(500px 300px at 50% 0%, rgba(255,255,255,0.18), transparent 70%);
}
.cta h2 { font-size: clamp(30px, 5vw, 48px); position: relative; }
.cta p { color: rgba(255,255,255,0.85); font-size: 18px; margin: 14px 0 28px; position: relative; }
.cta .btn { background: #fff; color: var(--accent-deep); box-shadow: 0 10px 30px rgba(0,0,0,0.35); position: relative; }
.cta .btn:hover { transform: translateY(-2px); }

/* App Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 12px 22px; border-radius: 14px; font-weight: 800;
  position: relative; text-decoration: none;
}
.store-badge small { display:block; font-size: 10px; color: var(--text-dim); font-weight: 700; }
.store-badge span { font-size: 19px; }

/* =================== PLATFORM MATRIX =================== */
.platforms-wrap {
  margin-top: 42px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.platforms { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.platforms th, .platforms td {
  padding: 15px 18px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.platforms tbody tr:last-child td { border-bottom: 0; }
.platforms thead th { background: var(--bg-3); vertical-align: bottom; }
.platforms thead .plat { font-weight: 900; font-size: 15px; color: var(--text); }
.platforms thead .plat small { display: block; font-weight: 700; font-size: 11px; color: var(--text-dim); margin-top: 3px; letter-spacing: .3px; }
.platforms .feat {
  text-align: left; font-weight: 800; color: var(--text); min-width: 230px;
  position: sticky; left: 0; background: var(--bg-2); z-index: 1;
}
.platforms thead th:first-child { position: sticky; left: 0; z-index: 3; background: var(--bg-3); text-align: left; }
.platforms .feat small { display: block; font-weight: 600; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.platforms tbody tr:hover td { background: rgba(255,255,255,0.025); }
.platforms tbody tr:hover .feat { background: var(--bg-3); }
.platforms .grp td {
  text-align: left; background: var(--bg-3);
  font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-light); padding: 12px 18px;
  position: sticky; left: 0;
}
.platforms .yes { color: var(--neon-green); font-weight: 900; font-size: 18px; }
.platforms .no { color: #4a4a4a; font-weight: 800; font-size: 16px; }
.platforms .cell-note { display: block; font-size: 11px; color: var(--text-dim); font-weight: 600; margin-top: 4px; line-height: 1.35; }
.platforms .planned {
  display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
  color: var(--neon-gold); border: 1px solid rgba(251,191,36,0.38); background: rgba(251,191,36,0.08);
  padding: 3px 9px; border-radius: 999px;
}
.plat-legend {
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center;
  margin-top: 22px; font-size: 13px; color: var(--text-dim);
}
.plat-legend span { display: inline-flex; align-items: center; gap: 7px; }
.plat-legend .yes { color: var(--neon-green); font-weight: 900; }
.plat-legend .no { color: #6b6b6b; font-weight: 800; }
@media (max-width: 600px){
  .platforms th, .platforms td { padding: 13px 12px; }
  .platforms .feat { min-width: 180px; }
}

/* =================== FOOTER =================== */
footer { background: var(--bg); border-top: 1px solid rgba(255,255,255,0.07); padding: 54px 0 40px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
footer .brand { font-size: 16px; }
footer .links { display: flex; gap: 26px; flex-wrap: wrap; }
footer .links a { color: var(--text-dim); font-size: 14px; font-weight: 700; transition: color .2s; }
footer .links a:hover { color: var(--text); }
.disclaimer {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: #6b6b6b; line-height: 1.6; max-width: 720px;
}
.copyright { margin-top: 16px; font-size: 12px; color: #555; }

/* =================== LEGAL / SUPPORT PAGES =================== */
.doc { padding: 60px 0 90px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.doc .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { color: #cfcfcf; font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc a.inline { color: var(--accent-light); font-weight: 700; }
.doc .card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 24px 26px; margin: 20px 0;
}
.faq { background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 6px 24px; margin-bottom: 14px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent-light); font-size: 22px; }
.faq[open] summary::after { content: "–"; }
.faq p { padding-bottom: 16px; margin: 0; }

/* =================== RESPONSIVE =================== */
@media (max-width: 880px){
  .hero { padding: 60px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 40px 0; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature-text p { margin: 0 auto; }
  .feature-text ul { justify-items: center; }
  .feature-text li { justify-content: center; }
  /* phones never overflow the viewport */
  .phone, .hero .phone { width: min(300px, 80vw); }
  .phone.sm { width: min(150px, 40vw); }
  .section { padding: 56px 0; }
  .strip .wrap { gap: 24px 12px; }
  .stat { min-width: 130px; }
}

@media (max-width: 480px){
  h1 { font-size: clamp(32px, 11vw, 44px); }
  .phone.sm { width: 44vw; }   /* two-up, third wraps centered */
  .nav .wrap { height: 58px; }
  .cta { padding: 64px 20px; }
}
