:root {
  --bg: #0a0a0c;
  --panel: #121216;
  --panel-2: #17171c;
  --text: #f2f1ec;
  --muted: #a1a0a8;
  --dim: #6d6c75;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --signal: #d7ff3a;
  --on-signal: #121400;
  --radius: 20px;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(18px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.04; margin: 0; letter-spacing: -0.035em; font-weight: 600; }
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--on-signal); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--on-signal); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(215, 255, 58, 0.14); }

.free { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--signal); border: 1px solid rgba(215, 255, 58, 0.35); background: rgba(215, 255, 58, 0.07); white-space: nowrap; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4); background: rgba(10, 10, 12, 0.72); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.bar nav { display: flex; gap: 4px; align-items: center; }
.bar nav a { text-decoration: none; font-weight: 500; font-size: 0.93rem; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color 0.15s ease, background 0.15s ease; }
.bar nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.bar nav a.pill { background: var(--signal); color: var(--on-signal); font-weight: 600; }
.bar nav a.pill:hover { background: #e4ff74; }
@media (max-width: 640px) { .bar nav a:not(.pill) { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid var(--signal); background: var(--signal); color: var(--on-signal); cursor: pointer; font-family: inherit; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(215, 255, 58, 0.55); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 20%, transparent 75%); opacity: 0.55; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(215, 255, 58, 0.16), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { margin-top: 22px; font-size: clamp(2.9rem, 9vw, 7rem); max-width: 13ch; }
.hero h1 em { color: var(--signal); }
.hero .lede { margin-top: 28px; max-width: 58ch; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.proof { list-style: none; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.proof li { padding: 22px 20px 0 0; }
.proof li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.proof b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.proof span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof li { padding-bottom: 18px; }
}

/* ---------- Portfolio index ---------- */
.index { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.index-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.index-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.index-head p { max-width: 44ch; color: var(--muted); }
.catalog { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.catalog li { position: relative; display: grid; grid-template-columns: 44px 230px minmax(0, 1fr) 92px 200px; align-items: center; gap: 12px 28px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background 0.2s ease; }
.catalog li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--hue); opacity: 0; transition: opacity 0.2s ease; }
.catalog li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 9%, transparent), transparent 70%); }
.catalog li:hover::before { opacity: 1; }
.catalog .n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--dim); }
.catalog .name { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.catalog .name::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--hue); vertical-align: middle; }
.catalog .name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.catalog .job { color: var(--muted); }
.catalog .free { justify-self: start; }
.catalog .go { justify-self: end; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); text-decoration: none; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color 0.15s ease, background 0.15s ease; }
.catalog .go:hover { border-color: var(--hue); background: color-mix(in srgb, var(--hue) 14%, transparent); }
@media (max-width: 900px) {
  .catalog li { grid-template-columns: 40px 1fr auto; padding: 20px 4px; }
  .catalog .name::after { display: none; }
  .catalog .job { grid-column: 2 / -1; }
  .catalog .free { grid-column: 3; grid-row: 1; }
  .catalog .go { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- App sections ---------- */
.app { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.app::before { content: ""; position: absolute; width: 900px; height: 900px; top: -420px; right: -300px; background: radial-gradient(circle, color-mix(in srgb, var(--hue) 22%, transparent), transparent 60%); pointer-events: none; }
.app.flip::before { right: auto; left: -300px; }
.app .grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.app.flip .grid > .copy { order: 2; }
@media (max-width: 900px) { .app .grid { grid-template-columns: 1fr; } .app.flip .grid > .copy { order: 0; } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.meta > span:first-child { color: var(--hue); }
.app h2 { margin-top: 18px; font-size: clamp(2.5rem, 6vw, 4.4rem); }
.app .for { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }

.pitch { margin: 28px 0 0; display: grid; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.pitch > div { padding: 16px 18px; background: var(--panel); }
.pitch > div + div { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--hue); }
.pitch dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.pitch > div + div dt { color: var(--hue); }
.pitch dd { margin: 6px 0 0; }
.pitch > div:first-child dd { color: var(--muted); }

.value { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.value li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; }
.value li::before { content: ""; grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--hue) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.value b { font-weight: 600; letter-spacing: -0.01em; }
.value span { color: var(--muted); font-size: 0.98rem; max-width: 50ch; }

.actions { margin-top: 32px; }

/* Browser frame + phone */
.device { position: relative; padding-bottom: 36px; }
.browser { background: #1b1b21; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 90px -40px color-mix(in srgb, var(--hue) 60%, transparent); }
.chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1b1b21; border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.chrome em { font-style: normal; margin-left: 10px; flex: 1; background: #0f0f13; border-radius: 999px; padding: 3px 14px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--hue) 45%, #111), #111 75%); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: -0.03em; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.4s ease; background: #fff; }
.screen img.ok { opacity: 1; }

.phone { position: absolute; right: -10px; bottom: 0; width: clamp(88px, 22%, 150px); background: #050506; border: 1px solid var(--line-strong); border-radius: 22px; padding: 5px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85); display: none; }
.phone.has { display: block; }
.phone img { border-radius: 17px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.app.flip .phone { right: auto; left: -10px; }
@media (max-width: 900px) { .phone { right: 4px; } .app.flip .phone { left: 4px; } }

/* Per-app brand hues */
#scheduleacoach    { --hue: #8b5cf6; }
#caltogether       { --hue: #22b8d6; }
#streethighlighter { --hue: #f43f5e; }
#contextupdater    { --hue: #f5a524; }
#scripttuner       { --hue: #2ee6b8; }
#mailjolly         { --hue: #4f8cff; }

/* ---------- Approach ---------- */
.approach { position: relative; padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(215, 255, 58, 0.07), transparent 70%); }
.approach h2 { margin-top: 20px; font-size: clamp(2.1rem, 5.2vw, 4rem); max-width: 22ch; }
.approach h2 em { color: var(--muted); }
.approach .intro { margin-top: 24px; max-width: 62ch; color: var(--muted); font-size: 1.15rem; }
.approach .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.approach article { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.approach .k { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); }
.approach h3 { margin-top: 18px; font-size: 1.4rem; letter-spacing: -0.025em; }
.approach article p { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .approach .cols { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.founder .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder h2 { margin-top: 20px; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.founder p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.founder .aside { font-size: 0.98rem; color: var(--dim); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { padding: 16px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-weight: 500; }
.facts li small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .founder .grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(215, 255, 58, 0.04)); }
.contact .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.contact .copy p { margin-top: 18px; font-size: 1.12rem; max-width: 40ch; color: var(--muted); }
form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 0.92rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: #0d0d10; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; }
select { color-scheme: dark; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(215, 255, 58, 0.14); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { width: 100%; }
form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.status { min-height: 1.5em; font-weight: 500; }
.status.ok { color: var(--signal); }
.status.err { color: #ff7a7a; }
@media (max-width: 900px) { .contact .grid { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); color: var(--dim); padding: 28px 0; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); }

/* Hero rises in once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .cta { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .lede { animation-delay: 0.08s; }
  .hero .cta { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .catalog li { transition: none; } }
