/* People Pitchers — Notion-style minimal theme.
   Indigo accent, Inter + Instrument Serif. Subtle Asanoha tie: faint asanoha (麻の葉) pattern + footer credit. */

:root {
  --bg: #FFFFFF;
  --surface: #F7F6F3;
  --surface-2: #F1F0EC;
  --ink: #37352F;
  --ink-2: #4F4D47;
  --muted: #787774;
  --line: #E9E9E7;
  --line-2: #DCDBD7;
  --accent: #5B5BD6;
  --accent-hover: #4848C2;
  --accent-tint: rgba(91, 91, 214, .08);
  --on-accent: #FFFFFF;
  --pattern: rgba(55, 53, 47, .06);
  --ok: #2E7D4F;
  --err: #B3261E;
  --shadow: 0 1px 2px rgba(15, 15, 15, .04), 0 4px 16px rgba(15, 15, 15, .05);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --wrap: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191919;
    --surface: #202020;
    --surface-2: #252525;
    --ink: #E9E9E7;
    --ink-2: #CFCFCC;
    --muted: #9B9A97;
    --line: #2F2F2F;
    --line-2: #3A3A3A;
    --accent: #9B9BF2;
    --accent-hover: #B3B3F6;
    --accent-tint: rgba(155, 155, 242, .14);
    --on-accent: #191919;
    --pattern: rgba(233, 233, 231, .05);
    --ok: #6BCB8F;
    --err: #F2857C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191919; --surface: #202020; --surface-2: #252525; --ink: #E9E9E7; --ink-2: #CFCFCC;
  --muted: #9B9A97; --line: #2F2F2F; --line-2: #3A3A3A; --accent: #9B9BF2; --accent-hover: #B3B3F6;
  --accent-tint: rgba(155, 155, 242, .14); --on-accent: #191919; --pattern: rgba(233, 233, 231, .05);
  --ok: #6BCB8F; --err: #F2857C; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h1 { font-size: clamp(44px, 7.6vw, 80px); }
h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 12px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; letter-spacing: .01em; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 6px;
  border: 1px solid transparent; font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.brand img { border-radius: 6px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--surface); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; place-items: center; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
}

