/* Gendo Studio — shared stylesheet */

:root {
  --color-primary: #ff7a1a;
  --color-primary-dark: #e8620a;
  --color-text: #23201d;
  --color-text-muted: #6b6560;
  --color-bg: #ffffff;
  --color-bg-alt: #faf7f4;
  --color-border: #ece6e0;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(35, 32, 29, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Logo ---------- */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-logo {
  display: inline-flex;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  position: relative;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  pointer-events: none;
}

.nav-links.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-links a {
  display: block;
  padding: 12px 4px;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-links li:last-of-type a {
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-cta {
  display: none;
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 4px 0;
    border-bottom: none;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-cta a.btn {
    padding: 8px 16px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #fff 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    flex-direction: row;
    max-width: none;
    width: auto;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

/* ---------- App grid ---------- */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card-info {
  min-width: 0;
}

.app-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.app-downloads {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.app-downloads svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.app-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

/* ---------- Stats grid ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 16px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.stat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ---------- Why-us grid ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.why-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.why-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.contact-card .icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-card p, .contact-card a {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1c1a18;
  color: #d8d3ce;
  padding: 36px 0 20px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: #d8d3ce;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  text-align: center;
  color: #948e88;
  font-size: 0.82rem;
}

/* ---------- Legal / content pages ---------- */

.page-hero {
  padding: 40px 0 24px;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.page-hero p {
  margin: 0;
  color: var(--color-text-muted);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p, .legal li {
  color: var(--color-text-muted);
}

.legal ul {
  padding-left: 20px;
}

.legal .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Help ---------- */

.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.help-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}

.help-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.help-card p, .help-card li {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.help-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.support-banner {
  max-width: 900px;
  margin: 32px auto 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.support-banner h3 {
  margin: 0 0 8px;
}

.support-banner p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}