/* SketchCap: warm, hand-drawn, a little playful. Characters do the decorating. */
@font-face { font-family: 'Caveat Brush'; src: url('/fonts/CaveatBrush-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #2b2d42; --muted: #6b6f80; --accent: #e2553f; --accent-2: #f2a541; --mint: #7cc8a5; --sky: #8ab6e8;
  --bg: #fdf6ea; --card: #fffdf8; --line: #2b2d42; --soft: #ece3d2; --ok: #2f7d4f; --err: #b3261e;
  --shadow: 3px 3px 0 var(--ink);
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; color: var(--ink); font: 17px/1.55 'Nunito', system-ui, sans-serif;
  background: var(--bg) radial-gradient(circle, #e9dcc3 1.2px, transparent 1.3px) 0 0 / 22px 22px;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: 'Caveat Brush', 'Fredoka', cursive; font-weight: 400; letter-spacing: .3px; line-height: 1.15; }
h1 { font-size: 2.3rem; margin: .3em 0; } h3 { font-size: 1.45rem; margin: 0 0 .3em; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--card); border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 6px; font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 1.45rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); } .brand svg { height: 40px; width: auto; margin: -6px 0 -8px; }
.top nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.top nav a:hover { color: var(--accent); }

.wrap { max-width: 820px; margin: 0 auto; padding: 16px; } .wide { max-width: 1440px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 28px 16px; }
.foot span { display: block; margin-top: 4px; }

/* buttons: chunky, cartoon shadow, squish on press */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--ink); border-radius: 14px;
  padding: 9px 18px; font: 700 1rem 'Nunito', sans-serif; cursor: pointer; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.small { padding: 5px 12px; font-size: .9rem; border-radius: 11px; }
