/* =========================================================
   Kawka.io — clean SaaS landing
   Neutral, flat, grotesque type. Inspired by modern
   fintech-infra sites (lots of whitespace, hairlines,
   restrained accent).
   ========================================================= */

:root {
  --bg:        #fcfbf9;   /* near-white, faint warmth */
  --tint:      #f5f3ef;   /* subtle alt section */
  --surface:   #ffffff;
  --ink:       #18130f;   /* near-black */
  --ink-2:     #6c645b;
  --ink-3:     #a39a8f;
  --line:      #eae5dc;
  --line-2:    #f2efe8;
  --accent:    #b5612e;    /* caramel — used sparingly */
  --accent-d:  #964e20;
  --accent-soft:#f6e9db;
  --good:      #2f7a57;
  --good-soft: #e7f0ea;
  --btn:       #1b1510;    /* espresso near-black primary */
  --btn-h:     #322a23;

  --shadow:    0 1px 1px rgba(24,19,15,.03), 0 10px 30px -20px rgba(24,19,15,.18);

  --font-d: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-b: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1100px;
  --r:   12px;
  --r-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
input, button { font: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, .brand-word, .dash-balance, .price-row strong {
  font-family: var(--font-d);
  font-weight: 600;
  letter-spacing: -.022em;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 11px; --pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-b); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--btn); color: #fff; }
.btn-pri:hover { background: var(--btn-h); }
.btn-out { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-out:hover { border-color: var(--ink-2); }
.btn-lg { --pad-y: 13px; --pad-x: 22px; font-size: .98rem; }
.btn-block { width: 100%; }
.quiet { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.quiet:hover { color: var(--ink); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252,251,249,.8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 22px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.brand-mark { color: var(--accent); display: flex; }
.brand-word { font-size: 1.26rem; letter-spacing: -.03em; }
.nav { display: flex; gap: 26px; margin-left: 10px; color: var(--ink-2); font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  margin-left: auto; padding: 8px; background: none; border: 0; cursor: pointer;
}
.burger span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  display: none; flex-direction: column; gap: 2px;
  padding: 10px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.mnav.open { display: flex; }
.mnav a { padding: 11px 0; font-weight: 500; }
.mnav .btn { margin-top: 8px; }

/* ---------- Sections ---------- */
.sec { padding: 100px 0; }
.sec-tint { background: var(--tint); border-block: 1px solid var(--line); }
.sec-head { max-width: 600px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .02em;
  color: var(--accent-d); margin-bottom: 14px;
}
.kicker.light { color: var(--accent-d); }
h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.55rem); line-height: 1.08;
}
.sec-sub { color: var(--ink-2); font-size: 1.06rem; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  font-weight: 600; font-size: .82rem; padding: 6px 13px; border-radius: 999px; margin-bottom: 24px;
}
.pill svg { color: var(--accent); }
.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4rem); line-height: 1.02;
  letter-spacing: -.035em; margin-bottom: 22px;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 35ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ticks {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px;
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
}

/* shared check marker */
.ticks { list-style: none; padding: 0; }
.tick { position: relative; padding-left: 25px; }
.tick::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Tip card ---------- */
.hero-mock { display: flex; justify-content: center; }
.tipcard {
  width: 100%; max-width: 360px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.tipcard-top { height: 76px; background: linear-gradient(118deg, #b5612e, #d99a5e); }
.tipcard-body { padding: 0 22px 22px; }
.tc-avatar {
  width: 66px; height: 66px; margin-top: -33px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-d); border: 4px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 1.3rem;
}
.tc-id { margin-top: 12px; }
.tc-id h2 { font-size: 1.3rem; line-height: 1.1; }
.tc-handle { color: var(--accent-d); font-weight: 600; font-size: .86rem; }
.tc-bio { color: var(--ink-2); font-size: .94rem; margin: 10px 0 18px; }
.tc-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.chip {
  flex: 1; padding: 11px 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; font-size: .92rem; transition: .14s;
}
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-d); }
.tc-note { display: block; margin-bottom: 14px; }
.tc-note input {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); outline: none;
}
.tc-note input:focus { border-color: var(--accent); }
.tc-note input::placeholder { color: var(--ink-3); }
.tc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; font-size: .79rem; color: var(--ink-3);
}
.tc-count strong { color: var(--ink-2); }
.powered { display: inline-flex; align-items: center; gap: 5px; }
.stripe-word { font-weight: 700; letter-spacing: -.02em; color: #635bff; font-size: .92em; }

/* ---------- Payment methods strip ---------- */
.methods {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line);
}
.methods-label { font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.methods-list { display: flex; flex-wrap: wrap; gap: 8px; }
.meth {
  font-weight: 600; font-size: .86rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 13px; border-radius: 7px;
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { padding-top: 22px; border-top: 1px solid var(--line); }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.16rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .95rem; }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-weight: 500; font-size: .86em;
  background: var(--tint); color: var(--accent-d);
  padding: 1px 6px; border-radius: 5px; white-space: nowrap; border: 1px solid var(--line);
}

