:root {
  --bg: #f7f5f0; --text: #1f2a24; --muted: #5d6a62; --accent: #3f6b54; --accent-soft: #e4ece6;
  --rule: #dcd8ce; --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141a17; --text: #e9ece8; --muted: #a3ada6; --accent: #8fbfa3; --accent-soft: #1f2a24; --rule: #2a332e; --card: #1b221e; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 650; text-decoration: none; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }

.eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
h1 { font-size: 44px; line-height: 1.12; margin: 0 0 18px; font-weight: 650; letter-spacing: -0.015em; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.status { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; margin: 8px 0 0; }
.button { display: inline-block; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: 999px; padding: 11px 20px; font-size: 16px; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

/* Product feature on home */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots img { border-radius: 14px; border: 1px solid var(--rule); }

/* Gallery on Motira page: horizontal scroller inside the page, never the page itself */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.gallery img { border-radius: 16px; border: 1px solid var(--rule); }

/* Split rows on Motira page */
.row { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.row.flip { grid-template-columns: 260px 1fr; }
.row.flip .row-img { order: -1; }
.row-img img { border-radius: 18px; border: 1px solid var(--rule); }
.row + .row { margin-top: 56px; }

ul.plain { list-style: none; padding: 0; margin: 0 0 14px; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
ul.plain li:last-child { border-bottom: 0; }
ul.plain strong { color: var(--text); font-weight: 600; }
ul.dots { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }

dl.facts { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.notice { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 24px; }
.notice p { color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }

/* Footer */
footer.site-footer { border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
footer.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; }
footer.site-footer a { color: var(--muted); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
footer p { margin: 0; }

@media (max-width: 760px) {
  section { padding: 44px 0; }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  .lede { font-size: 18px; }
  .feature, .row, .row.flip { grid-template-columns: 1fr; gap: 24px; }
  .row.flip .row-img { order: 0; }
  .row-img { max-width: 240px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
  footer .links { justify-content: flex-start; }
}
