/* ============================================================
   KAZIRA — Site stylesheet
   Built on brand/tokens.css. Never hard-code a colour here;
   always use a var() so the whole site changes from one file.
   Mobile first: the base styles are the phone layout, and the
   media queries only add things as the screen gets wider.
   ============================================================ */

@import url('../assets/brand/tokens.css');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 720px) { .wrap { padding-inline: var(--sp-6); } }

section { padding-block: var(--sp-8); }
@media (min-width: 720px) { section { padding-block: var(--sp-10); } }

.narrow { max-width: 680px; }
.center { text-align: center; }
.center .narrow { margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); font-weight: 700; }
h4 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

.lede { font-size: var(--text-lg); color: var(--slate); }
.muted { color: var(--slate); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--brand);
  margin-bottom: var(--sp-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--text-base); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  min-height: 48px;           /* comfortable tap target on a phone */
}
.btn:active { transform: translateY(1px); }

/* Amber is the single most important action on a page. Use it once. */
.btn-primary { background: var(--accent); color: #0A2724; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #0A2724; }

.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 68px; }
.brand-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-link img { height: 34px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; transition: background .15s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: var(--sp-3) var(--sp-4) var(--sp-5);
}
.site-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-nav a {
  display: block; padding: .8rem .6rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.site-nav .nav-cta { margin-top: var(--sp-3); }
.site-nav .nav-cta .btn { width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; background: none; box-shadow: none; border: 0; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--sp-1); }
  .site-nav a { padding: .5rem .8rem; font-size: var(--text-sm); }
  .site-nav .nav-cta { margin-top: 0; margin-left: var(--sp-2); }
  .site-nav .nav-cta .btn { width: auto; padding: .6rem 1.15rem; min-height: 42px; font-size: var(--text-sm); }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--sp-8) var(--sp-8); position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding-block: var(--sp-10) var(--sp-10); } }
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lede { max-width: 56ch; }
.hero-grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--sp-10); } }

.hero-points { list-style: none; padding: 0; margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.hero-points li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--text-base); }
.hero-points svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--slate); font-size: var(--text-sm); }

a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }

.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}

/* ---------- Tinted band ---------- */
.band { background: var(--brand-soft); }
.band-dark { background: var(--ink); color: #EAF2EF; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p, .band-dark .lede { color: #B9CCC7; }
.band-dark a:not(.btn) { color: var(--accent); }

/* ---------- Steps (how we work) ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--sp-5); counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-4); align-items: start; }
.step-num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: var(--text-base);
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--slate); font-size: var(--text-sm); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.price {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; height: 100%;
}
.price.featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow); position: relative; }
.price-tag {
  position: absolute; top: -12px; left: var(--sp-5);
  background: var(--brand); color: #fff; font-size: var(--text-xs); font-weight: 700;
  padding: .25rem .7rem; border-radius: var(--radius-pill); letter-spacing: .03em;
}
.price-amount { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; margin: var(--sp-3) 0 var(--sp-1); }
.price-amount small { font-size: var(--text-sm); font-weight: 500; color: var(--slate); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: var(--sp-4) 0; display: grid; gap: var(--sp-2); flex: 1; }
.price li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--text-sm); }
.price li svg { flex-shrink: 0; margin-top: 4px; color: var(--ok); }
.price .btn { width: 100%; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--sp-3); }
details.qa {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
details.qa summary {
  padding: var(--sp-4) var(--sp-5); cursor: pointer; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  list-style: none; min-height: 56px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--brand); flex-shrink: 0; line-height: 1;
}
details.qa[open] summary::after { content: '\2212'; }
details.qa summary:hover { background: var(--brand-soft); }
details.qa .qa-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--slate); }
details.qa .qa-body p + p { margin-top: var(--sp-3); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field .hint { font-size: var(--text-xs); color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 16px;  /* 16px stops iOS zooming on focus */
  transition: border-color .15s, box-shadow .15s;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-note {
  background: var(--brand-soft); border-radius: var(--radius-sm);
  padding: var(--sp-4); font-size: var(--text-sm);
}

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #06251A;
  padding: .8rem 1.1rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--text-sm); text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 52px;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.28); color: #06251A; }
.wa-fab svg { flex-shrink: 0; }
.wa-fab .wa-label { display: none; }
@media (min-width: 560px) { .wa-fab .wa-label { display: inline; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9CCC7; padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-8); }
.site-footer a { color: #EAF2EF; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); } }
.site-footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--text-sm); }
.footer-bottom {
  border-top: 1px solid #1C3B36; margin-top: var(--sp-6); padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--text-xs); color: #8DA5A0;
}
.footer-logo { height: 32px; width: auto; margin-bottom: var(--sp-4); }

/* ---------- Notice / demonstration labels ---------- */
.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius); padding: var(--sp-4);
  font-size: var(--text-sm);
}
.notice svg { flex-shrink: 0; color: #8A5A08; margin-top: 2px; }
.notice strong { font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand-soft); color: var(--brand);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
}
.badge-demo { background: color-mix(in srgb, var(--accent) 25%, var(--paper)); color: #7A4F06; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