/* ---------- Payouts ---------- */
.payout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-list { margin-top: 26px; display: grid; gap: 13px; }
.feat-list li { color: var(--ink-2); }
.feat-list li strong { color: var(--ink); font-weight: 600; }

.dash {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow);
}
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dash-label { font-size: .82rem; font-weight: 500; color: var(--ink-3); }
.dash-balance { font-size: 2.1rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dash-balance span { font-size: 1.05rem; color: var(--ink-2); font-weight: 500; }
.badge-ok {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--good-soft); color: var(--good);
  font-weight: 600; font-size: .78rem; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-ok .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.spark { width: 100%; height: 52px; color: var(--accent); margin: 14px 0 10px; }
.dash-next {
  display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2);
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); margin-bottom: 14px;
}
.dash-next strong { color: var(--ink); }
.dash-list { display: grid; gap: 0; }
.dash-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2);
}
.dash-row:last-child { border-bottom: 0; }
.ava {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-d); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.who { font-size: .9rem; }
.who em { color: var(--ink-2); font-style: normal; }
.amt { font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; font-size: .9rem; }

.dash-settings { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dash-set-title { font-size: .82rem; font-weight: 500; color: var(--ink-3); }
.seg {
  display: flex; gap: 4px; margin: 10px 0 16px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
}
.seg-btn {
  flex: 1; padding: 8px 0; border: 0; background: transparent; border-radius: 6px;
  font-weight: 600; font-size: .83rem; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s; flex: none; }
.knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s; }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track .knob { transform: translateX(16px); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card { background: var(--surface); padding: 28px 24px; transition: background .16s ease; }
.card:hover { background: var(--bg); }
.ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-d); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: .92rem; }

/* ---------- Trust band (light) ---------- */
.trust { padding: 100px 0; }
.trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trust-copy p { color: var(--ink-2); margin-top: 14px; font-size: 1.04rem; }
.trust-points { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust-points li { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); }
.trust-points strong { font-family: var(--font-d); font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.trust-points span { font-size: .86rem; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.price-wrap { max-width: 540px; margin-inline: auto; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); }
.price-rows { display: grid; gap: 0; margin-bottom: 22px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.price-row span { color: var(--ink-2); }
.price-row strong { font-size: 1.2rem; }
.price-row .free { color: var(--good); }
.price-incl { margin: 0 0 24px; display: grid; gap: 11px; }
.price-fine { margin-top: 16px; font-size: .82rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 740px; margin-inline: auto; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.faq details[open] .chev { transform: rotate(-135deg); margin-top: 2px; }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.cta { background: var(--ink); border-top: 1px solid var(--ink); }
.cta-inner { padding: 84px 24px; text-align: center; }
.cta h2 { color: #fdfbf8; }
.cta p { color: #b7aca0; margin: 12px 0 28px; font-size: 1.05rem; }
.claim { display: flex; align-items: stretch; gap: 4px; max-width: 440px; margin: 0 auto; padding: 5px; background: var(--surface); border-radius: var(--r-sm); }
.claim-pre { display: flex; align-items: center; padding-left: 14px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.claim input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: .98rem; color: var(--ink); }
.claim input::placeholder { color: var(--ink-3); }
.cta-note { display: block; margin-top: 16px; font-size: .86rem; color: #9c9389; }

/* ---------- Footer ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line); }
.ftr-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding: 56px 24px 34px; }
.ftr-brand .brand-word { font-size: 1.4rem; }
.ftr-brand p { color: var(--ink-2); margin: 6px 0 14px; }
.ftr-powered { color: var(--ink-3); font-size: .84rem; }
.ftr-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 48px; }
.ftr-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 12px; font-weight: 600; }
.ftr-cols a { display: block; padding: 4px 0; font-size: .92rem; color: var(--ink); }
.ftr-cols a:hover { color: var(--accent-d); }
.ftr-bottom { display: flex; justify-content: space-between; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--d, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .nav, .hdr-actions { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mock { order: -1; }
  .lead { max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { border-top: 1px solid var(--line); padding: 22px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .payout-grid { grid-template-columns: 1fr; gap: 44px; }
  .trust-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .sec, .trust { padding: 68px 0; }
  .hero { padding: 56px 0 44px; }
  .sec-head { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .trust-points { grid-template-columns: 1fr; }
  .ftr-top { flex-direction: column; gap: 32px; }
  .ftr-cols { gap: 30px; }
  .ftr-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  .ftr-cols { grid-template-columns: repeat(2, auto); }
  .claim { flex-wrap: wrap; }
  .claim .btn { width: 100%; }
}