.btn.tiny { padding: 2px 9px; font-size: .8rem; border-radius: 9px; box-shadow: 2px 2px 0 var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.danger { background: var(--err); } .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.top nav a.btn { color: #fff; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; font-weight: 700; text-decoration: underline wavy; text-underline-offset: 3px; }

/* cards: paper with an ink outline */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.card.narrow { max-width: 460px; margin: 30px auto; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
input[type=text], input[type=email], input[type=date], input[type=file], select, textarea {
  font: inherit; font-size: .95rem; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; width: 100%; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-2); outline-offset: 1px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.nowrap { flex-wrap: nowrap; } .between { justify-content: space-between; }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.ok, .err, .note { padding: 9px 14px; border-radius: 12px; border: 2px solid var(--ink); }
.ok { background: #dff3e6; } .err { background: #fde2df; } .note { background: #fff1cf; }
.hint { background: #e3efff; padding: 6px 10px; border-radius: 10px; margin: 8px 0 0; border: 1.5px dashed var(--sky); }

/* meetings list */
.list { list-style: none; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: var(--card);
  border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
.list li a { font-weight: 700; color: var(--ink); text-decoration: none; } .list li a:hover { color: var(--accent); }
.pill { font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; border: 1.5px solid var(--ink); background: var(--soft); }
.pill.done { background: var(--mint); } .pill.failed { background: #f6b4ab; }
.pill.audio, .pill.transcribing, .pill.queued, .pill.generating { background: var(--accent-2); }

/* steps: a trail of stickers */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.steps li { font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1.5px solid var(--ink); background: var(--card); color: var(--muted); }
.steps li.on { background: var(--accent); color: #fff; transform: rotate(-2deg); } .steps li.done { background: var(--mint); color: var(--ink); }

.samples { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { text-align: left; } .person .avatar svg { display: block; margin: 0 auto 6px; }
.person label { font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }

/* recap screen */
.split { display: grid; grid-template-columns: 1fr 400px; gap: 18px; align-items: start; }
.preview, .panel { height: calc(100vh - 170px); }
.preview { width: 100%; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.panel { overflow-y: auto; padding: 2px 8px 2px 2px; }
.panel .card { margin: 0 0 14px; }
.sec { border-top: 1.5px dashed var(--soft); padding: 10px 0; } .sec.hidden b { opacity: .5; text-decoration: line-through; }
.item { margin: 8px 0; } .item.hidden textarea, .item.hidden p { opacity: .4; } .item textarea { font-size: .9rem; }
.share { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; } .share.off input { opacity: .5; }
.held { padding-left: 0; list-style: none; } .held li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 6px 0; border-bottom: 1.5px dashed var(--soft); }
.held li form { flex-shrink: 0; }
.private { background: #fff8ec; } .danger { border-color: var(--err); }

/* characters */
.cast-row { display: flex; justify-content: center; align-items: flex-end; gap: 4px; flex-wrap: wrap; }
.cast-row svg { width: 120px; height: auto; }
.bob svg { animation: bob 2.4s ease-in-out infinite; } .bob svg:nth-child(2) { animation-delay: .4s; } .bob svg:nth-child(3) { animation-delay: .8s; } .bob svg:nth-child(4) { animation-delay: 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.empty { text-align: center; } .empty svg { width: 150px; height: auto; }
.working { text-align: center; } .working svg { width: 170px; height: auto; animation: bob 1.6s ease-in-out infinite; }
.side-char { float: right; margin: -6px 0 6px 12px; } .side-char svg { width: 110px; height: auto; }

/* landing */
.hero { text-align: center; padding: 10px 0 0; }
.hero h1 { font-size: 3.4rem; margin: .1em 0; } .hero h1 em { color: var(--accent); font-style: normal; }
.lede { font-size: 1.2rem; max-width: 640px; margin: 0 auto 14px; }
.points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; text-align: left; margin-top: 26px; }
.points li { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.points li:nth-child(odd) { transform: rotate(-.8deg); } .points li:nth-child(even) { transform: rotate(.8deg); }
.points b { font-family: 'Caveat Brush', cursive; font-size: 1.35rem; font-weight: 400; display: block; }

.people { list-style: none; padding: 0; } .people li { display: flex; gap: 10px; align-items: center; padding: 6px 0; } .people li form { margin-left: auto; }
.plans .plan.current { outline: 4px solid var(--accent-2); } .price { font-family: 'Fredoka', sans-serif; font-size: 2rem; font-weight: 600; margin: 0; } .price span { font-size: .9rem; color: var(--muted); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; } .radio { font-weight: 700; }
.legal { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 8px 24px; box-shadow: var(--shadow); }
.legal h1, .legal h2, .legal h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; }
.legal table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; } .legal td, .legal th { border: 1px solid var(--soft); padding: 6px; text-align: left; vertical-align: top; }
.help { margin-top: 16px; } .help summary { cursor: pointer; font-weight: 700; }
.spinner { display: none; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; } .preview { height: 70vh; } .panel { height: auto; overflow: visible; }
  .hero h1 { font-size: 2.5rem; } .cast-row svg { width: 84px; } .side-char { display: none; }
}

/* upload drop zone */
.drop { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 240px; padding: 28px 18px; text-align: center; cursor: pointer; font-weight: 400 !important;
  border: 3px dashed var(--ink); border-radius: 20px; background: #fff; transition: background .15s, transform .15s; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; }
.drop:hover, .drop.over { background: #fff1cf; transform: rotate(-.4deg); }
.drop.over { border-color: var(--accent); }
.drop.has-file { background: #e8f6ee; border-style: solid; }
.drop-arrow { width: 72px; height: 72px; color: var(--accent); }
.drop.over .drop-arrow { animation: bob .8s ease-in-out infinite; }
.drop-title { font-family: 'Caveat Brush', cursive; font-size: 1.9rem; line-height: 1.1; word-break: break-word; }
.drop-sub { font-weight: 700; }
.progress { position: relative; height: 30px; border: 2px solid var(--ink); border-radius: 15px; background: #fff; overflow: hidden; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--mint); transition: width .2s; }
.progress span { position: relative; display: block; text-align: center; line-height: 26px; font-weight: 700; font-size: .9rem; }
