/* Maintory — landing page. Calm, dark, premium. Monochrome by design. */

:root {
  --bg: #000000;
  --surface: #0c0c0e;
  --surface-2: #141417;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.4);
  --radius: 18px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.header-cta {
  font-size: 14px;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.header-cta:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

/* ---- Sections ---- */
section { padding: 100px 0; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p.lead { color: var(--text-2); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* ---- Hero ---- */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  max-width: 16ch;
  margin: 0 auto 22px;
}
.hero p.lead { max-width: 40ch; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #000;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.2s;
}
.appstore-btn:hover { transform: translateY(-2px); }
.appstore-btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.6; }
.appstore-btn strong { font-size: 17px; font-weight: 600; }
.appstore-btn svg { width: 26px; height: 26px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

.hero-shot {
  margin: 70px auto 0;
  max-width: 300px;
}
.phone {
  border-radius: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 40px 120px -30px rgba(255, 255, 255, 0.12);
}
.phone img { border-radius: 32px; width: 100%; }

/* ---- Feature rows ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature.reverse .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 18px; }
.feature .phone { max-width: 280px; margin: 0 auto; }
.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.feature-list li {
  color: var(--text-2);
  padding-left: 26px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.5;
}

/* ---- Problem / quote band ---- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { max-width: 22ch; }
.band .lead { max-width: 50ch; margin-top: 18px; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.97rem; }

/* ---- Final CTA ---- */
.final { text-align: center; }
.final h2 { max-width: 18ch; margin: 0 auto 30px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0;
  color: var(--text-3);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ---- Legal pages ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--text); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  section { padding: 70px 0; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-text { order: 0; }
  .feature-text { text-align: center; }
  .feature-list { text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
