/* Hemview public website. Same palette as the planner (src/builder/builder.css) so the two feel like one product. */
:root {
  --bg: #f4f2ec;
  --paper: #fbfaf6;
  --ink: #1d241f;
  --muted: #5b655e;
  --line: #dcdcd2;
  --accent: #2f7a5a;
  --accent-dark: #22604a;
  --accent-soft: #e3efe7;
  --deep: #17302a;
  --warm: #c98a5e;
  --radius: 14px;
  --wrap: 1180px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); color: #fff; }
.button.ghost { background: transparent; border-color: #b9bdb2; color: var(--ink); }
.button.ghost:hover { border-color: var(--ink); color: var(--ink); }
.button.light { background: #fff; color: var(--deep); }
.button.light:hover { background: var(--accent-soft); color: var(--deep); }
.button.small { min-height: 38px; padding: 8px 16px; font-size: .92rem; }
.arrow::after { content: "→"; transition: transform .15s; }
.button:hover .arrow::after, .button.arrow:hover::after { transform: translateX(3px); }
.out::after { content: "↗"; font-size: .9em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(244, 242, 236, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.25rem; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current=page] { border-bottom-color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%232f7a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; flex: none; }

.showcase { position: relative; border-radius: 22px; overflow: hidden; background: #c8ccb4; box-shadow: 0 30px 60px -30px rgba(23, 48, 42, .45), 0 2px 6px rgba(0,0,0,.05); aspect-ratio: 1100 / 840; }
.showcase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease; }
.showcase img.evening { opacity: 0; }
.showcase[data-time=evening] img.evening { opacity: 1; }
.time-switch { position: absolute; left: 16px; bottom: 16px; display: inline-flex; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border-radius: 999px; padding: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.time-switch button { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.time-switch button[aria-pressed=true] { background: var(--deep); color: #fff; }
.showcase-tag { position: absolute; right: 16px; top: 16px; background: rgba(255,255,255,.9); border-radius: 12px; padding: 10px 14px; font-size: .82rem; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.1); max-width: 230px; }
.showcase-tag strong { display: block; font-size: .92rem; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.start-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.start-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(23,48,42,.35); color: var(--ink); }
.start-card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.start-card .icon svg { width: 30px; height: 30px; }
.start-card p { color: var(--muted); flex: 1; }
.start-card .go { font-weight: 650; color: var(--accent-dark); }
.start-card .tag { display: inline-block; font-size: .75rem; font-weight: 650; letter-spacing: .04em; background: var(--bg); color: var(--muted); border-radius: 999px; padding: 3px 10px; margin-left: 6px; vertical-align: 3px; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 26px; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.step-list li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.step-list h3 { margin: 8px 0 4px; }
.step-list p { color: var(--muted); margin: 0; }
.frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 50px -30px rgba(23,48,42,.35); }
.frame figcaption { padding: 12px 18px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }

/* ---------- product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product .pic { aspect-ratio: 4 / 3; background: #f0eee8; overflow: hidden; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .pic img { transform: scale(1.04); }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product .shop { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product h3 { font-size: 1.08rem; margin: 4px 0 2px; }
.product .desc { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.product .meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .88rem; color: var(--muted); }
.product .price { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.product .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.product .actions .button { flex: 1 1 auto; white-space: nowrap; min-height: 40px; padding: 8px 12px; font-size: .9rem; }
.badge-3d { position: relative; }
.badge-3d::after { content: "3D model"; position: absolute; left: 10px; top: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.92); color: var(--accent-dark); border-radius: 999px; padding: 3px 9px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.chip { font: inherit; font-size: .92rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; color: var(--ink); min-height: 40px; }
.chip:hover { border-color: #a9aea3; }
.chip[aria-pressed=true] { background: var(--deep); border-color: var(--deep); color: #fff; }
.search { margin-left: auto; position: relative; }
.search input { font: inherit; font-size: .95rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px 9px 38px; width: 240px; min-height: 40px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.result-note { color: var(--muted); font-size: .92rem; margin: -8px 0 22px; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

/* ---------- shops ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.shop-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.shop-card .logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.shop-card p { color: var(--muted); flex: 1; }
.shop-card .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.shop-card.soon { background: transparent; border-style: dashed; }

/* ---------- honesty band ---------- */
.band { background: var(--deep); color: #e9efe9; border-radius: 26px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; }
.band h2 em { color: #a9d8bf; }
.band p { color: #c9d6cd; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.band li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; }
.band li strong { color: #fff; display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; margin-top: -6px; }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: 100px 0; }
.final h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.final .cta-row { justify-content: center; margin-top: 28px; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.prose { max-width: 760px; padding-bottom: 96px; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.updated { color: var(--muted); font-size: .92rem; }
.callout { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.todo { background: #fff3cd; border-radius: 4px; padding: 0 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #c9d6cd; padding: 64px 0 36px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand svg { color: #a9d8bf; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #c9d6cd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #9fb1a6; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .steps, .band { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .start-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .band { padding: 40px 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-row > .button { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; box-shadow: 0 16px 30px -20px rgba(0,0,0,.3); }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:hover, .site-nav a[aria-current=page] { border-bottom-color: var(--line); color: var(--accent-dark); }
  .site-nav .nav-cta { display: block; margin-top: 14px; border: 0; text-align: center; background: var(--accent); color: #fff; border-radius: 999px; padding: 13px; }
  .lead { font-size: 1.08rem; }
  .cta-row .button { flex: 1 1 100%; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .filters { gap: 8px; }
  .showcase-tag { display: none; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product .body { padding: 12px; }
  .product .desc { font-size: .85rem; }
  .product .actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 24px; }
}
@media (min-width: 761px) { .site-nav .nav-cta { display: none; } }
.donate-note { margin-top: 18px; font-size: .92em; opacity: .92; }
.donate-note .button { margin-top: 10px; }
.swish-number { display: inline-block; margin: 10px 0 0 10px; font-weight: 600; white-space: nowrap; }
