/* ==========================================================================
   Mizan marketing site
   Monochrome by design. Inter for body. No JS. No frameworks.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-deep: #0a0a0a;
  --text: #0a0a0a;
  --text-mid: #404040;
  --text-dim: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;

  --max: 1120px;
  --pad-x: clamp(20px, 4vw, 48px);

  --t-display: clamp(2.4rem, 5.5vw, 4.5rem);
  --t-h2: clamp(1.6rem, 3vw, 2.4rem);
  --t-h3: 1.25rem;
  --t-body: 1rem;
  --t-small: 0.875rem;

  --leading-tight: 1.05;
  --leading-snug: 1.3;
  --leading-body: 1.6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 120ms ease;
}
a:hover { opacity: 0.7; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

p { margin: 0; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad-x) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.brand-word {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: var(--t-small);
  color: var(--text-mid);
}

@media (max-width: 540px) {
  .nav-links { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad-x) clamp(60px, 10vh, 120px);
  text-align: left;
}

.hero h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 28px;
}

.hero-sub {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-sub em {
  font-style: italic;
  color: var(--text);
}

.hero-foot {
  margin-top: 16px;
  font-size: var(--t-small);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   CTA buttons (App Store / Play badges, text-only)
   -------------------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
  min-width: 168px;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  line-height: 1;
}
.btn-main {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
  line-height: 1.2;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: #1a1a1a; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   Section rule + headings
   -------------------------------------------------------------------------- */

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: var(--max);
}

.section-title {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
  max-width: 18ch;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 36px 32px;
}

.feature-num {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.feature h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: var(--leading-body);
}

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */

.privacy {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.privacy-body {
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.privacy-body p {
  margin: 0;
}

.privacy-callout {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 28px 32px;
  border-radius: 14px;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin-top: 16px !important;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card--accent {
  background: var(--bg-deep);
  color: var(--bg);
  border-color: var(--bg-deep);
}

.price-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--bg);
  color: var(--bg-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--bg-deep);
}

.price-card h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.price .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 4px;
}
.price-card--accent .price .per { color: rgba(255,255,255,0.6); }

.price-sub {
  font-size: var(--t-small);
  color: var(--text-dim);
  margin-bottom: 24px !important;
}
.price-card--accent .price-sub { color: rgba(255,255,255,0.65); }

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.price-card--accent ul { color: rgba(255,255,255,0.85); }

.price-card li {
  position: relative;
  padding-left: 18px;
}
.price-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: -3px;
  font-weight: 700;
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Long-form prose pages (privacy, terms)
   Same monochrome restraint. Generous whitespace. No decoration.
   -------------------------------------------------------------------------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--pad-x) clamp(80px, 12vh, 140px);
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-small);
  color: var(--text-mid);
  margin-bottom: 56px;
}
.doc-back:hover { opacity: 0.6; }

.doc h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.doc-meta {
  font-size: var(--t-small);
  color: var(--text-dim);
  margin-bottom: 56px;
}

.doc h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
}

.doc p,
.doc li {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.doc p { margin: 0 0 16px; }

.doc strong { color: var(--text); font-weight: 600; }

.doc em { font-style: italic; }

.doc code {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text);
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.doc li { margin-bottom: 6px; }

.doc ol li::marker {
  color: var(--text-dim);
  font-weight: 600;
}

.doc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}
.doc a:hover {
  text-decoration-color: var(--text);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad-x) 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: var(--t-small);
  color: var(--text-mid);
}

.footer-copy {
  font-size: var(--t-small);
  color: var(--text-dim);
  margin-top: 12px;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  .footer-copy { margin-top: 0; }
}
