/* rooferjoe.io — one stylesheet for the whole site: home, features, pricing,
   how-to, and the account pages. Drafting-paper skin shared with the app. */
*, *::before, *::after { box-sizing: border-box; }

:root {
	--bg: #f4f1ea;
	--paper: #fdfcf7;
	--ink: #1a1a1a;
	--ink-soft: #46433d;
	--ink-faint: #6f6a60;
	--line: #c9c3b4;
	--line-soft: #e4dfd2;
	--grid: #ebe6d8;
	--accent: #1e4d6b;
	--accent-deep: #163b53;
	--accent-soft: #dde7ee;
	--ok: #1f5e3a;  --ok-bg: #e6f2ea;  --ok-line: #b9d8c4;
	--err: #a3271b; --err-bg: #fbe9e6; --err-line: #efb9b2;
	--warn: #7a4a0d; --warn-bg: #fbf1dd; --warn-line: #ead7a6;
	--radius: 4px;
	--shadow: 0 1px 0 rgba(30, 40, 50, .04), 0 6px 18px rgba(30, 45, 60, .08);
	--ease: cubic-bezier(.23, 1, .32, 1);
	--sans: 'IBM Plex Sans', system-ui, sans-serif;
	--cond: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
	--mono: 'IBM Plex Mono', Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background:
		linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--bg);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { font-family: var(--cond); line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 600px; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border: 1px solid var(--line); z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.top {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 10;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: .06em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .accent { color: var(--accent); }
.brand .tag { margin-left: 10px; padding: 2px 8px; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 12px; letter-spacing: .1em; vertical-align: middle; }
.top-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 16px; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.top-nav a.btn { color: #fff; box-shadow: none; }
.top-nav .btn { padding: 8px 16px; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: var(--radius);
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost, .btn.secondary { background: transparent; color: var(--accent); }
.btn-ghost:hover, .btn.secondary:hover { background: var(--accent-soft); color: var(--accent-deep); box-shadow: none; }
.btn-lg { padding: 14px 26px; font-size: 18px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0 0; }
.cta-row.center { justify-content: center; margin-top: 32px; }

/* Sections */
.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band > .wrap > h2, .band > h2 { margin-bottom: 8px; }
.band .intro { color: var(--ink-soft); max-width: 700px; margin-bottom: 28px; font-size: 17px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero-copy > * { animation: rise 600ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-art { margin: 0; animation: rise 700ms var(--ease) 200ms both; }
.hero-art img { display: block; width: 100%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.hero-art figcaption { font-family: var(--mono); font-size: 14px; color: var(--ink-faint); margin-top: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* What it does: two-column list, no cards */
.what { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 8px; }
.what div { border-top: 1px solid var(--line); padding: 18px 0 16px; }
.what h3 { margin-bottom: 4px; }
.what p { margin: 0; color: var(--ink-soft); max-width: 520px; }

/* See it work: numbered rail, copy, screenshots. Same side every row. */
.show { display: grid; grid-template-columns: 56px minmax(220px, 2fr) minmax(300px, 3fr); gap: 24px; align-items: center; padding: 28px 0; border-top: 1px dashed var(--line); }
.show:first-of-type { border-top: 0; padding-top: 4px; }
.show .num { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.show-copy h3 { margin-bottom: 6px; }
.show-copy p { margin: 0; color: var(--ink-soft); max-width: 520px; }
.show-pics { display: grid; gap: 14px; }
.show-pics.two { grid-template-columns: 1fr 1fr; }
.show-pics.two.tall { grid-template-columns: 3fr 2fr; align-items: start; }
.show-pics figure { margin: 0; }
.show-pics img { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.plan {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 24px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.plan h3 { margin-bottom: 2px; }
.plan .mark { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.plan .price { font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: 1; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.plan .allow { color: var(--ink-soft); margin: 0 0 14px; }
.plan ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); }
.plan li { margin: 4px 0; }
.plan form, .plan .btn { margin-top: auto; }
.plan .btn { width: 100%; }
.plan-notes { margin-top: 20px; color: var(--ink-soft); max-width: 700px; }

/* FAQ, tables */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin: 0; }
.faq div { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.faq dt { font-weight: 600; margin: 0 0 2px; }
.faq dd { margin: 0; color: var(--ink-soft); }
.tablewrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-family: var(--cond); font-size: 18px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:nth-child(even) { background: rgba(0, 0, 0, .02); }
tbody tr:last-child td { border-bottom: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 28px 0; color: var(--ink-faint); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); }
.foot p { margin: 0; }

/* Features page */
.features { --ridge: #c0392b; --hip: #e67e22; --eave: #2e86de; --rake: #2e7d32; --valley: #8e44ad; --transition: #d4a017; --headwall: #d81b60; --sidewall: #5d4037; --step: #00838f; --stepup: #00acc1; --clerestory: #16a085; --backpan: #546e7a; --panelline: #c9d2da; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 22px; height: 5px; border-radius: 2px; }

/* How-to page */
.howto { max-width: 860px; }
.howto h2 { font-size: 24px; margin-top: 36px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.howto h3 { font-size: 20px; margin-top: 24px; }
.howto li { margin: 6px 0; }
.howto .b { display: inline-block; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 6px; font-size: 15px; background: var(--paper); white-space: nowrap; }
.howto .hint { color: var(--ink-soft); }

/* Account pages */
.acct-wrap { max-width: 480px; margin: 48px auto; padding: 0 20px; }
.acct-wrap.wide { max-width: 1160px; }
.acct-wrap.auth { max-width: 1160px; display: grid; grid-template-columns: minmax(300px, 440px) minmax(300px, 1fr); gap: 40px; align-items: start; }
.acct-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.acct-card + .acct-card { margin-top: 20px; }
.acct-card h1 { font-size: 32px; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.acct-card .lede { font-size: 16px; margin-bottom: 20px; }
.pitch { padding-top: 8px; }
.pitch h2 { font-size: 28px; }
.pitch ul { padding-left: 20px; color: var(--ink-soft); margin: 0 0 20px; }
.pitch li { margin: 6px 0; }
.pitch .plan-line { font-family: var(--mono); font-size: 15px; color: var(--ink-faint); margin: 0 0 8px; }
.pitch img { display: block; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; margin: 0 0 20px; }
.acct-card label { display: block; font-weight: 600; margin: 16px 0 6px; }
.acct-card input[type=text], .acct-card input[type=email], .acct-card input[type=password] {
	width: 100%; height: 44px; padding: 0 12px; font: inherit; color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.acct-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pw-field { position: relative; }
.pw-field input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink-soft); cursor: pointer; }
.acct-card form > .btn { width: 100%; margin-top: 24px; height: 48px; }
.alt { margin: 16px 0 0; color: var(--ink-soft); text-align: center; }
.field-note { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; }
.flash { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 20px; border: 1px solid transparent; }
.flash.err  { background: var(--err-bg);  color: var(--err);  border-color: var(--err-line); }
.flash.ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
h2.section { font-size: 24px; text-transform: none; letter-spacing: 0; margin-bottom: 14px; }
.btn-inline { width: auto; margin-top: 8px; }
.inline-form { display: inline-block; margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 8px; }
.plan-pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; background: #fff; }
.plan-pick h3 { margin-bottom: 4px; }
.plan-price { font-family: var(--cond); font-size: 30px; font-weight: 700; margin: 0 0 2px; }
.plan-price span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.plan-allow { color: var(--ink-soft); margin: 0 0 6px; }
.plan-pick .btn-inline { width: 100%; }
.table-scroll { overflow-x: auto; }
.acct-table th, .acct-table td { padding: 10px 8px; }
.acct-table .field-note { display: inline; }
.no-gap { margin: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.dash-head h1 { font-size: 32px; text-transform: none; letter-spacing: 0; margin: 0; }
.dash-head .eyebrow { margin-bottom: 4px; }
.dash-head .eyebrow span { text-transform: none; letter-spacing: 0; }
.dash-actions { display: flex; gap: 10px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 2px; }
.stat-label { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.stat strong { font-family: var(--cond); font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-note { font-size: 14px; color: var(--ink-soft); }
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg); }
.empty p { max-width: 560px; margin: 0 0 12px; color: var(--ink-soft); }
.acct-table td.addr { font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.badge.off { background: var(--bg); color: var(--ink-faint); border: 1px solid var(--line); }

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
	.hero-art { order: -1; }
	.what, .faq { grid-template-columns: 1fr; }
	.show { grid-template-columns: 40px 1fr; }
	.show .num { font-size: 32px; }
	.show-pics { grid-column: 2; }
	.show-pics.two, .show-pics.two.tall { grid-template-columns: 1fr; }
	.acct-wrap.auth { grid-template-columns: 1fr; }
	.acct-wrap.auth .pitch { order: -1; }
	.acct-card { padding: 22px; }
}
@media (max-width: 600px) {
	.top .wrap { min-height: 56px; padding: 8px 16px; }
	.top-nav { gap: 12px; }
	.wrap { padding: 0 16px; }
	h2 { font-size: 26px; }
	.band { padding: 40px 0; }
	.show { grid-template-columns: 1fr; }
	.show-pics { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-copy > *, .hero-art { animation: none; }
	.btn { transition: none; }
}

.legend .ridge { background: var(--ridge); } .legend .hip { background: var(--hip); } .legend .valley { background: var(--valley); } .legend .eave { background: var(--eave); } .legend .rake { background: var(--rake); } .legend .headwall { background: var(--headwall); } .legend .sidewall { background: var(--sidewall); } .legend .step { background: var(--step); } .legend .stepup { background: var(--stepup); } .legend .transition { background: var(--transition); } .legend .clerestory { background: var(--clerestory); } .legend .backpan { background: var(--backpan); }
