/* DartSonic website – no external fonts, no trackers. */
:root {
  --green-900: #0d3311;
  --green-800: #14471a;
  --green-700: #1b5e20;
  --green-300: #81c784;
  --amber: #ffb300;
  --amber-soft: #ffd54f;
  --bg: #0a1f0d;
  --bg-card: #11301a;
  --bg-card-2: #163c20;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef5ee;
  --muted: #b4c8b6;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--amber-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; color: var(--amber); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem;
}
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 31, 13, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
nav.main { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
nav.main a.cta { background: var(--amber); color: #1a1200; }
nav.main a.cta:hover { background: var(--amber-soft); color: #1a1200; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer;
}
.btn-primary { background: var(--amber); color: #1a1200; }
.btn-primary:hover { background: var(--amber-soft); color: #1a1200; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--green-300); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* hero */
.hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(255, 179, 0, .13), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(129, 199, 132, .14), transparent 60%);
}
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-art { justify-self: center; width: min(100%, 380px); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--muted); }

/* sections */
section { padding: clamp(44px, 7vw, 84px) 0; }
section.alt { background: var(--green-900); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 44px; height: 44px; color: var(--amber); margin-bottom: 14px; }
.card.hl { background: linear-gradient(160deg, var(--green-700), var(--bg-card)); border-color: rgba(255, 213, 79, .35); }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 18px; left: 24px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber); color: #1a1200; font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}

.tone-table { width: 100%; border-collapse: collapse; }
.tone-table th, .tone-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tone-table th { color: var(--amber); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green-300); font-weight: 800; }

.notice {
  border: 1px solid rgba(255, 213, 79, .35); background: rgba(255, 179, 0, .08);
  border-radius: 14px; padding: 14px 18px; font-size: .95rem; color: var(--text);
}

details { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { color: var(--amber-soft); }
details p { color: var(--muted); }

/* shop */
.product {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.product .ico { width: 56px; height: 56px; color: var(--amber); margin-bottom: 12px; }
.product .shot { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.product .tag { font-size: .78rem; color: var(--green-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product p { color: var(--muted); font-size: .96rem; }
.product .btn { margin-top: auto; justify-content: center; }
.product ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 0; }
.cat-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--muted); font-size: .92rem; }
.cat-nav a:hover { color: #fff; border-color: var(--green-300); }
.shop-cat { scroll-margin-top: 84px; margin-bottom: 3rem; }

/* legal pages */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.todo { background: rgba(255, 179, 0, .22); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* footer */
footer.site { border-top: 1px solid var(--line); background: var(--green-900); padding: 40px 0 28px; font-size: .94rem; }
footer.site .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site h4 { margin: 0 0 .6em; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(70%, 260px); justify-self: start; }
  header.site .wrap { flex-wrap: wrap; padding-block: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wave path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.4s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* screenshots */
.phone {
  margin: 0; border-radius: 30px; padding: 6px; background: #05100a;
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.phone img { border-radius: 24px; width: 100%; height: auto; }
.hero-art.shot { width: min(100%, 290px); transform: rotate(2.5deg); }
.shots { display: grid; gap: 36px 24px; grid-template-columns: repeat(4, 1fr); align-items: start; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; font-size: .94rem; color: var(--muted); }
.shots figcaption strong { display: block; color: var(--text); margin-bottom: 2px; }
.shots .phone { max-width: 260px; margin-inline: auto; }
.wide-shot { display: grid; gap: 32px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.wide-shot figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.wide-shot img { width: 100%; height: auto; }
@media (max-width: 960px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .wide-shot { grid-template-columns: 1fr; }
  .hero-art.shot { width: min(60%, 220px); transform: none; }
}
