@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #1B1F2A;
  --surface: #232838;
  --surface-2: #1E2330;
  --text: #F2EFE9;
  --text-dim: #A9AFC0;
  --accent: #E8A33D;
  --border: #33394A;
  --header-bg: rgba(27, 31, 42, 0.92);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(27, 31, 42, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

nav.site a {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
  margin-left: 22px;
}
nav.site a:hover { color: var(--accent); }

main { padding: 64px 0 96px; }

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.eyebrow::before { content: '$ '; opacity: 0.7; }

h1 {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

h2 {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--accent);
}

p { color: var(--text-dim); margin: 0 0 16px; }
p.lead { color: var(--text); font-size: 17px; }

ul, ol { color: var(--text-dim); padding-left: 20px; }
li { margin-bottom: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  margin: 24px 0;
}

.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bg);
  background: var(--accent);
  padding: 11px 20px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 8px;
}
.cta:hover { text-decoration: none; opacity: 0.9; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.app-logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--bg);
  letter-spacing: -0.02em;
  overflow: hidden;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-desc-full {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.app-name {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.app-description {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.app-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.price-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

.price-pill strong {
  color: var(--accent);
  font-weight: 600;
}

.price-pill.muted {
  font-style: italic;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.store-links a {
  font-family: var(--mono);
  font-size: 12px;
}

.app-policies {
  margin-top: 10px;
}

.store-soon {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

table { width: 100%; border-collapse: collapse; margin: 18px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-dim); }
th { font-family: var(--mono); color: var(--text); font-weight: 600; font-size: 13px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 40px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 26px;
}

.price-card .app-head { margin-bottom: 2px; }

.price-card .app-description {
  margin-bottom: 18px;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 14px;
}
.plan-row:last-child { border-bottom: none; }

.plan-name { color: var(--text); }
.plan-cycle { color: var(--text-dim); font-size: 12px; margin-left: 8px; }
.plan-price { color: var(--accent); font-weight: 600; }

.plan-note {
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
  padding: 10px 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
footer a { color: var(--text-dim); margin-right: 16px; }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  nav.site a { margin-left: 12px; font-size: 12px; }
  .apps-grid { grid-template-columns: 1fr; }
}

html[data-theme="light"] {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-2: #F0F1F3;
  --text: #171A21;
  --text-dim: #5D6470;
  --accent: #B86A00;
  --border: #D9DCE2;
  --header-bg: rgba(247, 247, 245, 0.94);
}

html[data-theme="dark"] {
  --bg: #1B1F2A;
  --surface: #232838;
  --surface-2: #1E2330;
  --text: #F2EFE9;
  --text-dim: #A9AFC0;
  --accent: #E8A33D;
  --border: #33394A;
  --header-bg: rgba(27, 31, 42, 0.92);
}

header.site { background: var(--header-bg); }
.app-logo { background: #FFFFFF; }
.theme-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 500 18px var(--mono);
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 18px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon { line-height: 1; }
@media (max-width: 600px) {
  .theme-toggle { width: 32px; height: 32px; margin-left: 10px; font-size: 17px; }
}
