/* Mindym public website. Same palette and type as the app (src/theme/tokens.ts). */

@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-alt: #efece6;
  --line: #e6e2da;
  --ink: #16161a;
  --ink-2: #55545c;
  --ink-3: #8b8a93;
  --accent: #6d5bd0;
  --accent-soft: #ece9fb;
  --success: #17864c;
  --success-soft: #e3f4ea;
  --flame: #f26a1b;
  --flame-soft: #fdebdd;
  --radius: 20px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #1a1a1f;
    --surface-alt: #232329;
    --line: #2c2c33;
    --ink: #f3f2ef;
    --ink-2: #b6b5bd;
    --ink-3: #85848d;
    --accent: #9085e9;
    --accent-soft: #26233f;
    --success: #3dbe78;
    --success-soft: #16291e;
    --flame: #ff8a45;
    --flame-soft: #2e1d12;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Bricolage', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 13px/1.2 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 'Bricolage', sans-serif; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--bg); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 'Inter', sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 72px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.hero-note span::before { content: '✓ '; color: var(--success); font-weight: 700; }
.phones { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone { width: 260px; border-radius: 40px; padding: 9px; background: #16161a; box-shadow: 0 30px 60px -20px rgba(22, 22, 26, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone img { border-radius: 32px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; height: auto; }
.phones .phone:nth-child(2) { position: absolute; width: 220px; right: 2%; bottom: -10px; transform: rotate(5deg); }
.phones .phone:nth-child(1) { transform: rotate(-3deg) translateX(-34px); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { min-height: 440px; }
  .phone { width: 220px; }
  .phones .phone:nth-child(2) { width: 180px; right: 6%; }
}

/* Steps */
.step { display: grid; gap: 12px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 18px/1 'Bricolage', sans-serif; background: var(--accent-soft); color: var(--accent); }

/* Puzzles strip */
.puzzles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.puzzle { display: grid; gap: 10px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform 0.15s ease, border-color 0.15s ease; }
.puzzle:hover { transform: translateY(-2px); border-color: var(--accent); }
.puzzle img { width: 48px; height: 48px; border-radius: 13px; }
.puzzle strong { font-weight: 600; }
.puzzle span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* Areas */
.areas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.area { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.area .dot { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 15px/1 'Inter', sans-serif; }
.area p { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* Feature rows with a screenshot */
.feature { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; }
.feature .phone { margin: 0 auto; width: 270px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-copy { order: 0; } }

/* Principles */
.principle h3 { margin: 10px 0 8px; }
.principle p { color: var(--ink-2); font-size: 16px; }
.badge { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; font-size: 22px; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan { display: grid; gap: 16px; align-content: start; }
.plan.featured { border: 2px solid var(--accent); }
.price { font: 800 40px/1 'Bricolage', sans-serif; }
.price small { font: 400 16px/1 'Inter', sans-serif; color: var(--ink-3); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Final call to action */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 56px 32px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 34em; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); }

/* Long-form pages (about, privacy, terms, support) */
.doc { max-width: 760px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 12px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc h3 { margin: 28px 0 8px; font-size: 19px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-2); }
.doc .updated { color: var(--ink-3); font-size: 15px; }
.doc .note { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 22px 0; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 40px; }
footer .wrap { display: grid; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { font-size: 14px; color: var(--ink-3); max-width: 60em; }
