/* Maintlytics website — navy and gold, light and dark */
:root {
  --bg: #f6f7fb; --panel: #ffffff; --soft: #eef1f7; --ink: #15233d; --muted: #5d6a80; --line: #dde3ec;
  --gold: #c99a45; --gold-ink: #8a6420; --navy: #13203a; --navy-2: #1b2b4b; --ok: #1d7a4a; --bad: #c42b2b;
  --shadow: 0 10px 40px rgba(19, 32, 58, .12);
  --radius: 16px; --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1424; --panel: #152038; --soft: #1a2744; --ink: #e9eef7; --muted: #9aa8c0; --line: #24345a;
    --gold-ink: #e4b868; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1424; --panel: #152038; --soft: #1a2744; --ink: #e9eef7; --muted: #9aa8c0; --line: #24345a;
  --gold-ink: #e4b868; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; display: block; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
.nav a:hover, .nav a.on { opacity: 1; color: var(--gold-ink); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--panel); cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #13203a; }
.nav .btn { padding: 9px 16px; font-size: 14px; opacity: 1; color: #13203a; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-copy { max-width: 760px; }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); margin-bottom: 22px; }
.pill b { color: var(--gold-ink); }
.devices { position: relative; margin-top: 20px; padding-bottom: 40px; }
.laptop { background: #0b1120; border-radius: 18px 18px 6px 6px; padding: 12px 12px 0; box-shadow: var(--shadow); border: 1px solid #2a3858; }
.laptop img { border-radius: 8px 8px 0 0; }
.laptop-base { height: 16px; margin: 0 -4%; background: linear-gradient(#cfd5df, #9aa3b3); border-radius: 0 0 16px 16px; }
.phone { position: absolute; right: 2%; bottom: 0; width: 22%; min-width: 150px; background: #0b1120; border-radius: 34px; padding: 10px; border: 1px solid #2a3858; box-shadow: var(--shadow); }
.phone img { border-radius: 26px; }

/* sections */
section { padding: 84px 0; }
.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .card { background: var(--bg); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-ink); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; border: 2px solid var(--gold); }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* feature rows */
.feat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: 0; }
.feat.flip > :first-child { order: 2; }
.feat ul { padding: 0; margin: 18px 0 0; list-style: none; }
.feat li { padding: 7px 0 7px 30px; position: relative; color: var(--muted); }
.feat li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b1120; cursor: zoom-in; }
.shot.phone-shot { max-width: 300px; margin: 0 auto; border-radius: 30px; padding: 8px; }
.shot.phone-shot img { border-radius: 24px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 36px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--navy); color: #fff; border: 1px solid #2a3858; }
.stat b { display: block; font-size: 32px; color: #e4b868; letter-spacing: -.02em; }
.stat span { color: #b7c3d9; font-size: 15px; }

/* platforms */
.plat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 36px; }
.plat div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.plat b { display: block; margin-bottom: 4px; }
.plat span { color: var(--muted); font-size: 15px; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 24px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0 0 8px; }
.cta p { color: #b7c3d9; margin: 0; max-width: 560px; }
.cta .btn:not(.gold) { background: transparent; color: #fff; border-color: #3a4b70; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.tier.best { border: 2px solid var(--gold); position: relative; }
.tier.best::before { content: "Most plants"; position: absolute; top: -13px; left: 28px; background: var(--gold); color: #13203a; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 99px; letter-spacing: .04em; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.tier li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); font-size: 15.5px; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 800; }
.tbd { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold-ink); vertical-align: middle; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* contact */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.note { font-size: 14px; color: var(--muted); padding: 12px 16px; border-radius: 10px; background: var(--soft); border: 1px dashed var(--line); }

/* legal */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
footer a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; font-size: 15px; opacity: .85; }
footer a:hover { color: var(--gold-ink); opacity: 1; }
footer .fine { margin-top: 36px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.theme { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(5, 9, 18, .9); display: none; place-items: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lb.on { display: grid; }
.lb img { max-height: 92vh; border-radius: 10px; }

/* page head */
.pagehead { padding: 64px 0 24px; }

@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feat.flip > :first-child { order: 0; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .menu { display: block; }
  section { padding: 60px 0; }
  .cta { padding: 36px 28px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .phone { position: relative; width: 52%; margin: -60px auto 0; right: auto; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  footer .cols { grid-template-columns: 1fr; }
}
.tier > p.muted { min-height: 3.2em; } /* prices line up across plans */

/* Siri & Apple Intelligence */
.siri { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.convo { display: flex; flex-direction: column; gap: 14px; }
.say { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: linear-gradient(135deg, #5b5ff0, #b14fd8); color: #fff; font-weight: 600; font-size: 16px; }
.say::before { content: "“"; } .say::after { content: "”"; }
.ans { align-self: flex-start; max-width: 92%; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--panel); border: 1px solid var(--line); font-size: 15.5px; color: var(--ink); box-shadow: var(--shadow); }
.ans small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.phrases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.phrases span { font-size: 14px; padding: 6px 12px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 900px) { .siri { grid-template-columns: 1fr; gap: 28px; } }
