/* CornerScope · Invite-only beta
   Implemented from project/CornerScope Beta.dc.html (Claude Design handoff). */

:root {
  --paper: #FBFCF7;
  --ink: #10261E;
  --forest: #145C43;
  --night: #07100C;
  --hero-bg: #1a2320;
  --lime: #C7F244;
  --amber: #E4A11B;
  --focus: #23A675;
  --rule: #D8DED7;
  --muted: #9aa69f;
  --muted-dark: #7f9088;
  --body: #4d5a53;
  --body-strong: #33443B;
  --fine: #66726B;
  --on-dark: #C7D0CA;
  --on-dark-lead: #E5ECE7;
  --note: #FFFEF6;
  --field-bd: #C9D2CB;
  --tint: #EEF3E6;

  --pad-x: clamp(20px, 3vw, 40px);
  --pad-x-panel: clamp(20px, 3vw, 48px);
  --inset: clamp(12px, 1.6vw, 20px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;
}

html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Hanken Grotesk", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--forest); }
::selection { background: var(--lime); color: var(--ink); }
button, select, input, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { display: block; }
[hidden] { display: none !important; }

@keyframes v4Spin { to { transform: rotate(360deg); } }
@keyframes v4Rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: 80ms !important; } }

.site { position: relative; }

/* ---------- Review notes (hidden when body.no-review) ---------- */
.review-note { margin: 0; padding: 14px 16px; border: 1px dashed var(--amber); background: #FFF8E6; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #5A4410; }
body.no-review .review-only { display: none !important; }

/* ---------- Nav ---------- */
.nav { position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 22px var(--pad-x); flex-wrap: wrap; }
.nav-logo { display: flex; }
.nav-logo img { height: 26px; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; flex-wrap: wrap; }
.nav-link { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(251,252,247,.28); background: transparent; color: var(--paper); font-size: 13px; display: flex; align-items: center; white-space: nowrap; transition: background 200ms; }
.nav-link[aria-current="page"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav-link:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.nav-cta { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-cta:hover { color: var(--ink); background: var(--lime); }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--forest); }
.eyebrow--lime { color: var(--lime); }
.step-no { font-family: var(--mono); font-size: 12px; color: var(--forest); }
.h2 { margin: 0; font-size: clamp(32px, 3.4vw, 52px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.04; }
.h2-panel { margin: 0; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; font-weight: 400; letter-spacing: -0.045em; }
.h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.03em; }
.dim { color: var(--muted); }
.dim-dark { color: var(--muted-dark); }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.lead--strong { color: var(--body-strong); }
.body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.fine { margin: 0; font-size: 13px; line-height: 1.6; color: var(--fine); }
.hand { font-family: var(--hand); color: var(--forest); }
.text-link { align-self: flex-start; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.text-link--lime { color: var(--lime); border-bottom-color: var(--lime); }
.text-link--lime:hover { color: var(--paper); }
.text-link--light { align-self: auto; color: var(--paper); border-bottom-color: rgba(251,252,247,.4); }
.text-link--light:hover { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 22px; border-radius: 999px; border: 0; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.card .btn { align-self: flex-start; }
.btn:hover { color: var(--ink); }
.btn .btn-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.btn--sm { height: 50px; padding: 0 7px 0 22px; font-size: 15px; }
.btn--sm .btn-dot { width: 36px; height: 36px; }
.btn--dark { background: var(--ink); color: var(--paper); font-size: 15px; }
.btn--dark:hover { color: var(--lime); }
.btn--dark:active { transform: translateY(1px); }
.btn--dark .btn-dot { background: var(--lime); color: var(--ink); }

/* ---------- Photo hero ---------- */
.hero { position: relative; min-height: min(100vh, 860px); overflow: hidden; background: var(--hero-bg); color: var(--paper); display: flex; flex-direction: column; padding-top: 84px; }
.hero--home { min-height: min(100vh, 900px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.7); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,16,12,.6) 0%, rgba(7,16,12,.15) 45%, rgba(7,16,12,.8) 100%); }
.hero-shade--soft { background: linear-gradient(180deg, rgba(7,16,12,.6) 0%, rgba(7,16,12,.1) 45%, rgba(7,16,12,.8) 100%); }
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; padding: clamp(40px, 7vh, 90px) var(--pad-x) 0; }
.hero-top { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.hero-copy { max-width: 900px; animation: v4Rise 900ms var(--ease-out) both; }
.hero-copy .eyebrow { display: block; margin-bottom: 18px; color: var(--lime); }
.hero-h1 { margin: 0; font-size: clamp(44px, 6.4vw, 100px); line-height: .98; font-weight: 400; letter-spacing: -0.045em; }
.hero-lead { margin: 20px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--on-dark-lead); max-width: 570px; line-height: 1.5; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-fine { margin: 14px 0 0; font-size: 13px; color: var(--on-dark); }

.badge { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.badge svg { width: 100%; height: 100%; animation: v4Spin 26s linear infinite; }
.badge img { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }

.note-wrap { position: relative; display: flex; justify-content: flex-end; margin-top: clamp(28px, 5vh, 56px); }
.note { position: relative; max-width: 320px; padding: 20px 22px 22px; background: var(--note); color: var(--ink); box-shadow: 0 15px 35px rgba(0,0,0,.3); transform: rotate(-2deg); }
.note-tape { position: absolute; top: -10px; left: 36%; width: 70px; height: 20px; background: rgba(199,242,68,.6); transform: rotate(3deg); }
.note-kicker { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.note-hand { display: block; margin-top: 6px; font-family: var(--hand); font-size: 32px; line-height: 1.05; }
.note-sub { display: block; margin-top: 8px; font-size: 14px; color: var(--body); }

.jump { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 28px 0 22px; border-top: 1px solid rgba(251,252,247,.18); }
.jump-btn { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--paper); text-align: left; cursor: pointer; transition: color 200ms; }
.jump-btn:hover { color: var(--lime); }
.jump-t { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.jump-n { font-family: var(--mono); font-size: 12px; color: var(--on-dark); }

/* ---------- Layout helpers ---------- */
.ruled { border-bottom: 1px solid var(--rule); }
.bar { padding: 18px var(--pad-x); border-bottom: 1px solid var(--rule); }
.bar--split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 64px); }
.split--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sec { padding: clamp(56px, 7vw, 96px) var(--pad-x); }
.stack { display: flex; flex-direction: column; }
.wide { grid-column: span 2; }
@media (max-width: 760px) { .wide { grid-column: auto; } }

.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cols3 > article { display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--rule); }
.cols3 > article:last-child { border-right: 0; }

