/* Obsidian — buy.kotyatko.com trial landing.
   Same cream design language as the mini-app for visual continuity. */

:root {
  --bg:        #F2EEE3;
  --bg-2:      #ECE6D6;
  --card:      #FFFFFF;
  --ink:       #0E0E0C;
  --ink-2:     #2A2A26;
  --muted:     #807A6E;
  --line:      rgba(14, 14, 12, 0.08);
  --acc-lime:  #D6F25C;
  --acc-lav:   #DCD0FF;
  --err:       #E5484D;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 'Geist', system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Inter", sans-serif;
  letter-spacing: -0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

#app {
  max-width: 540px;
  margin: 0 auto;
  padding: 36px 18px 50px;
  display: flex; flex-direction: column; gap: 18px;
}

.serif  { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.mono   { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo,
          Consolas, monospace; font-size: 12.5px; }
.small  { font-size: 13.5px; color: var(--muted); }
.muted  { color: var(--muted); }
.err    { color: var(--err); }
.hidden { display: none !important; }

.pill {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 12px; letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* Hero block */
.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 38ch;
}

/* Card surface — used for every step block after CTA */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card.highlight {
  background: var(--acc-lime);
  border-color: rgba(14, 14, 12, 0.1);
}

/* CTA button — primary action; lime to mirror the bot's "live" pill */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 18px;
  padding: 16px 22px;
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: transform 80ms ease;
}
.cta:active { transform: scale(0.985); }
.cta[disabled] {
  opacity: 0.55; cursor: not-allowed;
}
.cta-sm {
  font-size: 15px;
  padding: 12px 18px;
}

/* Ghost button — secondary actions (install links, copy) */
.btn-ghost {
  display: inline-block;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  margin: 6px 6px 0 0;
}

.install-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 6px 0 14px;
}

/* Subscription URL — long, monospaced; user copies manually if Happ
   deep-link doesn't fire on their device. */
details {
  margin-top: 14px;
}
details summary {
  cursor: pointer;
}
.suburl {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 10px;
  word-break: break-all;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}

.error-card { border-color: var(--err); }

.foot {
  margin-top: 22px;
  text-align: center;
}
.foot a { color: var(--ink); text-decoration: underline; }

/* Mobile niceties */
@media (max-width: 480px) {
  #app { padding: 22px 14px 36px; }
}
