/* ============================================================
   Eko Systems LLC — Shared Stylesheet
   Brand palette: near-black + warm gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --c-bg:           #FAF9F7;
  --c-surface:      #FFFFFF;
  --c-primary:      #1C1C1E;
  --c-accent:       #C9A253;
  --c-accent-hover: #B58C3A;
  --c-accent-light: #FDF6E3;
  --c-text:         #1C1C1E;
  --c-text-muted:   #6C6C6E;
  --c-border:       #E8E8EA;
  --c-footer-bg:    #141414;
  --c-footer-text:  #A1A1A3;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --max-w: 1100px;
  --content-w: 780px;
  --nav-h: 64px;
  --transition: 180ms ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-hover); }
ul { list-style: none; }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.content {
  max-width: var(--content-w);
  margin-inline: auto;
}
section { padding: 4rem 0; }
.section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: .5rem;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo:hover { color: var(--c-primary); }
.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--c-primary);
  color: var(--c-accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-primary); }
.nav-links a.btn-nav {
  background: var(--c-primary);
  color: #fff;
  padding: .45rem 1rem;
  border-radius: var(--radius);
}
.nav-links a.btn-nav:hover { background: var(--c-accent); color: var(--c-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--c-primary);
}
.nav-toggle svg { display: block; }

/* mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: .5rem 1.25rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 0; border-bottom: 1px solid var(--c-border); font-size: 1rem; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.btn-nav { margin-top: .5rem; text-align: center; border-bottom: none; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: #2c2c2e; color: #fff; }
.btn-accent {
  background: var(--c-accent);
  color: var(--c-primary);
}
.btn-accent:hover { background: var(--c-accent-hover); color: var(--c-primary); }
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border);
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-danger {
  background: #DC2626;
  color: #fff;
}
.btn-danger:hover { background: #B91C1C; color: #fff; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--c-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--c-text-muted); font-size: .92rem; margin-bottom: 0; }

/* ── Tier table ────────────────────────────────────────────── */
.tier-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.tier-table th,
.tier-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.tier-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.tier-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.tier-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.tier-table thead .premium-col {
  background: #2a2217;
  border-top: 2px solid var(--c-accent);
}
.tier-table tbody tr:hover { background: var(--c-accent-light); }
.tier-table .check-free  { color: #6C6C6E; font-weight: 700; }
.tier-table .check-premium { color: var(--c-accent); font-weight: 700; font-size: 1.05rem; }
.tier-table .cross { color: var(--c-border); font-size: 1.1rem; }
.tier-table .unlimited { font-weight: 700; color: var(--c-accent); }
.tier-table tbody td.premium-col { background: rgba(201,162,83,.04); }
.tier-table tbody tr:hover td.premium-col { background: rgba(201,162,83,.1); }

/* group sub-headers */
.tier-table .row-group th {
  background: var(--c-bg);
  color: var(--c-text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--c-border);
}

/* popular badge in header */
.popular-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--c-accent);
  color: var(--c-primary);
  padding: .15rem .55rem;
  border-radius: 20px;
  margin-bottom: .3rem;
  vertical-align: middle;
}

/* tooltip */
.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: var(--c-border);
  color: var(--c-text-muted);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  cursor: help;
  margin-left: .35rem;
  flex-shrink: 0;
  vertical-align: middle;
  line-height: 1;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 400;
  padding: .5rem .75rem;
  border-radius: 6px;
  width: 220px;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 20;
  white-space: normal;
}
.tip:hover::after { opacity: 1; }

/* benefit label + sub-description */
.benefit-name { display: block; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.benefit-sub  { display: block; font-size: .78rem; color: var(--c-text-muted); margin-top: .2rem; line-height: 1.4; }

/* billing toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 9px;
  padding: 3px;
}
.btoggle {
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--c-text-muted);
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.btoggle.active { background: var(--c-primary); color: #fff; }
.btoggle:hover:not(.active) { color: var(--c-text); }
.save-pill {
  font-size: .68rem;
  font-weight: 700;
  background: var(--c-accent);
  color: var(--c-primary);
  padding: .1rem .4rem;
  border-radius: 20px;
}
.billing-desc {
  text-align: center;
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  min-height: 1.3em;
}

/* social proof strip */
.tier-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: .9rem 1.25rem;
  background: var(--c-accent-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,162,83,.25);
}
.tier-social-proof .stars { color: var(--c-accent); font-size: 1rem; letter-spacing: .05em; }
.tier-social-proof .proof-text { font-size: .85rem; color: var(--c-text-muted); }
.tier-social-proof .proof-text strong { color: var(--c-text); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--c-text);
}
.form-group label .required { color: #DC2626; }
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(201,162,83,.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .92rem;
  color: var(--c-text-muted);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--c-accent);
  cursor: pointer;
}
/* honeypot */
.hp-field { display: none !important; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #166534;
  margin-top: 1rem;
}
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #991b1b;
  margin-top: 1rem;
}

/* ── Info boxes ────────────────────────────────────────────── */
.info-box {
  background: var(--c-accent-light);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .93rem;
}
.warn-box {
  background: #FFF7ED;
  border-left: 3px solid #F97316;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .93rem;
}

/* ── Deletion list ─────────────────────────────────────────── */
.delete-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.delete-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: .93rem;
}
.delete-list li:last-child { border-bottom: none; }
.delete-list .icon-yes { color: #DC2626; font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.delete-list .icon-no  { color: var(--c-text-muted); font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* ── Policy pages (long-form prose) ───────────────────────── */
.policy-body h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--c-border);
}
.policy-body h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}
.policy-body ul, .policy-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.policy-body ul { list-style: disc; }
.policy-body ol { list-style: decimal; }
.policy-body li { margin-bottom: .35rem; }
.policy-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-bottom: 1.5rem;
}
.policy-body table th,
.policy-body table td {
  padding: .65rem .9rem;
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
.policy-body table th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
}
.policy-body a { word-break: break-all; }
.policy-meta {
  font-size: .88rem;
  color: var(--c-text-muted);
  padding: .75rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* ── Language switcher ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.lang-switcher a,
.lang-switcher span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.6;
}
.lang-switcher span[aria-current] {
  background: var(--c-primary);
  color: #fff;
}
.lang-switcher a {
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.lang-switcher a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ── Address block ─────────────────────────────────────────── */
.address-block {
  font-style: normal;
  line-height: 1.8;
  font-size: .93rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2c2c2e;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-brand a { color: var(--c-accent); }
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a { font-size: .88rem; color: var(--c-footer-text); }
.footer-col ul a:hover { color: var(--c-accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 1.5rem;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--c-footer-text); }
.footer-bottom-links a:hover { color: var(--c-accent); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── App spotlight two-col grid (stacks on mobile) ────────── */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 2.5rem 0;
}

/* ── Badge / tag ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--c-accent-light);
  color: var(--c-accent-hover);
}

/* ── 404 / centered page ───────────────────────────────────── */
.centered-page {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.centered-page h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--c-border); }
.centered-page h2 { margin-bottom: 1rem; }
