/* HomePet's website: the home page and the legal and help pages (see «Web de HomePet» in
   CLAUDE.md). Same look as the app (lib/core/theme.dart): Nunito, cream background, white cards,
   the paw's brown. Always light, like the app. No external requests: the font is served from here. */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/Nunito-Regular.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/fonts/Nunito-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/fonts/Nunito-Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --brand: #8b4f25;
  --brand-dark: #5c2e0e;
  --brand-soft: #fde6d6;
  --icon-bg: #fff1e4;
  --background: #fff8f1;
  --surface-low: #fff3e8;
  --card: #ffffff;
  --text: #2e211a;
  --muted: #75604f;
  --outline: #d9c2ae;
  --outline-soft: #ebd9c8;
  --amber: #b45f12;
  --amber-soft: #fcebd5;
  --green: #2e7d4f;
  --green-soft: #e3f2e8;
  --todo: #fff3a6;
  --shadow: 0 2px 10px rgba(58, 36, 20, 0.08), 0 1px 2px rgba(58, 36, 20, 0.06);
  --shadow-big: 0 24px 60px rgba(58, 36, 20, 0.18);
  --radius: 20px;
  --width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: none; margin: 0; padding: 12px max(16px, calc((100% - var(--width)) / 2));
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--outline-soft);
}

a.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand); font-weight: 800; font-size: 22px; letter-spacing: -0.2px; text-decoration: none;
}
a.logo img { width: 40px; height: 40px; border-radius: 11px; }

header.site nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
header.site nav a:hover { color: var(--brand); background: var(--brand-soft); }
header.site nav a.button { color: #fff; background: var(--brand); margin-left: 6px; }
header.site nav a.button:hover { background: var(--brand-dark); }

/* Pages in other languages: the language links. */
header.site nav a[hreflang] { font-size: 14px; padding: 4px 8px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu.mobile { display: none; }
.langs summary { font-size: 14px; padding: 8px 12px; background: var(--card); border: 1px solid var(--outline-soft); }
.langs summary::after { content: " ▾"; font-size: 11px; }
.langs div { min-width: 190px; max-height: 70vh; overflow-y: auto; }
.langs div a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 800; color: var(--brand);
  padding: 8px 16px; border-radius: 999px; background: var(--brand-soft);
}
.menu summary::-webkit-details-marker { display: none; }
.menu div {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  display: grid; padding: 8px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-big);
}
.menu div a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--text); }
.menu div a:hover { background: var(--surface-low); color: var(--brand); }

@media (max-width: 1100px) {
  header.site nav.main { display: none; }
  .menu.mobile { display: block; }
}

/* ---------- Legal and help pages ---------- */

main { max-width: 820px; margin: 0 auto; padding: 32px 16px 72px; }
main > h1:first-child, main > .eyebrow + h1 { margin-top: 8px; }

main:not(.landing) {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 32px auto 48px; padding: 40px 48px 48px; max-width: 860px;
}
@media (max-width: 700px) {
  main:not(.landing) { margin: 16px 12px 32px; padding: 28px 20px 36px; border-radius: 16px; }
}

h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 8px; font-weight: 800; letter-spacing: -0.4px; }
h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 8px; color: var(--brand); font-weight: 800; }
h3 { font-size: 18px; margin: 24px 0 6px; font-weight: 800; }
p.updated { color: var(--muted); margin-top: 0; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 800; }

.draft {
  background: var(--amber-soft); border-radius: 14px; padding: 12px 16px; margin: 16px 0;
  border-left: 4px solid var(--amber);
}
mark.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; }

.links { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.links a {
  display: block; padding: 16px 20px; border-radius: 14px; background: var(--surface-low);
  text-decoration: none; font-weight: 700; border: 1px solid var(--outline-soft);
}
.links a:hover { background: var(--brand-soft); }

.note {
  background: var(--surface-low); border: 1px solid var(--outline-soft); border-radius: 14px;
  padding: 14px 18px; margin: 16px 0;
}
.warning-eu {
  background: var(--amber-soft); border-radius: 14px; padding: 14px 18px; font-weight: 800; margin: 16px 0;
}

table.data { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--outline-soft); vertical-align: top; }
table.data th { width: 34%; color: var(--muted); font-weight: 700; }

