/* homezoo.app. One stylesheet; the app's colours, light and dark.
   Layout idea: a house-shaped window onto one family's day. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F3F7F5; --surface: #FFFFFF; --raised: #E6EFEB; --ink: #14201D; --ink2: #43534D; --ink3: #5F6F69; --line: #D6E0DB;
  --action: #17706A; --action-ink: #FFFFFF; --action-tint: #D7EDE8;
  --mk-body: #17706A; --mk-ear: #0F5550; --mk-face: #FFF6E8; --house: #17706A; --house-ear: #0F5550;
  --watch: #8F5C05; --watch-tint: #FBEBC9; --band: #17706A; --band-ink: #FFF6E8; --band-ink2: #CFE7E2;
  --bezel: #1B2321; --shadow: 0 18px 50px -20px rgba(15, 60, 55, .35);
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1412; --surface: #162019; --raised: #1C2825; --ink: #E9EFEC; --ink2: #B5C2BD; --ink3: #93A19C; --line: #2B3834;
    --action: #5EC4B6; --action-ink: #06211D; --action-tint: #16352F;
    --mk-body: #5EC4B6; --mk-ear: #2A9A8E; --mk-face: #0E1412; --house: #16403B; --house-ear: #1E5650;
    --watch: #E3B04F; --watch-tint: #3A2D10; --band: #123B37; --band-ink: #F2F8F6; --band-ink2: #A9CFC8;
    --bezel: #2A3532; --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-body); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.skip { position: absolute; left: 12px; top: -60px; background: var(--action); color: var(--action-ink); padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo (inline SVG coloured here) */
