/* GinjaPlay — Organic Editorial */
:root {
  --bg: #e8efea;
  --bg-paper: #f4f7f5;
  --bg-elevated: #dde6e0;
  --ink: #1b2b26;
  --ink-soft: #4d5f57;
  --moss: #3f6b56;
  --moss-deep: #2a4a3c;
  --leaf: #6f947e;
  --mist: #c5d4cb;
  --line: rgba(27, 43, 38, 0.12);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius-soft: 1.75rem;
  --radius-pill: 999px;
  --max: 1120px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-soft: 0 18px 48px rgba(42, 74, 60, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(111, 148, 126, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(197, 212, 203, 0.55), transparent 50%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.25s var(--ease); }
a:hover { color: var(--moss); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-variation-settings: "SOFT" 50, "WONK" 1; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.45rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
p { margin-bottom: 1rem; color: var(--ink-soft); }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 38rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.35rem;
}
.section { padding: 4.5rem 0; position: relative; }
.section-sm { padding: 3rem 0; }

/* Organic blobs */
.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45%;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  background: radial-gradient(circle at 30% 30%, #b7cfc0, #8fad9a 70%);
  top: -6%;
  right: -4%;
}
.blob-b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  background: radial-gradient(circle at 60% 40%, #d2ddd6, #a8bfb2);
  bottom: 8%;
  left: -8%;
  animation-delay: -6s;
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(12px, -18px) rotate(6deg); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 239, 234, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--moss-deep); }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 40% 60% 55% 45%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--moss);
  transition: width 0.3s var(--ease);
}
.nav a:hover,
.nav a.active { color: var(--ink); }
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav-cta {
  background: var(--moss-deep);
  color: #f4f7f5 !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--moss); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--moss-deep);
  color: #f4f7f5;
}
.btn-primary:hover { background: var(--moss); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--moss);
}
.btn-outline:hover { background: var(--moss); color: #fff; }

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 43, 38, 0.2) 0%, rgba(27, 43, 38, 0.35) 40%, rgba(27, 43, 38, 0.78) 100%);
}
.hero-inner {
  width: 100%;
  padding: 5.5rem 0 4rem;
  color: #f4f7f5;
  animation: rise 0.9s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.1rem;
  color: #f7faf8;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}
.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  color: #e8efea;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}
.hero .lead {
  color: rgba(244, 247, 245, 0.88);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .btn-primary { background: #f4f7f5; color: var(--moss-deep); }
.hero .btn-primary:hover { background: #fff; color: var(--ink); }
.hero .btn-outline {
  color: #f4f7f5;
  box-shadow: inset 0 0 0 1.5px rgba(244, 247, 245, 0.65);
}
.hero .btn-outline:hover { background: rgba(244, 247, 245, 0.15); color: #fff; }

/* Page hero (inner) */
.page-hero {
  padding: 3.25rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.breadcrumb a { text-decoration: none; color: var(--moss); }

/* Editorial articles — not cards */
.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.editorial-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.editorial-item:last-child { border-bottom: 1px solid var(--line); }
.editorial-item figure {
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}
.editorial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.editorial-item:hover img { transform: scale(1.04); }
.editorial-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.55rem;
  font-weight: 600;
}
.editorial-item h3 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
.editorial-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--moss-deep);
}
.editorial-link:hover { color: var(--moss); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--moss-deep);
  background: var(--mist);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* Asymmetric feature */
.feature-asymm {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.feature-asymm figure {
  border-radius: var(--radius-soft) 3rem var(--radius-soft) 4rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.feature-asymm img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Interactive panel */
.interactive-panel {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--moss-deep);
  color: #f4f7f5;
  border-color: var(--moss-deep);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--moss); }
td { color: var(--ink-soft); }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.form-group input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-group input:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
}
.calc-result {
  background: var(--bg-elevated);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
}
.calc-result .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.calc-result .value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--moss-deep);
}

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 0.65rem; }
.accordion-item {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.accordion-header span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--moss);
  line-height: 1;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion-item.open .accordion-body { max-height: 320px; }
.accordion-item.open .accordion-header span { transform: rotate(45deg); display: inline-block; }
.accordion-content {
  padding: 0 1.2rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Glossary term popups */
button.term {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--moss-deep);
  border-bottom: 1.5px dashed var(--leaf);
  cursor: help;
  font-weight: 600;
  display: inline;
}
.term-popup {
  position: absolute;
  z-index: 200;
  max-width: 280px;
  padding: 0.9rem 1rem;
  background: var(--ink);
  color: #e8efea;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.term-popup.visible {
  opacity: 1;
  transform: translateY(0);
}
.term-popup strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #c5d4cb;
}

/* Reviews grid */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.review-article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.review-article h3 { margin-top: 0.25rem; }
.formula {
  font-family: var(--font-display);
  color: var(--ink);
  text-align: center;
  margin: 1.25rem 0;
  font-size: 1.05rem;
}

/* Jobs / partner */
.job-card,
.partner-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.job-card:first-of-type,
.partner-card:first-of-type { border-top: 1px solid var(--line); }
.job-meta {
  font-size: 0.85rem;
  color: var(--leaf);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.content-block,
.legal-content {
  max-width: 720px;
}
.content-block ul,
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}
.content-block li,
.legal-content li { margin-bottom: 0.45rem; }
.legal-content h2 { margin-top: 2rem; font-size: 1.35rem; }

/* Contact strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-paper);
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
}
.contact-strip h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.5rem;
}
.contact-strip p { margin: 0; color: var(--ink); font-size: 0.95rem; }

/* Footer */
.footer {
  margin-top: auto;
  background: var(--moss-deep);
  color: #d5e0d9;
  padding: 3.5rem 0 1.75rem;
}
.footer a { color: #c5d4cb; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo { color: #f4f7f5; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fad9a;
  margin-bottom: 0.85rem;
}
.footer ul li { margin-bottom: 0.4rem; }
.footer-contact p { margin-bottom: 0.35rem; color: #d5e0d9; font-size: 0.92rem; }
.footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #a8bfb2;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(197, 212, 203, 0.2);
  border-bottom: 1px solid rgba(197, 212, 203, 0.2);
  margin-bottom: 1.25rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8fad9a;
}

/* Utilities */
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .editorial-item,
  .feature-asymm {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .editorial-item figure { max-width: 420px; }
  .review-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.35rem 1.25rem;
    box-shadow: var(--shadow-soft);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
  }
  .hero { min-height: min(88vh, 680px); }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
