/* Zoofy+ site — brand DNA shared with the app (cream canvas, tangerine, navy ink, violet). */
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/Caveat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #fff6ea;
  --cream-deep: #ffecd2;
  --card: #ffffff;
  --navy: #17275c;
  --ink-2: #4a5584;          /* secondary text: 7.0:1 on cream */
  --body: #2d3a6b;           /* long-form text on white */
  --tangerine: #ff7a1a;
  --tangerine-ink: #b8490a;  /* orange text on light: 4.9:1 on cream */
  --cta: #c2480a;            /* white on it: 4.97:1 */
  --violet: #6a5cff;
  --violet-soft: #ece6ff;
  --mint: #1fa877;
  --mint-soft: #ddf6ec;
  --butter-soft: #fff1c2;
  --berry-soft: #ffe1e8;
  --line: #ece3d3;
  --radius: 28px;
  --shadow: 0 18px 50px -24px rgba(23, 39, 92, 0.35);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 17px/1.6 "Figtree", system-ui, sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tangerine-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Skip link (first focusable element on every page) */
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 14px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 22px/1 "Bricolage", sans-serif; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 99px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); box-shadow: var(--shadow); }

/* Type */
h1, h2, h3 { font-family: "Bricolage", sans-serif; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.script { font-family: "Caveat", cursive; font-weight: 700; color: var(--tangerine-ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 34ch; margin: 22px 0 0; }
.intro { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin: 18px 0 0; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 99px; font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--cta); color: #fff; box-shadow: 0 14px 30px -14px rgba(194, 72, 10, 0.8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn.ghost { background: var(--card); color: var(--navy); box-shadow: var(--shadow); }
.btn.ghost:hover { color: var(--navy); }
.btn svg { width: 20px; height: 20px; }

/* Text-only availability note (no store badges until the apps are live) */
.soon {
  display: inline-flex; align-items: center; gap: 12px; margin: 0; min-height: 52px; padding: 10px 24px;
  border-radius: 99px; background: var(--card); color: var(--navy); font-weight: 700; font-size: 16px; line-height: 1.3;
  box-shadow: var(--shadow);
}
.soon::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 5px #ffe4cc; }

/* Hero */
.hero { padding: 36px 0 40px; }
.hero h1 { margin: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--tangerine-ink); }
.hero .ctas { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.hero-art { position: relative; min-height: 560px; }
.phone {
  position: absolute; width: 270px; border-radius: 44px; background: #0d1330; padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(23, 39, 92, 0.55);
}
.phone img { border-radius: 36px; aspect-ratio: 1320 / 2868; object-fit: cover; }
.hero-art .p1 { left: 8%; top: 10px; transform: rotate(-6deg); z-index: 2; }
.hero-art .p2 { right: 2%; top: 70px; transform: rotate(5deg); }
.sticker { position: absolute; filter: drop-shadow(0 16px 20px rgba(23, 39, 92, .22)); z-index: 3; }
.hero-art .s1 { width: 170px; left: -4%; bottom: -10px; }
.hero-art .s2 { width: 150px; right: -3%; bottom: 20px; }
.note { position: absolute; z-index: 4; transform: rotate(-4deg); }
.hero-art .note { right: 4%; top: -6px; }

/* Blob backdrop */
.hero-art::before {
  content: ""; position: absolute; inset: 40px 30px 30px 40px; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 30% 30%, var(--violet-soft), #f6e7ff 55%, var(--cream-deep));
}

/* Sections */
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #5243e6; margin-bottom: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.feature p { margin: 10px 0 0; color: var(--ink-2); }
.feature a { font-weight: 700; }
.feature .ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 26px; height: 26px; }
.t-orange { background: #ffe4cc; color: #a8430a; }
.t-violet { background: var(--violet-soft); color: #4b3fe0; }
.t-mint { background: var(--mint-soft); color: #13744f; }
.t-butter { background: var(--butter-soft); color: #8a5b00; }
.t-berry { background: var(--berry-soft); color: #b5214a; }
.t-blue { background: #e1ebff; color: #1f55c9; }

/* Screens strip (all five screenshots stay reachable: swipe on small screens) */
.screens { background: var(--navy); color: var(--cream); border-radius: 48px; margin: 0 16px; padding: 72px 0; }
.screens h2 { color: var(--cream); }
.screens .muted { color: #c9cfe6; }
.screens .script { color: #ffb27a; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.strip figure { margin: 0; }
.strip .frame { border-radius: 30px; background: #0a0f28; padding: 6px; box-shadow: 0 30px 60px -30px #000; }
.strip img { border-radius: 25px; aspect-ratio: 1320 / 2868; object-fit: cover; }
.strip figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; color: #e6e9f7; text-align: center; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.plan.hl { outline: 3px solid var(--tangerine); }
.plan ul { padding: 0; margin: 16px 0 0; list-style: none; }
.plan li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313744f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.fineprint { margin: 22px 0 0; max-width: 78ch; }

/* Trust links (home) */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.tile-link {
  display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--navy); transition: transform .2s ease;
}
.tile-link:hover { color: var(--navy); transform: translateY(-3px); }
.tile-link p { margin: 0; color: var(--ink-2); }
.tile-link .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--tangerine-ink); }

/* Care note */
.care { background: var(--butter-soft); border-radius: var(--radius); padding: 30px 34px; display: flex; gap: 22px; align-items: flex-start; }
.care svg { flex: none; width: 32px; height: 32px; color: #8a5b00; margin-top: 2px; }
.care h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.care p { margin: 6px 0 0; color: #4a3a12; }
.care-wrap { padding-top: 0; }

/* Legal / doc pages */
.doc { padding: 24px 0 80px; }
.doc .paper { background: var(--card); border-radius: 36px; box-shadow: var(--shadow); padding: clamp(26px, 5vw, 64px); max-width: 880px; margin-inline: auto; }
.doc h1 { font-size: clamp(38px, 5vw, 58px); }
.doc h2 { font-size: 26px; margin-top: 44px; margin-bottom: 10px; scroll-margin-top: 20px; }
.doc h3 { font-size: 19px; margin-top: 26px; margin-bottom: 4px; }
.doc p, .doc li { color: var(--body); max-width: 72ch; }
.doc .paper ul, .doc .paper ol:not(.steps) { padding-left: 1.2em; }
.doc li { padding: 2px 0; }
.doc .updated { color: var(--ink-2); font-weight: 600; margin: 12px 0 0; }
.doc .lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 20px 0 0; max-width: 62ch; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--cream); font-weight: 700; }
.doc td:first-child { font-weight: 700; color: var(--navy); }
.table-scroll { overflow-x: auto; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 0 50px; margin: 0 0 16px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: "Bricolage", sans-serif; }
.callout { background: var(--violet-soft); border-radius: 22px; padding: 18px 22px; margin: 22px 0; }
.callout p { margin: 8px 0 0; }
.callout > :first-child { margin-top: 0; }
.callout.warn { background: var(--butter-soft); }
.callout.warn p, .callout.warn li { color: #4a3a12; }
.callout.safe { background: var(--mint-soft); }
.callout.safe p, .callout.safe li { color: #0f4d36; }

/* Table of contents (generated from the h2 ids) */
.toc { background: var(--cream); border-radius: 22px; padding: 20px 24px 14px; margin: 28px 0 4px; }
.toc-title { font: 800 17px/1.2 "Bricolage", sans-serif; margin: 0 0 6px; color: var(--navy); max-width: none; }
.doc .paper .toc ol { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.toc li { break-inside: avoid; padding: 0; max-width: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration-color: #e9b98e; }
.toc a:hover { color: var(--tangerine-ink); }

/* "At a glance" check list */
.doc .paper ul.glance { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glance li { max-width: none; background: var(--mint-soft); border-radius: 20px; padding: 16px 18px 16px 54px; position: relative; color: #0f4d36; font-weight: 600; }
.glance li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313744f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Two-up tiles (report channels, iPhone / Android steps) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.tile { background: var(--cream); border-radius: 24px; padding: 22px 24px; }
.tile h3 { margin: 0 0 8px; font-size: 20px; }
.tile .tag { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 99px; background: #fff; color: var(--tangerine-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; max-width: none; }
.tile ol, .tile ul { margin: 8px 0 0; padding-left: 1.25em; }
.tile p { margin: 6px 0 0; }
.tile > :first-child { margin-top: 0; }

/* Contact card */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; background: var(--navy); color: var(--cream); border-radius: 28px; padding: 28px 32px; margin: 28px 0; }
.contact h2, .contact h3 { margin: 0; color: var(--cream); font-size: 26px; }
.contact p { margin: 6px 0 0; color: #d9def2; max-width: 52ch; }
.contact a:not(.btn) { color: #ffd2ad; }
.contact a:not(.btn):hover { color: #fff; }
.contact > div { flex: 1 1 340px; }
.contact .btn { flex: none; }

/* FAQ */
.faq-group { margin-top: 40px; }
.faq-group > h2 { margin-top: 0; }
details { background: var(--cream); border-radius: 20px; padding: 0 22px; margin: 10px 0; }
summary {
  cursor: pointer; font-weight: 700; color: var(--navy); min-height: 56px; padding: 14px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 22px; height: 22px; transition: transform .2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8490a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/22px no-repeat;
}
details[open] summary::after { transform: rotate(180deg); }
details[open] { padding-bottom: 8px; }
details > :not(summary) { margin-top: 0; margin-bottom: 14px; }

/* 404 */
.nf { padding: 36px 0 96px; }
.nf .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 8px; }
.nf .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.nf .more-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.nf .more-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.nf-art { justify-self: center; width: min(360px, 70%); filter: drop-shadow(0 22px 26px rgba(23, 39, 92, .22)); }

/* Footer */
footer { padding: 40px 0 56px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.foot-brand p { margin: 10px 0 0; color: var(--ink-2); max-width: 46ch; }
footer nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; justify-content: flex-end; }
footer a { color: var(--navy); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover, footer a[aria-current="page"] { color: var(--tangerine-ink); }
.foot-brand .brand { font-size: 22px; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid #f0dcc0; padding-top: 20px; color: var(--ink-2); font-size: 14px; }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--tangerine-ink); font-weight: 700; text-decoration: underline; display: inline; min-height: 0; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .rise.d2 { animation-delay: .12s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  .float { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { translate: 0 -10px; } }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero .wrap, .nf .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
  .features, .plans, .trust { grid-template-columns: 1fr 1fr; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 4px 22px; margin: 44px -4px 0; }
  .strip figure { flex: 0 0 min(34%, 250px); scroll-snap-align: start; }
  .strip:focus-visible { outline-offset: -2px; }
  .nf-art { width: min(300px, 60%); justify-self: start; }
  .foot { grid-template-columns: 1fr; }
  footer nav ul { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; }
  .doc table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table.stack tr { background: var(--cream); border-radius: 18px; padding: 8px 16px; margin: 12px 0; }
  .doc table.stack td { border: 0; padding: 8px 0; }
  .doc table.stack td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
  .doc table.stack td:first-child { font-size: 17px; padding-top: 12px; }
  .doc table.stack td:first-child::before { display: none; }
  .duo, .doc .paper ul.glance { grid-template-columns: 1fr; }
  .doc .paper .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a { padding: 10px 10px; font-size: 14px; }
  .top .wrap { flex-direction: column; align-items: flex-start; }
  .hero-art { min-height: 440px; }
  .phone { width: 200px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .hero-art .p1 { left: 0; } .hero-art .p2 { right: 0; top: 60px; }
  .hero-art .s1 { width: 120px; } .hero-art .s2 { width: 110px; }
  .features, .plans, .trust { grid-template-columns: 1fr; }
  .strip figure { flex-basis: 62%; }
  .screens { margin: 0 8px; border-radius: 32px; }
  section { padding: 56px 0; }
  .care { flex-direction: column; }
  .contact { padding: 24px 22px; }
  .soon { font-size: 15px; padding: 10px 20px; }
}
@media (max-width: 480px) {
  .doc .paper { padding: 22px 18px; border-radius: 28px; }
  .doc .paper .contact { margin-inline: -18px; padding: 22px 18px; border-radius: 22px; }
  .doc .paper .callout { margin-inline: -18px; padding: 18px; }
  .steps li { padding-left: 44px; }
  .steps li::before { width: 30px; height: 30px; font-size: 15px; }
}
@media (max-width: 400px) {
  .doc > .wrap { width: calc(100% - 24px); }
}

/* Print: legal pages should print as plain documents */
@media print {
  .skip, .top, footer, .toc, .ctas { display: none; }
  body { background: #fff; font-size: 12pt; }
  .doc { padding: 0; }
  .doc .paper { box-shadow: none; padding: 0; max-width: none; }
  details { background: none; padding: 0; }
  details > * { display: block; }
  a { color: inherit; }
}
