/* =========================================================
   Star Pet Center — Landing site
   Shared design system (matches the Flutter app tokens)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --blue-900: #06305c;
  --blue-800: #034b8d;
  --blue-700: #0a5c9e;
  --blue-600: #0e69aa;
  --blue-500: #1f6feb;
  --blue-400: #4b90f0;
  --blue-50:  #eaf2fd;

  --gold-600: #d99400;
  --gold-500: #f5a800;
  --gold-400: #ffc533;
  --gold-300: #ffd977;
  --gold-50:  #fff6e0;

  --ink:      #10182b;
  --ink-2:    #3c4658;
  --muted:    #737e91;
  --line:     #e7ebf2;
  --bg:       #f6f8fb;
  --cream:    #fff9ee;
  --white:    #ffffff;

  --grad-blue: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  --grad-hero: linear-gradient(160deg, #ffffff 0%, #f2f7fe 45%, #fff6e2 100%);

  --sh-sm: 0 2px 8px rgba(6, 48, 92, .06);
  --sh-md: 0 10px 30px rgba(6, 48, 92, .09);
  --sh-lg: 0 24px 60px rgba(6, 48, 92, .16);
  --sh-gold: 0 14px 34px rgba(245, 168, 0, .32);
  --sh-blue: 0 14px 34px rgba(14, 105, 170, .32);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --container: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* `hidden` must beat the component rules below (e.g. `.stores { display:flex }`),
   otherwise hiding a block with the attribute silently does nothing. */
[hidden] { display: none !important; }

