:root {
  --walnut: #3d2e24;
  --walnut-soft: #5c4a3a;
  --cream: #f7f3ed;
  --amber: #c4923a;
  --amber-light: #e8b86a;
  --text: #2a221c;
  --muted: #6b5f54;
  --card: #ffffff;
  --border: #ddd5c8;
  --shadow: 0 8px 28px rgba(61, 46, 36, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--walnut-soft); }
a:hover { color: var(--amber); }

.site-header {
  background: #000;
  color: #fff;
  padding: 14px 20px;
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.brand-wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #fff;
}

.brand-wordmark span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover { color: var(--amber-light); }
nav a[aria-current="page"] { color: var(--amber-light); }

.nav-group { position: relative; }

.nav-group > a::after {
  content: " ▾";
  font-size: 0.72em;
  opacity: 0.65;
}

.nav-group:has(.nav-submenu a[aria-current="page"]) > a {
  color: var(--amber-light);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 148px;
  padding-top: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 20;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu { display: block; }

.nav-submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.92rem;
  white-space: nowrap;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.nav-submenu a::after { content: none; }

@media (max-width: 820px) {
  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .nav-group > a::after { content: none; }

  .nav-submenu {
    display: block;
    position: static;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--amber);
  }

  .nav-submenu a {
    padding: 4px 0 4px 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0.88;
  }
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40em;
}

.product-intro {
  margin-bottom: 8px;
}

.product-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 0 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.product-version {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin: 0 0 8px;
}

.product-tagline {
  display: block;
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--walnut);
}

.section { margin-bottom: 44px; }

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--walnut);
}

.section-head p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 42em;
}

.status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.status-live { background: #e8f5e9; color: #2e7d32; }
.status-soon { background: #ebe4d8; color: var(--muted); }
.status-release-soon {
  background: rgba(196, 146, 58, 0.22);
  color: #7a5210;
}

.release-notice {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(196, 146, 58, 0.45);
  background: rgba(196, 146, 58, 0.1);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.release-notice strong {
  color: var(--walnut);
}

.release-notice a {
  font-weight: 650;
}
.status-free { background: #e3f2fd; color: #1565c0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.product-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow);
  color: inherit;
}

.product-card h2,
.product-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--walnut);
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.product-card .arrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber);
}

.sys-req {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.sys-req strong {
  color: var(--text);
  font-weight: 650;
}

.product-card .sys-req {
  margin-top: 8px;
  font-size: 0.82rem;
}

.product-card .sys-req strong {
  color: var(--walnut);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.project-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow);
  color: inherit;
}

.project-card h2,
.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--walnut);
}

.project-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.project-card .arrow {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber);
}

.project-card-thumb {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: block;
}

.project-article-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42em;
  margin: 0 0 24px;
}

.project-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

/* Top-of-page hero — keep at native size so small photos stay sharp */
.project-hero {
  max-width: 260px;
  margin: 0 0 24px;
}

.project-hero-wide {
  max-width: 380px;
}

.project-hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.project-hero .project-shot-caption {
  text-align: left;
}

.project-figure-grid img,
.project-shot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.project-figure-grid figcaption,
.project-shot-caption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.project-article h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  color: var(--walnut);
}

.project-article p {
  margin: 0 0 14px;
  color: var(--text);
  max-width: 42em;
}

.project-back {
  margin: 0 0 20px;
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-grid-duo {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 960px;
}

.info-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.info-panel h2 { margin-top: 0; color: var(--walnut); }
.info-panel p { margin: 0 0 14px; color: var(--muted); }
.info-panel p:last-child { margin-bottom: 0; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--amber);
  color: var(--walnut);
}

.btn-secondary {
  background: var(--card);
  color: var(--walnut);
  border: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-strip {
  background: var(--walnut);
  color: #fff;
  border-radius: 12px;
  padding: 32px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-strip h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #fff;
}

.contact-strip p { margin: 0; opacity: 0.88; max-width: 28em; }
.contact-strip a { color: var(--amber-light); font-weight: 600; text-decoration: none; }

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer p { margin: 6px 0; }

.site-footer .footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer .footer-email a {
  font-weight: 650;
  text-decoration: none;
}

.site-footer .footer-mor {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.site-footer .footer-mor a {
  text-decoration: none;
  font-weight: 600;
}

.support-banner {
  background: var(--walnut);
  color: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.support-banner h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--amber-light);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.support-banner .support-email {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 700;
}

.support-banner .support-email a {
  color: #fff;
  text-decoration: none;
}

.support-banner .support-email a:hover {
  color: var(--amber-light);
}

.support-banner .support-note {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.legacy-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 20px;
}

.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 820px) {
  .extras-grid { grid-template-columns: 1fr; }
}

.extras-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.extras-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--walnut);
}

.extras-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.extras-card .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--walnut);
}

.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.legal-doc .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.product-expand {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-expand summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}

.product-expand summary::-webkit-details-marker { display: none; }

.product-expand[open] summary {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf8 0%, var(--card) 100%);
}

.summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--walnut);
}

.summary-main strong { font-size: 1.1rem; }

.expand-hint {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.expand-hint::after { content: " ▾"; color: var(--amber); }

.product-expand[open] .expand-hint::after { content: " ▴"; }

.product-expand-thumb {
  display: block;
  width: 112px;
  height: auto;
  max-height: 56px;
  object-fit: cover;
  object-position: left top;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-expand[open] .product-expand-thumb { display: none; }

.product-expand-body {
  padding: 20px 22px 24px;
}

.product-expand-body--center {
  text-align: center;
}

.product-shot {
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.shot-caption {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}
