/* Kardi landing — brand palette from the app (blue mark, orange accent, navy ink). */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --accent: #F5651E;
  --ink: #11203A;
  --muted: #64748B;
  --surface: #F6F8FC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --success: #1F7A4C;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(17, 32, 58, .06);
  --shadow-md: 0 14px 40px rgba(17, 32, 58, .10);
  --shadow-brand: 0 18px 44px rgba(37, 99, 235, .28);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Brand --- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.brand-logo-footer {
  height: 88px;
  max-width: 140px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-sizing: content-box;
}
.download-logo {
  width: 160px;
  height: auto;
  margin: 0 auto 8px;
  border-radius: 16px;
  display: block;
  background: #fff;
  padding: 12px;
  box-sizing: content-box;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--blue); }

.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Locked (pre-launch) CTA: greyed out with a live countdown label.
   Override .btn-primary / .btn-ghost with higher specificity. */
.btn.is-locked,
.btn.btn-primary.is-locked,
.btn.btn-ghost.is-locked {
  background: #E7ECF3;
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.btn.is-locked:hover { transform: none; color: var(--muted); }
.btn.is-locked svg { opacity: .8; }
.cta-count { font-variant-numeric: tabular-nums; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: var(--blue-dark); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-links a.btn-ghost { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1100px 460px at 12% -10%, rgba(37, 99, 235, .16), transparent 55%),
    radial-gradient(820px 380px at 100% 0%, rgba(245, 101, 30, .14), transparent 52%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.accent-text { color: var(--accent); }
.lead {
  margin-top: 18px;
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 33em;
}
.lead strong { color: var(--ink); }
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-badges {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-badges li {
  position: relative;
  padding-left: 24px;
  font-size: .95rem;
  color: var(--muted);
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--success);
}

/* --- Hero visual / phone mockup --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-phone {
  width: min(100%, 440px);
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 48px rgba(17, 32, 58, .18));
  animation: hero-float 5.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Strip --- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 28px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.strip-item strong {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--blue-dark);
}
.strip-item span { color: var(--muted); font-size: .95rem; max-width: 22em; }

/* --- Sections --- */
.section { padding: 76px 0; }
.section-alt { background: #fff; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.section-alt .feature { background: var(--surface); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, .08);
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.feature-icon svg { display: block; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* --- Steps --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.section-alt .step { background: #fff; }
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-brand);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.3rem; }
.plan-price {
  margin: 12px 0 6px;
  font-size: 1rem;
  color: var(--muted);
}
.plan-price strong {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  color: var(--ink);
}
.plan-desc { color: var(--muted); margin-bottom: 18px; }
.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: .96rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--success);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="m4 13 5 5L20 6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="m4 13 5 5L20 6"/></svg>') center / contain no-repeat;
}
.plan .btn { width: 100%; }

/* --- Countdown --- */
.countdown {
  margin-top: 26px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}
.countdown-item {
  min-width: 68px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, #0b1220, #1b2a4a);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.countdown-num {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-lbl {
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .7);
}
.countdown.is-live { display: none; }

/* --- Notify form --- */
.notify-form { margin-top: 22px; }
.notify-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.notify-input {
  flex: 1 1 220px;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.notify-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}
.notify-status {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--muted);
}
.notify-status[data-kind="success"] { color: var(--success); }
.notify-status[data-kind="error"] { color: #B4232A; }

/* --- Download --- */
.download { background: #fff; }
.download-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}
.download-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.download-meta { color: var(--muted); font-size: .92rem; }
.download-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .95rem;
}
.install-help {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.install-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-dark);
}
.install-help ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.download-card {
  background: linear-gradient(160deg, #0b1220, #1b2a4a);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.download-card-sub { color: rgba(255, 255, 255, .7); margin-top: 4px; }
.download-card-version {
  margin-top: 16px;
  display: inline-block;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .9);
}

/* --- FAQ --- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.section-alt .faq details { background: #fff; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.04rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--blue-dark);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* --- CTA final --- */
.cta-final {
  padding: 72px 0;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(37, 99, 235, .16), transparent 60%),
    var(--surface);
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-final p { margin: 12px 0 26px; color: var(--muted); font-size: 1.1rem; }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 26em; font-size: .95rem; }
.footer-col h4 {
  font-family: "DM Sans", sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 10px;
  font-size: .96rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
}
.footer-privacy-note {
  margin-top: 8px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .42);
  max-width: 42em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .features-grid,
  .steps,
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .download-card { order: -1; max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a.btn { margin-top: 8px; }
  .nav-toggle { display: flex; }

  .strip-grid { grid-template-columns: 1fr; gap: 20px; }
  .features-grid,
  .steps,
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phone { animation: none; }
  .btn:hover { transform: none; }
}
