/* ALAGA launch page — colors match the ALAGA app (Bantay) */
:root {
  --bg: #fffaf5;
  --bg-alt: #f4ebe1;
  --card: #ffffff;
  --ink: #241a13;
  --ink-soft: #7a6b5d;
  --line: #ead9c9;
  --primary: #e8734a;
  --primary-strong: #cf5a31;
  --primary-tint: #fde6dc;
  --teal: #0f766e;
  --teal-tint: #d7efec;
  --error: #b3261e;
  --error-tint: #fdecea;
  --radius: 18px;
  --display: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 560px; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: #0b5e58; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 10%, var(--primary-tint) 0, transparent 45%),
    radial-gradient(circle at 5% 90%, var(--teal-tint) 0, transparent 40%),
    var(--bg);
  padding: 40px 0 56px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); margin-bottom: 20px; }
.logo-paw { width: 44px; height: 44px; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: .04em; color: var(--ink); line-height: 1; padding-top: 6px; }
.logo-img { width: min(340px, 86vw); height: auto; margin-bottom: 18px; }
.logo-plate { display: inline-block; background: var(--bg); border-radius: 16px; padding: 10px 16px; margin-bottom: 10px; }
.logo-plate img { display: block; width: 180px; height: auto; }
.logo-sm .logo-paw { width: 28px; height: 28px; }
.logo-sm .logo-word { font-size: 1.6rem; color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-tint); color: var(--teal);
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.hero h1 { font-size: clamp(2.2rem, 10vw, 3.8rem); font-weight: 800; }
.accent { color: var(--primary); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34ch; margin: 0 auto 28px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }

/* ---------- Species ---------- */
.species {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.species li {
  position: relative; overflow: hidden; aspect-ratio: 1;
  border-radius: var(--radius); background: var(--bg-alt);
  box-shadow: 0 4px 14px rgba(36, 26, 19, .08);
}
.species li img { display: block; width: 100%; height: 100%; object-fit: cover; }
.species li span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 12px; color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.2;
  background: linear-gradient(transparent, rgba(20, 14, 10, .78));
}
.species li:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* ---------- Features tour (phone previews that scroll by themselves) ---------- */
.eyebrow.eyebrow-dark { color: var(--primary-strong); }
.tour .sub { margin-bottom: 16px; }

