/* UpFlowLink landing page - same visual language as the dashboard (light shell, blue accent, black cards) */
:root { --blue:#1f6bff; --blue-dark:#0b4fd6; --blue-soft:#cfe0ff; --ink:#101114; --muted:#7c828d; --line:#e7e9ee; --bg:#e6e7e9; --area:#f1f2f4;
  --font:"Inter","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.shell { max-width: 1480px; margin: 20px auto; background: #fff; border-radius: 32px; box-shadow: 0 10px 40px rgba(16,17,20,.08); overflow: hidden;
  height: calc(100vh - 40px); display: flex; flex-direction: column; }
/* Same scrolling as the dashboard: the shell stays put, only the content scrolls (stable gutter, thin rounded scrollbar) */
body { overflow: hidden; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; scroll-behavior: smooth; }
.scroll::-webkit-scrollbar { width: 10px; }
.scroll::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.scroll::-webkit-scrollbar-thumb { background: #c9ced8; border-radius: 999px; border: 2px solid #fff; }
.scroll::-webkit-scrollbar-thumb:hover { background: #a9afbc; }
@supports (-moz-appearance: none) { .scroll { scrollbar-width: thin; scrollbar-color: #c9ced8 transparent; } }
.page { max-width: 1180px; margin: 0 auto; }
.nav { flex: none; }
main { padding: 0 28px 28px; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg,#38bdf8,var(--blue)); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 4px; clip-path: polygon(50% 0,100% 100%,0 100%); }
.nav-links { display: flex; gap: 6px; background: #e6e8ec; padding: 4px; border-radius: 999px; }
.nav-links a { padding: 8px 18px; border-radius: 999px; color: #5b616c; font-weight: 500; }
.nav-links a:hover { background: #fff; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }

.hero { text-align: center; padding: 54px 12px 34px; max-width: 840px; margin: 0 auto; }
.badge { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; font-size: 13px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 500; line-height: 1.06; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { margin: 22px auto 0; color: #5b616c; font-size: clamp(16px, 2vw, 19px); max-width: 680px; }
.cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.preview { padding: 14px 0 10px; }
.mock { background: var(--area); border-radius: 28px; padding: 18px; max-width: 980px; margin: 0 auto; }
.mock-top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { padding: 8px 16px; border-radius: 999px; background: #e6e8ec; color: #6b7079; font-weight: 500; font-size: 13px; }
.pill.on { background: var(--blue); color: #fff; }
.sample-tag { margin-left: auto; font-size: 12px; color: var(--muted); }
.mock-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.m-card { background: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-wide { grid-row: span 2; }
.m-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.m-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.m-big b { font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.m-big b.blue { color: var(--blue); }
.m-big span, .m-card span { color: var(--muted); font-size: 13px; }
.m-chart { width: 100%; height: auto; margin-top: auto; }
.m-card b { font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.m-card i { font-style: normal; color: var(--muted); font-size: 12.5px; }
.m-black { background: var(--ink); color: #fff; }
.m-black span, .m-black i { color: #9aa0ab; }
.m-gauge { width: 100%; max-width: 180px; margin: 0 auto; }
.m-gauge text { font-size: 28px; font-weight: 600; fill: var(--ink); }

.section { padding: 64px 12px 8px; text-align: center; }
.section h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.sub { color: var(--muted); margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; text-align: left; }
.f-card { background: var(--area); border-radius: 24px; padding: 26px; }
.f-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.f-card p { color: #5b616c; font-size: 14.5px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.steps li b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; margin-bottom: 14px; }
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: #5b616c; font-size: 14.5px; }

.cta-card { margin-top: 64px; background: var(--ink); color: #fff; border-radius: 28px; padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-card h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.cta-card p { color: #9aa0ab; margin-top: 8px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--blue); }

@media (max-width: 860px) {
  body { overflow: auto; }
  .shell { height: auto; min-height: calc(100vh - 40px); overflow: visible; }
  .scroll { overflow: visible; }
}
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .mock-grid { grid-template-columns: 1fr 1fr; }
  .m-wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .shell { margin: 0; border-radius: 0; }
  main { padding: 0 16px 20px; }
  .nav { padding: 14px 16px; }
  .nav-links { display: none; }
  .cards, .steps, .mock-grid { grid-template-columns: 1fr; }
  .m-wide { grid-column: auto; }
  .hero { padding-top: 34px; }
  .cta-card { padding: 26px; }
  .foot { padding: 18px 16px; }
}
