/* ============================================================
   Gienie — landing site styles
   Light identity: white surfaces, forest-green typography, the
   brand greens kept as accents and purple as sparkle accents.
   The hero carries a graph-paper grid that fades at the edges;
   the browser mockup intentionally keeps the original dark
   canvas palette so it pops as the focal object.
   Pure CSS, system font stack, no external resources.
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #f6f8f7;
  --raised: #eef3f1;
  --border: rgba(12, 27, 24, 0.1);
  --text: #0c1b18;
  --muted: #455a56;
  --primary: #54b02b;
  --primary-strong: #479824;
  --logo-green: #54b02b;
  --sparkle: #6c79b5;
  --radius: 14px;
  --content-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Preserved dark palette for the browser-frame app mockup only. */
  --mock-bg: #091512;
  --mock-panel: #0c1b18;
  --mock-raised: #142d28;
  --mock-border: rgba(183, 191, 190, 0.14);
  --mock-muted: #94a09e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

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

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

.btn-primary:hover {
  background: var(--primary-strong);
  box-shadow: 0 4px 18px rgba(0, 182, 122, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(12, 27, 24, 0.28);
  background: rgba(12, 27, 24, 0.04);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
}

.btn-disabled {
  background: var(--raised);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Sticky nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

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

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-signin:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hamburger (hidden on desktop) */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 12px 24px 20px;
}

.mobile-menu li {
  padding: 10px 0;
}

.mobile-menu a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

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

/* Graph-paper grid behind the hero + mockup (homepage main only).
   Two thin 1px line layers repeat every 44px to form the squares,
   a radial green glow sits behind the mockup, and a radial-gradient
   mask dissolves the whole layer toward the edges. */
main:not(.legal) {
  position: relative;
}

main:not(.legal)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1080px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(
      620px 340px at 50% 66%,
      color-mix(in srgb, #54b02b 7%, transparent),
      transparent 70%
    ),
    linear-gradient(to right, rgba(12, 27, 24, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 27, 24, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(
    ellipse 72% 64% at 50% 40%,
    #000 42%,
    transparent 98%
  );
  mask-image: radial-gradient(
    ellipse 72% 64% at 50% 40%,
    #000 42%,
    transparent 98%
  );
}

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero-mascot {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  display: block;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto;
}

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

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 640px;
  margin: 20px auto 0;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Browser mockup ----------
   Intentionally keeps the original dark canvas palette so it reads
   as the dark focal object on the light hero. Do not lighten. */

.mockup-wrap {
  padding: 24px 0 40px;
}

.browser-frame {
  max-width: 940px;
  margin: 0 auto;
  background: var(--mock-panel);
  border: 1px solid var(--mock-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 48px 110px rgba(12, 27, 24, 0.3),
    0 20px 44px rgba(12, 27, 24, 0.16), 0 0 0 1px rgba(12, 27, 24, 0.06);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mock-border);
  background: var(--mock-raised);
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.browser-dots i:nth-child(1) { background: #e0655a; }
.browser-dots i:nth-child(2) { background: #e0b84f; }
.browser-dots i:nth-child(3) { background: #58b95e; }

.browser-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  background: var(--mock-bg);
  border: 1px solid var(--mock-border);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--mock-muted);
  text-align: center;
  padding: 4px 12px;
}

.browser-body {
  background: var(--mock-bg);
}

.browser-body svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Animated dataflow along the mockup edges */
.browser-body .edge {
  stroke-dasharray: 6 6;
  animation: edge-flow 1.1s linear infinite;
}

@keyframes edge-flow {
  to {
    stroke-dashoffset: -12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .browser-body .edge {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

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

.section {
  padding: 84px 0;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 17px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.section-alt .feature-card {
  background: #ffffff;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 182, 122, 0.35);
  box-shadow: 0 14px 34px rgba(12, 27, 24, 0.1);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  /* Lucide icons stroke with currentColor — brand logo green. */
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 182, 122, 0.1);
  border: 1px solid rgba(0, 182, 122, 0.4);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 24px;
}

.price-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 27, 24, 0.1);
}

.price-card.featured {
  border-color: rgba(0, 182, 122, 0.45);
  background: linear-gradient(
    180deg,
    rgba(0, 182, 122, 0.06) 0%,
    #ffffff 45%
  );
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card.featured .plan-name {
  color: var(--primary-strong);
}

.plan-price {
  margin: 14px 0 4px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-price small {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

.plan-alt {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.plan-alt strong {
  color: var(--primary-strong);
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin: 0 0 28px;
  flex: 1;
}

.plan-features li {
  padding: 7px 0 7px 30px;
  font-size: 14.5px;
  color: var(--text);
  position: relative;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 0, transparent 100%),
    rgba(0, 182, 122, 0.14);
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 16px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--primary-strong);
  border-bottom: 2px solid var(--primary-strong);
  transform: rotate(-45deg);
}

.pricing-fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 620px;
  margin: 30px auto 0;
}

.pricing-fineprint a {
  color: var(--muted);
  text-decoration: underline;
}

.pricing-fineprint a:hover {
  color: var(--text);
}

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

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  user-select: none;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item[open] summary {
  color: var(--primary-strong);
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.faq-body a {
  color: var(--primary-strong);
}

/* ---------- Bottom CTA ---------- */

.cta-band {
  text-align: center;
  padding: 90px 0;
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.cta-band p {
  color: var(--muted);
  margin: 14px auto 30px;
  max-width: 560px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 56px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--text);
  font-size: 14.5px;
  opacity: 0.85;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--primary-strong);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-bottom .sparkle {
  color: var(--sparkle);
}

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

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal h1 {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 40px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 42px 0 12px;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal p {
  color: #33473f;
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.75;
}

.legal ul,
.legal ol {
  color: #33473f;
  margin: 0 0 16px 24px;
  font-size: 15.5px;
  line-height: 1.75;
}

.legal li {
  margin-bottom: 7px;
}

.legal strong {
  color: var(--text);
}

.legal .callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal .callout p {
  margin: 0;
}

/* ---------- Responsive ---------- */

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

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .pricing-grid {
    grid-template-columns: minmax(0, 460px);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
  }
}
