/* Layout: sticky slim header, hero (copy left, phone right), journey strip, section tabs with step blocks (phones beside numbered steps), FAQ, help band. Brand tokens from sifututor.my (light only, like the site). */
:root{
  --ink:#00262A; --body:#566476; --muted:#6B7888; --blue:#3B4EE2; --blue-dark:#2E3EC0;
  --lav:#EAEEFC; --lav-2:#F5F7FE; --line:#E1E6F5; --orange:#F05123; --red:#E8502D; --white:#FFFFFF; --black:#0B0B0F;
  --f:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--white);color:var(--body);font:400 16px/1.6 var(--f)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:30;background:var(--white)}
a{color:var(--blue)}
b,strong{color:var(--ink);font-weight:600}
h1,h2,h3{color:var(--ink);font-family:var(--f);text-wrap:balance;margin:0}
.wrap{max-width:1120px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}

/* header */
.hdr{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:saturate(1.2) blur(6px)}
.hdr .wrap{display:flex;align-items:center;gap:14px;padding-block:12px}
.hdr img{height:26px;width:auto;display:block}
.hdr .name{font-size:13px;color:var(--muted);border-left:1px solid var(--line);padding-left:12px;white-space:nowrap}
.hdr .sp{flex:1}
.hdr .lang{font-size:13px;font-weight:600;text-decoration:none;color:var(--blue);border:1px solid var(--line);border-radius:999px;padding:6px 14px;white-space:nowrap}
.hdr .lang:hover{background:var(--lav)}

/* hero */
.hero{background:linear-gradient(180deg,var(--lav-2),var(--white))}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:40px;align-items:center;padding-block:56px 48px}
.eyebrow{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);background:var(--lav);border-radius:999px;padding:5px 12px;margin-bottom:16px}
.hero h1{font-size:clamp(30px,4.6vw,48px);line-height:1.12;font-weight:600;letter-spacing:-.01em}
.hero h1 em{font-style:normal;color:var(--blue)}
.hero .lead{font-size:17px;max-width:34em;margin:18px 0 24px}
.stores{display:flex;flex-wrap:wrap;gap:12px}
.store{display:inline-flex;align-items:center;gap:10px;background:var(--black);color:var(--white);text-decoration:none;border-radius:12px;padding:9px 18px 9px 14px;min-width:168px}
.store svg{width:24px;height:24px;flex:none;fill:currentColor}
.store span{display:flex;flex-direction:column;line-height:1.15}
.store small{font-size:11px;opacity:.85}
.store strong{color:var(--white);font-size:17px;font-weight:600}
.appnote{font-size:13px;color:var(--muted);margin-top:14px;max-width:36em}
.hero .shot{justify-self:center;width:min(100%,300px)}
.hero .shot>div{width:100%}
.hero .shot .phone{width:100%;border-width:9px;border-radius:44px}
.hero .shot .phone img{border-radius:35px}

/* phone frame + red boxes */
.phone{position:relative;width:min(100%,250px);aspect-ratio:390/844;border:7px solid var(--ink);border-radius:36px;background:var(--lav-2);box-shadow:0 18px 40px rgba(0,38,42,.14);cursor:zoom-in;padding:0;display:block}
.phone img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:29px;display:block}
.phone .hl{position:absolute;border:2.5px solid var(--red);border-radius:7px;pointer-events:none}
.phone .hl b{position:absolute;left:-14px;top:-14px;width:22px;height:22px;border-radius:50%;background:var(--blue);color:var(--white);font:600 11.5px/22px var(--f);text-align:center;box-shadow:0 0 0 2px var(--white)}
.cap{font-size:13px;font-weight:600;color:var(--ink);text-align:center;margin-top:10px}

/* journey */
.journey{padding-block:56px 24px}
.journey h2,.guide h2,.faq h2{font-size:clamp(24px,3vw,32px);font-weight:600}
.jlist{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;counter-reset:j}
.jlist li{background:var(--lav);border-radius:16px;padding:18px 16px;counter-increment:j;min-width:0}
.jlist li::before{content:counter(j);display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--blue);color:var(--white);font-weight:600;font-size:14px;margin-bottom:10px}
.jlist h3{font-size:16px;font-weight:600;margin-bottom:4px}
.jlist p{font-size:14px;margin:0}

