/* MeetingConfirmed public site and hosted meeting pages.
   Design: docs/design/meetingconfirmed-home-mockup.html (layout, type
   scale, palette, spacing). Fonts are vendored from /static/fonts; nothing
   on any page is requested from another origin. No JavaScript anywhere. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/sora-latin-var.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/inter-latin-var.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/static/fonts/jetbrains-mono-latin-var.woff2) format("woff2");
}

/* ---- tokens (mockup :root, plus a dark scheme) -------------------------- */
:root {
  color-scheme: light dark;
  --pine: #053B2C; --pine-2: #0A4E3B; --mint: #6FCF97; --mint-soft: #DCF3E5;
  --gold: #D9B14C; --paper: #F4F7F5; --white: #fff; --ink: #0F1F1A; --ink-2: #4B5B55;
  --rule: rgba(5, 59, 44, 0.14);
  --heading: var(--pine);
  --link: var(--pine);
  --brand: var(--pine);
  --btn-bg: var(--pine); --btn-bg-hover: var(--pine-2); --btn-ink: var(--white);
  --tick: var(--pine);
  --today: rgba(111, 207, 151, 0.06);
  --shadow: 0 30px 60px -40px rgba(5, 59, 44, 0.35);
  --shadow-2: 0 30px 60px -30px rgba(5, 59, 44, 0.4);
  --danger: #8A1C1C; --danger-rule: #E2C4C4;
  --sora: "Sora", system-ui, sans-serif; --inter: "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B100E; --white: #10231C; --ink: #EEF3F0; --ink-2: #A7B5AE;
    --rule: rgba(111, 207, 151, 0.2); --mint-soft: #1B3A2F;
    --heading: #CFE9DA; --link: var(--mint); --brand: #EEF3F0;
    --btn-bg: var(--mint); --btn-bg-hover: #86DBAA; --btn-ink: var(--pine);
    --tick: var(--mint); --today: rgba(111, 207, 151, 0.08);
    --shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.7); --shadow-2: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    --danger: #F0A3A3; --danger-rule: #4A2A2A;
  }
}

/* ---- base -------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--inter); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-family: var(--sora); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--heading); }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--white); color: var(--ink); padding: 8px 14px; border: 2px solid var(--gold); border-radius: 8px; text-decoration: none; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
strong { font-weight: 600; }

/* ---- header ------------------------------------------------------------ */
header.site { padding: 26px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sora); font-weight: 600; font-size: 18px; color: var(--brand); text-decoration: none; }
.brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--pine); display: inline-grid; place-items: center; color: var(--mint); font-style: normal; font-size: 11px; font-weight: 600; flex: none; }
header.site nav a { margin-left: 28px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
header.site nav a:hover { color: var(--link); text-decoration: underline; }

/* ---- hero -------------------------------------------------------------- */
.hero { padding: 56px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 46px; color: var(--heading); margin-bottom: 20px; max-width: 22ch; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 42ch; margin-bottom: 28px; }
.hero p strong { color: var(--ink); }
.assur { list-style: none; display: grid; gap: 10px; }
.assur li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.assur svg { flex: none; margin-top: 4px; stroke: var(--tick); }

/* the calendar composition */
.scene { position: relative; padding-bottom: 64px; }
.week { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.week-head { display: grid; grid-template-columns: 56px repeat(5, 1fr); border-bottom: 1px solid var(--rule); background: var(--paper); }
.week-head div { padding: 12px 10px; font-size: 12.5px; color: var(--ink-2); text-align: center; border-left: 1px solid var(--rule); }
.week-head div:first-child { border-left: 0; }
.week-head b { display: block; font-family: var(--sora); font-weight: 600; font-size: 16px; color: var(--ink); }
.week-head .today b { color: var(--heading); }
.week-head .today { position: relative; }
.week-head .today:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--heading); }
.grid { display: grid; grid-template-columns: 56px repeat(5, 1fr); position: relative; }
.hours { display: grid; grid-auto-rows: 64px; }
.hours div { font-size: 11.5px; color: var(--ink-2); text-align: right; padding: 6px 8px 0 0; border-top: 1px solid var(--rule); }
.col { display: grid; grid-auto-rows: 64px; border-left: 1px solid var(--rule); }
.col div { border-top: 1px solid var(--rule); }
.col.today { background: linear-gradient(180deg, var(--today), rgba(111, 207, 151, 0)); }
.event { position: absolute; left: calc(56px + 3 * ((100% - 56px) / 5) + 6px); width: calc((100% - 56px) / 5 - 12px); top: 64px; height: 32px;
  border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 500; line-height: 1.2;
  border: 1.5px dashed var(--pine); color: var(--heading); background: var(--white); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 26px;
  animation: accept 0.5s ease-out 2.2s forwards; }
