:root {
  --forest: #1f6b53; --forest-deep: #163b31; --amber: #d8942c; --cream: #f3eedf;
  --bg: #f6f4ee; --card: #ffffff; --text: #17201c; --muted: #5d6762; --line: #e3e1d9;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --forest: #8ccbb0; --bg: #0e1512; --card: #18211d; --text: #e9efea; --muted: #9aa8a1; --line: #26312c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--forest); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; }
.hero .phone { justify-self: center; }
.phone img { width: 300px; max-width: 80vw; border-radius: 44px; box-shadow: 0 30px 60px rgba(0,0,0,.18); border: 8px solid #111; display: block; }
.cta { display: inline-block; background: var(--forest-deep); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .cta { background: var(--forest); color: #0b1f18; } }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

section { padding: 44px 0; }
section h2 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.01em; }
section p.sub { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); display: inline-block; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; align-items: start; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 100%; max-width: 250px; border-radius: 30px; border: 6px solid #111; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.shots img.doc { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.shots figcaption { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.plus { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 32px; }
.plus .price { font-size: 44px; font-weight: 800; margin: 0; }
.plus ul { padding-left: 20px; margin: 16px 0 0; }
.plus li { margin: 6px 0; }

.doc-page { max-width: 760px; padding-top: 24px; padding-bottom: 60px; }
.doc-page h1 { font-size: 40px; margin-bottom: 4px; }
.doc-page h2 { font-size: 21px; margin-top: 34px; color: var(--forest); }
.doc-page .updated { color: var(--muted); margin-top: 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14.5px; margin-top: 30px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  nav a { margin-left: 12px; }
}

/* Enlargeable images */
button.zoomable { all: unset; cursor: zoom-in; display: block; position: relative; border-radius: inherit; }
button.zoomable:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
button.zoomable::after { content: "⤢"; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 18px; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
button.zoomable:hover::after, button.zoomable:focus-visible::after { opacity: 1; }
.shots figcaption a { color: inherit; }

dialog#viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: #080c0a; color: #fff; }
dialog#viewer::backdrop { background: transparent; }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; justify-content: flex-end;
  padding: 12px 16px; background: linear-gradient(rgba(8,12,10,.95), rgba(8,12,10,0)); }
.viewer-hint { color: #aab5af; font-size: 14px; margin-right: auto; }
.viewer-link { color: #8ccbb0; font-weight: 700; text-decoration: none; }
.viewer-close { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); font-size: 18px; }
.viewer-close:focus-visible { outline: 2px solid #8ccbb0; }
.viewer-body { height: calc(100vh - 64px); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 8px 16px 40px; }
.viewer-body img { display: block; max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; cursor: zoom-in;
  border-radius: 10px; background: #fff; }
.viewer-body.pages img { max-height: none; width: min(900px, 100%); }
.viewer-body.zoomed { align-items: flex-start; }
.viewer-body.zoomed img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.viewer-body.pages.zoomed img { width: 1591px; }
@media (max-width: 760px) { .viewer-hint { display: none; } }

/* Galleries */
.gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; }
.gallery figcaption { text-align: left; font-size: 14px; line-height: 1.45; }
.gallery figcaption strong { color: var(--text); font-size: 15px; }
.gallery img { max-width: 230px; }
.plus-gallery { margin-top: 26px; }
.plus .shots img { border-color: #111; }
#tour { padding-top: 10px; }

/* Not a link until the app is in the App Store. */
.cta-static { cursor: default; user-select: none; }

/* Smooth scrolling to in-page sections, unless the user prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id], #plus { scroll-margin-top: 20px; }

/* Support FAQ */
.doc-page h2.faq-group { font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--forest); margin: 34px 0 10px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 20px; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { background: color-mix(in srgb, var(--forest) 6%, transparent); }
.faq summary:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; border-radius: 16px; }
.faq .answer { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.faq .answer .lead { color: var(--text); font-size: 16.5px; margin: 16px 0 12px; }
.faq .answer .note { font-size: 15px; color: var(--muted); margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--amber); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 38px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest); color: var(--bg); font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.steps li strong { color: var(--text); }
.path { display: inline-block; padding: 1px 9px; border-radius: 8px; background: color-mix(in srgb, var(--forest) 13%, transparent);
  color: var(--text); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.path .sep { color: var(--muted); font-weight: 400; margin: 0 2px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Plus gallery: three per row, centered. */
.plus-gallery { grid-template-columns: repeat(3, minmax(0, 230px)); justify-content: center; column-gap: 48px; }
.plus-gallery figure { display: flex; flex-direction: column; align-items: center; }
.plus-gallery figcaption { max-width: 230px; }
@media (max-width: 860px) { .plus-gallery { grid-template-columns: repeat(2, minmax(0, 230px)); column-gap: 24px; } }
@media (max-width: 520px) { .plus-gallery { grid-template-columns: minmax(0, 260px); } }

/* Free gallery: four per row; a shorter last row is centered. */
#tour .gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 20px; }
#tour .gallery figure { flex: 0 0 calc((100% - 60px) / 4); }
@media (max-width: 980px) { #tour .gallery figure { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 520px) { #tour .gallery figure { flex-basis: 100%; } }
