/* ScribbleRoots platform site (landing, sign up, log in, reset), styled like the other Scribble apps:
   white and slate, Inter + Space Grotesk, very bold headings, gradient primary buttons, owl mascot.
   ScribbleRoots' app colour is emerald (ScribbleOps is blue, ScribbleSheets lime, ScribbleMail teal). */
:root {
	--app: #047857; --app-2: #059669; --app-3: #10b981; --app-on-dark: #6ee7b7; --app-soft: #ecfdf5; --app-ring: #a7f3d0;
	--ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --soft: #f8fafc; --soft-2: #f1f5f9;
	--navy: #020617; --navy-2: #0f172a;
	--display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1152px; --gutter: clamp(16px, 4vw, 24px);
	--shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body.landing { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--app); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.l-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted, .l-muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--app-3); outline-offset: 2px; }
svg { width: 1em; height: 1em; flex: none; }

/* Wordmark: the Scribble logo image + "Roots" in the app colour */
.wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; font: 900 22px/1 var(--body); letter-spacing: -.02em; }
.wordmark img { display: inline-block; height: .82em; width: auto; vertical-align: baseline; }
.wm-suffix { margin-left: .06em; color: var(--app); }
.wordmark.on-dark .wm-chip { display: inline-block; background: #fff; border-radius: 6px; padding: .1em .18em 0; line-height: 0; }
.wordmark.on-dark .wm-suffix { color: var(--app-on-dark); }
.owl { object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }

/* Header */
.l-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.l-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.l-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.owl-header { width: 46px; height: 46px; }
.l-brand-text { display: flex; flex-direction: column; min-width: 0; }
.l-brand-text .wordmark { font-size: 24px; }
.l-tagline { font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 700; }
.l-nav a { color: #475569; text-decoration: none; } .l-nav a:hover { color: var(--app); }
.l-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.l-login { padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #334155; text-decoration: none; }
.l-login:hover { background: var(--soft-2); }
.l-start { padding: 9px 16px; border-radius: 12px; font-size: 14px; font-weight: 900; color: #fff; text-decoration: none;
	background: linear-gradient(90deg, var(--app), var(--app-3)); box-shadow: 0 6px 14px -4px rgba(4,120,87,.35); }

/* Buttons */
.btn-primary, .btn-secondary, .l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px;
	border-radius: 16px; font: 900 14px/1.2 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 0; transition: all .2s; }
.btn-primary, .l-btn-primary { color: #fff; background: linear-gradient(90deg, #065f46, var(--app-2), #065f46); background-size: 200% 100%;
	box-shadow: 0 20px 25px -5px rgba(4,120,87,.25), 0 8px 10px -6px rgba(4,120,87,.2); }
.btn-primary:hover, .l-btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-secondary, .l-btn-ghost { color: #1e293b; background: #fff; border: 1px solid #cbd5e1; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-weight: 800; }
.btn-secondary:hover, .l-btn-ghost:hover { background: var(--soft); }
.l-btn-block { width: 100%; }

/* Hero */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--soft) 60%, rgba(241,245,249,.7) 100%);
	padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px; align-items: center; }
