/* Shared styles for the CSS HR and Zomeal landing pages.
   Each page loads this first, then its theme.css (accent tokens + page-only rules). */

/* ===== Tokens (shared) ===== */
:root{
  --bg:#F8F9FB;
  --surface:#FFFFFF;
  --text:#1A1D23;
  --text-muted:#5B6270;
  --border:#E7E9EE;
  --border-input:#868D99; /* form fields need a 3:1 boundary */
  --success:#027A48;
  --shadow-sm:0 1px 2px rgba(20,20,43,.04), 0 1px 1px rgba(20,20,43,.03);
  --shadow-md:0 8px 24px rgba(20,20,43,.08);
  --shadow-lg:0 24px 60px rgba(20,20,43,.14);
  --radius-sm:10px;
  --radius-md:16px;
  --container:1160px;
  --nav-h:72px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
}
/* keep anchored sections clear of the sticky nav */
main, section[id], footer[id]{scroll-margin-top:calc(var(--nav-h) + 16px);}
body{
  margin:0;
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}

a{color:inherit;text-decoration:none;}

/* Skip link: off-screen until focused */
.skip-link{
  position:absolute;
  z-index:1000;
  left:16px;
  top:-60px;
  padding:10px 16px;
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--text);
  font-weight:600;
  box-shadow:var(--shadow-md);
  transition:top .15s ease;
}
.skip-link:focus{top:12px;}
main:focus{outline:none;}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;font-weight:700;letter-spacing:-.02em;}
p{margin:0 0 1em;color:var(--text-muted);}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  display:inline-block;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accent-text);
  margin-bottom:12px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:1rem;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
/* <button class="btn"> (the form submit): drop UA border and font */
button.btn{font-family:inherit; border:2px solid transparent; cursor:pointer;}
.btn-primary{
  background:var(--accent);
  color:var(--on-accent);
  box-shadow:var(--shadow-md);
}
.btn-primary:hover{background:var(--accent-dark); transform:translateY(-2px);}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1.5px solid var(--border);
}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent-text); transform:translateY(-2px);}
.btn-sm{padding:10px 20px; font-size:.9rem;}
.btn-lg{padding:16px 34px; font-size:1.05rem;}

/* ===== Promo bar ===== */
.promo-bar{
  background:linear-gradient(90deg, var(--accent), var(--accent-dark));
  color:var(--on-accent);
}
.promo-bar-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  padding:10px 24px;
  font-size:.86rem;
  font-weight:500;
  text-align:center;
}
.promo-bar-link{
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  white-space:nowrap;
  flex-shrink:0;
}
.promo-bar-link:hover{opacity:.85;}

/* ===== Nav ===== */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(248,249,251,.85);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.nav.scrolled{
  background:rgba(255,255,255,.9);
  border-bottom-color:var(--border);
  box-shadow:var(--shadow-sm);
}
.nav-inner{
  display:flex;
  align-items:center;
  gap:24px;
  height:var(--nav-h);
}
.brand{
  display:flex;
  align-items:baseline;
  gap:2px;
  font-weight:800;
  font-size:1.25rem;
  margin-right:auto;
}
.brand-mark{color:var(--accent);}
.nav-menu{
  display:flex;
  align-items:center;
  gap:24px;
}
.nav-links{
  display:flex;
  gap:28px;
  align-items:center;
}
.nav-links a{
  font-weight:500;
  font-size:.95rem;
  color:var(--text-muted);
  display:inline-block;
  transition:color .15s ease, transform .15s ease;
}
.nav-links a:hover{color:var(--text); transform:translateX(3px);}
.nav-cta{display:flex; align-items:center; gap:12px;}
.nav-switch{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.85rem;
  font-weight:600;
  color:var(--accent-text);
  background:var(--accent-soft);
  padding:8px 14px;
  border-radius:999px;
  border:1px solid transparent;
  position:relative;
  transition:transform .15s ease, box-shadow .15s ease;
}
.nav-switch::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  animation:nav-switch-pulse 2.6s ease-in-out infinite;
}
.nav-switch:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.nav-switch:hover::after{animation:none;}
@keyframes nav-switch-pulse{
  0%, 100%{box-shadow:0 0 0 0 var(--accent-pulse);}
  50%{box-shadow:0 0 0 5px transparent;}
}
@media (prefers-reduced-motion: reduce){
  .nav-switch::after{animation:none;}
}
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;
  height:38px;
  background:none;
  border:none;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  background:var(--text);
  border-radius:2px;
}

