/* ============================================================
   PomoGo — Shared Stylesheet
   Premium dark-theme landing page  ·  2026 SaaS aesthetic
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg: #1A1B1E;
  --bg-raised: #232427;
  --bg-card: #27282C;
  --border: #333438;
  --text: #F4F4F5;
  --text-muted: #9CA0A8;
  --cyan: #2CBFCA;
  --cyan-glow: rgba(44, 191, 202, .15);
  --coral: #FA6865;
  --coral-glow: rgba(250, 104, 101, .12);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --max-w: 1120px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #5ED4DC;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 27, 30, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--coral));
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-rating {
  font-size: .9rem;
  letter-spacing: .04em;
}

.hero-rating-text {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-raised);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 .accent-cyan {
  color: var(--cyan);
}

.hero h1 .accent-coral {
  color: var(--coral);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* Hero visual */
.hero-visual {
  flex-shrink: 0;
  width: 260px;
  max-width: 260px;
}

/* ---------- Phone Frame ---------- */
.phone-frame {
  border-radius: 40px;
  border: 7px solid #3A3B40;
  overflow: hidden;
  background: #111215;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    0 40px 100px rgba(0, 0, 0, .55),
    0 8px 24px rgba(44, 191, 202, .06);
  position: relative;
  flex-shrink: 0;
}

.phone-frame img {
  display: block;
  width: 100%;
}

.hero-phone {
  width: 100%;
  max-width: 260px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    0 48px 120px rgba(0, 0, 0, .65),
    0 12px 32px rgba(44, 191, 202, .12);
}

/* Store badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.badge-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.badge-btn:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cyan-glow);
  color: var(--text);
}

.badge-sub {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

.badge-btn--primary {
  border-color: var(--cyan);
  background: var(--cyan-glow);
}

.badge-btn--primary:hover {
  background: rgba(44, 191, 202, .22);
}

.badge-btn .coming-soon {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--coral);
  display: block;
  margin-top: 2px;
}

/* ---------- Features Section ---------- */
.features {
  padding: 80px 0;
}

.section-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--cyan-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-icon.cyan {
  background: var(--cyan-glow);
  color: var(--cyan);
}

.feature-icon.coral {
  background: var(--coral-glow);
  color: var(--coral);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), transparent 60%, var(--coral));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* ============================================================
   Legal & Support Page Styles
   ============================================================ */
.legal-page,
.support-page {
  padding: 80px 0 60px;
}

.legal-page h1,
.support-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.page-updated {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2,
.support-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}

.legal-page h3,
.support-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal-page p,
.support-page p,
.legal-page li,
.support-page li {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul,
.support-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a,
.support-page a {
  color: var(--cyan);
}

/* FAQ Accordion */
.faq-list {
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--cyan);
}

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-raised);
}

.faq-question .chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  background: var(--bg-raised);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 20px 20px;
}

.faq-answer p {
  padding-top: 8px;
  margin-bottom: 0;
}

/* Contact card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
  text-align: center;
}

.contact-card h3 {
  margin-top: 0;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--cyan-glow);
  color: var(--cyan);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition);
  margin-top: 12px;
}

.email-link:hover {
  background: rgba(44, 191, 202, .25);
  color: var(--cyan);
}

/* ---------- Screenshots Section ---------- */
.screenshots {
  padding: 80px 0;
}

.screenshots-track {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0 16px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.screenshot-item .phone-frame {
  width: 210px;
}

.screenshot-meta {
  text-align: center;
  max-width: 210px;
}

.screenshot-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.screenshot-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .hero-content .store-badges {
    justify-content: center;
  }

  .hero-badge-row {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    width: 230px;
    max-width: 230px;
  }

  .hero-phone {
    max-width: 230px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .features {
    padding: 48px 0;
  }

  .screenshots {
    padding: 48px 0;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .screenshots-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px 24px 20px;
    gap: 28px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screenshots-track::-webkit-scrollbar {
    display: none;
  }

  .screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .badge-btn {
    width: 100%;
    justify-content: center;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    width: 200px;
    max-width: 200px;
  }

  .hero-phone {
    max-width: 200px;
  }
}