/* DiviRise — divirise.com. One page, no build step, no external requests. */

:root {
	--ink: #12161c;          /* the brand's near-black, from the listing images */
	--ink-2: #1a1f28;
	--ink-line: #2b323f;
	--on-ink: #ffffff;
	--on-ink-2: #c3cad6;
	--on-ink-3: #909bab;

	--paper: #ffffff;
	--paper-2: #f5f6f8;
	--line: #e3e6eb;
	--text: #1d232c;
	--text-2: #4b5563;

	--brand: #ff3300;        /* the mark; used on dark ground and for graphics only */
	--brand-fill: #e02b00;   /* buttons: white text on it measures 4.65:1 */
	--brand-text: #c42500;   /* links and accents on white */

	--radius: 14px;
	--shadow: 0 1px 2px rgb(18 22 28 / 6%), 0 12px 32px rgb(18 22 28 / 10%);
	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-text); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); font-size: 15px; }
.lead { font-size: 19px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--paper); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(18 22 28 / 92%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; fill: var(--brand); }
.brand__name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.brand__name span { color: var(--brand); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.site-nav a { color: var(--on-ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--on-ink); }

/* Buttons */
.button {
	display: inline-block; padding: 13px 22px; border-radius: 10px;
	background: var(--brand-fill); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
	border: 2px solid var(--brand-fill);
}
.button:hover { background: #c42500; border-color: #c42500; }
.button--ghost { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
.button--ghost:hover { background: var(--ink-2); border-color: var(--on-ink-3); }
.button.is-soon { background: transparent; color: var(--on-ink); border: 2px dashed var(--on-ink-3); cursor: default; }
.button.is-soon:hover { background: transparent; }

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; right: -180px; top: -260px; width: 620px; height: 620px; border-radius: 50%; background: var(--brand); opacity: 0.07; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.hero .lead { color: var(--on-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero__note { color: var(--on-ink-3); font-size: 14px; margin: 0; }

/* Screenshots */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero__shot { border-color: var(--ink-line); box-shadow: 0 24px 60px rgb(0 0 0 / 45%); }
.feature__shot img, .split .shot img { aspect-ratio: 16 / 11; width: 100%; object-fit: cover; object-position: top; }
.shot--pair { position: relative; overflow: visible; background: transparent; border: 0; box-shadow: none; padding-bottom: 48px; }
.shot--pair > img:first-child { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: auto; object-fit: initial; }
.feature__shot .shot__phone { position: absolute; right: 6%; bottom: 0; width: 30%; aspect-ratio: auto; object-fit: initial; border-radius: 18px; border: 5px solid var(--ink); box-shadow: 0 16px 40px rgb(18 22 28 / 30%); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-ink); }
.section__title { max-width: 720px; }
.section__lead { max-width: 720px; color: var(--text-2); font-size: 19px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--flip .feature__text { order: 2; }
.feature__text p { color: var(--text-2); }
.feature ul, .checks { list-style: none; padding: 0; margin: 0; }
.feature li { position: relative; padding-left: 28px; margin: 10px 0; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 14px; height: 4px; border-radius: 2px; background: var(--brand-fill); }

/* Built for Divi 5 */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.checks li { margin: 0 0 18px; color: var(--text-2); }
.checks strong { color: var(--text); }

/* Requirements */
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.reqs div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.reqs dt { font-weight: 700; margin-bottom: 4px; }
.reqs dd { margin: 0; color: var(--text-2); font-size: 15px; }

/* Support */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.support .lead { color: var(--on-ink-2); }
.support .button { font-size: 18px; }
.support__tip { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 28px; }
.support__tip ol { margin: 0 0 16px; padding-left: 22px; color: var(--on-ink-2); }
.support__tip li { margin: 8px 0; }
.support__tip strong { color: var(--on-ink); }
.section--dark .muted { color: var(--on-ink-3); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-3); border-top: 1px solid var(--ink-line); font-size: 14px; padding: 28px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-footer p { margin: 0; }

/* Narrow screens */
@media (max-width: 900px) {
	.hero__inner, .feature, .split, .support { grid-template-columns: 1fr; }
	.feature--flip .feature__text { order: 0; }
	.reqs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.site-nav a:not(:nth-last-child(-n+2)) { display: none; }
	.reqs { grid-template-columns: 1fr; }
	.hero__actions .button { width: 100%; text-align: center; }
}

/* Documentation page (docs/index.html, generated from _src/docs.md) */
.site-nav a[aria-current="page"] { color: var(--on-ink); }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.docs__toc nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.docs__toc-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.docs__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.docs__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.docs__toc a:hover { color: var(--text); border-left-color: var(--brand-fill); }
.docs__body { max-width: 780px; }
.docs__body h1 { font-size: clamp(34px, 5vw, 48px); }
.docs__body h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--line); }
.docs__body h3 { font-size: 21px; margin-top: 36px; }
.docs__body .lead { font-size: 19px; color: var(--text-2); }
.docs__body ol, .docs__body ul { padding-left: 24px; margin: 0 0 18px; }
.docs__body li { margin: 6px 0; }
.docs__body li > ul { margin: 6px 0 0; }
.docs__body code { font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.docs__body pre { background: var(--ink); color: var(--on-ink-2); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px; }
.docs__body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; overflow-wrap: normal; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; }
.docs__body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.docs__body th, .docs__body td { min-width: 9em; text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.docs__body th { background: var(--paper-2); font-weight: 700; }
.docs__body tr:last-child td { border-bottom: 0; }
.docs__body figure { margin: 24px 0 28px; }
.docs__body figure img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 960px; width: auto; }
.docs__body figcaption { color: var(--text-2); font-size: 14px; margin-top: 10px; }
.docs__body h2[id], .docs__body h3[id] { scroll-margin-top: 84px; }

@media (max-width: 900px) {
	.docs { grid-template-columns: minmax(0, 1fr); }
	.docs__toc nav { position: static; max-height: none; }
	.docs__toc { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}

.section--dark a.on-dark { color: #ff6a3d; }