/* ===== Hero ===== */
.hero{
  padding:var(--nav-h) 0 88px;
  min-height:calc(100vh - var(--nav-h));
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
  width:100%;
}
.hero h1{
  font-size:clamp(2.1rem, 4vw, 3.2rem);
}
.hero-sub{
  font-size:1.1rem;
  max-width:52ch;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:28px 0 24px;
}
.hero-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:.85rem;
  color:var(--text-muted);
  font-weight:500;
}

/* Hero visual — laptop is primary, phone floats on top */
.hero-visual{position:relative; padding:36px 20px 64px;}
.hero-glow{
  position:absolute;
  inset:-40px;
  background:radial-gradient(60% 60% at 60% 30%, var(--accent-soft), transparent 70%);
  filter:blur(10px);
  z-index:0;
}
/* Hero entrance animation */
@keyframes rise-up{
  from{opacity:0; transform:translateY(36px);}
  to{opacity:1; transform:translateY(0);}
}
.laptop-mock, .hero-float-card, .phone-mock{
  animation:rise-up .8s cubic-bezier(.16,1,.3,1) backwards;
}
.laptop-mock{animation-delay:.15s;}
.hero-float-card{animation-delay:.45s;}
.hero-float-card-top{animation-delay:.3s;}
.phone-mock{animation-delay:.6s;}
@media (prefers-reduced-motion: reduce){
  .laptop-mock, .hero-float-card, .phone-mock{animation:none; transition:none;}
}

/* Laptop mockup (photo composite) */
.laptop-mock{
  position:relative;
  z-index:1;
  max-width:620px;
  margin:0 auto;
  transition:transform .35s ease;
}
.laptop-mock:hover{transform:scale(1.025) translateY(-6px);}
.laptop-photo{
  display:block;
  width:100%;
  height:auto;
}

.hero-float-card{
  position:absolute;
  z-index:2;
  left:-8px;
  bottom:20px;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  padding:14px 18px;
}
.hero-float-icon{
  width:34px;
  height:34px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--success);
  color:#fff;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-float-title{font-weight:700; font-size:.9rem;}
.hero-float-sub{font-size:.78rem; color:var(--text-muted);}
.hero-float-icon-blue{background:var(--accent); color:var(--on-accent);}
.hero-float-card-top{
  left:auto;
  right:4%;
  bottom:auto;
  top:2%;
}

/* Phone mockup (real iPhone photo + live HTML overlay) — floats over the laptop's bottom-right corner */
.phone-mock{
  position:absolute;
  z-index:3;
  right:6%;
  bottom:-56px;
  width:168px;
  transition:transform .35s ease;
}
.phone-mock:hover{transform:scale(1.05) translateY(-8px);}
.phone-photo{
  display:block;
  width:100%;
  height:auto;
  position:relative;
  z-index:1;
}
.phone-island{
  position:absolute;
  z-index:3;
  left:38.1%;
  top:4%;
  width:22.3%;
  height:3.5%;
  background:#0B0B0C;
  border-radius:999px;
}
.phone-screen{
  position:absolute;
  z-index:2;
  left:10%;
  top:3.2%;
  width:78.5%;
  height:92.2%;
  padding:9% 8% 6%;
  overflow:hidden;
}
.phone-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.58rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:16px;
}
.phone-status-dots{display:flex; gap:2px;}
.phone-status-dots span{
  width:3px; height:3px; border-radius:50%;
  background:var(--text);
  display:inline-block;
}
.phone-app-title{
  font-size:.72rem;
  font-weight:700;
  margin-bottom:8px;
}
.phone-home-indicator{
  position:absolute;
  bottom:6px;
  left:50%;
  transform:translateX(-50%);
  width:56px;
  height:4px;
  border-radius:3px;
  background:var(--text);
  opacity:.85;
}
.phone-stat-row{
  display:flex;
  gap:6px;
  margin-bottom:10px;
}
.phone-stat{
  flex:1;
  background:var(--accent-soft);
  border-radius:8px;
  padding:6px 8px;
  display:flex;
  flex-direction:column;
}
.phone-stat-value{font-size:.85rem; font-weight:800; color:var(--accent-text);}
.phone-stat-label{font-size:.56rem; color:var(--text-muted); font-weight:600;}
.phone-list{display:flex; flex-direction:column; gap:6px;}
.phone-list-item{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--bg);
  border-radius:7px;
  padding:6px 7px;
}
.phone-list-dot{
  width:6px; height:6px; border-radius:50%;
  background:#F59E0B;
  flex-shrink:0;
}
.phone-list-dot-green{background:#12B76A;}
.phone-list-text{font-size:.58rem; font-weight:600; flex:1;}
.phone-tag{
  font-size:.5rem;
  font-weight:700;
  color:#B54708;
  background:#FEF0C7;
  border-radius:999px;
  padding:2px 6px;
}
.phone-tag-green{color:#027A48; background:#D1FADF;}

/* ===== Section head ===== */
.section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.3rem);}
.section-head p{font-size:1.05rem;}

