/* ---------------------------------------------------------------------------
   Mkutano landing page.

   Replaces a WordPress/Divi export that pulled Bootstrap from a CDN plus two
   generated bundles. This uses the same tokens as the application
   (dashboard.css), so the marketing site and the product read as one product:
   rgb(4,60,84) primary, white surfaces, red only where it earns attention.
   --------------------------------------------------------------------------- */

body.landing { background: var(--bg-card); color: var(--ink); }

.lp-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  padding: .6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 600;
  border: 1px solid var(--accent);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.lp-btn:hover { background: #032A3B; border-color: #032A3B; }
.lp-btn.lg { padding: .8rem 1.5rem; font-size: .95rem; }
.lp-btn.full { width: 100%; margin-top: auto; }
.lp-btn.ghost { background: transparent; color: var(--accent); }
.lp-btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.lp-btn.light { background: #fff; color: var(--accent); border-color: #fff; }
.lp-btn.light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.lp-link { color: var(--accent); font-weight: 600; font-size: .87rem; }
.lp-link:hover { text-decoration: underline; }
.lp-link.arrow::after { content: " →"; }

/* ---------- header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.lp-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.lp-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.lp-brand { display: block; line-height: 1; margin-right: auto; }
.lp-brand .word { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--accent); }
.lp-brand .tag {
  display: block; font-size: .5rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--garnet); margin-top: .16rem;
}

.lp-nav { display: flex; align-items: center; gap: 1.5rem; }
.lp-nav > a { font-size: .88rem; font-weight: 500; color: var(--ink-muted); }
.lp-nav > a:hover { color: var(--accent); }
.lp-nav-cta { display: flex; align-items: center; gap: 1rem; }

.lp-dropdown { position: relative; }
.lp-dropdown > button {
  display: flex; align-items: center; gap: .3rem;
  background: none; border: none; padding: 0;
  font-size: .88rem; font-weight: 500; color: var(--ink-muted); font-family: inherit;
}
.lp-dropdown > button:hover { color: var(--accent); }
.lp-dropdown > button svg { width: 13px; height: 13px; transition: transform .15s; }
.lp-dropdown.open > button svg { transform: rotate(180deg); }
.lp-dropdown-menu {
  position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: .4rem; min-width: 150px;
  display: none;
}
.lp-dropdown.open .lp-dropdown-menu { display: block; }
.lp-dropdown-menu a {
  display: block; padding: .5rem .7rem; font-size: .85rem;
  color: var(--ink); border-radius: var(--radius-sm);
}
.lp-dropdown-menu a:hover { background: var(--bg-inset); color: var(--accent); }

.lp-burger { display: none; background: none; border: none; padding: .4rem; }
.lp-burger span {
  display: block; width: 22px; height: 2px; background: var(--accent);
  border-radius: 2px; margin: 4px 0; transition: transform .15s, opacity .15s;
}

/* ---------- hero ---------- */
.lp-hero { padding: 4.5rem 0 4rem; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%); }
.lp-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

.lp-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--garnet); margin: 0 0 .9rem;
}
.lp-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08; font-weight: 600; margin-bottom: 1.1rem;
}
.lp-lead { font-size: 1.05rem; line-height: 1.65; color: var(--ink-muted); margin: 0 0 1.8rem; max-width: 46ch; }
.lp-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.lp-hero-note { font-size: .84rem; color: var(--ink-faint); margin-top: 1.2rem; }
.lp-hero-note a { color: var(--accent); font-weight: 600; }

/* Product sketch. Deliberately abstract — a real screenshot would date. */
.lp-hero-art { display: flex; justify-content: center; }
.art-window {
  width: 100%; max-width: 460px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.art-bar { display: flex; gap: .35rem; padding: .6rem .8rem; background: var(--bg-inset); border-bottom: 1px solid var(--border); }
.art-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.art-bar span:first-child { background: var(--garnet); opacity: .55; }
.art-body { display: grid; grid-template-columns: 1.55fr 1fr; min-height: 250px; }

.art-stage { position: relative; background: var(--masthead-bg); padding: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; align-content: start; }
.art-tile { background: rgba(255,255,255,.10); border-radius: 6px; height: 62px; }
.art-tile.lg { grid-column: 1 / -1; height: 104px; background: rgba(255,255,255,.16); }
.art-live {
  position: absolute; bottom: .8rem; left: .8rem;
  display: flex; align-items: center; gap: .35rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--garnet); padding: .2rem .5rem; border-radius: 99px;
}
.art-live .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.art-side { padding: .9rem; background: #fff; }
.art-head { height: 8px; width: 58%; border-radius: 3px; background: var(--accent); opacity: .85; margin-bottom: .55rem; }
.art-head.second { margin-top: 1.1rem; }
.art-line { height: 6px; border-radius: 3px; background: var(--bg-inset); margin-bottom: .4rem; }
.art-line.short { width: 62%; }

/* ---------- sections ---------- */
.lp-section { padding: 4.5rem 0; }
.lp-section.alt { background: var(--bg); }
.lp-section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.lp-section-head h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: .6rem; }
.lp-section-head p { font-size: 1rem; color: var(--ink-muted); margin: 0; }

