/* 300 — the application, founder stories and the CRM. Loaded after site.css. */
.app { padding-block: clamp(40px, 8vh, 96px) clamp(64px, 10vh, 120px); }
.app .wrap { max-width: 760px; }
.app-h .eyebrow { margin-bottom: 12px; }
.app-h h1, .app-h h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 16px; }
.app-h .sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink2); margin: 0 0 8px; max-width: 58ch; }
.app-h .meta { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); margin: 14px 0 0; }
.app-body { margin-top: clamp(28px, 5vh, 48px); }
[hidden] { display: none !important; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(200, 16, 46, 0.55); background: var(--red-soft); color: var(--ink); font-size: 0.98rem; margin-top: 22px; }
.banner b { font-weight: 600; }
.banner .x { margin-left: auto; flex: none; background: none; border: 0; color: var(--ink2); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 4px; }
/* An invite link's landing: "You've been invited to <team>" (2026-10-30) */
.invite { position: relative; overflow: hidden; margin: 0 0 18px; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(200, 16, 46, 0.6); background: linear-gradient(135deg, rgba(200, 16, 46, 0.22), rgba(200, 16, 46, 0.06) 60%); }
.invite .k { margin: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-ink); }
.invite h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; }
.invite h2 i { font-style: normal; color: var(--red); }
.invite p.s { margin: 8px 0 0; color: var(--ink2); }
.invite .row { margin-top: 14px; }
.invite.done { padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.invite.done h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.invite.done .x { margin-left: auto; background: none; border: 0; color: var(--ink2); font-size: 1.2rem; cursor: pointer; }
.invite-link { display: flex; gap: 8px; margin-top: 8px; }
.invite-link input { flex: 1; min-width: 0; font-size: 0.86rem; color: var(--ink2); }
.banner.quiet { border-color: var(--hairline); background: var(--surface); color: var(--ink2); }

/* ---- cards and fields ---- */
.card { border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); padding: clamp(20px, 3.4vw, 32px); }
.card + .card { margin-top: 16px; }
.card h2 { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.card .hint { color: var(--ink2); margin: 0 0 18px; font-size: 0.98rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fields { display: grid; gap: 18px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .fields.two { grid-template-columns: 1fr; } }
.f label, .f .lbl { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink2); margin: 0 0 7px; }
.f label .req { color: var(--red-ink); margin-left: 2px; }
.f label .opt { color: var(--ink3); font-weight: 400; }
.f input[type=text], .f input[type=email], .f input[type=url], .f input[type=tel], .f textarea, .f select, .input {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--page); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.f textarea { resize: vertical; min-height: 96px; }
.f input::placeholder, .f textarea::placeholder, .input::placeholder { color: #6f6b65; }
.f input:focus, .f textarea:focus, .f select:focus, .input:focus { border-color: var(--ink2); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.f input:disabled { color: var(--ink2); opacity: 0.75; cursor: not-allowed; }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.f .count { float: right; font-weight: 400; color: var(--ink3); font-size: 0.8rem; }
.f select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23c6c3bb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.f select option { background: #1b1a19; color: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.98rem; color: var(--ink2); }
.check input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--red); flex: none; }

.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }
.btn.sm { padding: 9px 15px; font-size: 0.9rem; gap: 6px; }
.btn.line { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--ink); }
.btn.line:hover { border-color: var(--ink2); box-shadow: none; }
/* Secondary actions as quiet pills (Sean, 2026-10-28: "better buttons than just an underline").
   data-ic adds a small icon drawn with a CSS mask, so it takes the text colour. */
.linkbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.linkbtn:hover { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.09); }
.linkbtn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.linkbtn[disabled] { opacity: 0.55; cursor: default; }
.linkbtn.danger { color: var(--ink2); }
.linkbtn.danger:hover { color: #fff; border-color: var(--red); background: rgba(200, 16, 46, 0.2); }
.linkbtn[data-ic]::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.linkbtn[data-ic="edit"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
.linkbtn[data-ic="help"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.linkbtn[data-ic="close"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.linkbtn[data-ic="out"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
.linkbtn[data-ic="back"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E"); }
.row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.fine { color: var(--ink3); font-size: 0.9rem; margin: 12px 0 0; }
.err { color: #ff8b98; font-size: 0.95rem; margin: 12px 0 0; }
.err:empty { display: none; }

/* the (i) */
.info { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: var(--ink2);
  font: italic 600 0.82rem/1 var(--serif); cursor: pointer; display: inline-grid; place-items: center; padding: 0; transition: border-color .15s, color .15s, background .15s; }
.info:hover, .info:focus-visible { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---- sign in ---- */
.signin { max-width: 520px; }
.signin .f input.code { font: 500 1.9rem/1 var(--mono); letter-spacing: 0.42em; text-align: center; padding: 14px 10px 14px calc(10px + 0.42em); }
.signin .acts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.signin h2 { font-size: 1.35rem; }
.signin .to { color: var(--ink); font-weight: 600; word-break: break-all; }

/* ---- signed-in strip ---- */
.who { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); font-size: 0.95rem; color: var(--ink2); margin-bottom: 16px; }
.who b { color: var(--ink); font-weight: 600; word-break: break-all; }
.saved { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.saved.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5bd08a; margin-right: 7px; vertical-align: 1px; }

/* ---- the team panel ---- */
.team { display: grid; gap: 14px; }
.team .choose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.team .choose .btn { justify-content: center; }
@media (max-width: 560px) { .team .choose { grid-template-columns: 1fr; } }
.team .or { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 0.9rem; }
.team .or::before, .team .or::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }
.match { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, 0.26); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.match:hover { border-color: var(--ink2); }
.match input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; flex: none; }
.match b { display: block; font-weight: 600; }
.match span { color: var(--ink2); font-size: 0.93rem; }
.match.on { border-style: solid; border-color: var(--red); background: var(--red-soft); }
.state { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--page); }
.state p { margin: 0; }
.state .t { font-size: 1.05rem; }
.state .t b { font-weight: 600; }
.state .s { color: var(--ink2); font-size: 0.95rem; margin-top: 4px; }
.state.pending { border-color: rgba(255, 196, 87, 0.45); }
.state.pending .dot { background: #ffc457; }
.state .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5bd08a; margin-right: 9px; vertical-align: 2px; }
.people { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.people li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); }
.people .nm { font-weight: 600; }
.people .em { color: var(--ink3); font-size: 0.88rem; word-break: break-all; }
.people .tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--ink2); }
.people .tag.cap { background: var(--red-soft); color: #ff9aa5; }
.people .tag.no { color: #ffc457; }
.people .acts { margin-left: auto; display: flex; gap: 8px 16px; flex-wrap: wrap; }
.sub-h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin: 18px 0 0; }
.req-h { color: #ffc457; }
.state .sub-h { margin-top: 18px; }
.state .row + .sub-h { margin-top: 14px; }

/* ---- submit ---- */
.submit { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.submit .btn { padding: 15px 30px; }

/* ---- the portal ---- */
.done-h { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.done-h .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.done-h h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0; }
.done-h p { margin: 2px 0 0; color: var(--ink2); }
.answers { display: grid; gap: 0; margin: 8px 0 18px; }
.answers div { padding: 14px 0; border-top: 1px solid var(--hairline); }
.answers div:first-child { border-top: 0; }
.answers dt { font-size: 0.86rem; color: var(--ink3); margin: 0 0 4px; }
.answers dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ---- modals ---- */
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .28s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.modal[open] { animation: none; } }
.modal .in { padding: clamp(22px, 4vw, 34px); }
.modal .eyebrow { margin-bottom: 10px; }
.modal h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 1.9rem); line-height: 1.12; margin: 0 0 16px; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hairline); background: none; color: var(--ink2); font-size: 1.1rem; cursor: pointer; }
.modal .close:hover { color: #fff; border-color: var(--ink2); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.points .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: #ff9aa5; font: 600 0.85rem var(--mono); }
.points b { display: block; font-weight: 600; margin-bottom: 2px; }
.points span { color: var(--ink2); font-size: 0.97rem; }
.modal .foot { margin-top: 24px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.steps { display: flex; gap: 6px; }
.steps i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); transition: background .2s; }
.steps i.on { background: var(--red); }
.tour .step { display: none; min-height: 150px; }
.tour .step.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.tour .big { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 8px; }
.tour .step h4 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; margin: 0 0 8px; }
.tour .step p { margin: 0; color: var(--ink2); }

/* ---- founder story photo ---- */
.photo-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-pick .ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); background: var(--page); }
.photo-pick .ph.empty { border: 1px dashed rgba(255, 255, 255, 0.3); display: grid; place-items: center; color: var(--ink3); font-size: 0.75rem; }
.photo-pick input[type=file] { display: none; }

.skeleton { color: var(--ink3); padding: 20px 0; }
.card .voice { border: 0; padding: 0; background: none; }
.voice.nophoto { grid-template-columns: 1fr; }
.card h2 + .fields, .card h2 + .team { margin-top: 18px; }

/* Red, sparingly: the full stop from "300." and the numbering from the needs list. */
.app-h h1 i, .app-h h2 i, .modal h3 i { font-style: normal; color: var(--red); }
.app-h .meta .when { color: var(--red-ink); }
.card h2 .no { font: 500 0.72rem var(--mono); letter-spacing: 0.14em; color: var(--red-ink); margin-right: 6px; }
