/* SmartPFM website (Phase 11) – the app's colours (brand teal #0f766e), system fonts (no font downloads). */
:root {
  --brand: #0f766e; --brand-dk: #115e59; --brand-lt: #ccfbf1; --mint: #ecfdf5; --gold: #fde68a;
  --ink: #0f172a; --body: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --soft: #f8fafc;
  --r: 14px; --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--body); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 46rem; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6em; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; padding: .7em 1.3em; border-radius: 10px; border: 1px solid var(--brand); transition: background .15s; }
.btn:hover { background: var(--brand-dk); }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-ghost:hover { background: var(--mint); }
.btn-lg { font-size: 1.05rem; padding: .85em 1.6em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.center .btns { justify-content: center; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.15rem; }
.brand small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { cursor: pointer; display: none; padding: 10px; border-radius: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }
.menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--brand); }
.menu nav { display: flex; align-items: center; gap: 4px; }
.menu nav > a { color: var(--body); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.menu nav > a:hover { background: var(--soft); color: var(--ink); }
.menu nav > a[aria-current] { color: var(--brand); font-weight: 600; }
.nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.nav-cta .btn { padding: .5em 1em; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1300px) and (min-width: 1181px) { .menu nav > a { padding: 8px 7px; font-size: .9rem; } }  /* 13.61: room for Partners */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .menu nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; box-shadow: var(--shadow); }
  .menu-toggle:checked ~ nav { display: flex; }
  .menu nav > a { padding: 12px 6px; border-bottom: 1px solid var(--soft); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { flex: 1; text-align: center; }
}