.event small { display: block; font-weight: 400; opacity: 0.8; font-size: 11px; }
.event .ok { position: absolute; right: 8px; top: 7px; opacity: 0; animation: tick 0.4s ease-out 2.5s forwards; }
@keyframes accept { to { background: var(--mint); border: 1.5px solid var(--mint); color: var(--pine); } }
@keyframes tick { to { opacity: 1; } }
.invite { position: absolute; left: -28px; bottom: 0; width: min(420px, 88%); background: var(--white); border-radius: 14px;
  border: 1px solid var(--rule); box-shadow: var(--shadow-2); padding: 20px 22px; }
.from { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.from i { width: 36px; height: 36px; border-radius: 10px; background: var(--pine); color: var(--mint); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; font-family: var(--sora); flex: none; }
.from b { display: block; font-size: 14px; }
.from span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.invite h3 { font-size: 19px; margin-bottom: 12px; color: var(--ink); }
.invite dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin-bottom: 16px; }
.invite dt { color: var(--ink-2); }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 500; font-size: 14px; padding: 11px 16px; border-radius: 9px; border: 0; font-family: inherit; cursor: pointer; transition: background 0.2s ease-out; }
.btn:hover { background: var(--btn-bg-hover); }
.invite .links { margin-top: 12px; font-size: 13.5px; display: flex; gap: 18px; }
.invite .links span { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.invite .foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) {
  .event { animation: none; background: var(--mint); border-style: solid; border-color: var(--mint); color: var(--pine); }
  .event .ok { animation: none; opacity: 1; }
}

/* ---- sections as one ruled document ------------------------------------ */
section.doc { padding: 80px 0; border-top: 1px solid var(--rule); }
section.doc .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
section.doc h2 { font-size: 30px; color: var(--heading); margin-bottom: 14px; }
section.doc .lead { font-size: 16.5px; color: var(--ink-2); max-width: 38ch; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: center; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li:before { content: counter(s); font-family: var(--sora); font-weight: 600; font-size: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pine); color: var(--mint); }
.steps b { display: block; font-family: var(--sora); font-weight: 600; font-size: 17px; color: var(--ink); }
.steps p { color: var(--ink-2); font-size: 15.5px; max-width: 52ch; margin-top: 4px; }

.strip { background: var(--pine); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.tile { background: rgba(255, 255, 255, 0.06); border-radius: 10px; aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; }
.tile i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--sora); font-weight: 600; font-size: 13px; }
.tile i.you { background: #0F5C45; color: #fff; }
.tile i.team { background: var(--mint); color: var(--pine); }
.tile i.bot { background: var(--gold); color: var(--pine); }
.tile .n { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 3px 8px; border-radius: 5px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .rec { position: absolute; left: 10px; top: 10px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 3px 8px; border-radius: 5px; display: flex; align-items: center; gap: 6px; }
.tile .rec:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.rules { list-style: none; display: grid; gap: 12px; font-size: 15.5px; }
.rules li { display: flex; gap: 12px; }
.rules svg { flex: none; margin-top: 5px; stroke: var(--tick); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-family: var(--sora); font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 0 16px 10px 0; border-bottom: 1px solid var(--heading); }
td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
th:last-child, td:last-child { padding-right: 0; }
td:first-child { font-weight: 500; }
td:nth-child(2) { color: var(--ink-2); }
.more { margin-top: 18px; font-size: 15px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 479px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.stack td { display: block; border: 0; padding: 3px 0; }
  table.stack td:nth-child(2) { color: var(--ink); }
  table.stack td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-2); font-family: var(--sora); font-size: 13px; }
}

