/* Sonus Ligni — marketing site. System fonts only: no external requests, instant rendering. */
:root {
  --ink: #1d1814;
  --ink-soft: #5d544c;
  --ink-faint: #8c837a;
  --paper: #f7f3ee;
  --paper-2: #efe8df;
  --card: #ffffff;
  --line: #e4dcd2;
  --night: #17120f;
  --night-2: #241c17;
  --night-ink: #f1e9df;
  --night-soft: #b9ab9b;
  --wood: #d4a373;
  --sage: #7fb8a4;
  --green: #2f5d50;
  --green-soft: #e3ece8;
  --radius: 22px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); font-weight: 600; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--night-soft); font-size: 15px; }
.nav a:hover { color: var(--night-ink); text-decoration: none; }
.nav .pill { color: var(--night); background: var(--wood); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.nav .pill:hover { color: var(--night); background: #e0b386; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(127,184,164,.16), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(212,163,115,.12), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-ink);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 96px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(44px, 6.4vw, 80px); margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--wood); }
.hero p.lead { font-size: 20px; color: var(--night-soft); max-width: 34ch; margin: 0 0 32px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18); color: var(--night-ink); font-size: 15px; line-height: 1.15;
}
.store small { display: block; font-size: 11px; color: var(--night-soft); letter-spacing: .04em; text-transform: uppercase; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--night-soft); }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; width: 290px; }
.hero-phones .phone:nth-child(1) { left: 4%; top: 70px; transform: rotate(-6deg); }
.hero-phones .phone:nth-child(2) { right: 4%; top: 10px; transform: rotate(4deg); z-index: 2; }

/* ---------- Phone frame ---------- */
.phone {
  border-radius: 46px; padding: 9px; background: #0c0a09;
  box-shadow: 0 0 0 1.5px #3a332d inset, 0 40px 80px -20px rgba(0,0,0,.55), 0 18px 36px -18px rgba(0,0,0,.4);
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }
.phone.cropped img { aspect-ratio: 1206 / 2000; }

/* ---------- Sections ---------- */
section { padding: 112px 0; overflow-x: clip; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2, .split h2 {
  font-family: var(--display); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.03em; margin: 14px 0 16px;
}
.section-head p, .split p { color: var(--ink-soft); font-size: 19px; margin: 0; }
.eyebrow.dark { color: var(--green); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.feature .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.feature .tag { align-self: flex-start; margin-top: auto; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 999px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .media { order: -1; }
.split ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.split li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-soft); }
.split li::before { content: ''; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--sage); justify-self: center; }
.split li strong { color: var(--ink); font-weight: 600; }
.media-phones { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.media-phones .phone { width: 270px; }
.media-phones .phone:nth-child(2) { margin-top: 64px; }

.band { background: var(--paper-2); }
.dark-band { background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--night-ink); }
.dark-band .split p, .dark-band .split li { color: var(--night-soft); }
.dark-band .split li strong { color: var(--night-ink); }
.dark-band .eyebrow { color: var(--sage); }

.paper-sheet {
  background: #fff; border-radius: 6px; padding: 0; transform: rotate(-2.2deg);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.6), 0 10px 25px -10px rgba(0,0,0,.35);
}
.paper-stack { position: relative; max-width: 470px; margin-inline: auto; }
.paper-stack .back { position: absolute; inset: 0; transform: rotate(4deg) translate(30px, 16px); opacity: .9; }

/* Workshop photos (to be replaced with real ones) */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:nth-child(3) img { filter: grayscale(1) contrast(1.05); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.38); padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ph {
  width: 100%; height: 100%; display: grid; place-items: end start; padding: 18px;
  color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, var(--g1), var(--g2));
}
.ph span { background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust div { padding: 24px 0; border-top: 1px solid var(--line); }
.trust strong { display: block; font-size: 18px; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.cta { text-align: center; }
.cta h2 { font-family: var(--display); font-size: clamp(32px, 4.5vw, 54px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; }
.cta p { color: var(--night-soft); font-size: 19px; margin: 0 auto 32px; max-width: 46ch; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-soft); font-size: 14px; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--night-soft); }
.site-footer nav { display: flex; gap: 22px; }

/* ---------- Text pages (privacy, support) ---------- */
.page-hero { background: linear-gradient(180deg, var(--night), var(--night-2)); color: var(--night-ink); padding: 72px 0 56px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; margin: 12px 0 8px; line-height: 1.05; }
.page-hero p { color: var(--night-soft); margin: 0; }
.page-hero .wrap { max-width: 720px; }
.prose { max-width: 720px; padding: 64px 0 96px; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 44px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose .note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 12px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 64px; }
  .hero-phones { height: 520px; }
  .hero-phones .phone { width: 230px; }
  .features { grid-template-columns: 1fr 1fr; }
  .split { gap: 48px; }
  .split.reverse .media { order: 0; }
  .trust { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 180px 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .nav a:not(.pill) { display: none; }
}
@media (max-width: 600px) {
  section { padding: 80px 0; }
  .features, .trust { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 196px; }
  .media-phones .phone { width: 46%; }
  .media-phones .phone:nth-child(2) { margin-top: 40px; }
}
