/* [Claude] Pupzy waitlist styles. Brand: Brick, Cream, Forest, Golden yellow. */
:root {
  --brick: #C9492B;
  --brick-dark: #B03D22;
  --cream: #F4F3E1;
  --paper: #FFFDF4;
  --sand: #ECE3CC;
  --forest: #235127;
  --forest-deep: #1A3D1D;
  --yellow: #FFC41D;
  --line: rgba(35, 81, 39, 0.16);
  --muted: #4F6B4F;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow: 0 1px 2px rgba(26, 61, 29, 0.06), 0 12px 32px -12px rgba(26, 61, 29, 0.22);
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Jost", "Futura", system-ui, sans-serif;
  --font-display-en: "Archivo Black", "Arial Black", sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); font-size: 18px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.2; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--font-display-en); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
html[lang="en"] h3 { font-family: var(--font-en); font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
.latin { color: var(--brick); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10;
  background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand img { height: 42px; width: auto; }
.lang {
  font: 600 15px/1 var(--font-en); color: var(--forest);
  background: transparent; border: 1.5px solid var(--forest); border-radius: 999px;
  padding: 10px 16px; cursor: pointer; transition: background .2s, color .2s;
}
html[lang="en"] .lang { font-family: var(--font-ar); }
.lang:hover { background: var(--forest); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gutter) 56px;
  display: grid; gap: 24px;
}
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #EFE6D3; height: 236px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }
.float {
  position: absolute; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.2; box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.f1 { background: var(--yellow); color: var(--forest); top: 18px; inset-inline-start: 16px; }
.f2 { background: var(--forest); color: var(--cream); top: 64px; inset-inline-end: 16px; animation-delay: -1.6s; }
.f3 { background: var(--paper); color: var(--brick); bottom: 20px; inset-inline-start: 16px; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--forest);
  font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brick); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }

.chip { margin-top: 2px; }
.hero-copy h1 { margin-top: 12px; font-size: clamp(2.05rem, 8.4vw, 3.7rem); }
html[lang="en"] .hero-copy h1 { font-size: clamp(2.1rem, 8.6vw, 3.9rem); }
.lede { margin-top: 14px; font-size: 1.06rem; color: var(--muted); max-width: 34em; }

/* ---------- Form card ---------- */
.card {
  margin-top: 24px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}
.label { display: block; font-weight: 700; margin-bottom: 8px; }
.field input {
  width: 100%; height: 58px; padding: 0 18px;
  font: 500 17px/1 var(--font-en); color: var(--forest);
  background: #fff; border: 2px solid #D8D4BC; border-radius: var(--radius-md);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #9AA593; }
.field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(255, 196, 29, .55); }
.field input[aria-invalid="true"] { border-color: var(--brick); }
.error { min-height: 1.4em; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--brick-dark); }

