/* ===================================================
   PawFriend — style.css
   Mobile first. Aman dari overflow. Radius 16–24px.
   =================================================== */

:root{
  --orange:#FF6B35;
  --orange-d:#E8541F;
  --orange-soft:#FFF1EA;
  --navy:#14213D;
  --ink:#2D3436;
  --grey:#78839B;
  --line:#E9EDF5;
  --bg:#FDFDFB;
  --soft:#F5F7FB;
  --white:#fff;
  --green:#2ECC71;
  --green-d:#1FA757;
  --amber:#F5A623;
  --red:#E74C3C;
  --wa:#25D366;
  --wa-d:#1DA851;

  --r-card:22px;
  --r-btn:16px;
  --sh:0 10px 30px rgba(20,33,61,.08);
  --sh-sm:0 4px 14px rgba(20,33,61,.06);
  --sh-cta:0 10px 24px rgba(255,107,53,.32);
  --sh-wa:0 10px 24px rgba(37,211,102,.30);

  --f-head:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  padding-bottom:88px;
}

img{max-width:100%;display:block;height:auto}

h1,h2,h3{font-family:var(--f-head);color:var(--navy);margin:0;line-height:1.2}

p{margin:0}

button{font-family:inherit}

.wrap{width:100%;max-width:560px;margin:0 auto;padding:0 20px}

[hidden]{display:none !important}

:focus-visible{outline:3px solid var(--orange);outline-offset:2px;border-radius:8px}

/* ---------- TOPBAR ---------- */
.topbar{
  position:sticky;top:0;z-index:60;
  background:rgba(253,253,251,.92);
  backdrop-filter:saturate(1.6) blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-in{display:flex;align-items:center;justify-content:space-between;height:58px}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none}
.brand-mark{font-size:20px}
.brand-name{font-family:var(--f-head);font-weight:800;font-size:18px;color:var(--navy);letter-spacing:-.3px}
.topbar-wa{
  display:inline-flex;align-items:center;gap:7px;
  text-decoration:none;font-family:var(--f-head);font-weight:600;font-size:14px;
  color:var(--wa-d);background:#E9FBF0;
  padding:9px 15px;border-radius:999px;
}
.wa-dot{width:8px;height:8px;border-radius:50%;background:var(--wa);box-shadow:0 0 0 0 rgba(37,211,102,.6);animation:pulse 2.4s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}

