/* joinfor.me app. Same look as the website: Noto Sans, warm whites, orange accent. */
:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --line: rgba(15, 15, 15, 0.09);
  --text: #141414;
  --soft: #4a4a4a;
  --muted: #8a8986;
  --accent: #ff9933;
  --accent-dark: #e57a12;
  --accent-soft: #fff1e2;
  --green: #1e8e3e;
  --green-soft: #e6f4ea;
  --red: #d93025;
  --red-soft: #fce8e6;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans', system-ui, sans-serif; background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.55; letter-spacing: -0.2px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.8px; margin: 4px 0 10px; }
h2 { font-size: 22px; letter-spacing: -0.4px; margin: 0 0 8px; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: #f2f1ed;
  padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 14px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 246, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--soft); font-weight: 500; }
.nav a:hover { background: #f0efea; }
.nav a.on { background: var(--accent-soft); color: var(--text); }
.meter { font-size: 13px; color: var(--soft); text-align: right; }
.meter-bar { width: 150px; height: 5px; background: #ebe9e3; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--accent); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: flex;
  align-items: center; justify-content: center; font-weight: 700; color: var(--accent-dark); text-decoration: none; }

/* Layout */
.page { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
.card.tight { padding: 16px 20px; }
.card.accent { background: linear-gradient(180deg, #fff8f0, #fff); border-color: #ffd8b0; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted); margin: 32px 0 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 22px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 153, 51, 0.28); }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid #d9d7d0; box-shadow: none; }
.btn.ghost:hover { background: #f5f4f0; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f3c2bd; box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; font: inherit; color: var(--soft); cursor: pointer; text-decoration: underline; padding: 0; }

/* Forms */
label.field { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=url], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid #d9d7d0; border-radius: 12px;
  background: #fff; color: var(--text); }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255, 153, 51, 0.25); border-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e3e1da; border-radius: 12px;
  padding: 14px 16px; cursor: pointer; background: #fff; }
.choice + .choice { margin-top: 10px; }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: #fffaf4; }
.choice b { display: block; }
.choice span { font-size: 14px; color: var(--soft); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: #f0efea; color: var(--soft); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.orange { background: var(--accent-soft); color: var(--accent-dark); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Lists */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .when { width: 92px; flex-shrink: 0; font-size: 14px; color: var(--soft); }
.item .when b { display: block; color: var(--text); font-size: 15px; }
.item .what { flex: 1; min-width: 0; }
.item .what a { text-decoration: none; font-weight: 600; }
.item .what a:hover { text-decoration: underline; }
.item .meta { font-size: 13.5px; color: var(--muted); }
.plat { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.plat.meet { background: #00897b; } .plat.zoom { background: #2d8cff; } .plat.teams { background: #5b5fc7; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
details.more summary { cursor: pointer; color: var(--soft); font-size: 14px; }

/* Steps (onboarding) */
.steps { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 15px; }
.step i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d9d7d0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; }
.step.on { color: var(--text); font-weight: 700; }
.step.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done i { background: var(--accent-soft); border-color: #ffd8b0; color: var(--accent-dark); }
.step-line { width: 28px; height: 1px; background: #d9d7d0; }
.eyebrow { font-size: 14px; color: var(--muted); }

/* Agent picture */
.agent-pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--accent-soft);
  border: 1px solid var(--line); }
.agent-pic.contain { object-fit: contain; padding: 8px; }

/* Plans */
.plan { position: relative; }
.plan .price { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.plan ul { padding-left: 18px; margin: 12px 0 18px; color: var(--soft); font-size: 14.5px; }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15); }

/* Notes */
.notes h3 { margin-top: 20px; }
.notes ul { padding-left: 20px; margin: 6px 0 0; }
.notes li { margin: 4px 0; }
.transcript { max-height: 520px; overflow: auto; }
.line { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.line:first-child { border-top: 0; }
.line b { width: 150px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line.chat { color: var(--soft); }
.line.agent b { color: var(--accent-dark); }

/* Flash */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.flash.ok { background: var(--green-soft); color: #145c2a; }
.flash.err { background: var(--red-soft); color: #8c1d18; }
.flash.key { background: #fff8ec; border: 1px solid #ffd8b0; }

/* Auth pages */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth .card { width: 100%; max-width: 420px; text-align: center; padding: 36px 32px; }
.auth .brand { justify-content: center; margin-bottom: 18px; }
.provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px;
  border-radius: 12px; border: 1px solid #d9d7d0; background: #fff; font: inherit; font-weight: 600;
  text-decoration: none; color: var(--text); }
.provider + .provider { margin-top: 10px; }
.provider:hover { background: #f5f4f0; }
.provider svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .meter { display: none; }
  h1 { font-size: 28px; }
  .item { flex-wrap: wrap; }
}

/* Agent picker (onboarding, connect) */
.agent-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 18px; }
.agent-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px;
  border: 1px solid #e3e1da; background: #fff; text-decoration: none; font-size: 14px; font-weight: 600; text-align: center; }
.agent-opt img, .agent-other { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #f5f4f0; }
.agent-other { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.agent-opt.on { border-color: var(--accent); background: #fffaf4; box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15); }
.agent-opt:hover { border-color: #ffc28a; }
.grid2 > .card + .card, .grid3 > .card + .card { margin-top: 0; }

/* --- Readability pass, following Apple's type scale (Human Interface Guidelines) ---
   Body 17, Callout 16, Subhead 15, Footnote 13 minimum; Large Title 34, Title 1 28, Title 2 22, Title 3 20.
   Tap targets at least 44px. Secondary text darkened to keep 4.5:1 contrast on the warm background. */
:root { --soft: #3d3c39; --muted: #6b6a66; }
body { font-size: 17px; line-height: 1.47; letter-spacing: -0.25px; }
.page { max-width: 1120px; padding: 40px 28px 96px; }
.narrow { padding: 48px 28px 96px; }
h1 { font-size: 34px; letter-spacing: -0.6px; margin: 4px 0 8px; }
h2 { font-size: 22px; margin-bottom: 10px; }
h3 { font-size: 20px; margin-bottom: 6px; }
.small { font-size: 15px; }
.head { margin-bottom: 28px; }
.head p.soft { font-size: 19px; }

.topbar-in { padding: 14px 28px; }
.brand { font-size: 21px; }
.brand img { width: 40px; height: 40px; }
.nav a { font-size: 17px; padding: 10px 16px; }
.meter { font-size: 14px; }
.avatar { width: 40px; height: 40px; font-size: 17px; }

.card { padding: 28px; border-radius: 18px; }
.card.tight { padding: 18px 22px; }
.section-title { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--soft); margin: 40px 0 14px; }

.btn { font-size: 17px; min-height: 44px; padding: 12px 24px; }
.btn.small { font-size: 15px; min-height: 38px; padding: 8px 16px; }
label.field { font-size: 15px; margin-bottom: 8px; }
input[type=text], input[type=url], input[type=email], select, textarea { font-size: 17px; min-height: 48px; padding: 12px 16px; }
textarea { min-height: 96px; }
.hint { font-size: 15px; line-height: 1.4; }
.choice { padding: 16px 18px; }
.choice b { font-size: 17px; }
.choice span { font-size: 15px; }

.pill { font-size: 14px; padding: 4px 12px; }
.item { padding: 18px 24px; gap: 18px; }
.item .when { width: 104px; font-size: 15px; }
.item .when b { font-size: 17px; }
.item .what a { font-size: 17px; }
.item .meta { font-size: 15px; margin-top: 2px; }
.plat { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
details.more summary { font-size: 15px; }

.steps { gap: 12px; margin-bottom: 32px; }
.step { font-size: 16px; }
.step i { width: 30px; height: 30px; font-size: 14px; }
.eyebrow { font-size: 15px; }
.agent-pic { width: 80px; height: 80px; }
.agent-opt { font-size: 15px; padding: 16px 8px; }
.agent-opt img, .agent-other { width: 48px; height: 48px; }

.plan .price { font-size: 34px; }
.plan ul { font-size: 16px; }
.notes ul, .notes p { font-size: 17px; }
.line { font-size: 16px; padding: 10px 0; }
.line b { width: 160px; }
.flash { font-size: 16px; padding: 14px 18px; }
.auth .card { max-width: 440px; }
.provider { font-size: 17px; min-height: 50px; }

@media (max-width: 760px) {
  h1 { font-size: 28px; }
  .page, .narrow { padding: 28px 18px 72px; }
  .card { padding: 22px; }
}
input[type=file] { font: inherit; font-size: 15px; }
input[type=file]::file-selector-button { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 16px; margin-right: 12px;
  border-radius: 999px; border: 1px solid #d9d7d0; background: #fff; cursor: pointer; }

/* Desktop scale: the size approved on localhost (Chrome at 80%) for everyone on big screens. Phones stay 100%. */
@media (min-width: 1024px) { html { zoom: 0.8; } }

/* Sign-in */
.auth .card { max-width: 400px; padding: 36px 32px 28px; }
.auth-title { font-size: 26px; margin: 6px 0 22px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .btn { margin-top: 4px; }
.auth-switch { margin: 20px 0 0; font-size: 15px; color: var(--soft); }
.auth-switch a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
input[type=password] { width: 100%; font: inherit; font-size: 17px; min-height: 48px; padding: 12px 16px;
  border: 1px solid #d9d7d0; border-radius: 12px; background: #fff; }

/* --- Phones (390px wide and up): no squeezed columns, nothing off the edge --- */
@media (max-width: 760px) {
  .grid2, .grid3 { grid-template-columns: 1fr !important; }
  .item { flex-wrap: wrap; gap: 10px 14px; padding: 16px 18px; }
  .item .what { flex: 1 1 100%; min-width: 0; order: 3; }
  .item .when { width: auto; }
  .row { flex-wrap: wrap; }
  .row > div[style*="flex:1"] { min-width: 100%; }
  .head { flex-wrap: wrap; }
  .steps { gap: 8px; }
  .step:not(.on) { font-size: 0; gap: 0; }   /* other steps show just their number */
  .step:not(.on) i { font-size: 13px; }
  .step-line { width: 14px; }
  .line b { width: 110px; }
  code { font-size: 0.8em; }
}

/* Keyboard users: a clear focus ring on everything you can press or pick */
a:focus-visible, button:focus-visible, .btn:focus-visible, .agent-opt:focus-visible, .provider:focus-visible,
summary:focus-visible, .choice:focus-within { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
