/* AI Parent - Light Theme (Refined Borders + Section Highlights)
   Typography: Roboto everywhere
   Palette:
   - White: #FFFFFF
   - Grey: #666666
   - Black: #000000
   - Blue: #3498db
   - Yellow: #f1c40f
   - Red: #e74c3c
*/

:root{
  --bg: #FFFFFF;
  --surface: rgba(255,255,255,0.94);
  --surface2: rgba(255,255,255,0.82);
  --text: rgba(0,0,0,0.88);
  --muted: #666666;

  --blue: #3498db;
  --yellow: #f1c40f;
  --red: #e74c3c;

  /* Subtle UI helpers */
  --line: rgba(102,102,102,0.22);
  --lineSoft: rgba(102,102,102,0.14);
  --shadow: 0 22px 58px rgba(0,0,0,0.12);
  --shadowSm: 0 16px 38px rgba(0,0,0,0.10);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;

  /* Smooth vertical wash: yellow → white → blue → red (no hard lines) */
  background:
    /* gentle vertical gradient foundation */
    linear-gradient(
      180deg,
      rgba(241,196,15,0.20) 0%,
      rgba(255,255,255,0.96) 22%,
      rgba(255,255,255,0.92) 38%,
      rgba(52,152,219,0.12) 58%,
      rgba(255,255,255,0.88) 72%,
      rgba(231,76,60,0.16) 100%
    ),

    /* soft blobs to keep it “alive” without visible edges */
    radial-gradient(900px 650px at 50% 0%,  rgba(241,196,15,0.22), transparent 62%),
    radial-gradient(980px 720px at 55% 62%, rgba(52,152,219,0.14), transparent 64%),
    radial-gradient(980px 720px at 50% 110%, rgba(231,76,60,0.18), transparent 62%),

    var(--bg);

  background-attachment: fixed;
}

a{ color: rgba(0,0,0,0.86); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(102,102,102,0.10);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.logoImg{
  width: 39px;
  height: 39px;
  display: block;
  object-fit: contain;
}

.BannerImg{
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;

  /* shows as much of the image as possible (no crop) */
  object-fit: contain;

  border-radius: 16px;
  border: 1px solid rgba(102,102,102,0.26);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);

  /* subtle backing so edges look clean on gradients */
  background: rgba(255,255,255,0.80);
}

.brand strong{
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(0,0,0,0.90);
}

.brand span{
  display:block;
  font-size: 12px;
  color: var(--muted);
}

.menu{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}

.menu a:hover{
  color: rgba(0,0,0,0.88);
  background: rgba(52,152,219,0.08);
  text-decoration: none;
}

.ctaRow{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--lineSoft);
  background: rgba(255,255,255,0.78);
  color: rgba(0,0,0,0.86);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  text-decoration: none;
}
.btn:hover{
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  text-decoration: none;
}

.btnPrimary{
  color: rgba(255,255,255,0.98);
  border: 1px solid rgba(52,152,219,0.26);
  background: linear-gradient(135deg, rgba(52,152,219,1), rgba(52,152,219,0.78));
  box-shadow: 0 14px 30px rgba(52,152,219,0.24);
}
.btnPrimary:hover{
  background: linear-gradient(135deg, rgba(52,152,219,1), rgba(52,152,219,0.88));
}

.badge{
  display:inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(241,196,15,0.36);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(0,0,0,0.70);
  background: rgba(241,196,15,0.18);
}

/* App Store badge link wrapper */
.appstore-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0; /* remove extra whitespace */
}

/* App Store badge — 3x bigger */
.appstore-badge{
  height: 76px;     /* set the size you want */
  width: auto;       /* no width limit */
  max-width: 100%;   /* don’t overflow on small screens */
  object-fit: contain;
}

/* Scale down on mobile if needed */
@media (max-width: 300px){
  .appstore-badge{ height: 66px; }
}

/* Hero */
.hero{
  padding: 56px 0 28px;
}
.heroGrid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}


/* Hero intro (blue background + white text) */
.heroIntro{
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.20);
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(241,196,15,0.22), transparent 55%),
    radial-gradient(700px 360px at 90% 30%, rgba(231,76,60,0.16), transparent 60%),
    linear-gradient(135deg, rgba(52,152,219,0.98), rgba(52,152,219,0.78));
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
  color: rgba(255,255,255,0.96);
}