/* guide */
.guide{padding-block:40px 24px}
.guide .intro{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:baseline;justify-content:space-between}
.guide .intro p{margin:0;font-size:14px;color:var(--muted)}
.tabs{position:sticky;top:calc(env(safe-area-inset-top,0px) + 51px);z-index:10;background:var(--white);padding-block:14px;margin-top:12px;border-bottom:1px solid var(--line)}
.tabs .row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;align-items:center}
.tabs .row::-webkit-scrollbar{display:none}
.tabs .lbl{font-size:13px;color:var(--muted);white-space:nowrap;margin-right:4px}
.tab{font:600 14px var(--f);color:var(--ink);background:var(--lav);border:0;border-radius:999px;padding:9px 16px;white-space:nowrap;cursor:pointer;display:inline-flex;gap:8px;align-items:center;text-decoration:none}
.tab i{font-style:normal;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--white);color:var(--blue);font-size:11px}
.tab[aria-selected="true"]{background:var(--blue);color:var(--white)}
.tab[aria-selected="true"] i{color:var(--blue)}
.sec{padding-top:28px;scroll-margin-top:130px}
.sec>header h2{font-size:clamp(22px,2.6vw,28px)}
.sec>header p{margin:4px 0 0}
.step{display:grid;grid-template-columns:482px minmax(0,1fr);gap:32px;align-items:start;padding-block:28px;border-bottom:1px solid var(--line);scroll-margin-top:130px}
.step:last-of-type{border-bottom:0}
.step .phones{display:flex;gap:18px;justify-content:center}
.step .phones>div{width:210px}
.step .phones.one>div{width:230px}
.step h3{font-size:20px;font-weight:600;margin-bottom:14px}
.co{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.co li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;font-size:15.5px;line-height:1.55}
.co .n{width:28px;height:28px;border-radius:50%;background:var(--blue);color:var(--white);font-weight:600;font-size:13px;display:grid;place-items:center}
.tip{margin-top:16px;background:var(--lav);border-radius:14px;padding:12px 16px;font-size:14.5px}
.secnext{display:flex;justify-content:flex-end;padding-block:18px 8px}
.btn{display:inline-flex;align-items:center;gap:8px;font:600 15px var(--f);background:var(--blue);color:var(--white);border:0;border-radius:8px;padding:12px 20px;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--blue-dark)}
.btn.ghost{background:var(--white);color:var(--blue);border:1.5px solid var(--blue)}
.js .sec[hidden]{display:none}

/* faq */
.faq{padding-block:48px 24px}
.faq .list{margin-top:18px;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;padding:18px 4px;font-weight:600;color:var(--ink);font-size:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;line-height:1;color:var(--blue);flex:none}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin:0 4px 18px;max-width:46em}

/* help band */
.help{background:var(--lav);margin-top:40px}
.help .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding-block:44px}
.help h2{font-size:clamp(22px,2.6vw,30px);font-weight:600}
.help p{margin:6px 0 0}
.help .ways{display:flex;flex-wrap:wrap;gap:12px}
.help .hours{font-size:14px;color:var(--muted)}
.help .num{font-variant-numeric:tabular-nums;user-select:all}

footer{padding-block:28px;font-size:13px;color:var(--muted)}
footer .wrap{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between}
footer a{color:var(--muted)}

/* lightbox */
#lb{position:fixed;inset:0;z-index:50;background:rgba(0,20,24,.88);display:none;align-items:center;justify-content:center;padding:max(20px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(20px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
#lb.on{display:flex}
#lb .in{position:relative;height:min(88vh,900px);aspect-ratio:390/844;max-width:100%}
#lb .in img{width:100%;height:100%;object-fit:contain;border-radius:18px;display:block;background:var(--white)}
#lb .hl{position:absolute;border:3px solid var(--red);border-radius:8px}
#lb .hl b{position:absolute;left:-16px;top:-16px;width:26px;height:26px;border-radius:50%;background:var(--blue);color:var(--white);font:600 13px/26px var(--f);text-align:center;box-shadow:0 0 0 2px var(--white)}
#lb button{position:absolute;top:max(14px,env(safe-area-inset-top,0px));right:max(14px,env(safe-area-inset-right,0px));font:600 14px var(--f);background:var(--white);color:var(--ink);border:0;border-radius:999px;padding:8px 16px;cursor:pointer}