/* ---------- Footer ---------- */

footer {
  color: var(--muted); font-size: 15px; text-align: center; padding: 24px 16px;
}
footer.site {
  text-align: left; background: #3a2a20; color: #e9d9cb; padding: 56px max(16px, calc((100% - var(--width)) / 2)) 28px;
}
footer.site a { color: #ffd9bd; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .columns { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer.site .brand a.logo { color: #fff; }
footer.site .brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
footer.site h2 { color: #fff; font-size: 15px; margin: 4px 0 12px; text-transform: uppercase; letter-spacing: 0.8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 8px 0; }
footer.site .bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px;
}
footer.site .languages a { margin-right: 10px; white-space: nowrap; }
@media (max-width: 860px) { footer.site .columns { grid-template-columns: 1fr 1fr; } footer.site .brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer.site .columns { grid-template-columns: 1fr; } }

/* ---------- Home page ---------- */

main.landing { max-width: none; padding: 0; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 16px; }
section.block { padding: 88px 0; }
section.block.alt { background: var(--surface-low); }
.eyebrow {
  display: inline-block; color: var(--amber); font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 8px;
}
.section-title { font-size: 40px; line-height: 1.15; margin: 0 0 14px; max-width: 760px; color: var(--text); }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 40px; }
.center { text-align: center; }
.center .section-title, .center .lead { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn.outline { background: var(--card); color: var(--brand); border-color: var(--outline); }
.btn.outline:hover { border-color: var(--brand); }
.btn.light { background: #fff; color: var(--brand); }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; background:
  radial-gradient(900px 500px at 85% 20%, #fde6d6 0%, rgba(253, 230, 214, 0) 70%),
  radial-gradient(700px 400px at 0% 100%, #fcebd5 0%, rgba(252, 235, 213, 0) 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -1px; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 21px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.chips li {
  margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.chips li::before { content: "✓"; color: var(--green); font-weight: 800; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; min-height: 56px;
  border-radius: 14px; background: #2e211a; color: #fff; text-decoration: none; line-height: 1.2;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; opacity: .8; font-weight: 600; }
.store span { font-weight: 800; font-size: 17px; }
.store[aria-disabled="true"] { cursor: default; }
.store:hover { color: #fff; }
.stores-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Phone with the app (drawn here; to replace with real screenshots). */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 46px;
  background: #1f1712; padding: 12px; box-shadow: var(--shadow-big); position: relative; transform: rotate(2deg);
}
.phone .screen {
  height: 100%; border-radius: 36px; background: var(--background); overflow: hidden;
  padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px;
}
.phone .screen::before {
  content: ""; position: absolute; top: 22px; left: 50%; width: 90px; height: 24px; margin-left: -45px;
  border-radius: 999px; background: #1f1712;
}
.phone .hello { font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0; }
.phone .hello small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.phone .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.phone .pills span { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--outline-soft); }
.phone .pills span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.phone .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.phone .photo {
  aspect-ratio: 1; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, #f7d9bf, #f1c09a);
}
.phone .photo::after { content: ""; width: 40%; height: 40%; background: url("/img/paw.svg") center / contain no-repeat; opacity: .35; }
.phone .photo.b { background: linear-gradient(135deg, #f3e2d2, #e5c7ab); }
.phone .photo.c { background: linear-gradient(135deg, #fbe3c4, #f2c38a); }
.phone .photo.d { background: linear-gradient(135deg, #e9dccf, #d7bfa7); }
.phone .tag {
  position: absolute; left: 6px; top: 6px; z-index: 1; font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber);
}
.phone .card p { margin: 0; padding: 6px 8px 8px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.phone .card p b { display: block; color: var(--text); font-size: 13px; }
.phone .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 2px; border-top: 1px solid var(--outline-soft); font-size: 10px; font-weight: 800; color: var(--muted); }
.phone .tabs span.on { color: var(--brand); }
.floating {
  position: absolute; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-big);
  padding: 10px 14px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; transform: rotate(-2deg);
}
.floating i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }
.floating.one { left: -70px; top: 52%; }
.floating.two { right: -56px; bottom: 18%; }
.floating.two i { background: var(--brand-soft); color: var(--brand); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card-box h3 { margin: 16px 0 8px; font-size: 20px; }
.card-box p { margin: 0; color: var(--muted); }
.card-box ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card-box li { padding-left: 28px; position: relative; margin: 10px 0; }
.card-box li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 26px;
}

/* Steps */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--outline-soft); }
.steps b { display: block; font-size: 18px; margin-bottom: 2px; }
.steps span { color: var(--muted); }
.audience-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 24px; }

/* Professionals */
.pro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pro .card-box { padding: 36px; }
.pro .card-box h3 { font-size: 24px; margin-top: 12px; }
.pro .btn { margin-top: 20px; }

/* Trust */
.trust { background: var(--brand-dark); color: #fbe9dc; }
.trust .section-title { color: #fff; }
.trust .lead { color: #f0d6c3; }
.trust .eyebrow { color: #ffb689; }
.trust .card-box { background: rgba(255, 255, 255, 0.07); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.12); }
.trust .card-box h3 { color: #fff; }
.trust .card-box p { color: #f0d6c3; }
.trust .icon { background: rgba(255, 182, 137, 0.18); }
.trust a { color: #ffd9bd; }
.trust .law-strip {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 15px; color: #f0d6c3;
}
.trust .law-strip span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin: 0 0 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 800; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 26px; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* About and final call */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about table.data { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cta {
  background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center;
  background-image: radial-gradient(600px 300px at 90% 0%, rgba(255, 182, 137, 0.35), rgba(255, 182, 137, 0));
}
.cta h2 { color: #fff; font-size: 36px; margin: 0 0 12px; }
.cta p { color: #fbe9dc; font-size: 18px; margin: 0 auto 28px; max-width: 560px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: var(--text); }
.cta .store:hover { color: var(--text); }
.cta a.mail { color: #fff; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero-visual { margin-top: 16px; }
  .floating.one { left: -10px; } .floating.two { right: -10px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: 1fr; }
  .audiences, .pro, .about, .cards.two { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; }
}
@media (max-width: 560px) {
  section.block { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .floating { display: none; }
  .phone { width: 260px; }
  .cta { padding: 40px 20px; border-radius: 20px; }
  .cta h2 { font-size: 28px; }
  .store { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
.card-box.spaced { margin-top: 24px; }

/* ---------- Safety and law page ---------- */

.muted { color: var(--muted); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a {
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-low); border: 1px solid var(--outline-soft);
}
.toc a:hover { background: var(--brand-soft); }
section.country {
  border: 1px solid var(--outline-soft); border-radius: 16px; padding: 4px 24px 12px; margin: 16px 0;
  background: var(--surface-low);
}
section.country h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 18px 0 4px; }
section.country .code {
  font-size: 13px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 8px; padding: 2px 8px;
  letter-spacing: 0.5px;
}
p.law-name { color: var(--muted); font-size: 15px; font-style: italic; margin: 0 0 8px; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--outline-soft); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table.law-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
table.law-table th, table.law-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--outline-soft); }
table.law-table thead th { background: var(--surface-low); font-weight: 800; position: sticky; top: 0; }
table.law-table tbody th { font-weight: 800; white-space: nowrap; }
table.law-table td:last-child { color: var(--muted); font-size: 13.5px; }
table.law-table tr:target { background: var(--amber-soft); }
@media (max-width: 700px) { section.country { padding: 2px 16px 10px; } }

/* ---------- Blog ---------- */

main.blog { max-width: 860px; margin: 32px auto 48px; padding: 0 16px; background: none; box-shadow: none; }
main.blog .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.post-list { display: grid; gap: 16px; }
.post-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; }
.post-card h2 { margin: 4px 0 8px; font-size: 22px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { margin: 0 0 12px; color: var(--muted); }
.post-date { font-size: 14px; font-weight: 700; color: var(--amber) !important; margin: 0 !important; }
.read-more { font-weight: 800; text-decoration: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.post-body { font-size: 18px; }
.post-body h2 { margin-top: 32px; }
.post-body img { border-radius: 14px; margin: 16px 0; }
.post-back { margin-top: 40px; font-weight: 700; }
@media (max-width: 700px) { .post-card { padding: 20px; } main.blog { margin-top: 20px; } }