.tour-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; margin-bottom: 8px;
  background: rgba(244, 235, 225, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tour-nav::-webkit-scrollbar { display: none; }
.tour-nav a {
  flex: none; padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.tour-nav a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.feature {
  scroll-margin-top: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 36px 0; border-bottom: 1px dashed var(--line);
}
.feature-text { width: 100%; max-width: 440px; }
.num { font-family: var(--display); font-weight: 800; color: var(--primary); font-size: 1rem; letter-spacing: .05em; }
.feature h3 { font-size: clamp(1.5rem, 6vw, 2rem); margin: 2px 0 4px; }
.feature-lead { font-size: 1.1rem; color: var(--teal); font-weight: 700; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal); font-weight: 800; font-size: .75rem;
  display: grid; place-items: center;
}

/* phone frame */
.phone {
  --w: 260px;
  position: relative; width: var(--w); flex: none;
  padding: 10px; border-radius: 42px;
  background: #1f1a17;
  box-shadow: 0 24px 50px rgba(36, 26, 19, .22), inset 0 0 0 2px #3a322d;
}
.phone::before { /* speaker notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 12px; background: #1f1a17; z-index: 2;
}
.screen {
  position: relative; overflow: hidden;
  height: calc((var(--w) - 20px) * 844 / 390);
  border-radius: 32px; background: #faf6ee;
}
.screen img {
  display: block; width: 100%; height: auto;
  pointer-events: none; user-select: none;
  will-change: transform;
}
.feature.playing .screen img, .showcase-item.playing .screen img { animation: phone-scroll var(--dur, 12s) ease-in-out infinite; }
@keyframes phone-scroll {
  0%, 10%   { transform: translateY(0); }
  70%, 82%  { transform: translateY(calc(-1 * var(--dist, 0px))); }
  100%      { transform: translateY(0); }
}

.phone-pair { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pair-item { display: flex; flex-direction: column; align-items: center; }
.pair-label { font-weight: 800; font-size: .95rem; margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.pair-label span { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .8rem; }

.feature-soon {
  flex-direction: row; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-top: 28px;
}
.feature-soon h3 { font-size: 1.3rem; }
.feature-soon p { margin: 0; color: var(--ink-soft); }
.soon-icon { font-size: 2.6rem; }
.fine { font-size: .8rem; color: var(--ink-soft); margin: 14px 0 0; }

@media (min-width: 760px) {
  .tour-nav { justify-content: center; }
  .feature { flex-direction: row; justify-content: center; gap: 64px; padding: 56px 0; }
  .feature:nth-of-type(even) { flex-direction: row-reverse; }
  .phone { --w: 290px; }
  .feature.feature-pair { flex-direction: column; gap: 32px; }
  .feature-pair .feature-text { max-width: 640px; text-align: center; }
  .feature-pair .ticks { text-align: left; max-width: 520px; margin: 0 auto; }
  .phone-pair { flex-direction: row; align-items: flex-start; gap: 48px; }
  .phone-pair .phone { --w: 270px; }
  .feature-soon, .feature-soon:nth-of-type(even) { flex-direction: row; max-width: 560px; margin: 28px auto 0; padding: 22px; gap: 20px; }
}

/* ---------- Partners ---------- */
.partners { background: var(--teal); color: #fff; }
.partners .sub { color: #d2ece9; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .8rem; color: #ffd3c2; margin-bottom: 8px; }
.perks-title { color: #ffd3c2; margin-top: 36px; }

/* Shop owner showcase: shop page -> business inbox */
.showcase { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 8px; }
.showcase-item { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 320px; }
.step-label { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin: 0 0 2px; display: inline-flex; align-items: center; gap: 8px; }
.step-label span { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font-size: .95rem; }
.step-desc { color: #d2ece9; font-size: .95rem; margin-bottom: 18px; }
.showcase .phone { background: #0b2f2c; box-shadow: 0 24px 50px rgba(0, 0, 0, .3), inset 0 0 0 2px #1d4b47; }
.showcase .phone::before { background: #0b2f2c; }
.showcase-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #ffd3c2; font-weight: 700; font-size: .85rem; }
.showcase-arrow svg { width: 34px; height: 34px; transform: rotate(90deg); }
.fine-light { color: #b9ddd9; text-align: center; }
@media (min-width: 760px) {
  .showcase { flex-direction: row; justify-content: center; align-items: center; gap: 28px; }
  .showcase-arrow svg { transform: none; }
}
.perks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.perks li {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 14px 16px;
}
.perks strong { display: block; }
.perks span:not(.check) { color: #d2ece9; font-size: .95rem; }
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800;
}

/* ---------- Form ---------- */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px;
}
.tab {
  min-height: 46px; border: 0; border-radius: 999px; background: transparent;
  font: 700 .95rem var(--body); color: var(--ink-soft); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--primary); color: #fff; }

.form, .success {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px;
}
.form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.form small { font-weight: 400; color: var(--ink-soft); }
.req { color: var(--primary); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%; margin-top: 6px;
  font: 400 16px var(--body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.invalid { border-color: var(--error) !important; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: -6px 0 14px; }

fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip { margin: 0; font-weight: 600; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin: -4px 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-strong); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-tint); }
.chips.invalid-group .chip span { border-color: var(--error); }

.form .consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: .88rem; line-height: 1.45; color: var(--ink-soft);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
}
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
.consent a { color: var(--teal); font-weight: 700; }
.consent.invalid-consent { border-color: var(--error); background: var(--error-tint); }

/* Privacy notice */
.privacy { background: var(--bg-alt); padding: 8px 0 32px; }
.privacy details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.privacy summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.privacy details[open] summary::after { content: "−"; }
.privacy-body { padding: 0 18px 18px; font-size: .92rem; color: var(--ink-soft); }
.privacy-body h4 { color: var(--ink); font-size: .95rem; margin: 14px 0 4px; }
.privacy-body p { margin: 0 0 6px; }
.privacy-updated { font-size: .8rem; margin-top: 12px !important; }
.copy a { color: #d9cabd; }

.form .other-field { margin-top: 12px; }
fieldset .other-field { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { margin: 0; font-size: .95rem; }
.msg:not(:empty) { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--error-tint); color: var(--error); }

.success { text-align: center; padding: 32px 16px; }
.success:focus { outline: none; }
.success-icon { width: 56px; height: 56px; color: var(--primary); display: block; margin: 0 auto 8px; }
.success p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #e9ddd1; padding: 40px 0 32px; text-align: center; }
.footer .logo { margin-bottom: 6px; }
.tagline { font-family: var(--display); font-size: 1.1rem; color: var(--primary); }
.contact-note { color: #d9cabd; max-width: 34ch; margin: 0 auto 18px; }
.contact-note a { color: #fff; }
.copy { font-size: .85rem; color: #a8978a; margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .cta-row { flex-direction: row; max-width: none; justify-content: center; }
  .species { grid-template-columns: repeat(5, 1fr); }
  .species li:last-child { grid-column: auto; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perks li { flex-direction: column; }
  .form, .success { padding: 28px; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 80px; }
}
@media (min-width: 960px) {
  .logo-img { width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .feature.playing .screen img, .showcase-item.playing .screen img { animation: none; }
  .screen { overflow-y: auto; }
  .screen img { pointer-events: auto; }
}

/* ============ Why ALAGA page ============ */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 245, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar-logo img { display: block; height: 34px; width: auto; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

.why-hero {
  text-align: center; padding: 44px 0 40px;
  background:
    radial-gradient(circle at 85% 10%, var(--primary-tint) 0, transparent 45%),
    radial-gradient(circle at 5% 90%, var(--teal-tint) 0, transparent 40%),
    var(--bg);
}
.why-hero h1 { font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 800; }
.why-hero .lead { max-width: 46ch; }
.who-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 8px auto 0; }
.who-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; text-decoration: none; box-shadow: 0 8px 22px rgba(36, 26, 19, .14); }
.who-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.who-card:hover img { transform: scale(1.04); }
.who-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; text-align: left; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.15; background: linear-gradient(transparent, rgba(20, 14, 10, .82)); }
.who-card small { display: block; font-family: var(--body); font-weight: 600; font-size: .78rem; opacity: .85; }

.why-block { scroll-margin-top: 60px; }
.why-block h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.benefits { display: grid; gap: 14px; margin-top: 8px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.b-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-tint); display: grid; place-items: center; margin-bottom: 12px; }
.b-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-pain { font-style: italic; color: var(--ink-soft); font-size: .95rem; margin: 0 0 4px; }
.benefit h3 { font-size: 1.25rem; margin-bottom: 6px; }
.benefit p:last-child { margin: 0; color: var(--ink-soft); }

.early { margin-top: 26px; background: var(--teal-tint); border-radius: var(--radius); padding: 22px; }
.early h3 { font-size: 1.35rem; }
.early .ticks { margin-bottom: 18px; }
.early .ticks li { color: var(--ink); }

.why-partners { background: var(--teal); color: #fff; }
.why-partners .sub { color: #d2ece9; }
.why-partners .benefit { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.why-partners .b-icon { background: rgba(255, 255, 255, .14); }
.why-partners .b-icon svg { stroke: #ffd3c2; }
.why-partners .b-pain { color: #ffd3c2; }
.why-partners .benefit p:last-child { color: #d2ece9; }
.early-dark { background: rgba(0, 0, 0, .18); }
.early-dark h3, .early-dark h4 { color: #ffd3c2; }
.early-dark .ticks li { color: #fff; }
.early-dark .ticks li::before { background: var(--primary); color: #fff; }
.steps { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; font-family: var(--display); }

.why-close { text-align: center; }
.close-logo { width: min(260px, 70vw); height: auto; margin-bottom: 14px; }
.why-close .cta-row { margin: 0 auto; }
.back-link { margin-top: 18px; }
.back-link a { font-weight: 700; }

/* links to the Why page from the home page */
.why-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--teal); }
.partners .why-link { color: #ffd3c2; }

@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .early { padding: 30px; }
}
@media (min-width: 1000px) {
  #owners .benefits { grid-template-columns: repeat(4, 1fr); }
  .why-partners .benefits { grid-template-columns: repeat(3, 1fr); }
}