/* ===== Features ===== */
.features{padding:100px 0;}
.feature-category{margin-bottom:44px;}
.feature-category-title{
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin:0 0 18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.feature-grid-4{grid-template-columns:repeat(4, 1fr);}
.feature-grid-2{grid-template-columns:repeat(2, 1fr);}
.feature-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  --card-pad:28px;
  padding:var(--card-pad);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.feature-card-highlight{
  background:linear-gradient(160deg, var(--accent-soft), var(--surface) 60%);
  border-color:var(--accent-soft);
}
/* Feature cards with illustrations */
/* 4-up cards are narrow: tighten padding and title size so every title fits on one line */
@media (min-width: 901px){
  .feature-grid-4 .feature-card{--card-pad:24px;}
  .feature-grid-4 .feature-card h3{font-size:1rem;}
}
.feature-card{overflow:hidden;}
.feature-media{
  margin:calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 20px;
  border-radius:var(--radius-md) var(--radius-md) 0 0;
  overflow:hidden;
  border-bottom:1px solid var(--border);
}
.feature-media img{display:block; width:100%; height:auto; aspect-ratio:16/9;}
.feature-card-soon{border-style:dashed;}
.feature-card h3{font-size:1.08rem; margin-bottom:8px;}
.feature-card p{font-size:.92rem; margin:0;}

.custom-callout{
  margin-top:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  background:var(--surface);
  border:1px dashed var(--border);
  border-radius:var(--radius-md);
  padding:28px 32px;
}
.custom-callout-text h3{font-size:1.05rem; margin-bottom:4px;}
.custom-callout-text p{font-size:.92rem; margin:0; max-width:54ch;}
.custom-callout .btn{flex-shrink:0;}

/* ===== Trust & Security ===== */
.trust{padding:100px 0; background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.trust-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.trust-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:#ECFDF3;
  color:var(--success);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
}
.trust-icon svg{width:22px;height:22px;}
.trust-card h3{font-size:1.08rem; margin-bottom:8px;}
.trust-card p{font-size:.92rem; margin:0;}

/* ===== Demo ===== */
.demo{padding:100px 0; background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  max-width:900px;
  margin:0 auto 48px;
}
.step{text-align:center; padding:0 12px;}
.step-num{
  width:40px;height:40px;
  border-radius:50%;
  background:var(--accent);
  color:var(--on-accent);
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
}
.step h3{font-size:1.05rem;}
.step p{font-size:.92rem;}
.demo-cta{text-align:center;}

/* ===== Who we are ===== */
.about{padding:80px 0;}
.about-inner{
  max-width:640px;
  margin:0 auto;
  text-align:center;
}
.about-text h2{font-size:clamp(1.5rem, 2.6vw, 2rem);}
.about-text p{font-size:1.02rem; margin-bottom:28px;}
.about-text .btn svg{margin-left:2px;}

.cross-promo{
  margin-top:40px;
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  text-align:left;
  background:var(--surface);
  border:1px dashed var(--border);
  border-radius:var(--radius-md);
  padding:24px 28px;
}
.cross-promo-logo{height:32px; width:auto; flex-shrink:0;}
.cross-promo-text{flex:1; min-width:200px;}
.cross-promo-text h3{font-size:1rem; margin-bottom:4px;}
.cross-promo-text p{font-size:.9rem; margin:0;}
.cross-promo .btn{flex-shrink:0;}

/* ===== Book ===== */
.book{
  padding:100px 0;
  text-align:center;
}
.book-inner{max-width:560px; margin:0 auto;}
.book h2{font-size:clamp(1.7rem,3vw,2.3rem);}
.book p{font-size:1.05rem; margin-bottom:32px;}

.book-form{text-align:left;}
.book-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.book-field{display:flex; flex-direction:column; gap:6px;}
.book-field-full{margin-bottom:20px;}
.book-field label{font-size:.85rem; font-weight:600; color:var(--text);}
.book-field input,
.book-field textarea{
  font-family:inherit;
  font-size:.95rem;
  padding:12px 14px;
  border:1px solid var(--border-input);
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--text);
  resize:vertical;
}
.book-field input:focus,
.book-field textarea:focus{
  outline:2px solid var(--accent-text);
  outline-offset:1px;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.book-form .btn{width:100%; margin-top:4px;}
.book-form-status{
  margin:14px 0 0;
  font-size:.9rem;
  font-weight:600;
  min-height:1.2em;
}
.book-form-status.success{color:var(--success);}
.book-form-status.error{color:#D92D20;}
.book-form-recaptcha-note{
  margin:10px 0 0;
  font-size:.76rem;
  color:var(--text-muted);
}
.book-form-recaptcha-note a{color:var(--text-muted); text-decoration:underline;}

/* Google auto-injects a floating "protected by reCAPTCHA" badge (bottom-right,
   fixed position) that overlaps the WhatsApp button. Hiding it is allowed by
   Google's terms as long as the equivalent disclosure text is shown visibly
   elsewhere — which .book-form-recaptcha-note above does. */
.grecaptcha-badge{visibility:hidden;}

/* ===== WhatsApp button ===== */
.whatsapp-btn{
  position:fixed;
  z-index:900;
  right:24px;
  bottom:24px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#128C7E; /* darker WhatsApp green: 3:1+ for the icon and against the page */
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-lg);
  transition:transform .15s ease;
  animation:whatsapp-breathe 2.6s ease-in-out infinite;
}
.whatsapp-btn:hover{transform:scale(1.08);}
.whatsapp-btn::before,
.whatsapp-btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:#128C7E; /* darker WhatsApp green: 3:1+ for the icon and against the page */
  z-index:-1;
  pointer-events:none;
  animation:whatsapp-ring 2.6s ease-out infinite;
}
.whatsapp-btn::after{animation-delay:1.3s;}
/* animates `scale`, not `transform`, so it composes with the :hover transform */
@keyframes whatsapp-breathe{
  0%, 100%{scale:1;}
  50%{scale:1.06;}
}
@keyframes whatsapp-ring{
  0%{opacity:.45; transform:scale(1);}
  100%{opacity:0; transform:scale(1.9);}
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-btn{animation:none;}
  .whatsapp-btn::before, .whatsapp-btn::after{animation:none; display:none;}
}