.heroIntro h1{
  color: rgba(255,255,255,0.98);
}
.heroIntro .lede{
  color: rgba(255,255,255,0.90);
}
.heroIntro .badge{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.94);
}
.heroIntro .btn{
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.96);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}
.heroIntro .btn:hover{
  background: rgba(255,255,255,0.22);
}
.heroIntro .btnPrimary{
  background: linear-gradient(135deg, rgba(241,196,15,1.0), rgba(241,196,15,0.80));
  border: 1px solid rgba(241,196,15,0.55);
  color: rgba(0,0,0,0.86);
  box-shadow: 0 16px 34px rgba(241,196,15,0.28);
}
.heroIntro .btnPrimary:hover{
  background: linear-gradient(135deg, rgba(241,196,15,1.0), rgba(241,196,15,0.92));
}

h1{
  font-size: 42px;
  line-height: 1.1;
  margin: 14px 0 12px;
  letter-spacing: -0.6px;
  color: rgba(0,0,0,0.92);
}
.lede{
  font-size: 16px;
  color: var(--muted);
  max-width: 64ch;
}

/* Surfaces */
.panel{
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--lineSoft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.heroCard{ padding: 18px; }
.heroCard h2{ font-size: 16px; margin: 0 0 6px; color: rgba(0,0,0,0.90); }
.heroCard p{ margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.heroCard ul{ margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

/* Hero image block */
.heroMedia{ padding: 14px; }
.heroImg{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--lineSoft);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.90);
}
.heroCaption{
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.callouts{
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.calloutDot{
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  transform: translateY(1px);
}
.dotBlue{ background: rgba(52,152,219,1.0); }
.dotYellow{ background: rgba(241,196,15,0.95); }
.dotRed{ background: rgba(231,76,60,0.85); }

/* Sections */
.section{ padding: 30px 0; position: relative; }
.sectionRule{
  width: 444px;
  max-width: 88vw;
  height: 3px;
  border-radius: 999px;
  margin: 6px auto 0;
  opacity: 0.90;

  background: linear-gradient(
    90deg,
    /* BLUE quarter (0–25) */
    rgba(52,152,219,1.00) 0%,
    rgba(52,152,219,0.78) 12.5%,
    rgba(52,152,219,0.58) 24%,

    /* GREY quarter (50–75) */
    rgba(102,102,102,0.45) 26%,
    rgba(102,102,102,0.62) 37.5%,
    rgba(102,102,102,0.45) 49%,

    /* YELLOW quarter (25–50) */
    rgba(241,196,15,0.58) 51%,
    rgba(241,196,15,0.78) 62.5%,
    rgba(241,196,15,0.58) 74%,

    /* RED quarter (75–100) */
    rgba(231,76,60,0.58) 76%,
    rgba(231,76,60,0.78) 87.5%,
    rgba(231,76,60,1.00) 100%
  );
}
.section h2{ font-size: 22px; margin: 0 0 12px; color: rgba(0,0,0,0.90); }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--lineSoft);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadowSm);
}

.card h3{ margin: 0 0 6px; font-size: 16px; color: rgba(0,0,0,0.90); }
.card p{ margin: 0; color: var(--muted); font-size: 14px; }

.cardTop{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.cardIcon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 6px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.kicker{
  color: rgba(0,0,0,0.55);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

/* Image rows */
.imageGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.figure{ margin: 0; }

.figure img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 16px;
  border: 1px solid var(--lineSoft);
  box-shadow: 0 16px 40px rgba(0,0,0,0.11);
  background: #fff;
}
.figcap{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Content pages */
.breadcrumbs{
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumbs a{ color: var(--muted); }

.article{ padding: 18px; }
.article h1{ font-size: 30px; margin-top: 10px; color: rgba(0,0,0,0.92); }
.article h2{
  font-size: 20px;
  margin-top: 22px;
  color: rgba(0,0,0,0.90);
  position: relative;
  padding-bottom: 10px;
}
.article h2::after{
  content: "";
  display:block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: rgba(52,152,219,0.32);
}
.article p, .article li{ color: var(--muted); }

.article code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--lineSoft);
}

.contentImg{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 18px;
  border: 1px solid var(--lineSoft);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  margin-top: 14px;
  background: #fff;
}

/* Docs layout */
.docsLayout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

.sidebar{
  padding: 14px;
  position: sticky;
  top: 76px;
  height: calc(100vh - 110px);
  overflow:auto;
  background: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  border: 1px solid var(--lineSoft);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.sidebar a{
  display:block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}
.sidebar a:hover{
  background: rgba(52,152,219,0.08);
  color: rgba(0,0,0,0.88);
  text-decoration: none;
}

.small{ font-size: 13px; color: var(--muted); }

hr.sep{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 12px 0;
}

/* Footer */
.footer{
  padding: 36px 0;
  color: var(--muted);
  margin-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footerGrid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
.footer a{ color: var(--muted); }
.footer a:hover{ color: rgba(0,0,0,0.86); text-decoration: underline; }

@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr; }
  .docsLayout{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; top: 0; height: auto; }
  .imageGrid{ grid-template-columns: 1fr; }
}

/* FORCE clickable hyperlink-row styling (higher specificity) */
.panel.card .linkStack{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.panel.card a.textLinkRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 14px;

  border: 1px solid rgba(102,102,102,0.24);
  background: rgba(255,255,255,0.72);

  /* make it look like a link */
  color: rgba(52,152,219,0.98);
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.07);
}

