/* Under Glass pages: landing (index.php) and download (download/). */
:root {
  --stage: #0c120e;
  --stage-2: #141c16;
  --stage-3: #1b261f;
  --ink: #eaf0eb;
  --muted: #97a89c;
  --rule: #233327;
  --ug-green: #4F7F52;
  --ug-green-bright: #67a86b;
  --ug-brown: #B98A5A;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.gutter { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
.wrap { max-width: 70rem; margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ug-brown);
  margin: 0 0 14px;
  display: inline-block;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 127, 82, 0.2);
  border: 1px solid rgba(103, 168, 107, 0.4);
  color: #b8e2bc;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}
.status-badge i { color: var(--ug-green-bright); }

/* Header */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 18, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
nav.links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}
nav.links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms ease;
}
nav.links a:hover { color: var(--ink); }
.btn-nav-apps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--stage-2);
  border: 1px solid var(--rule);
  color: var(--ink) !important;
}
@media (max-width: 680px) {
  nav.links a:not(.btn-nav-apps) { display: none; }
}

/* Hero */
.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  color: #f7faf7;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--muted);
  margin: 20px 0 24px;
  max-width: 36rem;
  line-height: 1.65;
}
.hero-visual-card {
  background: var(--stage-2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  position: relative;
}
.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(79, 127, 82, 0.4), transparent 60%);
  pointer-events: none;
}
.hero-visual-card img.terrarium-icon {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hero-visual-caption {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual-card { max-width: 380px; margin: 0 auto; }
}

/* Blocks */
section.block {
  padding-block: clamp(54px, 8vw, 100px);
  border-top: 1px solid var(--rule);
}
.head {
  max-width: 42rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: #f7faf7;
}
.head p {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* Feature Grid & Cards */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--stage-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 {
  font-size: 1.35rem;
  color: #f0f5f1;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.card .icon-bullet {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79, 127, 82, 0.2);
  border: 1px solid rgba(103, 168, 107, 0.3);
  color: var(--ug-green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 4px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: #d8e4da;
  font-size: 1.02rem;
}
.feature-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--ug-green-bright);
  font-size: 1.3rem;
  line-height: 1.3;
}

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

/* Two Column Split */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 760px) {
  .two-col-grid { grid-template-columns: 1fr; }
}

/* Table Style */
.pricing-table-wrap {
  overflow-x: auto;
  background: var(--stage-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  margin-top: 24px;
}
table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}
table.pricing-table th,
table.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
table.pricing-table th {
  background: var(--stage-3);
  color: #eaf0eb;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
table.pricing-table tbody tr:last-child td {
  border-bottom: none;
}
table.pricing-table td:first-child {
  font-weight: 600;
  color: #eaf0eb;
}
table.pricing-table td {
  color: var(--muted);
}
.table-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 4px;
}

/* Close Section */
.close-card {
  background: var(--stage-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.close-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ug-brown), var(--ug-green-bright));
}
.close-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.close-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.close-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--stage-3);
  border: 1px solid var(--rule);
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 150ms ease;
}
.close-links a:hover {
  border-color: var(--ug-green-bright);
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding-block: 36px;
  font-size: 0.88rem;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
footer nav a:hover { color: var(--ink); }

/* ---------- Store buttons ---------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  background: #f4f7f4;
  color: #0c120e;
  border: 1px solid #f4f7f4;
  text-decoration: none;
  line-height: 1.15;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.store-btn i { font-size: 1.7rem; width: 28px; text-align: center; }
.store-btn small { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
.store-btn strong { display: block; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
a.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
a.store-btn:focus-visible { outline: 3px solid var(--ug-green-bright); outline-offset: 3px; }
.store-btn.is-soon {
  background: transparent;
  color: var(--ink);
  border-color: rgba(234, 240, 235, 0.28);
  cursor: default;
}
.store-btn.is-soon small { color: var(--muted); }
.store-btn.is-match { order: -1; }
.store-btn.is-match:not(.is-soon) { box-shadow: 0 0 0 3px rgba(103, 168, 107, 0.55); }
.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8e2bc;
  font-weight: 600;
  text-decoration: none;
  margin-top: 18px;
}
.btn-text-link:hover { color: #fff; }

/* ---------- Phone frames ---------- */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2a352d, #0f1511);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 26px;
  background: var(--stage-3);
}
.hero-phones {
  position: relative;
  height: clamp(420px, 46vw, 560px);
}
.hero-phones .phone { position: absolute; width: 56%; max-width: 280px; }
.hero-phones .phone.front { right: 4%; top: 0; z-index: 2; }
.hero-phones .phone.back { left: 2%; top: 12%; transform: rotate(-6deg); opacity: 0.92; }
@media (max-width: 860px) {
  .hero-phones { max-width: 420px; width: 100%; margin: 0 auto; height: 520px; }
}
@media (max-width: 420px) {
  .hero-phones { height: 440px; }
}

/* ---------- Text + picture splits ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split.flip .split-media { order: -1; }
.split .head { margin-bottom: 0; }
.split-media {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.split-media .phone { width: 100%; max-width: 250px; }
.split-media .phone:nth-child(2) { margin-top: 48px; }
.split-media figure { margin: 0; flex: 1 1 0; max-width: 250px; }
.split-media figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}

/* ---------- Wide feature picture ---------- */
.wide-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
.wide-shot img { width: 100%; }

/* ---------- Screenshot strip ---------- */
.shot-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 22px;
  margin-inline: -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.shot-strip figure {
  flex: 0 0 clamp(190px, 22vw, 240px);
  margin: 0;
  scroll-snap-align: start;
}
.shot-strip .phone { border-radius: 28px; padding: 7px; }
.shot-strip .phone img { border-radius: 22px; }
.shot-strip figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.strip-hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ---------- Small notes ---------- */
.fine {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 14px;
}
.promise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #d8e4da;
  font-size: 0.95rem;
}
.promise li { display: inline-flex; align-items: center; gap: 8px; }
.promise i { color: var(--ug-green-bright); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.store-btn:hover { transform: none; }
}
