/*
Theme Name: Hasnivo
Theme URI: https://hasnivo.tech
Author: Hasnivo
Description: Simple two-page theme (Home and Contact) for Hasnivo, a private WhatsApp workspace for teams.
Version: 1.0.0
Text Domain: hasnivo
*/

:root{
  --ink:#10302f;
  --teal:#0f5c54;
  --teal-dark:#0a423c;
  --mint:#d9ede4;
  --paper:#f4f7f5;
  --white:#ffffff;
  --amber:#e9a23b;
  --line:#cfddd7;
  --muted:#4d6663;
  --display:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif;
  --body:'Source Sans 3','Segoe UI',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--teal)}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
h1,h2,h3{font-family:var(--display);line-height:1.12;margin:0 0 .5em;letter-spacing:-.015em;color:var(--ink)}
h1{font-size:clamp(2.2rem,5.5vw,3.8rem);font-weight:700}
h2{font-size:clamp(1.6rem,3.4vw,2.3rem);font-weight:700}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1em;max-width:62ch}
.wrap{width:min(1120px,100% - 2.5rem);margin-inline:auto}

/* Header */
.site-header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:68px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ink);font-family:var(--display);font-weight:700;font-size:1.25rem}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--teal);color:#fff;font-size:.95rem;letter-spacing:.02em}
.nav{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap}
.nav a{color:var(--ink);text-decoration:none;font-weight:600}
.nav a:hover{color:var(--teal)}
.btn{display:inline-block;padding:.7rem 1.25rem;border-radius:10px;background:var(--teal);color:#fff!important;font-weight:600;text-decoration:none;border:2px solid var(--teal);font-family:var(--body);font-size:1rem;cursor:pointer}
.btn:hover{background:var(--teal-dark);border-color:var(--teal-dark)}
.btn.ghost{background:transparent;color:var(--teal)!important}
.btn.ghost:hover{background:var(--mint)}

/* Hero */
.hero{padding:clamp(2.5rem,7vw,5.5rem) 0 clamp(2.5rem,6vw,4.5rem)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.hero .kicker{color:var(--teal);font-weight:600;margin-bottom:.8rem}
.hero .lead{font-size:1.2rem;color:var(--muted)}
.hero .actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.6rem}
.hero .note{font-size:.95rem;color:var(--muted);margin-top:1rem}

/* Inbox illustration */
.inbox{background:var(--white);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 18px 40px -22px rgba(16,48,47,.45)}
.inbox-bar{display:flex;gap:.4rem;padding:.7rem 1rem;border-bottom:1px solid var(--line);background:var(--mint)}
.inbox-bar i{width:10px;height:10px;border-radius:50%;background:var(--teal);opacity:.35}
.inbox-body{display:grid;grid-template-columns:36% 64%}
.inbox-list{border-right:1px solid var(--line);padding:.5rem 0;font-size:.9rem}
.inbox-list div{padding:.65rem .9rem;border-bottom:1px solid #edf2f0;line-height:1.3}
.inbox-list div b{display:block;font-weight:600}
.inbox-list div span{color:var(--muted);font-size:.82rem}
.inbox-list .on{background:var(--mint)}
.thread{padding:1rem;display:flex;flex-direction:column;gap:.55rem;font-size:.92rem;background:#eef4f1}
.msg{max-width:84%;padding:.5rem .75rem;border-radius:12px;line-height:1.4}
.msg.in{background:var(--white);align-self:flex-start;border-top-left-radius:3px}
.msg.out{background:#cbe9d9;align-self:flex-end;border-top-right-radius:3px}
.msg small{display:block;font-size:.72rem;color:var(--muted);margin-bottom:.1rem;font-weight:600}
.pill{align-self:center;font-size:.78rem;background:var(--amber);color:#3b2a08;padding:.2rem .7rem;border-radius:99px;font-weight:600}

/* Sections */
section.block{padding:clamp(2.5rem,6vw,4.5rem) 0}
section.block.tint{background:var(--white);border-block:1px solid var(--line)}
.split{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(1.5rem,4vw,3.5rem)}
.feature-list{list-style:none;margin:0;padding:0}
.feature-list li{padding:1.1rem 0;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:1rem}
.feature-list li:last-child{border-bottom:1px solid var(--line)}
.feature-list h3{margin:0}
.feature-list p{margin:0;color:var(--muted)}
.feature-list em{font-style:normal;font-size:.85rem;color:var(--teal);font-weight:600;display:block;margin-top:.2rem}
.steps{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.steps li{counter-increment:s;border-top:3px solid var(--teal);padding-top:1rem}
.steps li::before{content:counter(s);display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--teal);color:#fff;font-weight:700;margin-bottom:.6rem}
.steps p{color:var(--muted);margin:0}
.privacy{background:var(--mint);border-radius:16px;padding:clamp(1.4rem,3vw,2.2rem)}
.privacy ul{margin:.5rem 0 1rem;padding-left:1.2rem}
.cta{text-align:center;padding:clamp(2.5rem,6vw,4rem) 0}
.cta p{margin-inline:auto}

/* Contact */
.contact{padding:clamp(2.5rem,6vw,4.5rem) 0}
.contact .wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.5rem,4vw,3.5rem)}
.contact dl{margin:1.5rem 0 0}
.contact dt{font-weight:600;color:var(--muted);font-size:.95rem}
.contact dd{margin:0 0 1rem;font-size:1.15rem}
form.mailform{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:clamp(1.2rem,3vw,2rem)}
form.mailform label{display:block;font-weight:600;margin-bottom:.3rem}
form.mailform input,form.mailform textarea{width:100%;padding:.7rem .8rem;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:var(--paper);margin-bottom:1rem;color:var(--ink)}
form.mailform input:focus,form.mailform textarea:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px var(--mint)}
form.mailform small{display:block;color:var(--muted);margin-top:.8rem;font-size:.9rem}

/* Generic pages */
.page-body{padding:3rem 0 4rem}

/* Footer */
.site-footer{background:var(--ink);color:#d3e3de;padding:2.2rem 0 2rem;font-size:.95rem}
.site-footer a{color:#fff}
.site-footer .wrap{display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.site-footer p{margin:0 0 .4rem;max-width:56ch}
.foot-links{display:flex;gap:1.2rem;flex-wrap:wrap}

@media (max-width:860px){
  .hero .wrap,.split,.contact .wrap{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .feature-list li{grid-template-columns:1fr;gap:.3rem}
}
@media (max-width:480px){
  body{font-size:17px}
  .inbox-body{grid-template-columns:1fr}
  .inbox-list{display:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Plans */
.plans-head{padding:clamp(2.5rem,6vw,4rem) 0 1rem}
.plans{padding:1rem 0 clamp(2.5rem,6vw,4.5rem)}
.plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;align-items:stretch}
.plan{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:1.4rem;display:flex;flex-direction:column}
.plan h2{font-size:1.5rem;margin-bottom:.2rem}
.plan .price{font-family:var(--display);font-weight:700;font-size:1.1rem;color:var(--teal);margin-bottom:.4rem}
.plan .tag{color:var(--muted);font-size:.98rem;min-height:3em}
.plan ul{list-style:none;margin:.4rem 0 1.4rem;padding:0;flex:1}
.plan li{padding:.5rem 0 .5rem 1.5rem;border-top:1px solid #edf2f0;position:relative;font-size:.98rem;line-height:1.4}
.plan li::before{content:"";position:absolute;left:.1rem;top:.85rem;width:.55rem;height:.3rem;border-left:2px solid var(--teal);border-bottom:2px solid var(--teal);transform:rotate(-45deg)}
.plan .btn{text-align:center}
.plans-note{color:var(--muted);font-size:.95rem;margin-top:1.4rem}
@media (max-width:1000px){.plan-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.plan-grid{grid-template-columns:1fr}.plan .tag{min-height:0}}

/* Request form extras */
form.mailform select{width:100%;padding:.7rem .8rem;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:var(--paper);margin-bottom:1rem;color:var(--ink)}
form.mailform select:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px var(--mint)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-error{background:#fbe6df;border:1px solid #e3a58f;color:#6b2411;border-radius:10px;padding:.8rem 1rem;margin-bottom:1rem}

/* Hero phone animation */
.ps{position:relative;width:100%;max-width:420px;height:450px;margin:0 auto;background:var(--mint);border-radius:18px;overflow:hidden}
.ps-in{position:absolute;left:50%;margin-left:-150px;top:20px;width:300px;height:430px}
.ps-bk,.ps-fr{position:absolute;left:0;top:0;width:300px;height:430px}
.ps-fr{z-index:3;pointer-events:none}
.ps-ph{position:absolute;left:50px;top:8px;width:200px;height:372px;background:#10302f;border-radius:30px;padding:8px;box-sizing:border-box;z-index:2}
.ps-scr{width:100%;height:100%;background:#e8f0ec;border-radius:22px;overflow:hidden;display:flex;flex-direction:column;font-family:var(--body)}
.ps-hd{height:46px;background:#0f5c54;color:#fff;display:flex;align-items:center;gap:8px;padding:0 12px;flex:none}
.ps-av{width:28px;height:28px;border-radius:50%;background:#d9ede4;color:#0f5c54;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}
.ps-hd b{font-weight:600;font-size:13px;display:block;line-height:1.2}
.ps-hd span{font-size:11px;color:#bfe3d6}
.ps-ch{flex:1;padding:8px 10px 6px;display:flex;flex-direction:column;gap:5px;overflow:hidden;font-size:12px;line-height:1.35;color:#10302f}
.ps-m{opacity:0;max-width:90%;padding:6px 9px;border-radius:10px}
.ps-mi{align-self:flex-start;background:#fff;border-top-left-radius:3px}
.ps-mo{background:#cbe9d9;border-top-right-radius:3px}
.ps-m small{display:block;font-size:11px;font-weight:600;color:#0f5c54}
.ps-slot{display:grid;align-self:stretch}
.ps-slot>*{grid-area:1/1}
.ps-slot .ps-m{justify-self:end}
.ps-typ{justify-self:end;align-self:start;background:#cbe9d9;border-radius:10px;border-top-right-radius:3px;padding:8px 10px;display:flex;gap:3px;opacity:0}
.ps-typ i{width:5px;height:5px;border-radius:50%;background:#0f5c54;animation:ps-bn 1s infinite}
.ps-typ i:nth-child(2){animation-delay:.15s}
.ps-typ i:nth-child(3){animation-delay:.3s}
.ps-cd{display:flex;gap:8px;align-items:center;background:#fff;border-radius:10px;border-top-right-radius:3px;padding:7px 9px;opacity:0;justify-self:end;align-self:start}
.ps-ci{width:26px;height:26px;border-radius:50%;background:#cbe9d9;color:#0f5c54;display:flex;align-items:center;justify-content:center;flex:none}
.ps-ci .ps-ico{width:15px;height:15px}
.ps-cd b{font-weight:600;display:block}
.ps-cd span{font-size:11px;color:#4d6663}
.ps-pl{align-self:center;background:#e9a23b;color:#412402;font-size:11px;font-weight:600;padding:2px 9px;border-radius:99px;opacity:0}
.ps-ib{height:40px;flex:none;display:flex;gap:6px;align-items:center;padding:0 8px;background:#e8f0ec}
.ps-fd{flex:1;background:#fff;border-radius:16px;color:#7a8f8b;font-size:12px;padding:5px 10px}
.ps-sd{width:28px;height:28px;border-radius:50%;background:#0f5c54;color:#fff;display:flex;align-items:center;justify-content:center}
.ps-sd .ps-ico{width:14px;height:14px}
.ps-bd{position:absolute;z-index:4;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.ps-bd span{display:flex}
.ps-bd .ps-ico{width:20px;height:20px}
.ps-f1{left:-2px;top:70px;background:#e9a23b;color:#412402;animation:ps-fl 4s ease-in-out infinite alternate}
.ps-f2{right:-4px;top:34px;background:#2bb673;color:#fff;animation:ps-fl 5s ease-in-out -1.5s infinite alternate}
.ps-f3{right:-2px;top:150px;background:#fff;color:#0f5c54;animation:ps-fl 4.5s ease-in-out -3s infinite alternate}
@keyframes ps-fl{from{transform:translateY(-5px)}to{transform:translateY(5px)}}
@keyframes ps-bn{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes ps-a1{0%,3.7%{opacity:0;transform:translateY(8px)}5.7%{opacity:1;transform:none}92.5%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ps-a2{0%,21.2%{opacity:0;transform:translateY(8px)}23.2%{opacity:1;transform:none}92.5%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ps-a3{0%,38.7%{opacity:0;transform:translateY(8px)}40.7%{opacity:1;transform:none}92.5%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ps-a4{0%,55%{opacity:0;transform:translateY(8px)}57%{opacity:1;transform:none}92.5%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ps-a5{0%,71.2%{opacity:0;transform:translateY(8px)}73.2%{opacity:1;transform:none}92.5%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ps-a6{0%,78.7%{opacity:0;transform:translateY(8px)}80.7%{opacity:1;transform:none}92.5%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ps-t1{0%,10%{opacity:0}11.5%,20.6%{opacity:1}21.6%,100%{opacity:0}}
@keyframes ps-t2{0%,45%{opacity:0}46.5%,54.4%{opacity:1}55.4%,100%{opacity:0}}
.ps-e1{animation:ps-a1 16s ease-out infinite}
.ps-e2{animation:ps-a2 16s ease-out infinite}
.ps-e3{animation:ps-a3 16s ease-out infinite}
.ps-e4{animation:ps-a4 16s ease-out infinite}
.ps-e5{animation:ps-a5 16s ease-out infinite}
.ps-e6{animation:ps-a6 16s ease-out infinite}
.ps-y1{animation:ps-t1 16s linear infinite}
.ps-y2{animation:ps-t2 16s linear infinite}
@media (prefers-reduced-motion:reduce){.ps-m,.ps-pl,.ps-cd,.ps-bd span{animation:none!important;opacity:1!important;transform:none!important}.ps-typ{display:none}.ps-bd,.ps-typ i{animation:none}}
