/* =====================================================================
   Gojee standalone site (gojee.com.au) — shared styles
   Reuses the design tokens/components from the existing GuidedStart pages
   (navy #00263E header, green #21EA70 primary, Space Grotesk + Inter),
   de-scoped from the WordPress #app-* fragments to normal global selectors.
   ===================================================================== */

:root {
  --primary: 145 79% 52%;
  --primary-color: hsl(var(--primary));
  --navy: #00263e;
  --foreground: #222222;
  --background: #ffffff;
  --muted: #ededed;
  --border-color: #e6e6e6;
  --radius: 0.75rem;
  --container-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--foreground);
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: #0f766e;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Background grain texture (matches existing pages) */
.bg-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.text-gradient {
  background-image: linear-gradient(90deg, var(--primary-color) 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--navy);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .logo img {
  height: 2.5rem;
  width: auto;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a {
  color: #cdd9e3;
  font-size: 0.95rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #21ea70;
  color: var(--navy);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-dark:hover {
  background: #1f2937;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ---------------------------------------------------------------------
   Main / sections
   --------------------------------------------------------------------- */
main {
  flex: 1 1 auto;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-white {
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
}

.section-header p {
  color: #4b5563;
  font-size: 1.0625rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: rgba(34, 197, 94, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  padding: 4rem 0 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  font-size: 1.1875rem;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto 2rem auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 4rem 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* ---------------------------------------------------------------------
   Feature grid / cards
   --------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  transform: translateY(-4px);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(33, 234, 112, 0.08);
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-color);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.card p {
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Email integration feature row (image-less, two-column highlight)
   --------------------------------------------------------------------- */
.integration {
  background: linear-gradient(180deg, rgba(33, 234, 112, 0.06), #fff);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .integration-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.integration h2 {
  font-size: 1.75rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  display: block;
  color: #0f172a;
}

.steps li span {
  color: #4b5563;
  font-size: 0.9375rem;
}

.scope-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.scope-note code {
  background: #eef2f7;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.85em;
}

/* ---------------------------------------------------------------------
   Legal pages (privacy / terms) — readable prose
   --------------------------------------------------------------------- */
.legal {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.25rem;
}

.legal .updated {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: 2.25rem;
}

.legal h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
}

.legal p,
.legal li {
  color: #374151;
  font-size: 0.975rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: #0f766e;
  text-decoration: underline;
}

.legal-callout {
  background: linear-gradient(180deg, rgba(33, 234, 112, 0.07), rgba(33, 234, 112, 0.02));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout p {
  margin: 0;
  font-size: 0.975rem;
  color: #14532d;
}

/* ---------------------------------------------------------------------
   Footer (mirrors footer.html)
   --------------------------------------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .footer-logo img {
  height: 2rem;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #6b7280;
}

.footer-links a:hover {
  color: #374151;
}

.footer-copy {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Accessibility: visible focus ring */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(33, 234, 112, 0.45);
  outline-offset: 2px;
}
