/* Zoomie landing page (Solution Design pages 7 and 8). Tokens match packages/design_system
   and apps/web_shared, so the site, the apps and the dashboards look the same. */

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/DMSans.ttf") format("truetype");
    font-weight: 100 1000;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/BricolageGrotesque.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --forest: #12332b;
    --lime: #d8f05a;
    --sage: #e1e9df;
    --off-white: #f3f3ef;
    --white: #ffffff;
    --muted: #5b6b65;
    --muted-on-dark: #c3d0ca;
    --line: #dcdfd8;
    --danger: #b3261e;
    --radius: 20px;
    --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
    --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }

/* The forms are grids; this keeps the hidden attribute working on them. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font: 17px/1.5 var(--body);
    background: var(--off-white);
    color: var(--forest);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 2px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 40px; }
.narrow { max-width: 860px; }

.display {
    font: 800 46px/1.08 var(--display);
    letter-spacing: -0.02em;
    margin: 0 0 32px;
}

.brand { font: 800 26px/1 var(--display); color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--lime); }

/* ---------- Hero ---------- */

.hero { background: var(--forest); color: var(--white); padding-bottom: 80px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; }
.top ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.top a:not(.brand) { font-size: 15px; font-weight: 600; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 64px; align-items: center; padding-top: 30px; }

.pill {
    display: inline-block;
    background: var(--lime);
    color: var(--forest);
    font-size: 14px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin: 0 0 18px;
}

.hero h1 {
    font: 800 clamp(48px, 7vw, 92px)/0.95 var(--display);
    letter-spacing: -0.04em;
    margin: 0 0 30px;
}

.lead { font-size: 20px; line-height: 1.45; margin: 0 0 22px; max-width: 34ch; }

.tags { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; font-size: 15px; font-weight: 600; }

/* ---------- Cards and forms ---------- */

.card { background: var(--white); border-radius: var(--radius); padding: 26px; color: var(--forest); }
.card.outline { border: 1px solid var(--line); }
.card.lime { background: var(--lime); }
.card.dark { background: var(--forest); color: var(--white); }

.request { padding: 30px; }
.request h2 { font: 800 30px/1.15 var(--display); margin: 0 0 6px; letter-spacing: -0.01em; }
.muted { color: var(--muted); margin: 0 0 18px; }

form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }

input[type="text"], input[type="email"], select {
    font: 400 16px/1.3 var(--body);
    color: var(--forest);
    background: var(--white);
    border: 1px solid #c9cec6;
    border-radius: 12px;
    padding: 13px 14px;
    width: 100%;
    min-width: 0;
}

input::placeholder { color: #8a948f; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pets { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pets legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.pets label { position: relative; }
.pets input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pets span {
    display: block;
    text-align: center;
    font-weight: 700;
    padding: 12px 6px;
    border: 1px solid #c9cec6;
    border-radius: 12px;
}
.pets input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--white); }
.pets input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.btn {
    font: 700 17px/1 var(--body);
    border: 0;
    border-radius: 999px;
    padding: 18px 22px;
    cursor: pointer;
    background: var(--forest);
    color: var(--white);
}
.btn.lime { background: var(--lime); color: var(--forest); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.fine { font-size: 13px; margin: 0; color: var(--muted); }
.card.dark .fine { color: var(--muted-on-dark); }
.error { margin: 0; color: var(--danger); font-weight: 600; font-size: 15px; }
.card.dark .error { color: #ffb4ab; }

.done h3 { font: 800 26px/1.15 var(--display); margin: 0 0 8px; }
.done p { margin: 0; }
.done:focus { outline: none; }

/* ---------- Sections ---------- */

main > section, .band { padding-block: 80px; }
.band.sage { background: var(--sage); }
.band.lime { background: var(--lime); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.cards3 h3 { font-size: 19px; margin: 10px 0 6px; }
.cards3 p { margin: 0; font-size: 15px; }
.n { font: 800 36px/1 var(--display); }
.icon { width: 28px; height: 28px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.trust .display { margin: 0; }
.trust dl { margin: 0; }
.trust dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.trust dl > div:first-child { padding-top: 0; }
.trust dt { font-weight: 700; font-size: 18px; }
.trust dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.kicker { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.split .display { margin-bottom: 18px; }
.split p { margin: 0; }
.partner { padding: 24px; }
.partner input { border-color: transparent; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.foot { background: var(--forest); color: var(--white); padding: 34px 0; }
.split-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 15px; }

/* ---------- Legal pages ---------- */

.legal-head { background: var(--forest); color: var(--white); }
.legal { padding-block: 60px 80px; }
.legal h1 { font: 800 46px/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { max-width: 72ch; }
.legal table { border-collapse: collapse; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); }
.legal .stand { color: var(--muted); margin: 0 0 24px; }
.draft { background: #fff4c2; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
mark.todo { background: #fff4c2; color: inherit; padding: 0 3px; border-radius: 4px; }

/* ---------- Phones and tablets ---------- */

@media (max-width: 860px) {
    .wrap { padding-inline: 16px; }
    .top { padding-top: 20px; padding-bottom: 20px; }
    .top ul { gap: 14px; }
    .top a:not(.brand) { font-size: 14px; }
    .hero { padding-bottom: 48px; }
    .hero-grid, .trust, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero-grid { padding-top: 10px; }
    .lead { font-size: 18px; }
    .request { padding: 22px; }
    .display, .legal h1 { font-size: 34px; margin-bottom: 22px; }
    main > section, .band { padding-block: 56px; }
    .cards3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
    .top ul li:first-child { display: none; }
    .pair { grid-template-columns: minmax(0, 1fr); }
}
