/*
  ClearPane — ALLYGENIX PTY LTD.
  Matches allygenix.com botanical paper & forest-ink aesthetic with clean macOS window chrome.
*/
:root {
  --paper: #f8f7f2;
  --paper-alt: #f0eee5;
  --card: #ffffff;
  --ink: #173b30;
  --muted: #5b695e;
  --line: #dce0d4;
  --green: #173f32;
  --green-hover: #0f2c22;
  --lime: #e2f4ac;
  --accent: #2563eb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: #d7eaa7; color: #173b30; }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 224, 212, 0.7);
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.4px;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 59, 48, 0.14);
}
.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--card);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.lang-toggle button.active {
  background: var(--green);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 63, 50, 0.18);
}
.btn-primary:hover { background: var(--green-hover); }
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 840px;
  font-weight: 700;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(16.5px, 2vw, 19.5px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-meta span::before {
  content: "•";
  margin-right: 14px;
  opacity: 0.45;
}
.hero-meta span:first-child::before {
  content: "";
  margin: 0;
}

/* Native macOS Interactive Window Mockup */
.app-showcase {
  margin: 44px auto 0;
  border-radius: 16px;
  background: #1b1e23;
  color: #e6e9ef;
  box-shadow: 0 28px 70px rgba(15, 36, 29, 0.22), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  text-align: left;
}
.mac-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #242830;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #a6b0c0;
}
.traffic-lights {
  display: flex;
  gap: 7px;
}
.traffic-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.tl-red { background: #ff5f57; }
.tl-yel { background: #febc2e; }
.tl-grn { background: #28c840; }
.mac-toolbar-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mac-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: #d0d7e2;
}
.mac-pill.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
}
.mac-body {
  display: grid;
  grid-template-columns: 190px 1fr 1fr;
  min-height: 360px;
  font-size: 12.5px;
}
.mac-sidebar {
  background: #1f2329;
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 14px 12px;
}
.sb-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c8798;
  margin: 10px 6px 5px;
}
.sb-head:first-child { margin-top: 0; }
.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  color: #cbd3df;
  font-size: 12px;
}
.sb-item.selected {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}
.sb-cap { font-size: 10px; color: #8c96a7; font-family: var(--mono); }
.mac-pane {
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}
.mac-pane:last-child { border-right: 0; }
.pane-tabs {
  display: flex;
  background: #23272e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 11.5px;
}
.pane-tab {
  padding: 7px 12px;
  color: #8f99aa;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.pane-tab.active {
  background: #1b1e23;
  color: #fff;
  box-shadow: inset 0 2px 0 #3b82f6;
}
.pane-path {
  padding: 6px 12px;
  background: #1f2329;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--mono);
  font-size: 11px;
  color: #93a1b5;
}
.file-rows {
  padding: 6px 0;
  flex: 1;
}
.file-row {
  display: grid;
  grid-template-columns: 1fr 78px 86px;
  padding: 5px 12px;
  align-items: center;
  color: #dce2ec;
  font-size: 12px;
}
.file-row.sel {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
}
.file-row.head {
  color: #7c8798;
  font-size: 10.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 3px;
}
.file-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: #96a2b5;
}
.badge-tag {
  display: inline-block;
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  background: rgba(226, 244, 172, 0.16);
  color: var(--lime);
  font-family: var(--mono);
}
.pane-status {
  padding: 6px 12px;
  background: #1f2329;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 11px;
  color: #8c96a7;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
}

/* Sections */
.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}
.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

/* Bento Feature Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper-alt);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.card ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.card li { margin-bottom: 4px; }
.code-pill {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper-alt);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* Comparison Table */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
tr:last-child td { border-bottom: 0; }
th {
  background: var(--paper-alt);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
th.col-us, td.col-us {
  background: rgba(226, 244, 172, 0.28);
  font-weight: 600;
}
.check { color: #15803d; font-weight: 700; }
.cross { color: #9ca3af; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.featured {
  background: var(--green);
  color: #f8f7f2;
  border-color: var(--green);
  box-shadow: 0 20px 44px rgba(23, 63, 50, 0.22);
}
.price-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--lime);
  color: var(--green);
  margin-bottom: 14px;
}
.price-amount {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 6px 0 8px;
}
.price-amount s {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.55;
  margin-left: 8px;
}
.price-note {
  font-size: 14px;
  opacity: 0.82;
  margin: 0 0 22px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.price-list li {
  padding: 6px 0;
  font-size: 14.5px;
  display: flex;
  gap: 10px;
}
.price-card.featured .btn-primary {
  background: var(--lime);
  color: var(--green);
  box-shadow: none;
}
.price-card.featured .btn-primary:hover {
  background: #d4ec8e;
}

/* Privacy & FAQ */
.privacy-banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.privacy-banner h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.privacy-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
details.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
}
details.faq[open] summary::after { content: "−"; }
details.faq p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 54px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .mac-body { grid-template-columns: 1fr; }
  .mac-sidebar { display: none; }
  .pricing-grid, .privacy-banner, .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .nav-links .nav-hide-sm { display: none; }
  .brand-sub { display: none; }
}