/* ---- footer ------------------------------------------------------------ */
footer.site { background: var(--pine); color: rgba(255, 255, 255, 0.78); padding: 48px 0 56px; font-size: 14px; margin-top: 40px; }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
footer.site .brand { color: #fff; margin-bottom: 12px; }
footer.site .brand i { background: var(--mint); color: var(--pine); }
footer.site nav a { color: rgba(255, 255, 255, 0.85); margin: 0 0 0 24px; text-decoration: none; }
footer.site nav a:first-child { margin-left: 0; }
footer.site nav a:hover { color: var(--mint); text-decoration: underline; }
footer.site p { max-width: 60ch; }
footer.site a:focus-visible { outline-color: var(--mint); }

/* ---- content pages (/recording, /privacy) ------------------------------ */
.page { padding: 40px 0 0; }
.page-head { margin-bottom: 48px; max-width: 680px; }
.page-head h1 { font-size: 46px; color: var(--heading); margin-bottom: 14px; }
.page-head p { font-size: 18px; color: var(--ink-2); max-width: 42ch; }
.measure { max-width: 680px; }
.measure h2 { font-size: 24px; color: var(--heading); margin: 48px 0 12px; }
.measure > h2:first-child, .measure > section:first-child > h2 { margin-top: 0; }
.measure p { font-size: 16.5px; color: var(--ink); margin-bottom: 14px; }
.measure ul { padding-left: 22px; margin-bottom: 14px; font-size: 16.5px; }
.measure li { margin: 6px 0; }
.measure section { scroll-margin-top: 24px; }
.measure .table-wrap { margin: 8px 0 20px; }
.measure hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
dl.facts { display: grid; grid-template-columns: 1fr; margin: 8px 0 20px; font-size: 15px; border-top: 1px solid var(--heading); }
dl.facts dt { font-weight: 500; padding: 14px 0 2px; }
dl.facts dd { color: var(--ink-2); padding: 0 0 14px; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) {
  dl.facts { grid-template-columns: 1fr 1fr; }
  dl.facts dt { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
  dl.facts dd { padding: 14px 0; }
}

/* privacy: sticky contents on desktop */
.privacy-layout { display: grid; gap: 32px; }
.toc { display: none; }
@media (min-width: 1024px) {
  .privacy-layout { grid-template-columns: 240px minmax(0, 680px); gap: 64px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; }
  .toc h2 { font-size: 13px; font-family: var(--sora); color: var(--ink-2); margin: 0 0 12px; letter-spacing: 0; }
  .toc ol { list-style: none; border-left: 1px solid var(--rule); }
  .toc a { display: block; padding: 6px 14px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
  .toc a:hover { color: var(--link); border-left-color: var(--mint); }
  .toc a .n { font-family: var(--sora); font-weight: 600; color: var(--ink); margin-right: 6px; }
}

/* ---- hosted meeting pages (unchanged behaviour, shared tokens) ---------- */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; margin: 32px auto; width: min(560px, calc(100% - 64px)); }
.card h1 { font-size: 24px; margin-bottom: 8px; color: var(--heading); }
.card h2 { font-size: 18px; margin: 20px 0 6px; color: var(--heading); }
.card p { margin: 8px 0; }
.card ul { padding-left: 20px; margin: 8px 0; }
.card .btn { display: block; width: 100%; text-align: center; margin-top: 10px; font-size: 15px; padding: 12px 16px; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn.quiet:hover { background: var(--paper); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger-rule); }
.btn.danger:hover { background: var(--paper); }
.meta { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; }
.meta dt { font-family: var(--sora); font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.meta dd { margin: 2px 0 0; font-weight: 500; }
.slot-day { margin: 14px 0 4px; font-family: var(--sora); font-weight: 600; font-size: 15px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-grid label { display: block; position: relative; }
.slot-grid input { position: absolute; opacity: 0; }
.slot-grid span { display: block; text-align: center; padding: 10px 4px; border-radius: 8px; border: 1px solid var(--rule); font-size: 14px; }
.slot-grid label:hover span { border-color: var(--pine); }
.slot-grid input:checked + span { border-color: var(--pine); background: var(--mint-soft); font-weight: 600; }
.reasons label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; margin-top: 8px; }
.reasons input { margin-top: 4px; }
.ok-badge { color: var(--heading); font-weight: 600; }

/* ---- responsive (mockup breakpoint, plus phone) ------------------------ */
@media (max-width: 900px) {
  .hero .wrap, section.doc .wrap, footer.site .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 34px; }
  .scene { padding-bottom: 0; }
  .invite { position: static; width: 100%; margin-top: 16px; }
  header.site nav a { margin-left: 16px; }
  section.doc { padding: 56px 0; }
  .page-head h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .brand { font-size: 17px; }
  header.site .wrap { flex-wrap: wrap; gap: 10px 0; }
  header.site nav { width: 100%; }
  header.site nav a { margin: 0 20px 0 0; font-size: 14px; white-space: nowrap; }
  /* Phones show three days, so the event stays legible. */
  .week-head, .grid { grid-template-columns: 44px repeat(3, 1fr); }
  .week-head div:nth-child(2), .week-head div:nth-child(3), .grid .col:nth-child(2), .grid .col:nth-child(3) { display: none; }
  .event { left: calc(44px + 1 * ((100% - 44px) / 3) + 6px); width: calc((100% - 44px) / 3 - 12px); }
  /* Participant tiles stack so the names, the point of the strip, read in full. */
  .strip { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .tile { aspect-ratio: auto; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
  .tile i { width: 40px; height: 40px; font-size: 12px; flex: none; }
  .tile .n { position: static; max-width: none; }
  .tile .rec { position: static; margin-left: auto; order: 3; }
  .hero h1 { font-size: 30px; max-width: none; }
  .page-head h1 { font-size: 30px; }
  .hours div { font-size: 10.5px; padding-right: 6px; }
  .week-head div { padding: 10px 4px; font-size: 11.5px; }
  .week-head b { font-size: 14px; }
  .event { padding: 4px 24px 4px 8px; font-size: 11.5px; }
  .event small { font-size: 10px; }
  .event .ok { right: 5px; top: 5px; }
  .card { width: calc(100% - 40px); }
  footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  footer.site nav a { margin: 0; }
}