/* Asanoha pattern — very faint, masked so it follows the theme */
.pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--pattern);
  -webkit-mask: url("/assets/img/asanoha.svg") repeat 0 0 / 120px auto;
          mask: url("/assets/img/asanoha.svg") repeat 0 0 / 120px auto;
  -webkit-mask-composite: source-in;
}
.hero .pattern { mask-image: url("/assets/img/asanoha.svg"), linear-gradient(#000, transparent 70%); -webkit-mask-image: url("/assets/img/asanoha.svg"), linear-gradient(#000, transparent 70%); mask-composite: intersect; -webkit-mask-composite: source-in; mask-size: 120px auto, 100% 100%; -webkit-mask-size: 120px auto, 100% 100%; mask-repeat: repeat, no-repeat; -webkit-mask-repeat: repeat, no-repeat; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-inner { position: relative; }
.hero-copy { max-width: 760px; }
.hero .lead { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Product demo */
.app {
  margin-top: clamp(40px, 6vw, 64px);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, .04), 0 12px 40px rgba(15, 15, 15, .08);
  overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-title { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.app-badge { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }
.app-search {
  display: flex; align-items: center; gap: 10px; margin: 16px; padding: 0 14px; min-height: 52px;
  border: 1px solid var(--accent); border-radius: 8px; color: var(--muted);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.app-search svg { flex: none; }
.query { color: var(--ink); font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.caret { width: 1.5px; height: 20px; background: var(--accent); flex: none; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kbd { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; }

.app-body { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .app-body { grid-template-columns: 230px minmax(0, 1fr); } }
.filters { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .filters { border-bottom: 0; border-right: 1px solid var(--line); min-height: 380px; } }
.pane-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) { .filter-list { flex-direction: column; gap: 2px; } }
.filter {
  display: flex; gap: 6px; align-items: baseline; font-size: 13px;
  padding: 4px 8px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line);
  opacity: 0; transform: translateY(3px); transition: opacity .25s, transform .25s;
}
@media (min-width: 900px) { .filter { background: transparent; border: 0; padding: 6px 4px; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; } }
.filter.in { opacity: 1; transform: none; }
.filter span { color: var(--muted); }
.filter b { font-weight: 500; color: var(--ink); text-align: right; }

.list { min-width: 0; }
.list-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.list-head b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sort { border: 1px solid var(--line-2); border-radius: 4px; padding: 0 8px; }
.sort::after { content: " ▾"; }
.results { list-style: none; margin: 0; padding: 0; }
.result {
  display: grid; gap: 2px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line);
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-areas: "av who score" "av why why" "av meta meta";
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s; transition-delay: calc(var(--i, 0) * 80ms);
}
.result:last-child { border-bottom: 0; }
.results.show .result { opacity: 1; transform: none; }
.results.show.fading .result, .filter-list.fading .filter { opacity: .3; transition-delay: 0s; }
.result:first-child { background: var(--accent-tint); }
@media (min-width: 900px) {
  .result { grid-template-columns: 36px minmax(0, 1.5fr) minmax(0, 1fr) auto; grid-template-areas: "av who meta score" "av why meta score"; }
}
.avatar { grid-area: av; align-self: start; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.who { grid-area: who; min-width: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.who b { font-weight: 600; font-size: 15px; }
.who span { font-size: 13px; color: var(--muted); }
.why { grid-area: why; font-size: 13px; color: var(--ink-2); margin: 0; }
.why::before { content: "Why: "; color: var(--muted); }
.meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (min-width: 900px) { .meta { margin-top: 0; } }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.score-wrap { grid-area: score; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.score { font-weight: 600; font-size: 14px; color: var(--accent); background: var(--accent-tint); padding: 2px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.pitch { display: none; font-size: 12px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 8px; }
@media (min-width: 900px) { .pitch { display: inline-block; } }
.demo-note { font-size: 12px; color: var(--muted); padding: 8px 18px 14px; margin: 0; }
.hero .demo-note { padding: 0; margin: 12px 0 0; }

/* Sections */
.section { padding: clamp(56px, 9vw, 96px) 0; border-top: 1px solid var(--line); position: relative; }
.strip { background: var(--surface); }
.grid-4 { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile h3 { margin: 10px 0 6px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }
.emoji { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--surface-2); font-size: 16px; font-weight: 600; color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.split-inner { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.split { background: var(--surface); }
.callout { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 0 0; box-shadow: var(--shadow); }
.callout-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.callout-row span { color: var(--muted); }
.callout-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.callout-row:nth-child(3) b { color: var(--accent); }

.checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li { padding: 14px 16px 14px 44px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px;
  border-radius: 4px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
#candidates .btn { margin-top: 12px; }

/* Pricing */
.plans { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: relative; background: var(--bg); }
.plan-featured { border-color: var(--ink); box-shadow: var(--shadow); }
.badge { position: absolute; top: -11px; left: 20px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.price { font-family: var(--serif); font-size: 40px; font-weight: 400; margin: 8px 0 2px; }
.price span { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.plan li:last-child { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--muted); font-size: 20px; line-height: 1.2; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* Waitlist */
.waitlist { overflow: hidden; }
.waitlist .wrap { position: relative; }
.form {
  margin-top: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(18px, 4vw, 28px); box-shadow: var(--shadow); display: grid; gap: 16px;
}
.role-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role-pick legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.role-pick label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; font-size: 15px;
}
.role-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.role-pick input { accent-color: var(--accent); margin: 0; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 42px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--bg); font-weight: 400; font-size: 15px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.thanks { text-align: center; padding: 12px 0; }
.thanks h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin-bottom: 8px; }
[hidden] { display: none !important; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; } }
.footer .brand { font-size: 17px; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.parent { margin: 0; font-size: 13px; color: var(--muted); }
.parent a { color: var(--accent); text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.parent a:hover { text-decoration: underline; }

/* Legal page */
.legal { padding: clamp(40px, 7vw, 72px) 0; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .note { background: var(--accent-tint); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
