/* styles.css - elegant bookstore-like aesthetic, adapted for notes */
/* Simple, readable variables for easy theming */
:root{
  --bg:#fbf8f3;
  --card:#fff;
  --muted:#7b6f6a;
  --accent:#6b4f3a;
  --accent-2:#b28f74;
  --radius:12px;
  --container:1100px;
  --shadow:0 8px 30px rgba(16,24,40,0.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Georgia", "Times New Roman", serif;
  color:#1f1b18;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}

/* 🔒 Reserve space for dynamically loaded sections (CLS FIX) */
#header { min-height: 80px; }
#hero { min-height: 100vh; }

#other_product { min-height: 420px; }
#popular { min-height: 420px; }
#tools { min-height: 380px; }
#articles { min-height: 420px; }
#motivation { min-height: 300px; }
#app { min-height: 420px; }
#quote { min-height: 260px; }
#newsletter { min-height: 320px; }
#footer { min-height: 260px; }

/* For logo */
.logo-img {
  height: 56px;     /* adjust for your design */
  object-fit: contain;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


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

@media (min-width: 900px){
  .container{
    padding: 20px 0;
  }
}


/* Header */
.site-header{
  background:transparent;
  padding:18px 0;
}
.header-grid{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.brand h1{margin:0;font-size:22px;letter-spacing:0.6px}
.brand .tag{margin:0;color:var(--muted);font-size:13px}

/* Top nav */
.top-nav{display:flex;align-items:center;gap:12px}
.search{
  padding:10px 12px;border-radius:10px;border:1px solid #e7ded3;min-width:220px;
  font-family:inherit;
}
.select{padding:8px 10px;border-radius:8px;border:1px solid #e7ded3;background:#fff}
.btn{padding:8px 12px;border-radius:8px;border:1px solid transparent;background:#fff;cursor:pointer}
.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Hero */
.hero{padding:28px 0}
.hero-inner{display:grid;grid-template-columns:1fr 360px;gap:28px;align-items:center}
/* .hero-slider{height:360px;border-radius:14px;overflow:hidden;position:relative} */
.hero-slide{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background-size:cover;background-position:center;transition:opacity .6s ease;
  opacity:0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-link {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-link:hover {
  color: #0d6efd; /* Bootstrap blue */
}

.hero-slider {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 260px;
  max-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.hero-slide.active{opacity:1}
.hero-aside h2{font-family:Georgia,serif;margin:0;font-size:28px}
.hero-aside p{color:var(--muted);margin-top:8px}

/* Benefits */
.benefit-grid{display:flex;gap:18px;justify-content:space-between;padding:16px 0}
.benefit{background:#fff;padding:12px;border-radius:12px;box-shadow:var(--shadow);flex:1;text-align:center}
.benefit .label{font-size:13px;color:var(--muted)}

/* Cards grid */
.section-title{font-family:Georgia,serif;margin-bottom:12px;font-size:20px}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}
.card{
  background:var(--card);border-radius:12px;padding:12px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:10px;
}
.card img{width:100%;height:140px;object-fit:cover;border-radius:8px}
.card h4{margin:0;font-size:15px}
.card .meta{color:var(--muted);font-size:13px}
.card .price{font-weight:700;color:#22543d}

/* Spotlight */
.spotlight{background:#fff6ee;padding:28px 0;margin-top:18px}
.spotlight-inner{display:flex;gap:18px;align-items:center}
.spotlight-card{flex:0 0 180px;background:var(--card);padding:12px;border-radius:10px;box-shadow:var(--shadow)}
.spotlight-info{flex:1}

/* Quote */
.quote{padding:28px 0;text-align:center;color:var(--muted);font-style:italic}

/* Offers */
.offers{display:flex;gap:12px;overflow:auto;padding:8px 0}

/* Newsletter */
.newsletter{background:#fff;padding:28px 0;margin-top:18px;border-radius:12px}
.newsletter-inner{display:flex;gap:18px;align-items:center;justify-content:space-between}
.newsletter-form{display:flex;gap:8px}
.newsletter input{padding:10px;border-radius:8px;border:1px solid #e7ded3}

/* Articles */
.articles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.article{background:#fff;padding:12px;border-radius:12px;box-shadow:var(--shadow)}
.article img{width:100%;height:140px;object-fit:cover;border-radius:8px}


/* Footer */
.site-footer{padding:28px 0;color:var(--muted)}
.footer-grid{display:flex;justify-content:space-between;align-items:flex-start}

/* Modal */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,6,23,0.45);z-index:80;padding:18px}
.modal[aria-hidden="false"]{display:flex}
.modal-content{background:#fff;padding:18px;border-radius:12px;width:100%;max-width:900px;max-height:85vh;overflow:auto}
.modal-close{position:absolute;right:12px;top:10px;border:none;background:none;font-size:22px}


/* =========================================
   📱 GLOBAL MOBILE LAYOUT FIX (FINAL)
========================================= */
.hero-actions {
  margin-top: 24px;
}

.hero-btn {
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s ease;
}

.hero-btn:hover {
  background: #1d46c9;
}


.hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}


.hero-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Our Products section */
.product-grid {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  
}

.product-item {
  width: 120px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease-in-out;
}

.product-item img {
  width: 55px;
  height: 55px;
  margin-bottom: 10px;
}

.product-item span {
  color: #333;
  font-size: 15px;
  font-weight: 600;
}

.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.attribution {
  margin-top: 15px;
  font-size: 12px;
  color: #777;
}

.attribution a {
  color: #777;
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline;
}

.product-item img {
  width: 55px;
  height: 55px;
  margin-bottom: 10px;
}
/* Our Products section end */


/* ------------------------------------
   EXTRA CSS FOR START CODING SECTION
   (Left browser card + Start button)
-------------------------------------*/

/* Layout wrapper */
.startcoding-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

/* LEFT: Uiverse Browser Card */
.startcoding-left {
  width: 320px;
  flex: 0 0 320px;
}

.browser-card {
  width: 320px;
  height: 270px;
  background: #dcdcdc;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

/* Top bar */
.browser-top {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 10px;
  background: linear-gradient(#f6f6f6, #efefef);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 1px 1px 3px rgba(255,255,255,0.6);
}
.browser-dot.red { background: #ff6159; }
.browser-dot.yellow { background: #ffbf2e; }
.browser-dot.green { background: #3ec94a; }

.browser-nav {
  display: flex;
  gap: 6px;
  opacity: 0.8;
}
.browser-nav svg {
  width: 12px;
  height: 12px;
  fill: rgba(0,0,0,0.65);
}

.browser-search {
  margin-left: 12px;
  flex: 1;
  display: flex;
  justify-content: center;
}

.browser-search .searchbar {
  width: 170px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.35);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  padding-left: 28px;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.browser-search .searchbar svg {
  width: 12px;
  height: 12px;
  position: absolute;
  left: 6px;
  opacity: 0.7;
}

/* Browser body empty area */
.browser-body {
  flex: 1;
  background: rgba(255,255,255,0.04);
}

/* RIGHT SIDE BUTTON */
.startcoding-right {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 270px;
}

.start-btn {
  display: inline-block;
  padding: 18px 34px;
  background: linear-gradient(#dfeee0, #f7fff7);
  border: 4px solid #4f3b2b;
  border-radius: 14px;
  font-family: "Bradley Hand", "Comic Sans MS", Georgia, serif;
  font-size: 18px;
  color: #b52b2b;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  transition: 0.12s ease;
}

.start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 880px) {
  .startcoding-row {
    flex-direction: column;
    gap: 18px;
  }
  .startcoding-left {
    width: 100%;
  }
  .browser-card {
    width: 100%;
  }
}
/* ------------------------------------
   START CODING SECTION + CODE TYPING ANIMATION
   (Updated & polished)
-------------------------------------*/

/* Layout wrapper */
.startcoding-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 18px;
}

/* LEFT: Uiverse Browser Card */
.startcoding-left {
  width: 360px;
  flex: 0 0 360px;
}

.browser-card {
  width: 100%;
  height: 300px;
  background: #ececec;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(16,24,40,0.06);
}

/* Top bar (compact) */
.browser-top {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  background: linear-gradient(#f8f7f6, #efefee);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.browser-dots { display:flex; gap:8px; align-items:center; }
.browser-dot { width:11px; height:11px; border-radius:50%; box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6); }
.browser-dot.red{ background:#ff6159 } .browser-dot.yellow{ background:#ffbf2e } .browser-dot.green{ background:#3ec94a }

.browser-nav { display:flex; gap:8px; align-items:center; opacity:0.85; margin-left:2px; }
.browser-nav svg{ width:12px; height:12px; fill: rgba(0,0,0,0.55); }

/* search area - smaller and aligned */
.browser-search { margin-left:8px; flex:1; display:flex; align-items:center; justify-content:flex-start; }
.browser-search .searchbar {
  width: 180px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px 0 28px;
  display:flex;
  align-items:center;
  position:relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.browser-search .searchbar svg { position:absolute; left:8px; width:12px; height:12px; opacity:0.7; }

/* Browser body: center content vertically and add comfortable padding */
.browser-body {
  flex:1;
  padding: 14px;
  box-sizing: border-box;
  background: linear-gradient(#f0efef, #ececec);
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
}

/* CODE WINDOW (wrapper) */
.code-window {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01));
  padding: 8px 10px;
  overflow: hidden;
  font-family: "SFMono-Regular","Menlo","Courier New",monospace;
  font-size: 13px;
  color: #222;
  position: relative;
}
/* 🔒 Lock code animation height (CLS micro-fix) */
.code-window {
  min-height: 220px;
}


/* each snippet is a layer that fades in/out */
.code-snippet {
  position: absolute;
  inset: 8px 10px;
  overflow: hidden;
  padding-right: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}

.startcoding-row {
  justify-content: center;
}

/* active snippet visible */
.code-snippet.active {
  opacity: 1;
  transform: translateY(0);
}

/* code-line typing: inline-block width animation */
.code-line {
  display: inline-block;
  width: 0;                 /* start hidden */
  white-space: pre;         /* preserve spaces for indentation */
  overflow: hidden;
  color: #2b2b2b;
  padding: 2px 0;
  box-sizing: border-box;
  animation: typing 1.3s steps(40) var(--delay,0s) forwards;
}

/* softer comment color */
.code-line.comment { color: #666; font-style: italic; }

/* token colours */
.kw { color: #7c3aed; font-weight:600; }
.fn { color: #0366d6; }
.num { color: #a84dff; }
.str { color: #b22222; }

/* typing frames */
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

/* RIGHT SIDE: button column */
.startcoding-right {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height: 300px;
}

/* Brown/bookish Start button (refined) */
.start-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(#6b4f3a,#5a3e2f);
  padding: 12px 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 0 rgba(0,0,0,0.12), inset 0 -6px 0 rgba(0,0,0,0.06);
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* subtle hover */
.start-btn:hover { transform: translateY(-2px); filter:brightness(1.02); }

/* small helper text */
.code-hint { font-size:12px; color: #777; margin-top:8px; }

/* responsive */
@media (max-width:880px){
  .startcoding-row { flex-direction:column; gap:14px; }
  .startcoding-left { width:100%; }
  .browser-card { height:260px; }
  .startcoding-right { min-height: 0; align-items:flex-start; padding-top:8px; }
  .code-window { font-size: 12px; }
}
/* ====================================
   TESTIMONIALS — CLEAN & PREMIUM
==================================== */

.gn-testimonials {
  padding: 100px 0;
  background: #fbf8f3;
}

/* heading */
.gn-testimonials h2 {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  margin-bottom: 64px;
  color: #1f1b18;
}

/* ====================================
   GLOW CONTAINER (KEY FIX)
==================================== */

.gn-glow-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 60px;
}

/* 🔥 REAL OMEGA-STYLE GLOW */
.gn-glow-wrap::before {
  content: "";
  position: absolute;

  /* 🔧 tighter glow */
  inset: -60px;

  background: linear-gradient(
    120deg,
    rgba(147,197,253,0.4),
    rgba(196,181,253,0.4),
    rgba(253,224,71,0.4)
  );

  filter: blur(80px);      /* 🔧 reduced blur */
  border-radius: 32px;     /* 🔧 card-like radius */
  z-index: 0;
}

/* ====================================
   SLIDER
==================================== */

.gn-slider {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gn-slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.gn-slide {
  min-width: 100%;
}

/* ====================================
   CARD — FIXED WIDTH
==================================== */

.gn-testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  max-width: 820px;
  margin: 0 auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* stars */
.gn-stars {
  color: #f4b400;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* review */
.gn-review {
  font-size: 17px;
  line-height: 1.75;
  color: #1f1b18;
  max-width: 620px;
}

/* ====================================
   USER ROW
==================================== */

.gn-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.gn-user img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.gn-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gn-name-row strong {
  font-size: 15px;
  font-weight: 600;
}

/* LinkedIn icon */
.gn-linkedin-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

/* role */
.gn-role {
  font-size: 13px;
  color: #7b6f6a;
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 768px) {
  .gn-testimonial-card {
    padding: 28px;
  }

  .gn-review {
    font-size: 16px;
  }
}

/* ====================================
   TESTIMONIALS — DARK MODE OVERRIDES
==================================== */

body.dark .gn-testimonials {
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(59,130,246,0.18), transparent 45%),
    radial-gradient(700px 400px at 90% 10%, rgba(239,68,68,0.14), transparent 45%),
    #000;
}

/* Section heading */
body.dark .gn-testimonials h2 {
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(59,130,246,0.35),
    0 0 26px rgba(239,68,68,0.22);
}

/* Glow container — cooler, controlled */
body.dark .gn-glow-wrap::before {
  background: linear-gradient(
    120deg,
    rgba(59,130,246,0.45),
    rgba(99,102,241,0.35),
    rgba(239,68,68,0.35)
  );
  filter: blur(90px);
}

/* Card */
body.dark .gn-testimonial-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.9);
}

/* Stars — blue gradient (no yellow) */
body.dark .gn-stars {
  background: linear-gradient(90deg, #3b82f6, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
}

/* Review text */
body.dark .gn-review {
  color: #ffffff;
}

/* Name */
body.dark .gn-name-row strong {
  color: #ffffff;
}

/* Role */
body.dark .gn-role {
  color: #9ca3af;
}

/* LinkedIn icon */
body.dark .gn-linkedin-icon img {
  filter: brightness(1.2) contrast(1.1);
}

/* Subtle hover polish */
body.dark .gn-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.95),
    0 0 32px rgba(59,130,246,0.3);
}



/* ------------------------------------
   QUOTE SLIDER CSS
-------------------------------------*/
:root{
  --primary:#ff4d4d;
  --page-bg:#f9f7f3;
  --text-main:#2b2b2b;
  --text-muted:#7b7b7b;
  --text-light:#9a9a9a;
}

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

/* body{
  font-family:"Dosis", system-ui, sans-serif;
  background:var(--page-bg);
  color:var(--text-main);
} */

/* ================= HEADING ================= */
.heading__h1{
  text-align:center;
  font-size:2.6rem;          /* smaller */
  font-weight:300;
  color:var(--primary);
  margin:50px 0 32px;
}

/* ================= CONTAINER ================= */
.quote-container{
  max-width: 28rem;          /* 🔑 smaller & flexible */
  margin: 0 auto;
  overflow: hidden;
}

/* ================= SLIDER ================= */
.slider-width{
  display:flex;
  transition: transform .45s ease;
}

/* ================= QUOTE WRAPPER ================= */
.quote{
  min-width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;        /* true centering */
  padding:2.5rem 0;
}

/* ================= QUOTE BOX ================= */
.quote__qut{
  font-size:1.45rem;         /* 🔑 noticeably smaller */
  font-weight:500;
  line-height:1.55;
  color:var(--text-muted);
  border:2px solid var(--primary);
  border-radius:1rem;
  padding:1.4rem 1.8rem;
  position:relative;
  background:transparent;
  text-align:center;
  max-width:100%;
}

/* highlight */
.quote__qut--joy{
  color:var(--primary);
}

/* broken bottom line */
.quote__qut::before{
  content:"";
  position:absolute;
  left:1.6rem;
  bottom:-2px;
  width:3.8rem;
  height:2px;
  background:var(--page-bg);
}

/* curved tail */
.quote__qut::after{
  content:"";
  position:absolute;
  left:1.6rem;
  bottom:-2.3rem;
  width:2.8rem;
  height:2.2rem;
  border:2px solid var(--primary);
  border-left:none;
  border-bottom:none;
  border-radius:0 30rem;
}

/* ================= AUTHOR ================= */
.quote__person{
  margin-top:.9rem;
  width:100%;
  padding-left:5.2rem;       /* aligns under tail */
  text-align:left;
}

.quote__name{
  font-size:1.35rem;
  font-weight:400;
  color:var(--text-main);
}

.quote__knownfor{
  font-size:1.15rem;
  font-weight:600;
  color:var(--text-light);
}

/* ================= REMOVE DOTS ================= */
.slide-btns,
.slide-btn{
  display:none !important;
}

/* ================= MOBILE ================= */
@media(max-width:600px){
  .quote-container{
    max-width:92%;
  }

  .quote__qut{
    font-size:1.35rem;
  }

  .quote__person{
    padding-left:4.4rem;
  }
}

/* ===================================
   AMOLED DARK MODE (PURE BLACK)
=================================== */
body.dark {
  --bg: #000000;              /* true black */
  --card: #0b0b0b;            /* lifted black */
  --muted: #9ca3af;
  --accent: #d4af37;          /* premium gold */
  --accent-2: #b8962e;

  --page-bg: #000000;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
}

body.dark {
  background: var(--bg);
  color: var(--text-main);
}

/* cards & sections */
body.dark .card,
body.dark .article,
body.dark .benefit,
body.dark .newsletter,
body.dark .spotlight-card,
body.dark .gn-testimonial-card,
body.dark .product-item,
body.dark .browser-card,
body.dark .modal-content {
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* header */
body.dark .site-header {
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* inputs */
body.dark input,
body.dark select,
body.dark .search {
  background: #050505;
  color: #e5e7eb;
  border-color: #222;
}

/* links */
body.dark a {
  color: #e5e7eb;
}

/* code window */
body.dark .code-window {
  background: #020202;
  color: #e5e7eb;
}

/* smooth transitions */
* {
  transition: background-color .25s ease,
              color .25s ease,
              border-color .25s ease;
}

/* ===================================
   DARK MODE — FORCE PURE WHITE TEXT
   (FINAL OVERRIDE – SAFE)
=================================== */

body.dark {
  color: #ffffff !important;
}

/* Headings */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
  color: #ffffff !important;
}

/* Body text */
body.dark p,
body.dark span,
body.dark div,
body.dark li,
body.dark td,
body.dark th,
body.dark label {
  color: #ffffff;
}

/* Muted / secondary text (slightly softer white) */
body.dark .meta,
body.dark .muted,
body.dark .label,
body.dark .card-meta,
body.dark .org-card-meta,
body.dark .qp-card-meta,
body.dark .gn-role,
body.dark small {
  color: #e5e7eb;
}

/* Quotes & testimonials */
body.dark .quote,
body.dark .gn-review {
  color: #ffffff;
}

/* Buttons text */
body.dark .btn,
body.dark .hero-btn,
body.dark .start-btn,
body.dark .org-btn-download,
body.dark .qp-btn-download {
  color: #ffffff;
}
/* =========================================
   🔒 GLOBAL SECTION HEADING SYSTEM (FINAL)
========================================= */

.section-heading {
  max-width: var(--container);
  margin: 72px auto 12px;
  padding: 0 20px;

  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #1f1b18;
}

.section-subheading {
  max-width: var(--container);
  margin: 0 auto 28px;
  padding: 0 20px;

  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

/* content always aligns with heading */
.section-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
/* =========================================
   🌙 DARK MODE — SECTION HEADINGS
========================================= */

body.dark .section-heading {
  color: #ffffff;
}

body.dark .section-subheading {
  color: #e5e7eb;
}
/* =========================================
   ✅ MY RECEIPTS – LAYOUT & READABILITY FIX
========================================= */

/* Center content better */
.page-title {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Wider, airy card */
.table-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

/* Table layout improvements */
.table-wrapper table {
  table-layout: fixed; /* 🔑 important */
}

/* Column widths */
.table-wrapper th:nth-child(1),
.table-wrapper td:nth-child(1) {
  width: 28%;
}

.table-wrapper th:nth-child(2),
.table-wrapper td:nth-child(2) {
  width: 26%;
}

.table-wrapper th:nth-child(3),
.table-wrapper td:nth-child(3) {
  width: 16%;
}

.table-wrapper th:nth-child(4),
.table-wrapper td:nth-child(4) {
  width: 10%;
}

.table-wrapper th:nth-child(5),
.table-wrapper td:nth-child(5) {
  width: 10%;
}

.table-wrapper th:nth-child(6),
.table-wrapper td:nth-child(6) {
  width: 10%;
  text-align: right;
}

/* Long IDs wrap nicely */
.table-wrapper td {
  word-break: break-word;
  line-height: 1.45;
}

/* Improve header clarity */
.table-wrapper th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Better row spacing */
.table-wrapper td,
.table-wrapper th {
  padding: 16px 14px;
}

/* Receipt button alignment */
.table-wrapper .btn {
  min-width: 96px;
  text-align: center;
}

/* Subtle row separation */
.table-wrapper tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Hover polish */
body:not(.dark) .table-wrapper tr:hover {
  background: rgba(0,0,0,0.02);
}


/* =========================================
   GoNotes App – Isolated Section (NO CONFLICT)
========================================= */

.app-coming-soon {
  background: transparent;
  margin-top: 0;
}

/* custom container (avoids .container conflict) */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 50px; /* 🔽 reduced vertical gap */
}

/* main layout */
.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;                 /* 🔽 tighter gap */
  flex-wrap: nowrap;         /* 🔒 prevent wrapping */
}

/* IMAGE */
.app-image {
  flex: 0 0 580px;           /* 🔼 hero image width */
  display: flex;
  justify-content: center;
}

.app-image img {
  max-width: 720px;          /* 🔼 larger phone */
  width: 100%;
  filter: drop-shadow(0 50px 80px rgba(0,0,0,0.3));
  transform: translateY(-14px);
}

/* CONTENT */
.app-content {
  flex: 1;                   /* 🔒 takes remaining space */
  min-width: 0;
  padding-top: 24px;         /* aligns text with phone */
}

.app-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 22px 0;        /* remove top margin */
}

.app-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.app-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 26px;
}

/* BADGE */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #111, #2c2c2c);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

/* MOBILE */
@media (max-width: 600px) {
  .app-container {
    padding: 40px 16px;
  }

  .app-row {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .app-image {
    flex: 0 0 auto;
  }

  .app-image img {
    max-width: 360px;
    transform: none;
  }

  .app-content {
    padding-top: 0;
  }

  .app-content h2 {
    font-size: 32px;
  }

  .app-content p {
    margin: auto;
  }
}
/* =========================================
   🔥 QUICK ACCESS – MOBILE FIX (FINAL)
========================================= */

@media (max-width: 900px) {

  /* Open by default on mobile */
  .ourproduct-content {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  /* Remove confusing + icon */
  .ourproduct .toggle-icon {
    display: none !important;
  }

  /* Reduce huge heading gap */
  .section-heading {
    margin: 28px auto 8px !important;
    font-size: 26px;
  }

  .section-subheading {
    margin-bottom: 16px;
    font-size: 14px;
  }

  /* Grid fix (override global flex) */
  .ourproduct .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

/* ⭐ REVIEW CTA — SAME ALIGNMENT AS NEWSLETTER */
.review-cta {
  margin-top: 60px;
}

.review-cta-inner {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Button matches newsletter vibe */
.review-btn {
  margin-top: 16px;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.review-btn:hover {
  opacity: 0.95;
}

