/* Corner Lot company site. Tokens from ~/Developer/cornerlot/brand-system/tokens.css (2026-10-16). */
@font-face {
  font-family: Outfit;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --surface: #f3f6fa;
  --surface-raised: #fafcfe;
  --ocean-soft: #e2edf9;
  --line: #d3dde8;
  --ink: #0a1f3a;
  --ink-muted: #44566b;
  --ocean: #0e5fc0;
  --on-ocean: #f4f8fc;
  --atmosphere: #5aa9ee;
  --sky: #bbd9f5;
  --abyss: #071a33;
  --on-abyss: #f4f8fc;
  --warning: #c2410c;
  --focus: #0e5fc0;
  --sunlit: #f0b03e;
  --on-sunlit: #071a33;
  --street: #0e5fc0;
  --field-border: #44566b;
  --font-display: Outfit, 'Avenir Next', 'Segoe UI', sans-serif;
  --font-sans: Figtree, 'Segoe UI', system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --surface: #071a33;
    --surface-raised: #0f2c54;
    --ocean-soft: #0b2a52;
    --line: #1d4378;
    --ink: #f4f8fc;
    --ink-muted: #b7c9de;
    --ocean: #5aa9ee;
    --on-ocean: #071a33;
    --sky: #14407a;
    --abyss: #0e3563;
    --on-abyss: #f4f8fc;
    --warning: #fb923c;
    --focus: #5aa9ee;
    --street: #2f86e0;
    --field-border: #b7c9de;
  }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 var(--space-4); }
h1 { font-weight: 700; font-size: clamp(36px, 7vw, 56px); line-height: 1.07; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(28px, 4.4vw, 36px); line-height: 1.17; }
h3 { font-weight: 600; font-size: 20px; line-height: 26px; }
p { margin: 0 0 var(--space-4); }
.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.caption { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-muted); }
.overline {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4);
}
.narrow { max-width: 720px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--space-4); top: -48px; z-index: 10;
  background: var(--ocean); color: var(--on-ocean); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--space-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px var(--space-6); border-radius: var(--radius-md); border: 2px solid var(--ocean);
  background: var(--ocean); color: var(--on-ocean); font: 600 16px/24px var(--font-sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--ocean); }
.btn-small { min-height: 40px; padding: 6px var(--space-4); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-block; padding: var(--space-2) 0; }
.brand img { height: 28px; width: auto; }
.nav { list-style: none; display: flex; align-items: center; gap: var(--space-6); margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ocean); text-decoration: underline; }
@media (max-width: 759px) { .nav-hide { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: var(--space-12) 0 0; }
.hero-grid { display: grid; gap: var(--space-8); align-items: end; }
.hero-copy { padding-bottom: var(--space-4); }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-art { justify-self: end; width: 180px; margin-right: calc(var(--gutter) * -1 - 24px); margin-bottom: -24px; }
.corner-art .street { fill: var(--street); }
.corner-art .lot { fill: var(--sunlit); }
.corner-art .center { fill: none; stroke: var(--sky); stroke-width: 0.6; stroke-dasharray: 2 1.6; }
@media (min-width: 860px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-copy { padding-bottom: 96px; }
  .hero-art { width: 420px; margin-right: -120px; margin-bottom: -60px; }
}

/* Sections */
.section { padding: var(--space-12) 0; }
@media (min-width: 860px) { .section { padding: 80px 0; } }
.section-tint { background: var(--ocean-soft); }
.note { color: var(--ink-muted); margin-top: var(--space-6); }

.steps { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-6); counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.step p { margin: 0; color: var(--ink-muted); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-bottom: var(--space-4); border-radius: 2px; background: var(--ocean); color: var(--on-ocean);
  font: 700 20px/1 var(--font-display);
}

.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.card p { margin: 0; color: var(--ink-muted); }
.split { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: var(--space-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  background: var(--ocean); border-radius: 1px;
}

.trades { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .trades { grid-template-columns: 1fr 1fr; } }
.trade { border-left: 4px solid var(--ocean); background: var(--surface-raised); padding: var(--space-4) var(--space-6); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.trade h3 { margin-bottom: var(--space-1); }
.trade p { margin: 0; color: var(--ink-muted); }

.asks { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .asks { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { margin-top: var(--space-6); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) 40px var(--space-4) 0; position: relative;
  font: 600 18px/26px var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: 400 24px/1 var(--font-sans); color: var(--ocean);
}
.faq details[open] summary::after { content: '\2212'; }
.faq-a { padding: 0 0 var(--space-4); color: var(--ink-muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* Apply */
.apply { background: var(--abyss); color: var(--on-abyss); }
.apply h2 { color: var(--on-abyss); }
.apply-grid { display: grid; gap: var(--space-8); }
@media (min-width: 860px) { .apply-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.apply-intro p { font-size: 18px; line-height: 28px; }
.apply-card {
  background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6);
}
@media (min-width: 720px) { .apply-card { padding: var(--space-8); } }
.apply-soon { font: 600 24px/30px var(--font-display); margin: 0; }

.field { margin-bottom: var(--space-4); }
.field-row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.optional { font-weight: 400; color: var(--ink-muted); }
input, select, textarea {
  width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-raised);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 48px;
}
textarea { resize: vertical; }
select { appearance: auto; }
.hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: var(--space-1) 0 0; }
.consent { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: var(--space-6) 0 var(--space-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Prose pages */
.prose h1 { margin-bottom: var(--space-2); }
.prose h2 { font-size: 24px; line-height: 30px; font-weight: 600; margin-top: var(--space-8); margin-bottom: var(--space-2); }
.prose .caption { margin-bottom: var(--space-6); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-8) 0; background: var(--surface); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); }
.footer-row .caption { margin: 0 0 var(--space-1); }
.footer-mark { width: 24px; height: 24px; margin-bottom: var(--space-4); }
.footer-links { list-style: none; display: flex; gap: var(--space-6); margin: 0; padding: 0; }