.pets { border: 0; padding: 0; margin: 6px 0 18px; }
.pets legend { padding: 0; font-weight: 700; margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.pet-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pet-row label { position: relative; cursor: pointer; display: grid; }
.pet-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pet-row span {
  display: block; text-align: center; white-space: nowrap; padding: 9px 4px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.pet-row label:hover span { border-color: var(--forest); }
.pet-row input:checked + span { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pet-row input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pet-row input:active + span { transform: scale(.96); }

.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { display: flex; justify-content: center; }
.turnstile:not(:empty) { margin-bottom: 12px; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 58px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--brick); color: #FFF8EE; text-decoration: none; cursor: pointer;
  font: 700 18px/1.2 var(--font-ar);
  box-shadow: 0 10px 22px -10px rgba(201, 73, 43, .8);
  transition: background .2s, transform .12s, box-shadow .2s;
}
html[lang="en"] .btn { font-family: var(--font-en); font-weight: 600; letter-spacing: .01em; }
.btn:hover { background: var(--brick-dark); }
.btn:active { transform: scale(.98); }
.btn[disabled] { cursor: progress; }
.btn .spinner {
  display: none; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255, 248, 238, .35); border-top-color: #FFF8EE; animation: spin .7s linear infinite;
}
.btn.loading .btn-label { visibility: hidden; }
.btn.loading .spinner { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-forest { background: var(--forest); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(35, 81, 39, .7); width: auto; }
.btn-forest:hover { background: var(--forest-deep); }
.fine { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.5; }

.done { text-align: center; padding: 10px 4px 6px; outline: none; }
.done-icon {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--forest); display: grid; place-items: center;
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.done h2 { font-size: 1.6rem; margin-bottom: 8px; }
.done p { margin-top: 4px; }
.done strong { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 15px; }
.link { margin-top: 14px; background: none; border: 0; color: var(--forest); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Features ---------- */
.features { padding: 40px 0 28px; }
.section-head { max-width: var(--wrap); margin: 0 auto 22px; padding: 0 var(--gutter); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--brick); letter-spacing: .04em; margin-bottom: 6px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.section-head h2 { font-size: clamp(1.8rem, 6.4vw, 2.8rem); }

.feat-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 320px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px;
  scrollbar-width: none;
}
.feat-track::-webkit-scrollbar { display: none; }
.feat {
  scroll-snap-align: center; border-radius: var(--radius-lg); padding: 22px 22px 0;
  display: flex; flex-direction: column; overflow: hidden; min-height: 470px;
}
.feat h3 { font-size: 1.42rem; margin-top: 14px; }
.feat p { margin-top: 8px; font-size: 1rem; }
.feat-tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tone-sand { background: var(--sand); }
.tone-sand .feat-tag { background: var(--yellow); }
.tone-forest { background: var(--forest); color: var(--cream); }
.tone-forest .feat-tag { background: var(--yellow); color: var(--forest); }
.tone-brick { background: var(--brick); color: #FFF8EE; }
.tone-brick p { font-weight: 600; }
.tone-brick .feat-tag { background: #FFF8EE; color: var(--brick-dark); }
.tone-yellow { background: var(--yellow); }
.tone-yellow .feat-tag { background: var(--forest); color: var(--cream); }

.phone {
  margin: auto auto 0; padding-top: 22px; width: 74%; max-width: 230px;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.phone img {
  width: 100%; border: 7px solid #13241A; border-bottom: 0;
  border-radius: 30px 30px 0 0; background: #fff;
  aspect-ratio: 332 / 470; object-fit: cover; object-position: top;
  box-shadow: 0 -6px 30px -10px rgba(0, 0, 0, .35);
}
.feat:hover .phone { transform: translateY(-8px); }
.screens-note { max-width: var(--wrap); margin: 2px auto 0; padding: 0 var(--gutter); font-size: 13px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps {
  margin-top: 48px; background: var(--forest); color: var(--cream);
  background-image: url("/assets/pattern.svg"), url("/assets/pattern.svg");
  background-repeat: repeat-x; background-size: auto 120px;
  background-position: 0 -60px, 0 calc(100% + 60px);
}
.steps-inner { max-width: var(--wrap); margin: 0 auto; padding: 108px var(--gutter); }
.steps h2 { font-size: clamp(1.8rem, 6.4vw, 2.8rem); }
.step-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.step-list li {
  background: var(--forest); border: 1px solid rgba(244, 243, 225, .18);
  border-radius: 22px; padding: 22px;
}
.num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); color: var(--forest); font: 400 19px/1 var(--font-display-en);
}
.step-list h3 { margin-top: 14px; font-size: 1.3rem; }
.step-list p { margin-top: 6px; opacity: .88; }

/* ---------- Closing ---------- */
.closing {
  max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 72px;
  display: grid; gap: 28px; align-items: center;
}
.closing-photo { border-radius: var(--radius-lg); overflow: hidden; height: 340px; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.closing-copy h2 { font-size: clamp(1.8rem, 6.4vw, 2.6rem); margin-bottom: 12px; }
details { border-bottom: 1.5px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23235127' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--muted); }
.closing .btn-forest { margin-top: 28px; }

/* ---------- Footer ---------- */
.foot {
  background: var(--forest-deep); color: var(--cream); text-align: center;
  padding: 48px var(--gutter) calc(36px + env(safe-area-inset-bottom));
}
.foot-logo { width: 150px; margin: 0 auto; }
.foot-line { margin-top: 10px; opacity: .8; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.foot-links a { text-decoration: none; font-weight: 600; border-bottom: 1.5px solid rgba(244, 243, 225, .35); padding-bottom: 2px; }
.foot-links a:hover { border-color: var(--yellow); }
.copy { margin-top: 22px; font-size: 13px; opacity: .6; }

/* ---------- Simple pages (privacy, confirmed) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.page h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 18px 0 16px; }
.page h2 { font-size: 1.3rem; margin: 28px 0 8px; }
html[lang="en"] .page h2 { font-family: var(--font-en); font-weight: 600; }
.page p, .page li { color: var(--muted); }
.page ul { padding-inline-start: 1.2em; }
.center { text-align: center; }
.confirm-art {
  width: 120px; height: 120px; margin: 24px auto 0; border-radius: 50%;
  background: var(--forest); display: grid; place-items: center;
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.share-row .btn { width: auto; }
.back-link { margin-top: 28px; }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); box-shadow: none; }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .brand img { height: 50px; }
  .card { padding: 28px 28px 24px; }
  .hero-photo { height: 420px; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .closing-photo { height: 460px; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; padding-top: 18px; padding-bottom: 72px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-photo { grid-column: 2; grid-row: 1; height: 660px; }
  .f1 { top: 32px; inset-inline-start: 28px; }
  .f2 { top: 96px; inset-inline-end: 28px; }
  .f3 { bottom: 34px; inset-inline-start: 28px; }
  .float { font-size: 16px; padding: 9px 18px; }
  .feat-track {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto;
    overflow: visible; max-width: var(--wrap); margin: 0 auto; padding-bottom: 0;
  }
  .feat { min-height: 520px; }
  .closing { grid-template-columns: 0.9fr 1fr; gap: 64px; }
  .closing-photo { height: 560px; }
}

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