@media (max-width:900px){
  .hero .wrap{grid-template-columns:minmax(0,1fr);gap:28px;padding-block:36px 32px}
  .hero .shot{display:none}
  .jlist{grid-template-columns:repeat(2,minmax(0,1fr))}
  .step{grid-template-columns:minmax(0,1fr);gap:20px}
  .help .wrap{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:520px){
  .hdr .name{display:none}
  .jlist{grid-template-columns:minmax(0,1fr);gap:10px}
  .jlist li{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px;padding:14px}
  .jlist li::before{margin:0;grid-row:span 2}
  .step .phones>div,.step .phones.one>div{width:calc(50% - 9px)}
  .step .phones.one>div{width:62%}
  .step .phones{justify-content:center}
  .phone{border-width:5px;border-radius:26px}
  .phone img{border-radius:21px}
  .phone .hl b{width:19px;height:19px;font-size:10px;line-height:19px;left:-11px;top:-11px}
  .co li{font-size:15px}
  .journey{padding-block:36px 8px}
  .guide{padding-block:28px 16px}
  .tabs .lbl{display:none}
  .tabs{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent)}
  .tabs .row{padding-right:18px}
  .tab{padding:11px 16px}
  footer .wrap span:last-child{display:flex;flex-wrap:wrap;gap:0 4px}
  footer a{display:inline-block;padding-block:12px}
  .step{padding-block:22px}
}