/* ---------- photo section ----------
   The stock photograph the previous site used as a parallax background behind
   the solution section. It sits under a navy wash heavy enough that the
   heading passes contrast against it whatever part of the image shows through
   at a given viewport size — the photo is texture, not something to read.
   fixed attachment gives the parallax feel on a desktop; it is dropped on
   touch screens, where iOS in particular renders it badly. */
.lp-section-photo {
  position: relative;
  background-image: url('../../../wp-content/uploads/2020/10/1building-91228_1280.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.lp-section-photo::before {
  content: "";
  position: absolute; inset: 0;
  /* Light enough that the building is legible as a photograph, dark enough
     that white text clears 4.5:1 against the brightest part of it. Slightly
     denser at the top, where the heading sits. */
  background: linear-gradient(180deg, rgba(4,60,84,.86) 0%, rgba(4,60,84,.72) 100%);
}
.lp-section-photo > .lp-wrap { position: relative; }

.lp-section-head.on-photo h2 { color: #fff; }
/* Not --masthead-ink-muted here: that tone is tuned for a solid navy sidebar
   and drops below 4.5:1 once the photograph shows through. */
.lp-section-head.on-photo p { color: rgba(255,255,255,.88); }

/* ---------- solution ---------- */
.lp-solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.lp-solution {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  border-top: 3px solid var(--accent);
}
.lp-solution h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.lp-solution-lead { font-weight: 600; color: var(--accent); font-size: .9rem; margin: 0 0 .5rem; }
.lp-solution p { font-size: .89rem; line-height: 1.6; color: var(--ink-muted); margin: 0; }
.lp-solution-cta { border-top-color: var(--garnet); background: var(--accent-soft); }
.lp-solution-cta .lp-link { display: inline-block; margin-top: .8rem; }

/* ---------- features ---------- */
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem 2rem; }
.lp-feature img { width: 44px; height: 44px; margin-bottom: .8rem; }
.lp-feature h3 { font-size: 1rem; margin-bottom: .4rem; }
.lp-feature p { font-size: .88rem; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* ---------- pricing ---------- */
.lp-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; align-items: stretch; }
.lp-plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.6rem 1.4rem;
  position: relative;
}
.lp-plan.featured { border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow-md); }
.lp-plan-flag {
  position: absolute; top: -.7rem; left: 1.4rem;
  background: var(--garnet); color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 99px;
}
.lp-plan h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.lp-price { margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.lp-price .amount { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.lp-price .per { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: .2rem; }
.lp-price .alt-price { display: block; font-size: .78rem; color: var(--ink-muted); margin-top: .45rem; }
.lp-plan ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.lp-plan li { position: relative; padding-left: 1.35rem; font-size: .85rem; line-height: 1.5; margin-bottom: .5rem; color: var(--ink-muted); }
.lp-plan li::before {
  content: ""; position: absolute; left: 0; top: .38rem;
  width: 6px; height: 10px;
  border: solid var(--teal); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- closing band ---------- */
.lp-band { background: var(--masthead-bg); color: var(--masthead-ink); padding: 3.5rem 0; }
.lp-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.lp-band h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; margin-bottom: .6rem; }
.lp-band p { color: var(--masthead-ink-muted); max-width: 58ch; margin: 0; line-height: 1.65; }

/* ---------- footer ---------- */
.lp-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2rem; }
.lp-footer h4 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .9rem; }
.lp-footer a { display: block; font-size: .86rem; color: var(--ink-muted); margin-bottom: .45rem; }
.lp-footer a:hover { color: var(--accent); }
.lp-footer p { font-size: .86rem; color: var(--ink-muted); line-height: 1.55; margin: 0 0 .8rem; }
.lp-footer-brand .word { display: block; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.lp-footer-brand .tag { display: block; font-size: .5rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--garnet); margin: .15rem 0 .8rem; }
.lp-footer-foot {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--ink-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-hero-art { order: -1; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .lp-burger { display: block; }
  .lp-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.5rem 1.2rem;
  }
  .lp-nav.open { display: flex; }
  .lp-nav > a, .lp-dropdown > button { padding: .75rem 0; width: 100%; }
  .lp-dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 .4rem .8rem; }
  .lp-nav-cta { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: .8rem; }
  .lp-nav-cta .lp-btn, .lp-nav-cta .lp-link { text-align: center; }
  .lp-section, .lp-hero { padding: 3rem 0; }
  .lp-footer-grid { grid-template-columns: 1fr; }
}

/* Fixed backgrounds are unreliable on touch devices (iOS Safari repaints them
   badly and they can jitter), so the photo simply scrolls with the page. */
@media (hover: none), (max-width: 760px) {
  .lp-section-photo { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-dropdown > button svg, .lp-header { transition: none; }
  /* The parallax effect is motion the user has asked not to see. */
  .lp-section-photo { background-attachment: scroll; }
}
