/*
Theme Name: ChatGPT to PDF
Theme URI: https://chatgpt-pdf.com
Author: Nina
Author URI: https://chatgpt-pdf.com
Description: Custom theme for the ChatGPT to PDF Chrome extension marketing site. Includes the home page, Help (FAQ), Contact Us, and a standalone post-install Welcome page template.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatgpt-to-pdf
*/

/* =====================================================================
   DESIGN TOKENS — shared by every page (front page, Help, Contact Us,
   and the standalone Welcome template).
   ===================================================================== */
:root{
  --bg-top:#07080e;
  --bg-bottom:#181026;
  --glow-violet: rgba(70,60,170,0.35);
  --glow-red: rgba(200,60,50,0.35);
  --glow-cool: rgba(70,75,100,0.25);
  --red: #eb4639;
  --red-dark:#b22c24;
  --ink:#f5f5f7;
  --ink-dim:#aeb0bd;
  --card-bg:#fdfdfe;
  --card-ink:#2a2a32;
  --step-bg: rgba(255,255,255,0.04);
  --step-border: rgba(255,255,255,0.09);
  --header-bg: rgba(10,10,16,0.72);
  --header-border: rgba(255,255,255,0.08);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}
a{ color:inherit; }

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(ellipse 900px 700px at 78% 85%, var(--glow-red), transparent 60%),
    radial-gradient(ellipse 700px 600px at 6% 8%, var(--glow-violet), transparent 60%),
    radial-gradient(ellipse 600px 500px at 0% 60%, var(--glow-cool), transparent 60%);
  pointer-events:none;
  z-index:0;
}

/* ===== HEADER ===== */
.site-header{
  position:relative;
  z-index:5;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
}
.site-header .inner{
  max-width:1100px;
  margin:0 auto;
  padding:16px 32px;
  display:flex;
  align-items:center;
  position:relative;
}
.header-left{
  display:flex;
  align-items:center;
  margin-right:32px;
}
/* Desktop: .header-actions is a real flex container that grows to fill
   the remaining header width (flex:1). .main-nav sits at its start and
   .header-cta (margin-left:auto) is pushed to the far right — visually
   identical to the old display:contents approach, but without it.
   We avoid display:contents here on purpose: Firefox has long-standing
   bugs where flex items inside a display:contents wrapper get their
   used flex-basis / auto-margin free-space miscalculated, which is what
   produced the huge gap between the logo and the nav. display:contents
   also drops the element from the accessibility tree in some engines.
   A plain nested flex container has no such issues in Chrome, Firefox,
   or Safari. The mobile media query below still overrides display to
   none/flex to turn this into a dropdown panel. */
.header-actions{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  flex-shrink:0;
}
.logo img{
  width:30px;
  height:30px;
  border-radius:7px;
  display:block;
}
.logo .logo-text{
  font-size:18px;
  font-weight:700;
  color: var(--ink);
  letter-spacing:-0.01em;
  white-space:nowrap;
}
.logo .logo-text .pdf{ color: var(--red); }

.main-nav{
  display:flex;
  align-items:center;
  gap:22px;
}
.main-nav a{
  text-decoration:none;
  color: var(--ink-dim);
  font-size:15px;
  font-weight:600;
  transition: color 0.15s ease;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a.active{ color: var(--ink); }

.header-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: transparent;
  color: var(--ink);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  padding:9px 18px;
  border-radius:10px;
  border: 1.5px solid var(--red);
  white-space:nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink:0;
  margin-left:auto;
}
.header-cta:hover{
  background: rgba(235,70,57,0.12);
}
.header-cta .chrome-icon{ width:16px; height:16px; }