/* ===== v3: home-page language. Faces ringing a centred hero, step cards with 3D icons, colour-block panels behind phones. ===== */
:root{--sky-soft:#E8F1FF}
.eyebrow{display:block;background:none;padding:0;margin:0 0 10px;color:var(--blue);font-size:15px;font-weight:600;letter-spacing:0;text-transform:none}
.c{text-align:center;margin-left:auto;margin-right:auto}
.sub{font-size:16px;color:var(--body);margin:8px 0 0;max-width:40em}
.sub.c{margin:8px auto 0}
.help .ways .btn{flex-wrap:wrap;justify-content:center;column-gap:6px;row-gap:0}
.hdr{background:rgba(255,255,255,.97)}

.hero{position:relative;overflow:hidden;background:var(--white)}
.hero .wrap.hero-in{position:relative;z-index:1;display:block;max-width:760px;text-align:center;padding-block:88px 72px}
.hero h1{font-size:clamp(32px,5vw,56px);line-height:1.08;font-weight:600}
.hero h1 em{color:var(--ink)}
.hero .lead{margin:20px auto 28px;max-width:36em}
.cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.btn.ghost{border:1.5px solid var(--ink);color:var(--ink)}
.btn.ghost:hover{background:var(--lav)}
.dl{margin-top:26px;display:flex;flex-direction:column;align-items:center;gap:10px}
.dl .stores{justify-content:center}
.appnote{margin:0 auto;text-align:center}
.faces{position:absolute;inset:0;pointer-events:none}
.face{position:absolute;border-radius:50%;object-fit:cover;box-shadow:0 10px 24px rgba(0,38,42,.12);border:4px solid var(--white)}
/* faces stay inside the side gutters (hero text is max 760px wide); below 1100px they become one row */
.face.f1{width:150px;height:150px;left:5%;top:10%}
.face.f2{width:110px;height:110px;left:1.5%;top:48%}
.face.f3{width:86px;height:86px;left:12%;top:74%}
.face.f4{width:64px;height:64px;left:12%;top:44%}
.face.f5{width:120px;height:120px;right:4%;top:6%}
.face.f6{width:72px;height:72px;right:12%;top:36%}
.face.f7{width:58px;height:58px;right:2%;top:46%}
.face.f8{width:140px;height:140px;right:7%;top:62%}
/* audit fixes */
:root{--muted:#536173; --hdr-h:60px}
.hdr .wrap{min-height:var(--hdr-h);padding-block:0}
.hdr a:first-child{display:inline-flex;align-items:center;min-height:44px}
.hdr .lang{min-height:44px;display:inline-flex;align-items:center}
.tabs{top:calc(env(safe-area-inset-top,0px) + var(--hdr-h))}
.sec,.step{scroll-margin-top:150px}
.guide .intro p,.tabs .lbl{color:var(--body)}
.how{padding-top:32px}
.flist a{border-bottom:1px solid var(--line);border-radius:0}
.flist li:last-child a{border-bottom:0}
.flist a:hover{border-radius:12px}
.flist i{opacity:.55}
.foot-in a.store{display:inline-flex;width:max-content;flex-wrap:nowrap;align-items:center}
.foot-in a.store:hover{color:var(--white);opacity:.9}
@media (prefers-reduced-motion:no-preference){
  .face{animation:float 7s ease-in-out infinite}
  .face.f2,.face.f6,.face.f8{animation-delay:-3.5s}
  @keyframes float{50%{transform:translateY(-8px)}}
}

/* 4 steps (home page "3 Easy Steps" cards) */
.how{padding-block:64px 40px;background:var(--white)}
.how h2,.feat h2,.faq h2,.help h2{font-size:clamp(26px,3.2vw,36px);font-weight:600}
.steps4{list-style:none;margin:36px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.steps4 li{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:22px 20px 24px;min-width:0;box-shadow:0 6px 18px rgba(0,38,42,.04)}
.steps4 .top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.steps4 .pill{font-size:12px;font-weight:600;color:var(--white);background:var(--blue);border-radius:6px;padding:3px 10px}
.steps4 img{width:56px;height:56px;object-fit:contain}
.steps4 h3{font-size:18px;font-weight:600;color:var(--blue);margin-bottom:8px}
.steps4 p{font-size:14.5px;margin:0}

/* what you can do (home page "Why Parents Love Our App") */
.feat{padding-block:48px 56px}
.feat-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;align-items:center}
.art img{width:100%;height:auto;display:block}
.flist{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.flist a{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:12px;align-items:center;text-decoration:none;color:var(--ink);padding:10px 12px;border-radius:12px;font-size:15.5px}
.flist a:hover{background:var(--lav)}
.flist svg{width:26px;height:26px;color:var(--blue)}
.flist i{font-style:normal;color:var(--blue);opacity:.0;transition:opacity .15s}
.flist a:hover i,.flist a:focus-visible i{opacity:1}

/* guide: colour-block panel behind the phones, alternating like the home page cut-outs */
.guide{background:var(--lav-2);padding-block:56px 40px}
.guide .tabs{background:var(--lav-2)}
.step{border-bottom:0;padding-block:26px}
.step .phones{background:var(--lav);border-radius:22px;padding:24px 22px;position:relative}
/* all phone panels lavender, the home page's card colour (no cream/yellow tint: not used on sifututor.my) */
.step>div:last-child{background:var(--white);border-radius:18px;padding:24px 24px 22px;box-shadow:0 6px 18px rgba(0,38,42,.05)}
.tip{background:var(--sky-soft)}
.sec>header{padding-bottom:6px}

/* faq: lavender band like the home page */
.faq{background:var(--lav);padding-block:64px 56px}
.faq .list{max-width:820px;margin:26px auto 0;background:var(--white);border:0;border-radius:18px;padding:6px 22px}
.faq details:last-child{border-bottom:0}

/* help: two columns like "Ready to Book a Trusted Malaysian Tutor?" */
.help{background:var(--white);margin-top:0}
.help .wrap.help-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;align-items:center;padding-block:64px}
.help .ways{margin-top:18px}

/* footer like the home page */
footer{border-top:1px solid var(--line);padding-block:40px 0}
.foot-in{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px}
.foot-in h4{margin:0 0 10px;color:var(--ink);font-size:14px;font-weight:600}
.foot-in a{display:block;color:var(--muted);text-decoration:none;padding-block:4px}
.foot-in a:hover{color:var(--blue)}
.foot-in p{margin:10px 0 0;font-size:13px}
.foot-in .stores{flex-direction:column;gap:8px}
.foot-in .store{min-width:0;padding:7px 14px 7px 12px;color:var(--white)}
.foot-in .store strong{font-size:15px}
.foot-base{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:28px;padding-block:16px;font-size:13px}
.foot-base a{color:var(--muted)}

@media (max-width:1100px){
  .faces{position:relative;inset:auto;display:flex;justify-content:center;padding-top:28px}
  .face{position:static;width:58px!important;height:58px!important;margin-left:-12px;animation:none!important;border-width:3px}
  .face:first-child{margin-left:0}
  .hero .wrap.hero-in{padding-block:22px 44px}
}
@media (max-width:900px){
  .steps4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feat-in,.help .wrap.help-in{grid-template-columns:minmax(0,1fr);gap:28px}
  .feat .art,.help .art{max-width:440px;margin:0 auto}
  .foot-in{grid-template-columns:1fr 1fr}
  /* faces become one overlapping row above the eyebrow */
  .faces{position:relative;inset:auto;display:flex;justify-content:center;padding-top:28px}
  .face{position:static;width:58px!important;height:58px!important;margin-left:-12px;animation:none!important;border-width:3px}
  .face:first-child{margin-left:0}
  .face.f4,.face.f6,.face.f7{display:block}
  .hero .wrap.hero-in{padding-block:22px 44px}
}
@media (max-width:520px){
  .face.f7,.face.f8{display:none!important}
  .steps4{grid-template-columns:minmax(0,1fr)}
  .steps4 li{padding:18px 18px 20px}
  .steps4 img{width:48px;height:48px}
  .cta .btn{width:100%;justify-content:center}
  .step .phones{padding:16px 12px}
  .step>div:last-child{padding:18px 16px}
  .foot-in{grid-template-columns:1fr 1fr}
  .foot-in>div:first-child,.foot-in>div:last-child{grid-column:1 / -1}
  .foot-in a{padding-block:11px}
  .foot-in .stores{flex-direction:row;flex-wrap:wrap}
  .help .ways .btn{width:100%}
}
