/* RealtyRails shared styles for the inner pages. Same tokens, radius rule and easing as the home page. */
:root { --paper: #F4F5F3; --ink: #0F1512; --stone: #8A938D; --body: #47504B; --muted: #646D68; --mist: #E6ECE7; --card: #FBFCFA; --line: #DDE1DD; --track-base: #D5DAD5; --tie: #C6CCC7; --funded: #1C5A41; --funded-soft: #DCEBE2; --accent: #1C5A41; --on-accent: #F4F5F3; --band: #123A2B; --band-fg: #F1F5F1; --band-muted: #A9C2B4; --band-line: #2C5A45; --band-accent: #A6DCBE; --shadow: rgba(15, 40, 28, 0.10); --shell: #E2E9E4; --hi: rgba(255, 255, 255, 0.75); --sand: #E6ECE7; --sand-2: #DDE6DF; --glow: transparent; --danger: #A1361F; --ease: cubic-bezier(.32, .72, 0, 1); --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif; --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace; color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0D1210; --ink: #EEF2EE; --stone: #77817B; --body: #B4BDB7; --muted: #8E9892; --mist: #121815; --card: #171E1A; --line: #26302A; --track-base: #232C27; --tie: #36423B; --funded: #7FCBA2; --funded-soft: #173326; --accent: #7FCBA2; --on-accent: #0D1210; --band: #143526; --band-fg: #F1F5F1; --band-muted: #A9C2B4; --band-line: #2C5A45; --band-accent: #A6DCBE; --shadow: rgba(0, 0, 0, 0.45); --shell: #111714; --hi: rgba(255, 255, 255, 0.06); --sand: #121815; --sand-2: #1A221D; --glow: transparent; --danger: #F0937C; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0D1210; --ink: #EEF2EE; --stone: #77817B; --body: #B4BDB7; --muted: #8E9892; --mist: #121815; --card: #171E1A; --line: #26302A; --track-base: #232C27; --tie: #36423B; --funded: #7FCBA2; --funded-soft: #173326; --accent: #7FCBA2; --on-accent: #0D1210; --band: #143526; --band-fg: #F1F5F1; --band-muted: #A9C2B4; --band-line: #2C5A45; --band-accent: #A6DCBE; --shadow: rgba(0, 0, 0, 0.45); --shell: #111714; --hi: rgba(255, 255, 255, 0.06); --sand: #121815; --sand-2: #1A221D; --glow: transparent; --danger: #F0937C; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.mist { background: var(--mist); }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -0.038em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; }
h1 span, h2 span { color: var(--stone); }
.lead { font-size: 20px; color: var(--body); max-width: 30em; }
.sub { font-size: 18px; color: var(--body); max-width: 34em; }
.ph { font-family: var(--mono); font-size: 0.86em; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); max-width: 46em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 6px 6px 6px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans); text-decoration: none; border: none; cursor: pointer; white-space: nowrap; transition: transform 0.5s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease); }
.btn .bi { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--paper) 16%, transparent); transition: transform 0.5s var(--ease); }
.btn.small { min-height: 40px; padding: 8px 18px; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn:hover .bi { transform: translate(3px, -1px) scale(1.05); }
.btn:active { transform: scale(0.98); }
.tlink { font-size: 15px; font-weight: 500; text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat, linear-gradient(var(--tie), var(--tie)) 0 100% / 100% 1px no-repeat; transition: background-size 0.6s var(--ease); }
.tlink:hover { background-size: 100% 1px, 100% 1px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding: 10px clamp(16px, 4vw, 40px) 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; min-height: 56px; padding-inline: 22px 8px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 var(--hi), 0 12px 32px -12px var(--shadow); }
@media (prefers-reduced-transparency: reduce) { .nav .wrap { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.mk rect, .mk line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.navlinks { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.navlinks a, .navright .login { text-decoration: none; transition: color 0.4s var(--ease); }
.navlinks a:hover, .navlinks a[aria-current="page"], .navright .login:hover, .navright .login[aria-current="page"] { color: var(--ink); }
.navright { display: flex; align-items: center; gap: 20px; }
.navright .login { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .navlinks { display: none; } }
@media (max-width: 420px) { .navright .login { display: none; } }

/* page head */
.head { padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px); }
.head .lead { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (min-width: 901px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split.side { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .stick { position: sticky; top: 104px; } }

/* rows: a term on the left, what it means on the right */
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 40px; padding-block: 24px; border-top: 1px solid var(--tie); }
.rows > li:last-child { border-bottom: 1px solid var(--tie); }
.rows p { color: var(--body); max-width: 34em; }
@media (min-width: 701px) { .rows > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

/* the path: stations along a rail */
.path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; margin-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--ink); }
.path::before { content: ""; grid-column: 1 / -1; height: 12px; border-bottom: 2px solid var(--ink); }
.path li { position: relative; padding-top: 26px; min-width: 0; }
.path li::before { content: ""; position: absolute; left: 0; top: -21px; width: 6px; height: 28px; border-radius: 3px; background: var(--ink); }
.path li:last-child::before { background: var(--accent); }
.path p { margin-top: 8px; font-size: 15.5px; color: var(--body); }
@media (max-width: 900px) { .path { grid-template-columns: minmax(0, 1fr); border-top: 0; } .path::before { content: none; } .path li { padding: 22px 0 22px 26px; border-top: 1px solid var(--tie); } .path li::before { top: 24px; } }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 15px; }

/* forms: a card inside a shell */
.shell { padding: 8px; border-radius: 28px; background: var(--shell); border: 1px solid var(--line); box-shadow: 0 34px 70px -28px var(--shadow); }
.core { padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi); }
form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 561px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
label, legend { font-size: 14.5px; font-weight: 500; padding: 0; }
.hint { font-size: 13.5px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--tie); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.err { font-size: 13.5px; color: var(--danger); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--tie); font-weight: 400; font-size: 15px; cursor: pointer; transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.done h2 { font-size: 28px; }
.done p { margin-top: 12px; color: var(--body); }
.done .ph { display: block; margin-top: 18px; }
.aside { display: flex; flex-direction: column; gap: 28px; }
.aside dt { font-weight: 500; }
.aside dd { color: var(--body); margin-top: 4px; }
.aside dl { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; border-top: 1px solid var(--tie); }
.copy { user-select: all; font-family: var(--mono); font-size: 15px; }
.gate { max-width: 460px; margin-inline: auto; }
.gate h1 { font-size: clamp(30px, 4vw, 40px); }
.gate .sub { margin-top: 10px; font-size: 16.5px; }
.gate form { margin-top: 28px; }
.status { font-size: 14.5px; color: var(--body); padding: 12px 14px; border-radius: 14px; background: var(--mist); }
.gate .foot-note { margin-top: 22px; font-size: 15px; color: var(--body); }

/* rail gauge under every page head, and a four-stop path */
.head .wrap::after { content: ""; display: block; grid-column: 1 / -1; height: 6px; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--tie); border-bottom: 1px solid var(--tie); }
.head { padding-bottom: 0; }
.head + .section { padding-top: clamp(56px, 7vw, 96px); }
@media (min-width: 901px) { .path.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* bento: one lead tile and four supporting */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.bento li { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: clamp(22px, 2.4vw, 30px); border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi); }
.bento p { color: var(--body); font-size: 16px; }
.bento .lead-tile { justify-content: flex-end; gap: 16px; min-height: 260px; padding: clamp(26px, 3.4vw, 44px); background: var(--band); color: var(--band-fg); box-shadow: 0 30px 60px -30px var(--shadow); }
.bento .lead-tile h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.bento .lead-tile p { color: var(--band-muted); font-size: 17.5px; max-width: 26em; }
@media (min-width: 561px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .lead-tile { grid-column: 1 / -1; } }
@media (min-width: 1001px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bento .lead-tile { grid-column: span 2; grid-row: span 2; } }

