/*
 * Naitive Accounting — marketing landing page
 */

:root {
  --lp-navy: #1c3d6b;
  --lp-navy-deep: #0f2340;
  --lp-teal: #17b897;
  --lp-teal-deep: #0f9a7e;
  --lp-ink: #152033;
  --lp-muted: #5c6b82;
  --lp-paper: #eef3f8;
  --lp-white: #ffffff;
  --lp-line: rgba(28, 61, 107, 0.12);
  --lp-font-display: "Syne", "Segoe UI", sans-serif;
  --lp-font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing {
  margin: 0;
  font-family: var(--lp-font-body);
  color: var(--lp-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(23, 184, 151, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(28, 61, 107, 0.14), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, var(--lp-paper) 40%, #f3f7fb 100%);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lp-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Top bar ---------- */

.lp-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: #fff;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.lp-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.lp-top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.lp-top-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.lp-top-nav a:hover { color: #fff; }
.lp-link-signin {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}
.lp-link-signin:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .lp-top-nav a:not(.lp-link-signin) { display: none; }
}

/* ---------- Hero (one composition) ---------- */

.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.lp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: lp-hero- ken 18s ease-out forwards;
}
.lp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 35, 64, 0.45) 0%, rgba(15, 35, 64, 0.28) 35%, rgba(15, 35, 64, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 35, 64, 0.55) 0%, transparent 55%);
}

@keyframes lp-hero-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1.0); }
}

.lp-hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 7vh, 4.5rem);
  animation: lp-rise 0.9s ease both;
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--lp-font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lp-hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.lp-lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 38ch;
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lp-trial-note {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.lp-trial-note-dark {
  color: var(--lp-ink-muted, #5b6578);
  text-align: center;
}
.lp-pricing-cta { margin-top: 1.25rem; }
.lp-pricing-cta + .lp-trial-note { text-align: center; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn-primary {
  background: var(--lp-teal);
  color: #04352c;
  border: 1px solid transparent;
}
.lp-btn-primary:hover { background: #2bc4a3; }

.lp-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.lp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.lp-section-cta .lp-btn-primary {
  background: var(--lp-teal);
  color: #04352c;
}
.lp-section-cta .lp-btn-secondary {
  color: var(--lp-navy);
  border-color: rgba(28, 61, 107, 0.28);
}
.lp-section-cta .lp-btn-secondary:hover {
  background: rgba(28, 61, 107, 0.06);
  border-color: var(--lp-navy);
}

/* ---------- Sections ---------- */

.lp-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.lp-section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--lp-line);
}

.lp-section-inner {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.lp-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--lp-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--lp-navy-deep);
  line-height: 1.15;
}

.lp-section p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.lp-section-lead {
  margin-bottom: 2rem !important;
}

.lp-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.lp-split-reverse { grid-template-columns: 0.95fr 1.05fr; }

@media (max-width: 860px) {
  .lp-split,
  .lp-split-reverse {
    grid-template-columns: 1fr;
  }
  .lp-split-reverse .lp-photo { order: -1; }
}

.lp-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}
.lp-photo img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
  filter: saturate(0.92);
}

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: none;
}

@media (max-width: 860px) {
  .lp-steps { grid-template-columns: 1fr; }
}

.lp-steps li {
  padding-top: 0.25rem;
  border-top: 2px solid var(--lp-teal);
}

.lp-step-num {
  display: block;
  margin: 0.85rem 0 0.55rem;
  font-family: var(--lp-font-display);
  font-weight: 700;
  color: var(--lp-teal-deep);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.lp-steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--lp-font-display);
  font-size: 1.25rem;
  color: var(--lp-navy-deep);
}

.lp-steps p {
  font-size: 0.98rem;
  max-width: none;
}

.lp-section-cta {
  background:
    linear-gradient(135deg, rgba(28, 61, 107, 0.06), rgba(23, 184, 151, 0.1));
}

.lp-cta-block {
  text-align: left;
  max-width: 640px;
}
.lp-cta-block .lp-cta { margin-top: 1.4rem; }

/* ---------- Pricing (service cards) ---------- */

.lp-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: 0.5rem;
  align-items: stretch;
}

.lp-pricing-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .lp-pricing-3 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .lp-pricing { grid-template-columns: 1fr; }
}

.lp-billing-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0 0 1.75rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(28, 61, 107, 0.08);
}

.lp-billing-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lp-navy-deep);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lp-billing-toggle button.is-active {
  background: var(--lp-navy);
  color: #fff;
}

.lp-plan {
  --plan-accent: #2b2f36;
  --plan-accent-2: #6b7280;
  position: relative;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 2.75rem 0 2.75rem 0;
  overflow: visible;
  box-shadow: 0 10px 28px rgba(15, 35, 64, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 35, 64, 0.1);
}

.lp-plan-trial {
  --plan-accent: #1f2430;
  --plan-accent-2: #6b7280;
}

.lp-plan-basic {
  --plan-accent: #0f9a7e;
  --plan-accent-2: #3dd4a8;
}

.lp-plan-enterprise {
  --plan-accent: #1c3d6b;
  --plan-accent-2: #5b7db5;
}

