/* HexaCraft: carbon + titanium. See BRAND.md in the pet-health-log repo (art/hexacraft). */
:root {
  --carbon: #16181B;
  --graphite: #24272B;
  --titanium: #E6E7E8;
  --titanium-light: #F2F3F4;
  --gunmetal: #2B2F33;
  --steel: #6B7178;
  --alloy: #C9CCCF;
  --platinum: #D9DCDF;
  --orange: #FF5A1F;
  --sage: #2B6A58;
  --max: 1100px;
  --radius: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--carbon); }
body { margin: 0; overflow-x: hidden; background: var(--titanium); color: var(--gunmetal); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--carbon); line-height: 1.15; letter-spacing: -0.5px; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--orange); color: var(--carbon); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { background: var(--carbon); border-bottom: 1px solid var(--graphite); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--titanium-light); font-size: 1.2rem; letter-spacing: -0.5px; }
.brand b { font-weight: 800; }
.brand .word span { font-weight: 500; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--platinum); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--steel); padding-bottom: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.98rem; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--carbon); }
.btn-primary:hover { background: #ff7040; }
.btn-ghost { color: var(--platinum); border: 1px solid #3a3f45; }
.btn-ghost:hover { border-color: var(--steel); color: #fff; }
.nav .btn { padding: 8px 16px; color: var(--platinum); }
.brand .word { display: inline; }
.link { font-weight: 600; text-decoration: none; color: var(--carbon); border-bottom: 1px solid var(--alloy); }
.link:hover { border-color: var(--carbon); }
.link::after { content: " \2192"; }

/* Sections */
.hero { background: var(--carbon); color: var(--platinum); padding: 104px 0 112px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v17M28 64L0 80v17' fill='none' stroke='%23ffffff' stroke-opacity='.035'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--titanium-light); max-width: 14ch; }
.hero .lede { font-size: 1.2rem; max-width: 46ch; margin-top: 20px; color: var(--platinum); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero.compact { padding: 72px 0 76px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.hero .eyebrow { color: #8d939a; }

.section { padding: 96px 0; }
.section.alt { background: var(--titanium-light); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--steel); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { background: var(--titanium-light); border: 1px solid var(--alloy); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.alt .card { background: #fff; }
.card .icon { width: 56px; height: 56px; margin-bottom: 4px; }
.card p { color: var(--steel); }
.card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--steel); }
.card .link { margin-top: auto; align-self: flex-start; }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--steel); transform: translateY(-2px); }

.band { background: var(--graphite); color: var(--platinum); padding: 80px 0; text-align: center; }
.band h2 { color: var(--titanium-light); }
.band p { margin: 14px auto 28px; max-width: 52ch; }

.prose { max-width: 680px; }
.prose p + p { margin-top: 16px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { padding-left: 28px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--steel); }

.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.price { font-size: 1.6rem; font-weight: 700; color: var(--carbon); }
.note { font-size: 0.9rem; color: var(--steel); margin-top: 28px; }

details { background: #fff; border: 1px solid var(--alloy); border-radius: var(--radius); padding: 0 24px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--carbon); padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--steel); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 20px; color: var(--steel); }

.byline { display: inline-flex; align-items: center; gap: 8px; }
.pill { font-size: 0.75rem; font-weight: 600; color: var(--platinum); border: 1px solid #3a3f45; border-radius: 99px; padding: 4px 12px; }

/* Footer */
.site-footer { background: var(--carbon); color: #8d939a; padding: 56px 0 40px; font-size: 0.92rem; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--graphite); }
.site-footer .tagline { margin-top: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--platinum); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .nav { gap: 18px; flex-wrap: wrap; width: 100%; }
  .nav .nav-cta { display: none; }
  .hero .lede { font-size: 1.08rem; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.four { grid-template-columns: 1fr; } }
.card p.price { color: var(--carbon); }
.hero .pill { font-size: 0.9rem; padding: 8px 16px; }

/* Policy pages (hexapet/privacy, generated by tools/sync-hexapet-privacy.py) */
.hero-meta { margin-top: 14px; color: #8d939a; font-size: 0.95rem; }
.policy h2 { font-size: 1.25rem; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--alloy); }
.policy ul { margin: 12px 0 0; padding-left: 22px; }
.policy li { margin: 6px 0; }
.policy p + ul, .policy ul + p, .policy table + p { margin-top: 16px; }
.policy a { color: var(--carbon); font-weight: 600; text-decoration-color: var(--alloy); text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy .muted { color: var(--steel); font-size: 0.92rem; }
.policy .summary { background: var(--titanium-light); border: 1px solid var(--platinum); border-left: 3px solid var(--carbon); border-radius: var(--radius); padding: 18px 22px; }
.policy .summary ul { margin-top: 8px; }
.policy table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; display: block; overflow-x: auto; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--platinum); }
.policy th { color: var(--steel); font-weight: 600; }
