:root {
  --bg: #fffaf7;
  --surface: #ffffff;
  --text: #2a2230;
  --muted: #6f6475;
  --line: #efe4e6;
  --accent: #e8577e;
  --accent-2: #f59f6c;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(42, 34, 48, .06), 0 8px 28px rgba(42, 34, 48, .08);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131b;
    --surface: #211b26;
    --text: #f3ecf4;
    --muted: #b3a6b8;
    --line: #342b3a;
    --accent: #ff7096;
    --accent-2: #ffb07f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; font-size: 18px; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.025em; margin: 0 0 18px; }
h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; gap: 10px; }
.mosaic .ph { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.mosaic .ph svg { width: 100%; height: 100%; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
.badge-sync { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.88); color: #2a2230; padding: 4px 9px; border-radius: 999px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }

.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .uses { grid-template-columns: 1fr; } }
.use { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.use .art { height: 150px; }
.use .art svg { width: 100%; height: 100%; }
.use .txt { padding: 18px 20px 22px; }
.use h3 { margin: 0 0 6px; font-size: 17px; }
.use p { margin: 0; color: var(--muted); font-size: 15px; }
.quote { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 44px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.band { text-align: center; }
.band .cta { justify-content: center; }

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

/* modal */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(23, 19, 27, .55); backdrop-filter: blur(3px); }
.modal { padding: 28px; }
.modal h3 { margin: 0 0 6px; font-size: 21px; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: inherit; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.field input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-color: transparent; }
.msg { min-height: 22px; font-size: 14px; margin: 0 0 12px; }
.msg.err { color: #d23a5b; }
.row { display: flex; gap: 10px; justify-content: flex-end; }

/* simple pages */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(30px, 4vw, 40px); }
.page h2 { font-size: 20px; margin-top: 32px; }
.page p, .page li { color: var(--muted); }
.center { text-align: center; }
.panel { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }

/* carousel */
.carousel { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #222; aspect-ratio: 4 / 3; }
.carousel .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel figcaption { position: absolute; left: 14px; right: 14px; bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.carousel .album { color: #fff; font-weight: 700; font-size: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.carousel .badge-sync { position: static; }
.carousel .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.82); color: #2a2230; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.carousel:hover .nav-btn, .carousel .nav-btn:focus-visible { opacity: 1; }
.carousel .prev { left: 12px; } .carousel .next { right: 12px; }
@media (hover: none) { .carousel .nav-btn { display: none; } }
.carousel .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.carousel .dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .25s, background .25s; }
.carousel .dots button[aria-selected="true"] { width: 22px; background: #fff; }
.use .art img { width: 100%; height: 100%; object-fit: cover; }
footer a[href*="unsplash"] { text-decoration: underline; }