/* faq */
details { border-top: 1px solid var(--tie); }
details:last-of-type { border-bottom: 1px solid var(--tie); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-block: 22px; font-size: 18px; font-weight: 500; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary i { position: relative; width: 14px; height: 14px; flex: none; margin-top: 5px; }
summary i::before, summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink); transition: transform 0.4s var(--ease); }
summary i::after { transform: rotate(90deg); }
details[open] summary i::after { transform: rotate(0deg); }
details p { padding-bottom: 24px; color: var(--body); max-width: 34em; }

/* legal */
.draft { display: inline-block; margin-top: 22px; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--stone); }
.toc { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--body); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 65ch; display: flex; flex-direction: column; gap: 44px; }
.prose section { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--body); }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
@media (max-width: 900px) { .toc { display: none; } }

/* closing band and footer */
.band { background: var(--band); color: var(--band-fg); }
.band h2 span, .band .sub { color: var(--band-muted); }
.band .sub { margin-top: 14px; }
.band .btn { background: var(--band-fg); color: var(--band); }
.band .btn .bi { background: color-mix(in srgb, var(--band) 12%, transparent); }
.band .btn:hover { background: var(--band-accent); color: var(--band); }
.band .tlink { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat, linear-gradient(var(--band-line), var(--band-line)) 0 100% / 100% 1px no-repeat; }
.band .tlink:hover { background-size: 100% 1px, 100% 1px; }
.foot { padding-block: 56px 40px; }
.foot .top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 700px) { .foot .top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot .top > div:first-child { grid-column: 1 / -1; } }
.foot .desc { color: var(--body); font-size: 15px; margin-top: 14px; max-width: 26em; }
.foot ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot ul a { text-decoration: none; color: var(--body); }
.foot ul a:hover { color: var(--ink); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); max-width: 70em; }

@media (prefers-reduced-motion: no-preference) { .in { animation: inUp 0.9s var(--ease) both; } .in.d1 { animation-delay: 0.08s; } .in.d2 { animation-delay: 0.16s; } @keyframes inUp { from { opacity: 0.25; transform: translateY(14px); } to { opacity: 1; transform: none; } } }

/* skip link and the small-screen menu (shared by every page) */
.skip { position: absolute; left: 16px; top: -64px; z-index: 40; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.menu-btn { display: none; flex: none; position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.navmenu { position: absolute; top: 100%; left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); display: flex; flex-direction: column; max-width: 1120px; margin: 8px auto 0; padding: 10px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 24px 50px -20px var(--shadow); }
.navmenu a { padding: 14px; border-radius: 14px; text-decoration: none; font-size: 17px; }
.navmenu a:hover, .navmenu a[aria-current="page"] { background: var(--mist); }
@media (max-width: 900px) { .menu-btn { display: block; } .navright { gap: 6px; } .navright .login { display: none; } }
@media (min-width: 901px) { .navmenu { display: none; } }

/* accent touches: primary buttons, selection, small marks */
.btn { background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--ink); color: var(--paper); }
.band .btn { background: var(--band-fg); color: var(--band); }
.band .btn:hover { background: var(--band-accent); color: var(--band); }
::selection { background: var(--funded-soft); }
.tlink:hover { color: var(--accent); }
.band .tlink:hover { color: inherit; }
summary i::before, summary i::after { background: var(--accent); }
.seg label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
