/* Dami website. Colors and type from DESIGN.md. */
:root {
  --bg: #FFFFFF; --soft: #F7F9FB; --muted-bg: #F5F6F8; --text: #1F2933; --strong-muted: #36404A;
  --muted: #5B6470; --faint: #8B939C; --accent: #3B6E8F; --accent-text: #2A526B; --tint: #EEF3F7;
  --border: #ECEEF1; --border-strong: #DDE1E6; --on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1318; --soft: #161B21; --muted-bg: #1C2229; --text: #E6E9ED; --strong-muted: #C3CAD2;
    --muted: #97A1AD; --faint: #76818D; --accent: #4A82A8; --accent-text: #A9CBE3; --tint: #1B2A37;
    --border: #262D35; --border-strong: #2F3740;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Lexend, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 26px; font: inherit; font-weight: 500; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.secondary { border: 1px solid var(--border-strong); color: var(--text); }
.btn:hover { opacity: 0.88; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.phone { border-radius: 36px; border: 1px solid var(--border); overflow: hidden; background: var(--bg); aspect-ratio: 780 / 1500; max-width: 340px; margin: 0 auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Sections */
section { padding: 56px 0; }
section.soft { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: 32px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 34em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.dot { width: 36px; height: 36px; border-radius: 18px; background: var(--tint); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 64px; }
.split h2 { font-size: 28px; }
.split ul { padding: 0; margin: 16px 0 0; list-style: none; }
.split li { padding: 8px 0 8px 28px; position: relative; color: var(--strong-muted); }
.split li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }

.cta { text-align: center; }
.cta .sub { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* Text pages */
.page { max-width: 700px; margin: 0 auto; padding: 48px 16px 80px; }
.page h1 { font-size: 36px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; }
.page h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: 0; }
.page li { margin: 6px 0; }
.muted { color: var(--muted); }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 500; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { gap: 18px; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; text-align: left; }
  .hero h1 { font-size: 38px; }
  .grid { grid-template-columns: 1fr; }
  .split .phone { order: 2; }
  nav.top a:not(.keep) { display: none; }
  h2 { font-size: 26px; }
}
