/* DIGIfolio public site. Matches the look of the app (index.html):
   white top bar, DM Sans body, Poppins headings, brand blue and green. */
:root {
  --brand-blue: #165AC3;
  --brand-green: #008037;
  --brand-green-hover: #006A2E;
  --navy: #0F172A;
  --slate: #475569;
  --muted: #64748B;
  --page-bg: #F5F8FC;
  --tint: #E8F0FB;
  --green-tint: #E6F4EC;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg: 0 18px 48px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.06);
  --max: 1180px;
}
:root { --brand-blue-hover: #124CA5; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { color: var(--slate); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; }
:focus-visible { outline: 3px solid rgba(22,90,195,.35); outline-offset: 2px; border-radius: 6px; }

/* ── Header (same white bar as the app) ── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 2px; flex: 1; }
.site-nav > a, .site-nav .dd > button { font: 500 15px var(--font-body); color: var(--slate); padding: 26px 12px 23px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-nav > a:hover, .site-nav .dd > button:hover { color: var(--navy); }
.site-nav > a.active, .site-nav .dd.active > button { color: var(--brand-blue); border-bottom-color: var(--brand-blue); font-weight: 600; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: -12px; width: 560px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.dd-menu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--navy); font-size: 14px; line-height: 1.35; text-decoration: none; }
.dd-menu a:hover { background: var(--page-bg); }
.dd-menu a small { display: block; color: var(--muted); font-size: 12.5px; }
.dd-menu .ico, .p-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--tint); color: var(--brand-blue); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.dd-menu .all { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; color: var(--brand-blue); font-weight: 600; }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-body); padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-green { background: var(--brand-green); color: #fff; }
.btn-green:hover { background: var(--brand-green-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,128,55,.25); }
.btn-blue { background: var(--brand-blue); color: #fff; }
.btn-blue:hover { background: var(--brand-blue-hover); }
.btn-outline { background: #fff; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-outline:hover { background: var(--tint); }
.btn-ghost { color: var(--slate); padding: 10px 14px; }
.btn-ghost:hover { color: var(--navy); background: var(--page-bg); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 20px; cursor: pointer; color: var(--navy); }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 12px 24px 20px; background: #fff; }
.mobile-nav.open { display: grid; gap: 2px; }
.mobile-nav a { padding: 10px 4px; color: var(--navy); font-weight: 500; }
.mobile-nav .sub { padding-left: 16px; font-size: 15px; color: var(--slate); }
@media (max-width: 980px) {
  .site-nav, .site-actions { display: none; }
  .menu-btn { display: block; }
  .brand img { height: 40px; }
}

/* ── Sections ── */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--page-bg); }
.eyebrow { display: inline-block; font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-green); margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--slate); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }
.section-head h2 + .lead { margin-top: 14px; }