.mk-b { fill: var(--mk-body); } .mk-e { fill: var(--mk-ear); } .mk-f { fill: var(--mk-face); } .mk-n { fill: #E58B7B; }
.mk-m { fill: none; stroke: var(--mk-face); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wm-l { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.wm-p { fill: var(--mk-body); }
.hs-b { fill: var(--house); } .hs-e { fill: var(--house-ear); }

/* Layout */
.wrap { max-width: 1140px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px), 5vw); padding-right: max(16px, env(safe-area-inset-right, 0px), 5vw); }
@media (min-width: 1240px) { .wrap { padding-inline: 60px; } }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--ink2); max-width: 36em; }
.eyebrow { font: 700 .78rem/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--action); }
.muted { color: var(--ink3); }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* Header */
.s-hd { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hd-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo .mark { width: 36px; height: 36px; }
.logo .word { height: 20px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn-sm, .nav a.btn-sm:hover { color: var(--action-ink); }
.lang { font-weight: 600; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mnav { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mnav:not([hidden]) { display: grid; gap: 4px; padding-block: 8px 16px; border-top: 1px solid var(--line); }
  .mnav a { padding: 12px 4px; text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mnav .lang { justify-self: start; margin-top: 10px; border-bottom: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0; font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-store { background: var(--ink); color: var(--bg); }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-store span { display: grid; text-align: left; gap: 2px; }
.btn-store small { font-weight: 600; font-size: .72rem; opacity: .78; letter-spacing: .02em; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .92rem; background: var(--action); color: var(--action-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 700; color: var(--action); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 80px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-copy { display: grid; gap: 22px; padding-bottom: clamp(36px, 6vw, 96px); align-self: center; min-width: 0; }
.hero-pets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.pets-stack { display: flex; }
.hero-pets img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg); }
.hero-pets img + img { margin-left: -10px; }
.hero-pets > span:last-child { font-weight: 600; color: var(--ink2); font-size: .95rem; }
.hero-art { position: relative; aspect-ratio: 1 / 1.08; max-width: 560px; width: 100%; justify-self: end; min-width: 0; }
.hero-art .house { position: absolute; left: 0; top: 4%; width: 100%; height: 96%; }
.hero-art .phone { position: absolute; left: 28%; top: 31%; width: 44%; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.3; max-width: 62%; }
.chip img, .chip .dot { width: 34px; height: 34px; flex: none; }
.chip small { display: block; color: var(--ink3); }
.chip .dot { border-radius: 10px; background: var(--watch-tint); color: var(--watch); display: grid; place-items: center; }
.chip .dot svg { width: 18px; height: 18px; }
.chip-a { left: -8%; top: 60%; }
.chip-b { right: -4%; top: 80%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { justify-self: center; max-width: 460px; }
}
@media (max-width: 480px) { .chip { font-size: .78rem; max-width: 74%; } .chip-a { left: 0; top: 58%; } .chip-b { right: 0; top: 80%; } }

/* Devices */
.phone { border-radius: 13% / 6%; border: clamp(5px, 1.1vw, 9px) solid var(--bezel); overflow: hidden; background: var(--bezel); box-shadow: var(--shadow); }
.phone img, .tablet img { display: block; width: 100%; }
.tablet { border-radius: 22px; border: clamp(7px, 1.2vw, 12px) solid var(--bezel); overflow: hidden; background: var(--bezel); box-shadow: var(--shadow); }

/* Bands and features */
.band { padding-block: clamp(56px, 8vw, 112px); }
.band-surface { background: var(--surface); }
.band-raised { background: var(--raised); }
.feat .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.feat.flip .feat-copy { order: 2; }
.feat-copy { display: grid; gap: 18px; max-width: 34em; min-width: 0; }
.feat-copy p { color: var(--ink2); font-size: 1.08rem; }
.feat-copy p.muted { color: var(--ink3); font-size: 1rem; }
.feat-art { display: flex; justify-content: center; gap: 18px; min-width: 0; }
.feat-art .phone { width: min(300px, 48%); }
.feat-art .phone.solo { width: min(320px, 70%); }
.roles { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.roles li { display: flex; gap: 12px; align-items: baseline; }
.tag { flex: none; font: 700 .74rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--action-tint); color: var(--action); min-width: 104px; text-align: center; }
.tag.sit { background: var(--watch-tint); color: var(--watch); }
@media (max-width: 760px) {
  .feat .wrap { grid-template-columns: 1fr; }
  .feat.flip .feat-copy { order: 0; }
  .feat-art .phone { width: min(240px, 46%); }
  .feat-art .phone.solo { width: min(280px, 76%); }
}

/* Pets */
.pets-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: 40px; }
.pets-head p { color: var(--ink2); max-width: 36em; font-size: 1.08rem; }
.pet-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.pet { display: grid; gap: 8px; justify-items: center; text-align: center; font-weight: 600; font-size: .92rem; color: var(--ink2); }
.pet img { width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; }
@media (max-width: 560px) { .pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pet:nth-child(n+10) { display: none; } }

/* Privacy cards */
.priv-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--action-tint); color: var(--action); display: grid; place-items: center; }
.card .ic svg { width: 24px; height: 24px; }
.card p { color: var(--ink2); font-size: .98rem; }
.priv-more { margin-top: 24px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* iPad */
.ipad .wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.ipad .tablet { width: min(980px, 100%); margin-top: 8px; }
.ipad p { color: var(--ink2); max-width: 38em; font-size: 1.08rem; }

/* Questions */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); }
.faq-list { display: grid; gap: 10px; min-width: 0; }
details.q { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
details.q summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; color: var(--action); }
details.q[open] summary::after { content: "–"; }
details.q p { padding-bottom: 18px; color: var(--ink2); }
details.q p + p { margin-top: -8px; }
@media (max-width: 760px) { .faq .wrap { grid-template-columns: 1fr; } }

/* Closing band */
.cta-band { background: var(--band); color: var(--band-ink); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: clip; }
.cta-band .wrap { display: grid; gap: 18px; justify-items: start; position: relative; }
.cta-band p { color: var(--band-ink2); font-size: 1.1rem; max-width: 36em; }
.cta-band .btn-store { background: var(--band-ink); color: var(--band); }
.cta-band .ghost { position: absolute; right: -4%; bottom: -30%; width: min(420px, 48%); opacity: .12; }
.cta-band .ghost path { fill: var(--band-ink); }
.cta-band .mail { font-weight: 700; font-size: 1.1rem; color: var(--band-ink); }

/* Footer */
.s-ft { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.s-ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.s-ft h2 { margin: 0 0 10px; font: 700 .78rem/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.s-ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-ft a { text-decoration: none; color: var(--ink2); }
.s-ft a:hover { color: var(--ink); }
.ft-brand { display: grid; gap: 12px; align-content: start; }
.ft-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink3); font-size: .88rem; }
@media (max-width: 760px) { .s-ft .wrap { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }

/* Inner pages */
.page-hd { padding-block: clamp(44px, 7vw, 88px) clamp(36px, 5vw, 64px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--action); color: var(--action-ink); display: grid; place-items: center; font: 800 1.05rem/1 var(--f-display); }
.steps b, .contents b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.steps span, .contents span { color: var(--ink2); }
.contents { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contents li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.contents svg { width: 22px; height: 22px; color: var(--action); margin-top: 3px; }

/* Sample report */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; min-width: 0; }
.report-hd { display: flex; gap: 12px; align-items: center; }
.report-hd img { width: 48px; height: 48px; flex: none; }
.report-hd small { display: block; color: var(--ink3); }
.r-sec { display: grid; gap: 8px; }
.r-sec h3 { font: 700 .74rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.r-chart { width: 100%; height: auto; display: block; }
.r-chart text { fill: var(--ink3); font: 600 9px var(--f-body); }
.r-chart .bar { fill: var(--action); } .r-chart .hi { fill: var(--watch); } .r-chart .usual { fill: var(--action-tint); }
.r-chart .gap { fill: none; stroke: var(--ink3); stroke-dasharray: 3 3; } .r-chart .axis { stroke: var(--line); }
.r-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .95rem; }
.r-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.r-note { background: var(--watch-tint); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.fine { font-size: .85rem; color: var(--ink3); }

/* Support */
.sup-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.sup-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.sup-nav a { text-decoration: none; color: var(--ink2); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.sup-nav a:hover { background: var(--raised); color: var(--ink); }
.sup-sec { display: grid; gap: 10px; margin-bottom: 40px; scroll-margin-top: 92px; }
.sup-sec h2 { font-size: 1.5rem; margin-bottom: 6px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 10px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row a.mail { font: 700 1.05rem var(--f-body); background: var(--raised); padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.copy-btn { font: 600 .9rem var(--f-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.sos { background: var(--watch-tint); border-radius: 20px; padding: 20px 22px; display: grid; gap: 6px; margin-bottom: 40px; }
.sos b { font-size: 1.05rem; }
@media (max-width: 820px) { .sup-grid { grid-template-columns: 1fr; } .sup-nav { position: static; display: flex; flex-wrap: wrap; } }

/* Legal */
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: .92rem; max-height: calc(100vh - 120px); overflow: auto; }
.toc a { text-decoration: none; color: var(--ink2); padding: 6px 10px; border-radius: 8px; }
.toc a:hover { background: var(--raised); color: var(--ink); }
.draft { background: var(--watch-tint); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: .95rem; }
.legal { max-width: 44em; min-width: 0; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 18px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; scroll-margin-top: 92px; }
.legal p, .legal li { color: var(--ink2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .meta { color: var(--ink3); margin: 8px 0 20px; }
.legal .other { margin-top: 36px; }
.inshort { background: var(--action-tint); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }
.inshort h2 { margin-top: 0; font-size: 1.1rem; }
.inshort li { color: var(--ink); }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .toc { display: none; } }

/* Not found */
.nf { padding-block: clamp(64px, 10vw, 140px); text-align: center; }
.nf .wrap { display: grid; gap: 18px; justify-items: center; }
.nf img { width: 132px; height: 132px; transform: rotate(-8deg); }
.nf .cta-row { justify-content: center; }
