/* Lemon website. Palette and fonts follow the app's redesign (LemonTheme.kt). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage_grotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm_sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --bg: #0f0e0c;
  --surface: #1f1d1a;
  --surface-raised: #2a2723;
  --outline: #3a3631;
  --text: #f5f0e6;
  --text-muted: #bdb5a8;
  --lemon: #ffd43b;
  --on-lemon: #1a1814;
  --red: #f0432e;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 212, 59, 0.16), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--lemon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.muted { color: var(--text-muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(15, 14, 12, 0.82); border-bottom: 1px solid var(--outline); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text-muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav .lang { border: 1px solid var(--outline); color: var(--text); }
.nav .cta { background: var(--lemon); color: var(--on-lemon); font-weight: 700; }
.nav .cta:hover { background: #ffe066; color: var(--on-lemon); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--lemon); color: var(--on-lemon); }
.btn-primary:hover { background: #ffe066; }
.btn-ghost { border-color: var(--outline); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-raised); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 56px; }
.hero img.logo { width: min(210px, 52vw); height: auto; filter: drop-shadow(0 18px 40px rgba(255, 212, 59, 0.25)); }
.hero h1 { margin-top: 22px; }
.hero h1 span { color: var(--lemon); }
.hero .lead { max-width: 640px; margin: 0 auto 28px; font-size: 1.22rem; color: var(--text-muted); }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 18px; font-size: 0.93rem; color: var(--text-muted); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head p { color: var(--text-muted); }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--lemon); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.card .tag { display: inline-block; margin-bottom: 12px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(255, 212, 59, 0.14); color: var(--lemon); }

.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fixes li { background: var(--surface); border: 1px solid var(--outline); border-left: 4px solid var(--lemon); border-radius: 12px; padding: 16px 20px; }
.fixes strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.fixes span { color: var(--text-muted); font-size: 0.96rem; }

.callout { background: linear-gradient(135deg, rgba(255, 212, 59, 0.12), rgba(240, 67, 46, 0.1)); border: 1px solid var(--outline); border-radius: var(--radius); padding: 30px; text-align: center; }
.callout h2 { margin-bottom: 10px; }

/* ---------- faq ---------- */
.page { padding: 56px 0 24px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
details { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
details[open] { background: var(--surface-raised); }
summary { cursor: pointer; padding: 16px 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lemon); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 0 18px; color: var(--text-muted); }
details .answer p:last-child { margin-bottom: 0; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--bg); border: 1px solid var(--outline); border-radius: 6px; padding: 1px 7px; color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--outline); margin-top: 40px; padding: 40px 0 56px; color: var(--text-muted); font-size: 0.93rem; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer h4 { margin: 0 0 10px; color: var(--text); font-family: "Bricolage Grotesque", sans-serif; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--outline); font-size: 0.86rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.cta):not(.lang) { display: none; }
  .hero { padding-top: 44px; }
}

/* ---------- guide / faq extras ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.toc a { background: var(--surface); border: 1px solid var(--outline); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; color: var(--text-muted); }
.toc a:hover { color: var(--text); text-decoration: none; background: var(--surface-raised); }
h2.sec, .guide-sec h2 { margin-top: 44px; scroll-margin-top: 90px; }
.guide-sec { scroll-margin-top: 90px; }
.sec-intro { max-width: 720px; margin-bottom: 18px; }
h3.sub { margin: 30px 0 12px; font-size: 1.05rem; color: var(--lemon); letter-spacing: 0.04em; text-transform: uppercase; }
.callout.how { text-align: left; margin-bottom: 26px; padding: 22px 26px; }
.callout.how h2 { font-size: 1.25rem; margin: 0 0 10px; }
.callout.how ul { margin: 0; padding-left: 1.2em; color: var(--text-muted); }
.callout.how li { margin-bottom: 6px; }
.answer.setting p { margin: 0 0 10px; }
.answer .lbl { display: inline-block; margin-right: 6px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; color: var(--text); }
.answer .tip { color: var(--lemon); }
.answer .tip .lbl { color: var(--lemon); }
.answer ul, .answer ol { margin: 0 0 1em; padding-left: 1.3em; }
.answer li { margin-bottom: 4px; }

/* ---------- community and support buttons ---------- */
.btn .ico { flex: none; }
.hero .actions.social { margin-top: 14px; }
.btn-social { padding: 10px 20px; font-size: 0.98rem; background: transparent; border-color: var(--outline); color: var(--text); }
.btn-social:hover { background: var(--surface); border-color: var(--lemon); }
.callout.community .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .btn-social, .callout.community .btn { width: 100%; justify-content: center; } }

#community, #features, #fixes { scroll-margin-top: 90px; }