/* Hero */
.hero { padding: 80px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, #E8F0FB 0%, rgba(232,240,251,0) 60%), radial-gradient(800px 400px at 0% 0%, #E6F4EC 0%, rgba(230,244,236,0) 55%), #fff; }
.hero h1 { max-width: 880px; }
.hero h1 .blue { color: var(--brand-blue); }
.hero h1 .green { color: var(--brand-green); }
.hero .lead { margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-shot { margin-top: 56px; }

/* Browser frame around screenshots */
.frame { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #F8FAFC; border-bottom: 1px solid var(--border); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.frame-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; }
.frame img { width: 100%; height: auto; }
figure figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.zoomable { cursor: zoom-in; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #C7D7F0; }
a.card .more { display: inline-block; margin-top: 14px; color: var(--brand-blue); font-weight: 600; font-size: 15px; }
.card .p-ico { margin-bottom: 16px; }
.pain { border-top: 3px solid #F59E0B; }
.pain h3 { font-size: 17px; }

/* Feature rows (text beside a screenshot) */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: 26px; margin-bottom: 12px; }
.feature-text .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--brand-blue); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feature-text { order: 0; } }
.checks { list-style: none; margin-top: 16px; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--slate); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23008037' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.steps li { list-style: none; counter-increment: s; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; color: var(--slate); font-size: 15.5px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-weight: 700; margin-bottom: 14px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--brand-blue); font-weight: 600; font-size: 14px; }
.pill.green { background: var(--green-tint); color: var(--brand-green); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #0F172A 0%, #12305F 60%, #165AC3 100%); color: #fff; border-radius: 20px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: #C9D6EA; margin-top: 10px; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.08); }

/* Footer */
.site-footer { background: var(--navy); color: #A9B7CA; padding: 64px 0 32px; margin-top: 88px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer img { height: 44px; width: auto; }
.site-footer h4 { color: #fff; font: 600 14px var(--font-body); margin-bottom: 12px; letter-spacing: .02em; }
.site-footer a { color: #A9B7CA; display: block; padding: 4px 0; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #A9B7CA; font-size: 15px; }
.site-footer .legal { border-top: 1px solid #1E293B; margin-top: 40px; padding-top: 24px; font-size: 13.5px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.86); display: none; align-items: center; justify-content: center; padding: 32px; z-index: 300; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1600px, 96vw); max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* Docs layout */
.docs { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 48px 0 0; }
.docs-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14.5px; }
.docs-toc h4 { font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.docs-toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--border); color: var(--slate); text-decoration: none; }
.docs-toc a:hover, .docs-toc a.on { color: var(--brand-blue); border-left-color: var(--brand-blue); background: var(--page-bg); }
.docs-body { min-width: 0; }
.docs-body section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.docs-body section:last-child { border-bottom: 0; }
.docs-body h2 { margin-bottom: 14px; }
.docs-body h3 { margin: 32px 0 10px; scroll-margin-top: 96px; }
.docs-body p { margin: 10px 0; }
.docs-body ul, .docs-body ol { margin: 10px 0 10px 22px; color: var(--slate); }
.docs-body li { margin: 6px 0; }
.docs-body figure { margin: 28px 0; }
@media (max-width: 980px) { .docs { grid-template-columns: 1fr; } .docs-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; } }
table.t { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.t th { text-align: left; background: var(--page-bg); font-weight: 600; color: var(--navy); padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--slate); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { color: var(--navy); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--tint); border-left: 4px solid var(--brand-blue); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 18px 0; color: var(--navy); }
.callout.green { background: var(--green-tint); border-left-color: var(--brand-green); }
.callout p { color: var(--navy); margin: 0; }
.yes { color: var(--brand-green); font-weight: 700; }
.soon { color: #B45309; font-weight: 600; }
.model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.model .box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; }
.model .box b { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: 4px; }
.model .box.blue { border-top: 3px solid var(--brand-blue); }
.model .box.green { border-top: 3px solid var(--brand-green); }
.model .box.amber { border-top: 3px solid #F59E0B; }
@media (max-width: 760px) { .model { grid-template-columns: 1fr; } }

/* Blog */
.post-card .meta { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.post-card .thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 18px; aspect-ratio: 16/10; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(32px, 4vw, 46px); }
.article .byline { display: flex; align-items: center; gap: 14px; margin: 24px 0 32px; }
.article .byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.article .byline b { display: block; color: var(--navy); }
.article .byline span { font-size: 14px; color: var(--muted); }
.article-body p, .article-body li { font-size: 18.5px; line-height: 1.75; color: #334155; }
.article-body p { margin: 18px 0; }
.article-body h2 { font-size: 28px; margin: 44px 0 8px; }
.article-body ul, .article-body ol { margin: 14px 0 14px 24px; }
.article-body li { margin: 8px 0; }
.article-body blockquote { border-left: 4px solid var(--brand-green); background: var(--green-tint); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 28px 0; font-size: 19px; color: var(--navy); font-weight: 500; }
.article-body figure { margin: 32px 0; }
.series { background: var(--page-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 48px; }
.series h4 { font: 600 13px var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.series ol { margin-left: 20px; }
.series li { margin: 6px 0; }
.series li.cur a { font-weight: 700; color: var(--navy); }