.lp-plan-body {
  position: relative;
  z-index: 1;
  padding: 1.65rem 2.1rem 1.35rem 1.55rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lp-plan h3 {
  margin: 0 0 0.35rem;
  font-family: var(--lp-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.lp-plan-price {
  margin: 0 0 1.15rem !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  max-width: none !important;
  color: #111827 !important;
  font-family: var(--lp-font-display);
  font-weight: 800;
  line-height: 1.1;
}

.lp-plan-price > span:not(.lp-plan-was) {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  color: #111827;
}

.lp-plan-price small {
  font-family: var(--lp-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
}

.lp-plan-was {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #9ca3af !important;
  text-decoration: line-through;
}

.lp-plan-features {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.72rem;
}

.lp-plan-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.35;
}

.lp-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 2px solid var(--plan-accent);
  background: transparent;
}

.lp-plan-features li.is-on::before {
  background: var(--plan-accent);
  border-color: var(--plan-accent);
}

.lp-plan-features li.is-off {
  color: #9ca3af;
}

.lp-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 10.5rem;
  margin-top: auto;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 0;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  background: linear-gradient(90deg, var(--plan-accent), var(--plan-accent-2));
  box-shadow: 0 8px 18px rgba(15, 35, 64, 0.18);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lp-plan-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.lp-plan-footnote {
  margin: 0.85rem 0 0 !important;
  text-align: center;
  font-size: 0.88rem !important;
  color: #111827 !important;
  font-weight: 500;
  max-width: none !important;
}

.lp-plan-chevron {
  position: absolute;
  right: -1px;
  top: 50%;
  width: 1.15rem;
  height: 4.6rem;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--plan-accent), var(--plan-accent-2));
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  border-radius: 0 2px 2px 0;
}

.d-none { display: none !important; }

.lp-btn-on-light {
  color: var(--lp-navy) !important;
  border-color: rgba(28, 61, 107, 0.28) !important;
}
.lp-btn-on-light:hover {
  background: rgba(28, 61, 107, 0.06) !important;
  border-color: var(--lp-navy) !important;
}

/* ---------- Reveal motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */

.lp-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, 0.45);
}

.lp-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lp-footer strong {
  font-family: var(--lp-font-display);
  color: var(--lp-navy-deep);
  display: block;
  margin-bottom: 0.35rem;
}

.lp-footer p {
  margin: 0;
  color: var(--lp-muted);
  max-width: 36ch;
  font-size: 0.95rem;
}

.lp-footer-links {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.lp-footer-links a {
  color: var(--lp-navy);
  text-decoration: none;
  font-weight: 600;
}
.lp-footer-links a:hover { color: var(--lp-teal-deep); }

.lp-byline {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--lp-muted);
}
.lp-byline a {
  color: var(--lp-navy);
  font-weight: 600;
  text-decoration: none;
}
.lp-byline a:hover {
  color: var(--lp-teal-deep);
  text-decoration: underline;
}

.lp-footer-links {
  flex-wrap: wrap;
  max-width: 28rem;
  justify-content: flex-end;
}

/* ---------- Legal pages ---------- */

.lp-legal-page {
  background: linear-gradient(180deg, #0b1a36 0%, #0b1a36 120px, #f4f6fb 120px, #f4f6fb 100%);
  min-height: 100vh;
}

.lp-legal {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.lp-legal-inner {
  width: min(820px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(11, 26, 54, 0.08);
}

.lp-legal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
  font-weight: 700;
}

.lp-legal h1 {
  margin: 0 0 0.4rem;
  font-family: var(--lp-font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--lp-navy-deep);
}

.lp-legal-updated {
  margin: 0 0 1.25rem;
  color: var(--lp-muted);
  font-size: 0.92rem;
}

.lp-legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lp-line);
}

.lp-legal-toc a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-navy);
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: #fff;
}

.lp-legal-toc a.is-active,
.lp-legal-toc a:hover {
  border-color: var(--lp-teal-deep);
  color: var(--lp-teal-deep);
}

.lp-legal-body {
  color: #2a3448;
  line-height: 1.65;
  font-size: 0.98rem;
}

.lp-legal-body h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.1rem;
  color: var(--lp-navy-deep);
}

.lp-legal-body p,
.lp-legal-body ul {
  margin: 0 0 0.9rem;
}

.lp-legal-body ul {
  padding-left: 1.2rem;
}

.lp-legal-body a {
  color: var(--lp-teal-deep);
  font-weight: 600;
}

.lp-flash {
  position: relative;
  z-index: 6;
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #fff4d6;
  color: #5c4400;
  text-align: center;
}

/* ---------- Mobile responsiveness polish ---------- */

@media (max-width: 860px) {
  .lp-hero {
    min-height: 92vh;
    min-height: 92dvh;
  }
  .lp-hero-content {
    padding: clamp(4.75rem, 10vh, 6rem) 1.15rem 2rem;
    width: 100%;
  }
  .lp-hero h1 {
    max-width: 18ch;
  }
  .lp-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-cta-row .lp-btn,
  .lp-cta-row a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .lp-section {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .lp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .lp-footer-links {
    justify-content: flex-start;
    max-width: none;
  }
  .lp-legal-inner {
    border-radius: 12px;
    padding: 1.15rem 1rem 1.35rem;
  }
  .lp-legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .lp-legal-toc a {
    font-size: 0.85rem;
  }
  .lp-plan-card,
  .lp-plan {
    margin-inline: 0;
  }
}

@media (max-width: 480px) {
  .lp-top {
    padding-inline: 0.9rem;
  }
  .lp-brand span {
    font-size: 0.95rem;
  }
  .lp-hero-content {
    padding-bottom: 1.5rem;
  }
  .lp-lead {
    font-size: 0.98rem;
  }
}