/* Hamburger button — hidden on desktop, shown only under the 768px
   breakpoint (see RESPONSIVE section below). */
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  width:36px;
  height:36px;
  margin-left:auto;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  flex-shrink:0;
}
.menu-toggle .bar{
  display:block;
  width:20px;
  height:2px;
  border-radius:1px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle .bar + .bar{ margin-top:5px; }

.chrome-icon{
  width:20px;
  height:20px;
  display:inline-block;
  flex-shrink:0;
  object-fit:contain;
}

/* ===== WRAP / SHARED LAYOUT ===== */
.wrap{
  position:relative;
  z-index:1;
  max-width:1100px;
  margin:0 auto;
  padding:56px 32px 110px;
}

.breadcrumb{
  font-size:14px;
  color: var(--ink-dim);
  margin-bottom:28px;
}
.breadcrumb a{ text-decoration:none; color: var(--ink-dim); }
.breadcrumb a:hover{ color: var(--ink); }
.breadcrumb .sep{ margin:0 8px; opacity:0.5; }
.breadcrumb .current{ color: var(--ink); font-weight:600; }

.page-title{
  font-size:38px;
  font-weight:800;
  margin:0 0 14px;
  letter-spacing:-0.01em;
}
.page-sub{
  font-size:17px;
  color: var(--ink-dim);
  margin:0 0 44px;
  max-width:620px;
  line-height:1.55;
}

/* ===== HERO (home page) ===== */
.hero{
  text-align:center;
  margin-bottom:56px;
}
.hero .hero-icon{
  width:64px;
  height:64px;
  border-radius:16px;
  display:block;
  margin:0 auto 22px;
}
.hero h1{
  font-size:46px;
  font-weight:800;
  margin:0 0 16px;
  letter-spacing:-0.01em;
  line-height:1.15;
}
.hero p{
  font-size:19px;
  line-height:1.55;
  color: var(--ink-dim);
  margin:0 auto;
  max-width: 560px;
}
.hero p strong{ color: var(--ink); font-weight:600; }

.cta-button{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: var(--red);
  color:white;
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  padding:16px 38px;
  border-radius:14px;
  box-shadow: 0 14px 30px rgba(235,70,57,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top:30px;
}
.cta-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(235,70,57,0.45);
}
.cta-sub{
  margin-top:14px;
  font-size:14px;
  color: var(--ink-dim);
}

/* ===== FEATURE GRID ===== */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  margin-bottom:56px;
}
.feature-card{
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: 20px;
  padding: 28px 26px;
}
.feature-card .f-icon{
  width:42px;
  height:42px;
  border-radius:11px;
  background: rgba(235,70,57,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  font-size:20px;
}
.feature-card h3{
  font-size:17px;
  font-weight:700;
  margin:0 0 8px;
}
.feature-card p{
  font-size:14.5px;
  color: var(--ink-dim);
  line-height:1.55;
  margin:0;
}

/* ===== STEP SHELL (shared with welcome page look) ===== */
.step{
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: 24px;
  padding: 32px 36px 36px;
  margin-bottom: 20px;
}
.step-head{
  display:flex;
  align-items:baseline;
  gap:14px;
  margin-bottom: 16px;
  flex-wrap:wrap;
}
.step-num{
  font-size:14px;
  font-weight:700;
  color: var(--red);
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.step-title{
  font-size:22px;
  font-weight:700;
  margin:0;
}
.step-inline-caption{
  font-size:16px;
  color: var(--ink-dim);
  font-weight:400;
}
.step-inline-caption b{ color: var(--ink); font-weight:600; }

.real-shot{
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  margin-top:18px;
}
.real-shot img{
  display:block;
  width:100%;
  height:auto;
}

/* ===== FAQ ACCORDION ===== */
.faq-item{
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: 18px;
  margin-bottom:16px;
  overflow:hidden;
}
.faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:22px 56px 22px 26px;
  font-size:17px;
  font-weight:700;
  position:relative;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  position:absolute;
  right:24px;
  top:50%;
  transform: translateY(-50%);
  font-size:22px;
  font-weight:400;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after{
  content:"\2212";
}
.faq-body{
  padding:0 26px 26px;
  color: var(--ink-dim);
  font-size:15.5px;
  line-height:1.65;
}
.faq-body p{ margin:0 0 12px; }
.faq-body ol{ margin:0 0 12px; padding-left:22px; }
.faq-body li{ margin-bottom:6px; }
.faq-body .mini-step{
  margin-top:18px;
}

/* ===== LAYOUT UTILITIES (replace one-off inline styles) ===== */
.wrap-center{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.breadcrumb-wrap{
  width:100%;
  max-width:480px;
}
.text-center{ text-align:center; }

/* ===== CONTACT PAGE ===== */
.contact-card{
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: 24px;
  padding: 52px 40px;
  text-align:center;
  max-width:480px;
}
.contact-card .envelope{
  width:64px;
  height:64px;
  border-radius:18px;
  background: rgba(235,70,57,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 22px;
}
.contact-card .envelope svg{ width:30px; height:30px; }
.contact-card h2{
  font-size:22px;
  font-weight:700;
  margin:0 0 10px;
}
.contact-card p{
  font-size:15px;
  color: var(--ink-dim);
  margin:0 0 22px;
  line-height:1.6;
}
.email-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:12px;
  padding:13px 22px;
  font-size:15.5px;
  font-weight:600;
  color: var(--ink);
  text-decoration:none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.email-pill:hover{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
.email-pill svg{ width:18px; height:18px; flex-shrink:0; color: var(--red); }

/* ===== FOOTER ===== */
.site-footer{
  position:relative;
  z-index:1;
  text-align:center;
  padding:32px 32px 44px;
  font-size:13px;
  color: var(--ink-dim);
  opacity:0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width:760px){
  .site-header .inner{ padding:14px 20px; }
  .main-nav{ gap:18px; }
  .logo .logo-text{ font-size:16px; }
  .wrap{ padding:36px 18px 80px; }
  .page-title{ font-size:28px; }
  .hero h1{ font-size:32px; }
  .hero p{ font-size:16px; }
  .features{ grid-template-columns: 1fr; }
  .step{ padding:24px 20px 28px; }
  .contact-card{ padding:36px 24px; }
}

/* ===== HEADER — MOBILE (hamburger menu) =====
   Below 768px the horizontal nav + "Install Extension" button no
   longer fit the header width (this caused "Contact Us" to wrap and
   the button to get clipped). They are swapped for a hamburger
   button that reveals both as a single dropdown panel. Desktop
   (≥768px) is completely unaffected — .header-actions is a normal
   flex:1 container there, see the HEADER section above. */
@media (max-width:767px){
  .menu-toggle{
    display:flex;
  }
  .site-header.menu-open .menu-toggle .bar:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.menu-open .menu-toggle .bar:nth-child(2){
    opacity:0;
  }
  .site-header.menu-open .menu-toggle .bar:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-actions{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    background: var(--header-bg);
    border-bottom:1px solid var(--header-border);
    backdrop-filter: blur(10px);
    padding:6px 20px 20px;
  }
  .site-header.menu-open .header-actions{
    display:flex;
  }
  .header-actions .main-nav{
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .header-actions .main-nav a{
    padding:14px 0;
    border-top:1px solid rgba(255,255,255,0.08);
  }
  .header-actions .main-nav a:first-child{
    border-top:none;
  }
  .header-actions .header-cta{
    margin:16px 0 4px;
    justify-content:center;
    width:100%;
  }
}


/* =====================================================================
   WELCOME PAGE (post-install "thank you" screen)
   Scoped with a "welcome-" prefix so it never collides with the
   site-wide component classes above. Used only by page-welcome.php,
   which is a standalone template (no site header/nav/footer).
   ===================================================================== */
.welcome-wrap{
  position:relative;
  z-index:1;
  max-width:1100px;
  margin:0 auto;
  padding:40px 32px 110px;
}

.welcome-hero{
  text-align:center;
  margin-bottom:36px;
}
.welcome-hero .welcome-emoji{
  font-size:40px;
  display:block;
  margin-bottom:8px;
}
.welcome-hero h1{
  font-size:32px;
  font-weight:800;
  margin:0 0 10px;
  letter-spacing:-0.01em;
  line-height:1.15;
}
.welcome-hero p{
  font-size:16px;
  line-height:1.45;
  color: var(--ink-dim);
  margin:0;
  max-width: 560px;
  margin-left:auto;
  margin-right:auto;
}
.welcome-hero p strong{ color: var(--ink); font-weight:600; }

.welcome-step{
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: 24px;
  padding: 28px 32px 32px;
  margin-bottom: 20px;
}
.welcome-step-head{
  display:flex;
  align-items:baseline;
  gap:14px;
  margin-bottom: 16px;
}
.welcome-step-num{
  font-size:14px;
  font-weight:700;
  color: var(--red);
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.welcome-step-title{
  font-size:22px;
  font-weight:700;
  margin:0;
}
.welcome-step-inline-caption{
  font-size:17px;
  color: var(--ink-dim);
  font-weight:400;
}
.welcome-step-inline-caption b{ color: var(--ink); font-weight:600; }

.welcome-real-shot{
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}
.welcome-real-shot img{
  display:block;
  width:100%;
  height:auto;
}
.welcome-shot-caption{
  margin-top:16px;
  font-size:17px;
  color: var(--ink-dim);
  text-align:center;
}
.welcome-shot-caption b{ color: var(--ink); font-weight:600; }

.welcome-step2-body{
  text-align:center;
  padding: 4px 0 0;
}
.welcome-cta-button{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: var(--red);
  color:white;
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  padding:15px 34px;
  border-radius:14px;
  box-shadow: 0 14px 30px rgba(235,70,57,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.welcome-cta-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(235,70,57,0.45);
}
.welcome-cta-sub{
  margin-top:12px;
  font-size:14px;
  color: var(--ink-dim);
}

.welcome-footer-note{
  text-align:center;
  margin-top:48px;
  font-size:13px;
  color:#6b6c78;
}

@media (max-width:560px){
  .welcome-wrap{ padding:40px 16px 72px; }
  .welcome-hero h1{ font-size:26px; }
  .welcome-step{ padding:26px 20px 30px; }
}
