/* Ocroon website — palette mirrors the app theme (Theme.kt) */
:root {
  --night: #0F0C0E;
  --night1: #1A1518;
  --night2: #241D21;
  --outline: #3D3338;
  --linen: #F6EDE8;
  --muted: #B3A6A0;
  --faint: #7E736E;
  --ember: #FF7A59;
  --rose: #FF5C7A;
  --candle: #FFC9A3;
  --meadow: #86CBA5;
  --grad: linear-gradient(135deg, #FF8A5C, #FF5C7A);
  --radius: 16px;
  --max: 1080px;
  --max-prose: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--night);
  color: var(--linen);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

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

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 12, 14, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61, 51, 56, 0.5);
}
header.site .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--linen);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--muted); font-size: 0.95rem; }
nav.main a:hover { color: var(--linen); text-decoration: none; }
nav.main a.active { color: var(--linen); }

.btn {
  display: inline-block;
  background: var(--grad);
  color: #2B0F08;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.small { padding: 8px 18px; font-size: 0.9rem; }
.btn.ghost {
  background: none;
  border: 1px solid var(--outline);
  color: var(--linen);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  background: radial-gradient(ellipse 900px 600px at 70% -10%, rgba(255, 122, 89, 0.13), transparent 65%);
}
.hero .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 440px; }
.hero-shot { flex: 0 1 300px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .cta-note { color: var(--faint); font-size: 0.88rem; margin-top: 12px; }

.phone {
  border: 1px solid var(--outline);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(255, 92, 122, 0.12), 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--night1); }
h2.section {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
p.section-sub { color: var(--muted); max-width: 44em; margin-bottom: 36px; font-size: 1.05rem; }

/* Step / feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--night2);
  border: 1px solid rgba(61, 51, 56, 0.6);
  border-radius: var(--radius);
  padding: 24px;
}
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #2B0F08; font-weight: 800;
  margin-bottom: 14px; font-size: 0.95rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .emoji { font-size: 1.6rem; margin-bottom: 12px; display: block; }

/* Screenshot strip */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 220px; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--outline); }
.shots figcaption { color: var(--faint); font-size: 0.85rem; text-align: center; margin-top: 10px; }

/* FAQ */
details.faq {
  border-bottom: 1px solid rgba(61, 51, 56, 0.6);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ember); font-size: 1.3rem; flex-shrink: 0; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .a { color: var(--muted); padding: 0 0 18px; max-width: 60em; }

/* Prose pages (blog, legal-ish, content) */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.page-head p.sub { color: var(--muted); font-size: 1.1rem; }
article.content { padding: 24px 0 64px; }
article.content h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
article.content h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
article.content p { margin: 0 0 1.1em; color: #DDD3CC; }
article.content ul, article.content ol { margin: 0 0 1.1em 1.4em; color: #DDD3CC; }
article.content li { margin-bottom: 0.45em; }
article.content strong { color: var(--linen); }
article.content .meta { color: var(--faint); font-size: 0.9rem; margin-bottom: 2em; }
article.content blockquote {
  border-left: 3px solid var(--ember);
  padding-left: 18px; margin: 1.4em 0; color: var(--muted);
}

/* Blog index */
.post-list { display: grid; gap: 18px; padding-bottom: 24px; }
.post-card {
  display: block;
  background: var(--night2);
  border: 1px solid rgba(61, 51, 56, 0.6);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--linen);
}
.post-card:hover { text-decoration: none; border-color: var(--ember); }
.post-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 0.97rem; }
.post-card .date { color: var(--faint); font-size: 0.85rem; margin-top: 10px; display: block; }

/* CTA band */
.cta-band { text-align: center; padding: 72px 20px; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 12px; letter-spacing: -0.01em; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* Footer */
footer.site {
  border-top: 1px solid rgba(61, 51, 56, 0.5);
  padding: 44px 0 56px;
  color: var(--faint);
  font-size: 0.92rem;
}
footer.site .cols { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 28px; }
footer.site h4 { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--faint); }
footer.site a:hover { color: var(--linen); text-decoration: none; }
footer.site .legal-line { border-top: 1px solid rgba(61, 51, 56, 0.4); padding-top: 22px; }

@media (max-width: 640px) {
  nav.main { display: none; }
  header.site .cta-header { margin-left: auto; }
  .hero { padding-top: 44px; }
  section { padding: 48px 0; }
}