/* ---------- HERO ---------- */
.hero{
  padding:44px 0 40px;
  background:
    radial-gradient(900px 340px at 82% -12%, #FFE3D6 0%, rgba(255,227,214,0) 60%),
    linear-gradient(180deg,#FFF9F5 0%,var(--bg) 100%);
}
.hero-kicker{
  font-size:13px;font-weight:600;color:var(--orange-d);
  background:var(--orange-soft);display:inline-block;
  padding:6px 13px;border-radius:999px;margin-bottom:18px;
}
.hero-title{font-size:38px;font-weight:800;letter-spacing:-1.2px}
.hero-title .hl{color:var(--orange)}
.hero-sub{margin-top:16px;color:var(--grey);font-size:16px;max-width:46ch}
.hero-cta{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.hero-proof{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.chip-proof{
  font-size:13px;font-weight:500;color:var(--navy);
  background:var(--white);border:1px solid var(--line);
  padding:7px 13px;border-radius:999px;box-shadow:var(--sh-sm);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:52px;padding:14px 22px;
  border:0;border-radius:var(--r-btn);
  font-family:var(--f-head);font-weight:600;font-size:16px;
  cursor:pointer;text-decoration:none;text-align:center;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active{transform:scale(.975)}
.btn-lg{min-height:56px;font-size:17px}
.btn-block{width:100%}
.btn-primary{background:var(--orange);color:#fff;box-shadow:var(--sh-cta)}
.btn-primary:hover{background:var(--orange-d)}
.btn-wa{background:var(--wa);color:#fff;box-shadow:var(--sh-wa)}
.btn-wa:hover{background:var(--wa-d)}
.btn-ghost{background:var(--white);color:var(--navy);border:1.5px solid var(--line);box-shadow:var(--sh-sm)}
.btn-ghost:hover{border-color:var(--orange);color:var(--orange-d)}
.btn-light{background:#fff;color:var(--navy);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.btn-link{background:none;color:var(--grey);font-weight:500;font-size:14px;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.btn-link:hover{color:var(--navy)}
.btn[disabled],.btn.is-off{opacity:.45;pointer-events:none;box-shadow:none}

/* ---------- SECTIONS ---------- */
.section{padding:48px 0}
.section-soft{background:var(--soft)}
.sec-title{font-size:27px;font-weight:700;letter-spacing:-.7px}
.sec-sub{margin-top:9px;color:var(--grey);font-size:15px}

/* ---------- BENEFITS ---------- */
.benefit-grid{display:grid;gap:14px;margin-top:24px}
.benefit{
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--r-card);padding:22px;box-shadow:var(--sh-sm);
}
.benefit-ico{font-size:26px;line-height:1;margin-bottom:12px}
.benefit h3{font-size:18px;font-weight:600;margin-bottom:7px}
.benefit p{color:var(--grey);font-size:15px}

/* ---------- STEPS ---------- */
.steps{
  display:flex;gap:6px;list-style:none;margin:24px 0 18px;padding:0;
}
.step{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;
  font-size:11px;font-weight:600;color:var(--grey);font-family:var(--f-head);
}
.step span{
  width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;font-size:13px;
  background:var(--white);border:1.5px solid var(--line);color:var(--grey);
  transition:.2s;
}
.step.is-now span{background:var(--orange);border-color:var(--orange);color:#fff}
.step.is-now{color:var(--orange-d)}
.step.is-done span{background:var(--green);border-color:var(--green);color:#fff}
.step.is-done{color:var(--green-d)}

/* ---------- CARD ---------- */
.card{
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--r-card);padding:22px;box-shadow:var(--sh);
  margin-bottom:16px;
}
.card-h{font-size:19px;font-weight:700;margin-bottom:16px}

/* ---------- PET PICK ---------- */
.pet-pick{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pet-btn{
  border:1.5px solid var(--line);background:var(--white);
  border-radius:18px;padding:20px 10px;cursor:pointer;
  font-family:var(--f-head);font-weight:600;font-size:15px;color:var(--navy);
  display:flex;flex-direction:column;align-items:center;gap:8px;
  transition:.18s;
}
.pet-btn span{font-size:32px;line-height:1}
.pet-btn:hover{border-color:var(--orange)}
.pet-btn.on{border-color:var(--orange);background:var(--orange-soft);box-shadow:var(--sh-sm)}

/* ---------- SERVICE ---------- */
.svc-list{display:grid;gap:12px}
.svc{
  display:flex;align-items:center;gap:14px;text-align:left;width:100%;
  border:1.5px solid var(--line);background:var(--white);
  border-radius:18px;padding:15px;cursor:pointer;transition:.18s;
}
.svc:hover{border-color:var(--orange)}
.svc.on{border-color:var(--orange);background:var(--orange-soft)}
.svc-ico{font-size:26px;flex:0 0 auto;line-height:1}
.svc-mid{flex:1;min-width:0}
.svc-n{font-family:var(--f-head);font-weight:600;font-size:15px;color:var(--navy)}
.svc-d{font-size:13px;color:var(--grey);margin-top:2px}
.svc-p{font-family:var(--f-head);font-weight:700;font-size:15px;color:var(--orange-d);white-space:nowrap}

/* ---------- DAY STRIP ---------- */
.daystrip{
  display:flex;gap:9px;overflow-x:auto;padding:2px 2px 10px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.daystrip::-webkit-scrollbar{display:none}
.day{
  flex:0 0 auto;width:62px;padding:11px 4px;
  border:1.5px solid var(--line);background:var(--white);
  border-radius:16px;cursor:pointer;text-align:center;transition:.18s;
}
.day b{display:block;font-family:var(--f-head);font-size:18px;color:var(--navy);line-height:1.2}
.day i{display:block;font-style:normal;font-size:11px;color:var(--grey);font-weight:600}
.day u{display:block;font-size:10px;color:var(--grey);text-decoration:none;margin-top:3px}
.day.on{border-color:var(--orange);background:var(--orange-soft)}
.day.on b,.day.on i{color:var(--orange-d)}
.day.off{opacity:.42;pointer-events:none}

.legend{display:flex;flex-wrap:wrap;gap:14px;margin:6px 0 14px;font-size:12px;color:var(--grey)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.lg{width:10px;height:10px;border-radius:3px;display:inline-block}
.lg-free{background:var(--green)}
.lg-few{background:var(--amber)}
.lg-full{background:var(--red)}

/* ---------- SLOTS ---------- */
.slot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.slot{
  border:1.5px solid var(--line);background:var(--white);
  border-radius:14px;padding:12px 4px;cursor:pointer;
  font-family:var(--f-head);font-weight:600;font-size:15px;color:var(--navy);
  display:flex;flex-direction:column;align-items:center;gap:3px;transition:.18s;
}
.slot small{font-size:10px;font-weight:600}
.slot.free small{color:var(--green-d)}
.slot.few{border-color:#FCE3B4;background:#FFFBF2}
.slot.few small{color:#B87A05}
.slot.full{background:#FFF3F2;border-color:#FAD9D6;color:#C7736B;cursor:not-allowed;opacity:.8}
.slot.full small{color:#C0392B}
.slot.on{border-color:var(--orange);background:var(--orange);color:#fff;box-shadow:var(--sh-cta)}
.slot.on small{color:#FFE6DA}

/* ---------- FORM ---------- */
.field{margin-bottom:17px}
.field label{
  display:block;font-family:var(--f-head);font-weight:600;
  font-size:14px;color:var(--navy);margin-bottom:7px;
}
.field label b{color:var(--orange)}
.field .soft{font-weight:500;color:var(--grey)}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--f-body);font-size:16px;color:var(--ink);
  background:var(--white);border:1.5px solid var(--line);
  border-radius:14px;padding:14px 15px;transition:.18s;
  -webkit-appearance:none;appearance:none;
}
.field select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378839B' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;background-position:right 15px center;padding-right:42px;
}
.field textarea{resize:vertical;min-height:92px}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,107,53,.14);
}
.field input.bad,.field textarea.bad{border-color:var(--red);box-shadow:0 0 0 4px rgba(231,76,60,.10)}
.field input.good{border-color:#BDEBCF}
.hint{font-size:12px;color:var(--grey);margin-top:6px}
.err{font-size:12.5px;color:var(--red);margin-top:6px;font-weight:500;display:none}
.err.show{display:block}

/* ---------- SUMMARY ---------- */
.card-sum{border-color:#FFD9C7}
.sum{margin:0;display:grid;gap:11px}
.sum .row{display:flex;justify-content:space-between;gap:14px;font-size:15px}
.sum .row dt{color:var(--grey);flex:0 0 auto}
.sum .row dd{margin:0;text-align:right;font-weight:600;color:var(--navy);min-width:0;word-break:break-word}

.addon{margin-top:20px;padding-top:18px;border-top:1px dashed var(--line)}
.addon-t{font-family:var(--f-head);font-weight:600;font-size:15px;color:var(--navy);margin-bottom:11px}
.addon-list{display:grid;gap:9px}
.addon-item{
  display:flex;align-items:center;gap:11px;
  border:1.5px solid var(--line);border-radius:14px;padding:11px 13px;cursor:pointer;transition:.18s;
}
.addon-item.on{border-color:var(--orange);background:var(--orange-soft)}
.addon-item input{width:20px;height:20px;flex:0 0 auto;accent-color:var(--orange)}
.addon-item .an{flex:1;font-size:14px;font-weight:500;color:var(--navy)}
.addon-item .ap{font-family:var(--f-head);font-weight:700;font-size:14px;color:var(--orange-d)}

.total{
  display:flex;justify-content:space-between;align-items:center;
  margin:20px 0 16px;padding:16px;border-radius:16px;background:var(--soft);
}
.total span{font-size:14px;color:var(--grey);font-weight:500}
.total b{font-family:var(--f-head);font-size:23px;color:var(--navy)}
.fineprint{font-size:12px;color:var(--grey);text-align:center;margin-top:10px}

/* ---------- SUCCESS ---------- */
.card-ok{text-align:center;border-color:#C8F0D8;background:linear-gradient(180deg,#F4FFF8 0%,#fff 55%)}
.ok-ico{font-size:46px;line-height:1;margin-bottom:12px}
.ok-h{font-size:22px;font-weight:700;color:var(--green-d)}
.ok-p{color:var(--grey);font-size:15px;margin-top:9px}
.ok-card{margin:20px 0}
.ok-btns{display:grid;gap:10px}

/* ---------- KARTU ANABUL ---------- */
.kartu-list{display:grid;gap:14px;margin-top:22px}
.pcard{
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--r-card);padding:20px;box-shadow:var(--sh);
}
.pcard-top{display:flex;align-items:center;gap:13px;margin-bottom:16px}
.pcard-ava{
  width:52px;height:52px;border-radius:16px;flex:0 0 auto;
  display:grid;place-items:center;font-size:26px;background:var(--orange-soft);
}
.pcard-n{font-family:var(--f-head);font-weight:700;font-size:18px;color:var(--navy);line-height:1.25}
.pcard-r{font-size:13px;color:var(--grey)}
.pstat{display:flex;align-items:flex-start;gap:11px;padding:11px 0;border-top:1px solid var(--line)}
.pstat-i{font-size:17px;line-height:1.4;flex:0 0 auto}
.pstat-l{font-size:12.5px;color:var(--grey)}
.pstat-v{font-family:var(--f-head);font-weight:600;font-size:14.5px;color:var(--navy)}
.pstat-v.ok{color:var(--green-d)}
.pstat-v.warn{color:#B87A05}
.pstat-v.late{color:var(--red)}
.pcard-btns{display:grid;gap:9px;margin-top:15px}

/* ---------- KATALOG ---------- */
.chips{
  display:flex;gap:8px;overflow-x:auto;padding:4px 2px 14px;margin-top:20px;
  scrollbar-width:none;
}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;border:1.5px solid var(--line);background:var(--white);
  border-radius:999px;padding:9px 17px;cursor:pointer;
  font-family:var(--f-head);font-weight:600;font-size:13.5px;color:var(--navy);
  min-height:40px;transition:.18s;
}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}

.prod-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
.prod{
  background:var(--white);border:1px solid var(--line);
  border-radius:20px;overflow:hidden;box-shadow:var(--sh-sm);
  display:flex;flex-direction:column;
}
.prod-img{
  aspect-ratio:1/1;display:grid;place-items:center;font-size:44px;
  background:linear-gradient(140deg,#FFF3EC 0%,#F3F6FC 100%);
}
.prod-b{padding:13px;display:flex;flex-direction:column;gap:7px;flex:1}
.prod-n{font-family:var(--f-head);font-weight:600;font-size:14px;color:var(--navy);line-height:1.35}
.prod-p{font-family:var(--f-head);font-weight:700;font-size:15px;color:var(--orange-d);margin-top:auto}
.prod .btn{min-height:42px;font-size:13.5px;padding:10px;border-radius:12px;box-shadow:none}
.prod.habis .prod-img{filter:grayscale(1);opacity:.55}
.badge-habis{
  font-size:11px;font-weight:600;color:var(--grey);background:var(--soft);
  border-radius:999px;padding:8px;text-align:center;font-family:var(--f-head);
}

/* ---------- RIWAYAT ---------- */
.hist{display:grid;gap:12px;margin-top:22px}
.hitem{
  display:flex;gap:13px;background:var(--white);border:1px solid var(--line);
  border-radius:18px;padding:15px;box-shadow:var(--sh-sm);
}
.hitem-d{
  flex:0 0 auto;width:52px;text-align:center;background:var(--orange-soft);
  border-radius:13px;padding:8px 4px;
}
.hitem-d b{display:block;font-family:var(--f-head);font-size:17px;color:var(--orange-d);line-height:1.15}
.hitem-d i{font-style:normal;font-size:10.5px;color:var(--orange-d);font-weight:600}
.hitem-m{flex:1;min-width:0}
.hitem-t{font-family:var(--f-head);font-weight:600;font-size:15px;color:var(--navy)}
.hitem-s{font-size:13px;color:var(--grey);margin-top:2px}
.hitem-b{
  display:inline-block;margin-top:7px;font-size:11px;font-weight:600;
  background:#FFF6E8;color:#B87A05;padding:4px 10px;border-radius:999px;font-family:var(--f-head);
}

/* ---------- EMPTY ---------- */
.empty{
  text-align:center;padding:34px 20px;background:var(--white);
  border:1.5px dashed var(--line);border-radius:var(--r-card);margin-top:20px;
}
.empty-ico{font-size:38px;line-height:1;margin-bottom:12px}
.empty-t{font-family:var(--f-head);font-weight:600;font-size:16px;color:var(--navy)}
.empty-p{font-size:14px;color:var(--grey);margin:8px auto 18px;max-width:36ch}

/* ---------- TESTI ---------- */
.testi-grid{display:grid;gap:13px;margin:22px 0 26px}
.testi{background:var(--white);border:1px solid var(--line);border-radius:var(--r-card);padding:19px;box-shadow:var(--sh-sm)}
.testi-s{color:var(--amber);font-size:13px;letter-spacing:1px}
.testi-q{font-size:15px;color:var(--ink);margin:9px 0 13px}
.testi-w{display:flex;align-items:center;gap:10px}
.testi-av{width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-family:var(--f-head);font-weight:600;font-size:13px;flex:0 0 auto}
.testi-n{font-family:var(--f-head);font-weight:600;font-size:14px;color:var(--navy);line-height:1.3}
.testi-p{font-size:12px;color:var(--grey)}

/* ---------- STORE ---------- */
.store-line{color:var(--grey);font-size:14.5px}
.hours{list-style:none;padding:0;margin:16px 0}
.hours li{display:flex;justify-content:space-between;font-size:14px;padding:9px 0;border-bottom:1px solid var(--line)}
.hours li:last-child{border-bottom:0}
.hours li span{color:var(--grey)}
.hours li b{font-weight:600;color:var(--navy);font-family:var(--f-head);font-size:13.5px}
.store-btns{display:grid;gap:10px;margin-top:6px}

/* ---------- CTA END ---------- */
.cta-end{
  padding:52px 0;text-align:center;color:#fff;
  background:linear-gradient(140deg,var(--navy) 0%,#23365F 100%);
}
.cta-end h2{color:#fff;font-size:26px;font-weight:700;letter-spacing:-.6px}
.cta-end p{color:#B9C4DA;margin:11px 0 24px;font-size:15px}

/* ---------- FOOTER ---------- */
.foot{padding:34px 0 40px;text-align:center;background:var(--bg);border-top:1px solid var(--line)}
.foot-brand{font-family:var(--f-head);font-weight:800;font-size:18px;color:var(--navy)}
.foot-sub{font-size:13.5px;color:var(--grey);margin-top:4px}
.foot-copy{font-size:12px;color:#A6AFC2;margin-top:14px}

/* ---------- FAB ---------- */
.fab{
  position:fixed;right:16px;bottom:18px;z-index:70;
  width:58px;height:58px;border-radius:50%;
  background:var(--wa);color:#fff;
  display:grid;place-items:center;text-decoration:none;
  box-shadow:0 12px 26px rgba(37,211,102,.42);
  transform:translateY(90px);opacity:0;
  transition:transform .28s ease,opacity .28s ease;
}
.fab.show{transform:translateY(0);opacity:1}
.fab:active{transform:scale(.93)}

/* ---------- TOAST ---------- */
.toast{
  position:fixed;left:50%;bottom:92px;z-index:90;
  transform:translate(-50%,24px);opacity:0;pointer-events:none;
  background:var(--navy);color:#fff;
  font-size:14px;font-weight:500;
  padding:13px 20px;border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
  max-width:calc(100vw - 40px);text-align:center;
  transition:transform .25s ease,opacity .25s ease;
}
.toast.show{transform:translate(-50%,0);opacity:1}

/* ---------- RESPONSIVE ---------- */
@media (min-width:380px){
  .hero-title{font-size:42px}
}
@media (min-width:640px){
  .wrap{max-width:720px}
  .hero{padding:64px 0 56px}
  .hero-title{font-size:52px}
  .hero-cta{flex-direction:row}
  .hero-cta .btn{flex:1}
  .benefit-grid{grid-template-columns:repeat(3,1fr)}
  .prod-grid{grid-template-columns:repeat(3,1fr)}
  .slot-grid{grid-template-columns:repeat(4,1fr)}
  .testi-grid{grid-template-columns:repeat(3,1fr)}
  .kartu-list{grid-template-columns:repeat(2,1fr)}
  .sec-title{font-size:32px}
  .store-btns{grid-template-columns:1fr 1fr}
  .ok-btns{grid-template-columns:1fr 1fr}
  .ok-btns .btn:last-child{grid-column:1/-1}
}
@media (min-width:900px){
  .wrap{max-width:900px}
  .prod-grid{grid-template-columns:repeat(4,1fr)}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
  .fab{transform:none;opacity:1}
}