::selection { background: var(--gold-400); color: var(--blue-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #eaeef5; }
::-webkit-scrollbar-thumb { background: #c2cddd; border-radius: 99px; border: 3px solid #eaeef5; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-600); }

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head.is-start { text-align: start; margin-inline-start: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid #d5e5fa;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .2px;
}
.eyebrow--gold { background: var(--gold-50); color: var(--gold-600); border-color: #ffe6ad; }
.eyebrow--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

h1, h2, h3, h4 { line-height: 1.28; font-weight: 800; letter-spacing: -.2px; }
h2.title { font-size: clamp(28px, 4vw, 44px); color: var(--blue-900); }
h3.title { font-size: clamp(22px, 2.6vw, 30px); color: var(--blue-900); }
.title .accent { color: var(--gold-500); }
.title .accent-blue { color: var(--blue-600); }

.lead { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.muted { color: var(--muted); }

/* Underline swash under headings */
.swash { position: relative; display: inline-block; }
.swash::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  background: var(--gold-400);
  opacity: .38;
  border-radius: 99px;
  z-index: -1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { box-shadow: 0 20px 40px rgba(14,105,170,.42); }

.btn--gold { background: var(--grad-gold); color: var(--blue-900); box-shadow: var(--sh-gold); }
.btn--gold:hover { box-shadow: 0 20px 40px rgba(245,168,0,.44); }

.btn--ghost { background: #fff; color: var(--blue-800); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }

.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--blue-800); }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 17px 36px; font-size: 16.5px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-900);
  color: #fff;
  padding: 11px 22px;
  border-radius: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 26px rgba(6,48,92,.25);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(6,48,92,.34); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store-btn .txt small { font-size: 11px; opacity: .8; font-weight: 500; }
.store-btn .txt strong { font-size: 16px; font-weight: 700; }
.store-btn--outline { background: transparent; border: 2px solid rgba(255,255,255,.4); box-shadow: none; }
.store-btn--outline:hover { background: #fff; color: var(--blue-900); }

/* ---------- Decorative ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.paw-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%230e69aa' fill-opacity='0.05'%3E%3Cellipse cx='36' cy='44' rx='11' ry='9'/%3E%3Cellipse cx='22' cy='28' rx='5.5' ry='7' transform='rotate(-20 22 28)'/%3E%3Cellipse cx='33' cy='22' rx='5.5' ry='7.5'/%3E%3Cellipse cx='45' cy='24' rx='5.5' ry='7.5' transform='rotate(15 45 24)'/%3E%3Cellipse cx='94' cy='96' rx='9' ry='7.5'/%3E%3Cellipse cx='83' cy='83' rx='4.5' ry='6' transform='rotate(-20 83 83)'/%3E%3Cellipse cx='92' cy='78' rx='4.5' ry='6'/%3E%3Cellipse cx='102' cy='80' rx='4.5' ry='6' transform='rotate(15 102 80)'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.scrolled { height: 66px; box-shadow: 0 6px 26px rgba(6,48,92,.08); border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 44px; height: 44px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-10deg) scale(1.06); }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name b { font-size: 17px; font-weight: 800; color: var(--blue-800); letter-spacing: .2px; }
.brand__name span { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .2s, background .2s;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--blue-600); background: var(--blue-50); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-800);
  transition: border-color .2s, color .2s, transform .2s;
}
.lang-toggle:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.lang-toggle svg { width: 17px; height: 17px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; }
.burger span { display: block; width: 19px; height: 2px; background: var(--blue-800); margin: 4px auto; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-900);
  color: #cfdcec;
  padding: 76px 0 0;
  position: relative;
  overflow: hidden;
}
.footer .paw-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cellipse cx='36' cy='44' rx='11' ry='9'/%3E%3Cellipse cx='22' cy='28' rx='5.5' ry='7' transform='rotate(-20 22 28)'/%3E%3Cellipse cx='33' cy='22' rx='5.5' ry='7.5'/%3E%3Cellipse cx='45' cy='24' rx='5.5' ry='7.5' transform='rotate(15 45 24)'/%3E%3Cellipse cx='94' cy='96' rx='9' ry='7.5'/%3E%3Cellipse cx='83' cy='83' rx='4.5' ry='6' transform='rotate(-20 83 83)'/%3E%3Cellipse cx='92' cy='78' rx='4.5' ry='6'/%3E%3Cellipse cx='102' cy='80' rx='4.5' ry='6' transform='rotate(15 102 80)'/%3E%3C/g%3E%3C/svg%3E"); }
.footer .container { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer h3 { color: #fff; font-size: 16.5px; margin-bottom: 20px; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: #b9c9dd; transition: color .2s, padding-inline-start .2s; font-size: 15px; }
.footer__links a:hover { color: var(--gold-400); padding-inline-start: 6px; }
.footer__brand .brand__name b { color: #fff; }
.footer__brand .brand__name span { color: #93a8c2; }
.footer__about { margin: 18px 0 22px; color: #a9bcd2; font-size: 15px; max-width: 360px; }

.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; font-size: 15px; }
.contact-list .ic {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: rgba(255,255,255,.09);
  display: grid; place-items: center; color: var(--gold-400);
}
.contact-list .ic svg { width: 17px; height: 17px; }
.contact-list a:hover { color: var(--gold-400); }

.socials { display: flex; gap: 11px; margin-top: 6px; }
.socials a {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255,255,255,.09);
  display: grid; place-items: center;
  transition: background .25s, transform .25s, color .25s;
  color: #fff;
}
.socials a:hover { background: var(--gold-400); color: var(--blue-900); transform: translateY(-4px); }
.socials svg { width: 19px; height: 19px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #93a8c2;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__bottom a:hover { color: var(--gold-400); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-end: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-blue);
  z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Legal pages (terms / privacy) ---------- */
.legal-hero {
  background: var(--grad-blue);
  color: #fff;
  padding: calc(var(--nav-h) + 64px) 0 92px;
  position: relative;
  overflow: hidden;
}
.legal-hero .paw-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cellipse cx='36' cy='44' rx='11' ry='9'/%3E%3Cellipse cx='22' cy='28' rx='5.5' ry='7' transform='rotate(-20 22 28)'/%3E%3Cellipse cx='33' cy='22' rx='5.5' ry='7.5'/%3E%3Cellipse cx='45' cy='24' rx='5.5' ry='7.5' transform='rotate(15 45 24)'/%3E%3Cellipse cx='94' cy='96' rx='9' ry='7.5'/%3E%3Cellipse cx='83' cy='83' rx='4.5' ry='6' transform='rotate(-20 83 83)'/%3E%3Cellipse cx='92' cy='78' rx='4.5' ry='6'/%3E%3Cellipse cx='102' cy='80' rx='4.5' ry='6' transform='rotate(15 102 80)'/%3E%3C/g%3E%3C/svg%3E"); }
.legal-hero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.legal-hero p { color: #d3e3f6; max-width: 640px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #b8cee8; margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs .sep { opacity: .55; }
.legal-updated {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  padding: 8px 18px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; margin-top: 22px;
}
.legal-updated svg { width: 15px; height: 15px; }

.legal-wrap { padding: 72px 0 96px; }
.legal-layout { display: grid; grid-template-columns: 268px 1fr; gap: 40px; align-items: start; }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
}
.toc h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); margin-bottom: 16px; font-weight: 800; }
.toc li a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-inline-start: 3px solid transparent;
  transition: all .2s;
}
.toc li a:hover, .toc li a.active { background: var(--blue-50); color: var(--blue-700); border-inline-start-color: var(--blue-500); font-weight: 700; }

.legal-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--sh-md);
}
.legal-doc h2 {
  font-size: 23px; color: var(--blue-900);
  margin: 44px 0 16px;
  display: flex; align-items: center; gap: 13px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h2 .num {
  width: 36px; height: 36px; flex: none;
  border-radius: 11px;
  background: var(--blue-50); color: var(--blue-700);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
}
.legal-doc h3 { font-size: 17.5px; color: var(--blue-800); margin: 26px 0 10px; }
.legal-doc p { color: var(--ink-2); margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 18px; }
.legal-doc ul li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.legal-doc ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}
.legal-doc a.inline { color: var(--blue-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }

.callout {
  display: flex; gap: 16px;
  background: var(--gold-50);
  border: 1px solid #ffe6ad;
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 26px 0;
}
.callout .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-400); color: var(--blue-900); display: grid; place-items: center; }
.callout .ic svg { width: 20px; height: 20px; }
.callout p { margin: 0; font-size: 15px; color: #7a5600; }
.callout strong { color: #5c4100; }
.callout--blue { background: var(--blue-50); border-color: #d5e5fa; }
.callout--blue .ic { background: var(--blue-600); color: #fff; }
.callout--blue p { color: #274a70; }
.callout--blue strong { color: var(--blue-800); }

.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: 15px; }
.data-table th, .data-table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--bg); color: var(--blue-900); font-weight: 800; font-size: 14.5px; }
.data-table td { color: var(--ink-2); }
.data-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-doc { padding: 30px 22px; }
}

/* ---------- Responsive (shared) ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px 20px 26px;
    box-shadow: 0 20px 40px rgba(6,48,92,.14);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform .38s var(--ease);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .header__actions .btn--primary { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .container { width: min(100% - 32px, var(--container)); }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .stores { width: 100%; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