/* sections */
section { padding: 72px 0; }
section.tint { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: linear-gradient(135deg, #0f766e, #115e59 60%, #134e4a); color: #e6fffa; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark a:not(.btn) { color: var(--gold); }
.page-head { padding: 56px 0 28px; background: linear-gradient(180deg, var(--mint), #fff); border-bottom: 1px solid var(--line); }
.page-head + section { padding-top: 48px; }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, #d1fae5, transparent 60%), linear-gradient(180deg, var(--mint), #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.2fr; gap: 48px; align-items: center; }
.hero .stack { position: relative; }
.hero .stack .shot:first-child { margin: 0; }
.hero .stack .shot-phone { position: absolute; width: 30%; right: -10px; bottom: -36px; margin: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .stack .shot-phone { width: 34%; right: 0; bottom: -24px; }
}

/* screenshots */
.shot { margin: 0 0 1.4em; }
.shot img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot-phone img { border-radius: 26px; border: 6px solid #0f172a; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .6em; }
.shot-link { display: block; }

/* grids and cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mint); font-size: 1.35rem; margin-bottom: 12px; }
.stat { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
section.dark .stat { color: var(--gold); }

/* a feature row: text beside a screenshot */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; margin: 0 0 72px; }
.row:last-child { margin-bottom: 0; }
.row.flip > :first-child { order: 2; }
.row.with-phone { grid-template-columns: 1.3fr 1fr; }
.row .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; }
@media (max-width: 900px) { .row, .row.with-phone { grid-template-columns: 1fr; gap: 22px; } .row.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 1.6em; margin: .45em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.2em; }
.steps > li { counter-increment: s; position: relative; padding-left: 2.6em; margin: 0 0 .9em; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }

/* stories */
.story { border-top: 1px solid var(--line); padding-top: 56px; margin-top: 56px; }
.story:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.figures { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.2em; }
.figures div { background: var(--mint); border-radius: 12px; padding: 10px 14px; }
.figures strong { display: block; color: var(--ink); font-size: 1.15rem; }
.figures span { font-size: .82rem; color: var(--muted); }
.note { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 16px; color: #78350f; font-size: .95rem; }
.note-info { background: var(--mint); border-left-color: var(--brand); color: #134e4a; }

/* testimonials */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1em; font-size: 1.02rem; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--brand); font-family: Georgia, serif; margin-bottom: 8px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand); }
.who strong { display: block; color: var(--ink); line-height: 1.2; }
.who span { font-size: .85rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tags li { font-size: .75rem; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--muted); }

/* guides */
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 1.2em 0 0; }
.toc a { display: block; text-decoration: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-size: .92rem; color: var(--body); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
.guide { scroll-margin-top: 80px; }
.scenario { background: var(--soft); border: 1px dashed #cbd5e1; border-radius: 12px; padding: 14px 18px; margin: 1em 0; }
.scenario strong:first-child { color: var(--brand); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 22px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; text-align: center; }
.plan-hi { border: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 3px 12px; }
.plan-price strong { font-size: 2rem; color: var(--ink); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 4px; background: #fff; }
.toggle button { border: 0; background: none; font: inherit; padding: 6px 16px; border-radius: 99px; cursor: pointer; color: var(--body); }
.toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
/* full plan comparison */
.compare-scroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); background: #fff; }
.compare { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; font-size: .95rem; }
.compare th:first-child { width: 28%; }
#compare-section { scroll-margin-top: 80px; }
#compare-link-wrap a { font-weight: 600; }
.compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--soft); color: var(--ink); }
.compare thead small { display: block; font-weight: 400; color: var(--muted); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare tbody th small { display: block; font-weight: 400; color: var(--muted); }
.compare tbody th em { font-weight: 400; color: var(--muted); font-size: .8rem; }
.compare td.yes { color: var(--ink); font-weight: 500; }
.compare td.no { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
#plans { text-align: center; }
#plans .plans { text-align: left; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; }
.faq h2 { margin-top: 1.6em; font-size: 1.3rem; }

/* coming soon */
.soon { position: relative; }
.soon .pill { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #fef3c7; color: #92400e; border-radius: 99px; padding: 2px 10px; }

/* footer */
.foot { background: #0b1324; color: #cbd5e1; padding: 56px 0 24px; margin-top: 0; }
.foot .brand { color: #fff; }
.foot .brand small { color: #94a3b8; }
.foot .muted { color: #94a3b8; margin-top: 1em; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: 1em; }
.foot-grid a:not(.brand) { display: block; color: #e2e8f0; text-decoration: none; margin: .4em 0; font-size: .95rem; }
.foot-grid a:not(.brand):hover { color: #fff; text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 18px; font-size: .85rem; color: #94a3b8; }
.foot-legal a { color: #e2e8f0; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* combinations */
.wrap.row { margin: 0 auto; }
.who .avatar { color: #fff; font-size: .95rem; }
section.dark .shot figcaption { color: #a7f3d0; }
.story.row { align-items: start; }

/* 13.35: promotion banner (home, pricing) – filled by site.js from /api/promotions/active */
.promo { background: var(--mint); border-bottom: 1px solid var(--brand-lt); }
.promo-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.promo-inner small { color: #475569; }
.promo-inner .btn { padding: .5em 1.1em; }

/* 13.61: Our partners – the page and its menu links show only when at least one partner is on the website (site.js) */
[data-partners][hidden] { display: none !important; }
.partners { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 1.5rem; }
.partner { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 72px; }
.partner-logo img { max-height: 64px; max-width: 100%; object-fit: contain; }
.partner-logo span { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--brand); font-weight: 700; font-size: 1.3rem; }
.partner h3 { margin: 0; font-size: 1.05rem; }
.partner p { margin: 0; }

/* Video tutorials (15.9): cards link out to YouTube – nothing is embedded or loaded from another site */
.videos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1.2em; }
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--brand); }
.video .vbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: .5em; flex: 1; }
.video h3 { margin: 0; font-size: 1.05rem; }
.video p { margin: 0; font-size: .93rem; color: var(--muted, #475569); }
.video .btn { margin-top: auto; text-align: center; align-self: flex-start; }