.panel.card a.textLinkRow::after{
  content: "→";
  color: rgba(52,152,219,0.70);
  font-weight: 900;
}

.panel.card a.textLinkRow:hover{
  background: rgba(52,152,219,1.0);     /* blue */
  border-color: rgba(52,152,219,1.0);
  color: #FFFFFF;                       /* white text */
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

/* make the arrow flip to white too */
.panel.card a.textLinkRow:hover::after{
  color: #FFFFFF;
}

.pricingCompare{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--lineSoft);
  box-shadow: 0 18px 44px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.80);
}

.pricingHead,
.pricingRow{
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.pricingHead{
  background: rgba(52,152,219,0.10);
}

.pricingColTitle{
  padding: 14px 14px;
  font-weight: 900;
}

.pricingRow{
  border-top: 1px solid rgba(102,102,102,0.18);
}

.pricingLabel{
  padding: 12px 14px;
  color: rgba(0,0,0,0.82);
}

.pricingCell{
  padding: 12px 14px;
  border-left: 1px solid rgba(102,102,102,0.14);
  color: rgba(0,0,0,0.78);
}

.check{
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(52,152,219,0.14);
  color: rgba(52,152,219,1.0);
  font-weight: 900;
}

/* Responsive: stack for mobile */
@media (max-width: 820px){
  .pricingHead{ display:none; }

  .pricingRow{
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(102,102,102,0.18);
  }

  .pricingCell{
    border-left: none;
    border-top: 1px solid rgba(102,102,102,0.12);
  }

  .pricingCell::before{
    display:block;
    font-weight: 800;
    margin-bottom: 6px;
    color: rgba(0,0,0,0.72);
  }

  /* label the two cells as Free / Premium on mobile */
  .pricingRow .pricingCell:nth-child(2)::before{ content: "Free"; }
  .pricingRow .pricingCell:nth-child(3)::before{ content: "Premium"; }
}

/* Desktop default */
.menuToggle{
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(102,102,102,0.22);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  cursor: pointer;

  align-items: center;
  justify-content: center;
  padding: 0;
}

.menuToggle .dots{
  font-size: 26px;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: rgba(0,0,0,0.72);
}

/* Mobile only */
@media (max-width: 980px){
  .menu{ display: none; }
  .ctaRow{ display: none; }
  .menuToggle{ display: inline-flex; } /* <-- show only on mobile */
  .nav{ position: relative; }          /* for dropdown positioning */
}

/* When open, show the dropdown menu */
@media (max-width: 980px){
  .nav.menuOpen .menu{
    display: grid;
    gap: 10px;
    position: absolute;
    right: 0px;
    top: calc(100% + 12px);

    width: fit-content;          /* key: shrink to content */
    max-width: 92vw;             /* prevent overflow on small screens */

    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(102,102,102,0.22);
    background: rgba(255,255,255,0.94);
    box-shadow: 0 20px 60px rgba(0,0,0,0.16);
    z-index: 50;
  }

  .nav{ position: relative; }

  .nav.menuOpen .menu a{
    white-space: nowrap;         /* keep each item on one line */
  }
}

/* Hide the "Download" nav item on desktop */
nav.menu .textLinkRowDownload{
  display: none;
}

/* Mobile: show it + style it like a primary button */
@media (max-width: 980px){
  .nav.menuOpen nav.menu .textLinkRowDownload{
    display: flex;                 /* show it only when dropdown is open */
    align-items: center;
    justify-content: space-between;
  }

  .nav.menuOpen .menu a.textLinkRowDownload{
    background: rgba(52,152,219,1.0);
    border-color: rgba(52,152,219,1.0);
    color: #FFFFFF;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
  }

  .nav.menuOpen .menu a.textLinkRowDownload::after{
    color: #FFFFFF;
  }

  .nav.menuOpen .menu a.textLinkRowDownload:hover{
    background: rgba(52,152,219,0.92);
    border-color: rgba(52,152,219,0.92);
  }
}
