/* MonkSocial website. Same palette as the app (Shared/Palette.swift) and the store art. */
:root {
  --bg: #F4F6F1;
  --bg-soft: #E9EEE6;
  --surface: #FFFFFF;
  --text: #17201B;
  --muted: #5B6A61;
  --line: #D9E1D6;
  --forest: #2F5D46;
  --forest-strong: #24503A;
  --moss: #3E7B5A;
  --accent-soft: #DCE9DF;
  --clay: #B8673F;
  --cream: #ECE7DA;
  --sage: #9CC2A6;
  --hero-from: #E3EEE5;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1411;
    --bg-soft: #141B17;
    --surface: #1A221D;
    --text: #EEF2EE;
    --muted: #A3B1A8;
    --line: #26302A;
    --forest: #8DB89A;
    --forest-strong: #3E7B5A;
    --moss: #8DB89A;
    --accent-soft: #1E2C24;
    --clay: #E09A73;
    --hero-from: #1B3327;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1411; --bg-soft: #141B17; --surface: #1A221D; --text: #EEF2EE; --muted: #A3B1A8; --line: #26302A;
  --forest: #8DB89A; --forest-strong: #3E7B5A; --moss: #8DB89A; --accent-soft: #1E2C24; --clay: #E09A73; --hero-from: #1B3327;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; 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: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { height: 28px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--forest-strong); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { background: radial-gradient(90% 70% at 70% 0%, var(--hero-from), transparent 70%); padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--forest); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--moss); }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 20px 0 28px; max-width: 520px; }
.hero .note { margin-top: 14px; }
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 230px; border-radius: 38px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(15, 30, 22, 0.45); background: #111; }
.phone.a { left: 4%; top: 70px; transform: rotate(-5deg); }
.phone.b { right: 4%; top: 20px; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 380px; max-width: 340px; margin: 0 auto; width: 100%; }
  .phone { width: 44%; }
  .phone.a { top: 40px; }
  .phone.b { top: 0; }
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.soft { background: var(--bg-soft); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--forest); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .shot { order: 2; }
.feature .shot { justify-self: center; width: 240px; border-radius: 40px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(15, 30, 22, 0.45); background: #111; }
.feature h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 18px; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feature li { padding-left: 28px; position: relative; margin: 8px 0; }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2.5px solid var(--moss); border-bottom: 2.5px solid var(--moss); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .shot { order: 0; }
  .feature .shot { width: 230px; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

.cta { text-align: center; }
.cta .box { background: var(--forest-strong); color: #fff; border-radius: 32px; padding: 56px 24px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.cta p { opacity: 0.85; margin: 12px auto 26px; max-width: 520px; }
.cta .btn-row { justify-content: center; }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.25); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Text pages (privacy, terms, support) */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.page .updated { color: var(--muted); margin: 10px 0 32px; font-size: 15px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page li { color: var(--text); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page .callout { background: var(--accent-soft); border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--muted); font-weight: 600; }

/* Support form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; border-color: transparent; }
.form .btn-row { margin-top: 18px; }
.form .btn { flex: 1 1 200px; }
.direct { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.direct a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.direct a span { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .direct { grid-template-columns: 1fr; } }
