/* Klaustar website — colors/type/radii from packages/design-system/tokens
 * (the canonical token source; do not invent values here). Light theme only:
 * this is the public marketing site, kept to one deliberate look. */

:root {
  --brand-light: #10b780;
  --brand-primary: #099f6f;
  --brand-dark: #068a62;
  --brand-deep: #0a5c3a;
  --brand-text: #1a3a2a;
  --sand-base: #f5deb4;
  --sand-dark: #e4cea5;
  --grey-600: #6b6b6b;
  --grey-200: #dedede;
  --grey-100: #f2f2f2;
  --white: #ffffff;
  --warning: #b7770d;
  --warning-light: #fffbeb;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--brand-text);
  line-height: 1.5;
  font-size: 17px;
}

a {
  color: var(--brand-primary);
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
}

.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--brand-text);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--brand-primary);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px; /* ≥44pt touch target with line height */
  border-radius: var(--radius-lg);
}

.site-nav a:hover {
  background: var(--grey-100);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-primary);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  color: var(--sand-base);
  text-align: center;
  padding: 72px 24px 80px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 auto 16px;
  max-width: 720px;
  line-height: 1.15;
}

.hero p.lede {
  font-size: 19px;
  margin: 0 auto 28px;
  max-width: 640px;
  color: var(--sand-base);
}

.badge {
  display: inline-block;
  background: rgba(245, 222, 180, 0.16);
  border: 1px solid rgba(245, 222, 180, 0.45);
  color: var(--sand-base);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── Store badges (hero) ────────────────────────────────── */
/* Klaustar-styled chips, deliberately NOT the official Apple/Google badge
 * artwork: both badge licenses require a live listing + developer account
 * (OPEN-117's blockers). Plain-text platform names are nominative use.
 * Swap in official badges at flip time — see README "Store badges". */

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  min-height: 56px; /* ≥44pt touch target */
  padding: 9px 20px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 222, 180, 0.45);
  background: rgba(10, 92, 58, 0.35);
  color: var(--sand-base);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.store-chip:hover {
  background: rgba(10, 92, 58, 0.6);
}

.store-chip .chip-note {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.store-chip .chip-store {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

/* Live state (store URL set): solid, unmistakably a real link. */
.store-chip.live {
  background: var(--brand-deep);
  border-color: var(--sand-base);
}

/* Coming-soon click target: gentle highlight of the status section. */
.section.flash {
  animation: status-flash 1.6s ease-out 1;
  border-radius: var(--radius-lg);
}

@keyframes status-flash {
  0% {
    background: var(--warning-light);
    box-shadow: 0 0 0 8px var(--warning-light);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 8px transparent;
  }
}

/* ── Page scaffolding ───────────────────────────────────── */

main.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

main.page.narrow {
  max-width: 760px;
}

.section {
  margin-bottom: 56px;
}

.section h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}

.section p.section-sub {
  color: var(--grey-600);
  margin: 0 0 28px;
  max-width: 640px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.card p {
  font-size: 15px;
  color: var(--grey-600);
  margin: 0;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--brand-primary);
  color: var(--sand-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card.sand {
  background: var(--sand-base);
  border-color: var(--sand-dark);
}

.card.sand p {
  color: var(--brand-deep);
}

/* ── Prose pages (about, privacy, terms) ────────────────── */

.prose h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.prose p,
.prose li {
  color: var(--brand-text);
  font-size: 16px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.meta-line {
  color: var(--grey-600);
  font-size: 14px;
  margin: 0 0 28px;
}

/* Draft-status banner for legal pages awaiting NDPA counsel review. */
.draft-banner {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--radius-lg);
  color: var(--warning);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 32px;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--sand-base);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius-lg);
  padding: 14px 28px; /* ≥44pt tall */
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--brand-deep);
  border: 1.5px solid var(--brand-primary);
}

.btn.secondary:hover {
  background: var(--grey-100);
}

/* ── Activity preview ───────────────────────────────────── */

.preview-card {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-2xl);
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.preview-card .emoji {
  font-size: 44px;
  line-height: 1;
}

.preview-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 12px 0 4px;
}

.preview-card .detail {
  color: var(--grey-600);
  font-size: 15px;
  margin: 4px 0;
}

.preview-card .verified {
  display: inline-block;
  background: #e8f5ee;
  color: var(--brand-deep);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  margin-top: 10px;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--grey-200);
  background: var(--grey-100);
  margin-top: 48px;
}

.site-footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--grey-600);
}

.site-footer a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .hero {
    padding: 48px 20px 56px;
  }
  main.page {
    padding: 32px 20px 48px;
  }
}
