/* GyanGo marketing site — shared styles (mobile-first) */

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #ecede8;
  --ink: #1f2933;
  --muted: #5f6b63;
  --accent: #6f8f72;
  --accent-dark: #405744;
  --border: #daddd5;
  --focus: #2d4a32;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.06);
  --shadow: 0 4px 20px rgba(31, 41, 51, 0.07);
  --shadow-hover: 0 8px 28px rgba(64, 87, 68, 0.12);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
}

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

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.container--narrow {
  width: min(640px, 92%);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent-dark);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.menu-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--surface-soft);
}

.site-nav {
  display: none;
  position: absolute;
  left: 4%;
  right: 4%;
  top: calc(4.25rem + 0.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
  gap: 0.2rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.site-nav a.active {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-dark);
}

.site-nav.is-open {
  display: grid;
}

/* Typography */

h1,
h2,
h3 {
  line-height: 1.18;
  margin-top: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 2.85rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.section-title {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.35rem;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

.positioning {
  color: var(--ink);
  max-width: 40rem;
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-weight: 500;
}

/* Hero */

.hero {
  padding: 2.75rem 0 2.5rem;
}

.hero__inner {
  max-width: 44rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.98rem;
  min-height: 2.75rem;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-dark) 88%, black);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--surface-soft);
  color: var(--accent-dark);
}

/* Trust badges */

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-badge {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* Sections */

.section {
  padding: 2.75rem 0;
}

.section--soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--tight-bottom {
  padding-bottom: 3.25rem;
}

/* Cards & grids */

.lift-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lift-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.lift-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.lift-card h3 {
  color: var(--accent-dark);
}

.feature-grid {
  display: grid;
  gap: 1.15rem;
}

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

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

.two-col-cards {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .two-col-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.privacy-list li {
  margin-bottom: 0.35rem;
}

.section-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.safety-block {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.safety-block p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.use-case-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44rem;
}

.disclaimer strong {
  color: var(--ink);
}

/* Legal / prose pages */

.page-main {
  padding: 2.5rem 0 3.5rem;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.prose h1 {
  margin-bottom: 0.5rem;
}

.prose h2 {
  margin-top: 1.6rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.prose .table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.prose table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-soft);
  font-weight: 600;
}

.meta {
  color: var(--muted);
}

code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-soft);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

/* Contact page */

.contact-hero {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.contact-card h1 {
  margin-bottom: 0.75rem;
}

.contact-card > p {
  color: var(--muted);
  margin-top: 0;
}

.contact-emails {
  margin: 1.75rem 0 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-emails p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-emails p:last-child {
  margin-bottom: 0;
}

.contact-emails a {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-warning {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 2rem 0 1.5rem;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

.site-footer strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.site-footer .tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.site-footer nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
}

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

.site-footer .copyright {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Layout: sticky footer feel */
html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1;
}

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

  .site-nav {
    display: flex;
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 0.15rem;
    align-items: center;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