/* ===== Footer ===== */
.footer{padding:48px 0; border-top:1px solid var(--border);}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
}
.footer .brand{margin:0;}
.footer-copy{font-size:.82rem; color:var(--text-muted); margin:0;}
.footer-copy a{color:var(--text); font-weight:600; text-decoration:underline; text-underline-offset:2px;}
.footer-copy a:hover{color:var(--accent-text);}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .hero{min-height:auto;}
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{order:-1; margin-bottom:36px;}
  .hero-float-card{left:12px; right:12px; bottom:-20px;}
  .hero-float-card-top{display:none;}
  .phone-mock{display:none;}
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .steps{grid-template-columns:1fr; max-width:360px;}
}

/* Mobile nav: collapsed into a dropdown. Closed = visibility:hidden so the links
   can't be tabbed to; visibility flips only after the closing fade finishes. */
@media (max-width: 760px){
  .nav-menu{
    position:absolute;
    top:var(--nav-h);
    left:0;right:0;
    background:var(--surface);
    border-bottom:1px solid transparent;
    flex-direction:column;
    align-items:flex-start;
    padding:0 24px;
    gap:16px;
    display:flex;
    max-height:0;
    opacity:0;
    transform:translateY(-8px);
    visibility:hidden;
    overflow:hidden;
    transition:max-height .35s ease, opacity .25s ease, transform .25s ease, padding .35s ease, border-color .35s ease, visibility 0s linear .35s;
  }
  .nav-menu.open{
    max-height:420px;
    opacity:1;
    transform:none;
    visibility:visible;
    padding:18px 24px;
    border-bottom-color:var(--border);
    transition:max-height .35s ease, opacity .25s ease, transform .25s ease, padding .35s ease, border-color .35s ease, visibility 0s;
  }
  .nav-links{flex-direction:column; align-items:flex-start; gap:14px;}
  .nav-toggle{display:flex;}
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce){
  .nav-menu, .nav-menu.open{transition:none;}
}

@media (max-width: 640px){
  .feature-grid{grid-template-columns:1fr;}
  .trust-grid{grid-template-columns:1fr;}
  .book-form-row{grid-template-columns:1fr;}
  .hero{padding:56px 0 64px;}
  .features, .trust, .demo, .book{padding:64px 0;}
  .whatsapp-btn{right:16px; bottom:16px; width:50px; height:50px;}
}