.hero-copy { grid-column: span 6; min-width: 0; }
.hero-grid > .mock { grid-column: span 6; }
.split > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; font-weight: 700; }
.grad { background: linear-gradient(90deg, #065f46, var(--app-2), #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); font-weight: 500; color: #475569; line-height: 1.6; margin: 24px 0 0; max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center-row { justify-content: center; }
.fine { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Product mockups */
.mock { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-xl); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--soft-2); }
.mock-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; } .mock-title svg { color: var(--app); }
.pill { border-radius: 999px; background: var(--soft-2); padding: 2px 8px; font-size: 11px; font-weight: 700; color: #475569; white-space: nowrap; }
.mock-body { display: grid; gap: 8px; padding: 16px; font-size: 13px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: #334155; }
.mock-row strong { color: var(--ink); margin-right: 4px; }
.tag { border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.tag-cited { background: #d1fae5; color: #065f46; } .tag-note { background: #e0f2fe; color: #075985; }
.mock-ped { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; padding: 4px 0; }
.ped { padding: 8px 10px; border-radius: 10px; border-left: 4px solid var(--app); background: var(--soft); font-weight: 700; font-size: 12px; }
.ped.me { background: var(--app-soft); } .ped.m { border-left-color: #3b82f6; } .ped.f { border-left-color: #db2777; }
.ped-pair { display: grid; gap: 6px; }
.mock-callout { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.mock-callout svg { margin-top: 3px; }
.mock-callout.private { background: var(--app-soft); color: #064e3b; box-shadow: inset 0 0 0 1px var(--app-ring); }
.mock-meta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; font-size: 11px; color: var(--muted); }
.mock-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--soft-2); }
.tile { text-align: center; padding: 14px 6px; } .tile + .tile { border-left: 1px solid var(--soft-2); }
.tile b { display: block; font: 900 22px/1.1 var(--body); } .tile span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }

/* Sections */
.band { padding: clamp(64px, 9vw, 96px) 0; }
.band.soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.dark { background: var(--navy); color: #cbd5e1; }
.band.dark h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--app); margin: 0 0 12px; }
.eyebrow.on-dark { color: var(--app-on-dark); }
.band h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; }
.body-lg { font-size: 18px; line-height: 1.65; color: #475569; margin: 16px 0 0; }
.band.dark .body-lg { color: #cbd5e1; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: #334155; }
.checks li { display: flex; gap: 10px; } .checks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--app); stroke-width: 2.6; }
.checks.dark { color: #e2e8f0; } .checks.dark svg { color: var(--app-on-dark); }
.privacy-card { border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 22px; }
.pc-label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin: 8px 0 10px; }
.pc-label + .pc-row { margin-top: 0; }
.pc-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; font-weight: 700; margin-bottom: 8px; }
.pc-row em { font-style: normal; font-weight: 500; color: #94a3b8; margin-left: auto; }
.pc-row.hidden { background: rgba(110,231,183,.1); color: var(--app-on-dark); box-shadow: inset 0 0 0 1px rgba(110,231,183,.3); }
.pc-row.hidden svg { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #64748b; } .dot.m { background: #60a5fa; } .dot.f { background: #f472b6; }
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 40px; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: box-shadow .2s, border-color .2s; }
.tool:hover { box-shadow: 0 10px 25px -8px rgba(15,23,42,.12); border-color: #cbd5e1; }
.tool > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; border: 1px solid #d1fae5; background: var(--app-soft); color: var(--app); }
.tool.c2 > svg { color: #0284c7; background: #f0f9ff; border-color: #e0f2fe; } .tool.c3 > svg { color: #c026d3; background: #fdf4ff; border-color: #fae8ff; }
.tool.c4 > svg { color: #e11d48; background: #fff1f2; border-color: #ffe4e6; } .tool.c5 > svg { color: #4f46e5; background: #eef2ff; border-color: #e0e7ff; }
.tool.c6 > svg { color: #0d9488; background: #f0fdfa; border-color: #ccfbf1; }
.tool h3 { font-size: 18px; margin: 14px 0 6px; } .tool p { margin: 0; color: #475569; font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.steps li { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 900;
	background: linear-gradient(135deg, #065f46, var(--app-3)); margin-bottom: 12px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; } .steps p { margin: 0; color: #475569; }
.price-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 40px auto 0; max-width: 880px;
	background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-xl); }
.price { margin: 0 0 8px; font-weight: 700; color: #475569; } .price b { font: 900 48px/1 var(--body); color: var(--ink); margin-right: 6px; }
.price-card .btn-primary { margin-top: 18px; }
.price-card .checks { margin: 0; }
.faq { max-width: 820px; }
.faq .center { margin-bottom: 32px; }
.faq details { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 30px 18px 0; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 24px; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.faq details p { margin: 0 0 18px; color: #475569; }
.cta { background: linear-gradient(180deg, var(--soft) 0%, #ecfdf5 100%); }
.owl-cta { width: 96px; height: 96px; margin-bottom: 8px; }
.cta .body-lg { margin-bottom: 0; }

/* Footer */
.l-footer { background: var(--navy); color: #94a3b8; padding: 48px 0 24px; }
.owl-footer { width: 40px; height: 40px; }
.l-footer .wordmark { font-size: 22px; }
.l-foot-muted { margin: 12px 0 0; max-width: 34ch; font-size: 14px; }
.l-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.l-footer h3 { font: 900 12px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.l-footer nav a { display: block; color: #94a3b8; text-decoration: none; padding: 4px 0; font-size: 14px; } .l-footer nav a:hover { color: #fff; }
.l-footer-base { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px; font-size: 13px; color: #64748b; }

/* Auth (sign up, log in, reset) */
.auth { min-height: calc(100vh - 69px); display: grid; place-items: start center; padding: clamp(28px, 6vw, 64px) var(--gutter);
	background: radial-gradient(800px 360px at 50% -40px, #ecfdf5, transparent 70%); }
.auth-card { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 5vw, 36px); box-shadow: var(--shadow-xl); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.owl-auth { width: 84px; height: 84px; }
.auth-brand .wordmark { font-size: 26px; }
.auth-tag { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-card > .l-muted { text-align: center; margin: 0 0 18px; font-size: 14px; }
.auth-card fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.auth-card legend { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.l-field { display: block; font-weight: 700; font-size: 13px; color: #334155; margin-bottom: 12px; }
.l-field input { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; font: 500 16px var(--body); color: var(--ink);
	background: var(--soft); border: 1px solid #cbd5e1; border-radius: 12px; }
.l-field input:focus { outline: none; background: #fff; border-color: var(--app-3); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.l-field small { display: block; font-weight: 500; margin-top: 6px; color: var(--muted); }
.l-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slug-input { display: flex; margin-top: 6px; }
.slug-input input { margin-top: 0; border-radius: 12px 0 0 12px; min-width: 0; }
.slug-suffix { display: flex; align-items: center; padding: 0 12px; background: var(--soft-2); border: 1px solid #cbd5e1; border-left: 0; border-radius: 0 12px 12px 0;
	color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug-status.ok { color: var(--app); } .slug-status.bad { color: #be123c; }
.l-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #475569; margin: 4px 0 18px; }
.l-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--app); flex: none; }
.l-alert { background: #fff1f2; color: #9f1239; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; box-shadow: inset 0 0 0 1px #fecdd3; }
.l-ok { background: var(--app-soft); color: #064e3b; border-radius: 12px; padding: 14px; margin: 0 0 16px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--app-ring); }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: 14px; }
.site-address { text-align: center; font: 900 18px/1.3 var(--body); word-break: break-all; }
.auth-card .lead { text-align: center; font-size: 16px; margin: 0; }
.next-steps { color: #475569; font-size: 14px; padding-left: 20px; margin: 20px 0 0; } .next-steps li { margin-bottom: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Tablet / phone */
@media (max-width: 1023px) {
	.l-nav { display: none; }
	.hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero-copy, .hero-grid > .mock { grid-column: auto; }
	.hero-copy { text-align: center; } .lead { margin-left: auto; margin-right: auto; } .hero-ctas { justify-content: center; }
	.split, .price-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.l-header-bar { min-height: 58px; }
	.owl-header { width: 34px; height: 34px; }
	.l-brand-text .wordmark { font-size: 19px; }
	.l-tagline { display: none; }
	.l-login { padding: 8px; font-size: 13px; } .l-start { padding: 8px 12px; font-size: 13px; }
	.hero { padding: 40px 0 48px; }
	.hero-ctas { flex-direction: column; } .hero-ctas a { width: 100%; }
	.tiles { grid-template-columns: repeat(2, 1fr); } .tile:nth-child(3) { border-left: 0; }
	.l-row { grid-template-columns: 1fr; }
	.l-footer-grid { grid-template-columns: 1fr 1fr; } .l-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* Platform admin */
.band.pa { padding-top: 40px; }
.pa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pa-title { font-size: clamp(28px, 4vw, 40px); }
.pa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pa-stats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pa-stats b { display: block; font: 900 24px/1.1 var(--body); } .pa-stats span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pa-search { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; } .pa-search .btn-secondary { min-height: 48px; margin-bottom: 12px; }
.pa-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pa-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--soft); padding: 10px 14px; }
.pa-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.pa-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 900; background: var(--soft-2); color: #334155; }
.pa-pill.ok { background: #d1fae5; color: #065f46; } .pa-pill.bad { background: #ffe4e6; color: #9f1239; }
.pa-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pa-actions button { font: 700 12px var(--body); padding: 6px 10px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.pa-actions button:hover { background: var(--soft); }
.pa-trial { display: inline-flex; gap: 4px; } .pa-trial input { width: 62px; padding: 5px 6px; border: 1px solid #cbd5e1; border-radius: 10px; font: 600 12px var(--body); }