.panel { margin: 0 var(--inset); padding: clamp(48px, 6vw, 88px) var(--pad-x-panel); color: var(--paper); }
.panel--green { background: var(--ink); }
.panel--night { background: var(--night); }
.panel-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.panel-cols > article { border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; }

.cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: clamp(34px, 4.6vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -0.045em; }
.cta--gap-top { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Rule preview board ---------- */
.board { border-radius: 16px; background: var(--night); color: var(--paper); overflow: hidden; box-shadow: 0 20px 50px rgba(16,38,30,.18); }
.board-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.board-head > :first-child { font-weight: 600; letter-spacing: .06em; }
.board-head > :last-child { font-family: var(--mono); color: var(--muted); }
.board-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(70px, 1fr)) minmax(130px, 1fr); gap: 12px 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06); transition: background 300ms; }
.board-row.is-fit { background: rgba(199,242,68,.07); }
.cell { display: flex; flex-direction: column; gap: 3px; }
.cell-name { font-size: 16px; font-weight: 600; }
.cell-num { font-family: var(--mono); font-size: 18px; }
.cell-sub { font-size: 12px; color: var(--muted); }
.cell-state { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cell-state i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }

/* ---------- Rule sentence ---------- */
.sentence { margin: 0; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.4; font-weight: 300; letter-spacing: -0.035em; }
.sentence select { font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: var(--ink); background: var(--tint); border: 1px solid #D2DCCB; border-radius: .28em; padding: 0 .2em; cursor: pointer; max-width: 100%; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: clamp(18px, 1.6vw, 22px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span:last-child { font-size: 22px; color: var(--forest); transition: transform 200ms; }
.faq details[open] summary span:last-child { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 640px; }

/* ---------- Coverage states ---------- */
.state-btn { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 200ms, color 200ms; }
.state-btn:hover { border-color: var(--forest); }
.state-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.reading { border-radius: 16px; background: var(--night); color: var(--paper); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(16,38,30,.18); }
.reading-num { font-family: var(--mono); font-size: clamp(96px, 12vw, 180px); line-height: 1; }

.limits { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.limits li { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.limits strong { font-family: var(--hand); font-size: 30px; line-height: 1; font-weight: 700; color: var(--forest); }
.limits span { font-size: 16px; line-height: 1.55; color: var(--body); }

/* ---------- Access ---------- */
.access-hero { position: relative; min-height: min(100vh, 940px); overflow: hidden; background: var(--hero-bg); color: var(--paper); padding: 84px 0 0; }
.access-hero .hero-img { filter: grayscale(1) contrast(1.05) brightness(.6); }
.access-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,12,.85) 0%, rgba(7,16,12,.45) 60%, rgba(7,16,12,.7) 100%); }
.access-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vh, 90px) var(--pad-x) clamp(48px, 6vw, 80px); }
.strip { position: relative; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: 1em; text-transform: uppercase; padding-left: 1em; text-align: center; }
.card { position: relative; background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.card h2 { margin: 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.05; outline: none; }
.field-label { font-size: 14px; font-weight: 600; }
.field { height: 52px; padding: 0 16px; border: 1px solid var(--field-bd); border-radius: 12px; background: #FFFFFF; color: var(--ink); font-size: 16px; }
textarea.field { height: auto; padding: 14px 16px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: center; font-size: 15px; cursor: pointer; min-height: 44px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check input { width: 20px; height: 20px; accent-color: var(--forest); margin: 0; }
.link-btn { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ink); cursor: pointer; min-height: 32px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--night); color: var(--paper); overflow: hidden; margin: 0 var(--inset); border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding: clamp(32px, 4vw, 48px) var(--pad-x-panel); align-items: center; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: #EDF1EA; }
.footer-links a:hover { color: var(--lime); }
.footer-legal { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: right; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 var(--pad-x-panel) 24px; font-size: 12px; color: var(--muted); }
.footer-word { font-size: clamp(80px, 15.5vw, 260px); line-height: .78; font-weight: 400; letter-spacing: -0.06em; white-space: nowrap; color: #16251F; margin-bottom: -0.12em; padding-left: clamp(12px, 2vw, 24px); }
