/* jscheduler.jutils.net: the colors of the app (src/ui/theme.ts), no external fonts or scripts. */
:root {
  color-scheme: light dark;
  --bg: #F7F8FB; --card: #FFFFFF; --ink: #1C1C1E; --ink2: #4E4E57; --ink3: #6B6B75; --line: #E3E5EA; --line2: #EEF0F3;
  --tint: #1F5A85; --tint-hover: #163F5E; --tint-weak: #E2ECF5; --tint-ink: #163F5E; --fill: #1F5A85;
  --ok-weak: #DCF5E3; --ok-ink: #14532D; --warn-weak: #FDF1D6; --warn-ink: #8A4B08; --warn-avatar: #5E3405;
  --deep: #163F5E; --deep-ink: #CFE3F3; --deep-card: rgba(255, 255, 255, 0.08);
  --tes: #5A6A6E; --mae: #C9A227; --vid: #942926; --aco: #2563EB; --mul: #7C3AED;
  --shadow: 0 30px 60px rgba(22, 63, 94, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214; --card: #1C1C1E; --ink: #F2F2F7; --ink2: #B4B4BD; --ink3: #8E8E96; --line: #2E2E33; --line2: #2A2A2E;
    --tint: #7FB3DC; --tint-hover: #A9CDEA; --tint-weak: #1B3347; --tint-ink: #CFE3F3; --fill: #2C78B0;
    --ok-weak: #143322; --ok-ink: #A7E8BD; --warn-weak: #3A2A0F; --warn-ink: #F3C77A; --warn-avatar: #F3C77A;
    --deep: #0E2A40; --deep-ink: #B9D3E8; --deep-card: rgba(255, 255, 255, 0.06);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--tint); }
a:hover { color: var(--tint-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--ink2); }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; }

/* Header and footer */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 24px; flex: 1 1 auto; font-weight: 500; font-size: 16px; }
.nav-links a { color: var(--ink2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--fill); color: #FFFFFF; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--tint); box-shadow: inset 0 0 0 1.5px var(--tint); }
.btn-outline:hover { color: var(--tint); background: var(--tint-weak); filter: none; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; padding-top: 40px; padding-bottom: 56px; }
.site-footer .about { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.site-footer .about strong { font-size: 18px; }
.site-footer .about p { font-size: 14px; color: var(--ink3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }

/* Store buttons: not links until the app is published. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Landing */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--tint-weak); color: var(--tint-ink); font-size: 14px; font-weight: 600; }
.tag.ok { background: var(--ok-weak); color: var(--ok-ink); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 560px; }
.small { font-size: 15px; color: var(--ink3); }

section { scroll-margin-top: 16px; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.section-head h2, .title { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; }
.section-head p { font-size: 19px; color: var(--ink2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.program { border-radius: 20px; background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--c); }
.program h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.program ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink2); }

.features { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 96px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.feature.flip { flex-wrap: wrap-reverse; }
.feature-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-copy p { font-size: 18px; line-height: 1.6; color: var(--ink2); }
.feature-art { flex: 1 1 340px; min-width: 0; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--tint); letter-spacing: 0.04em; text-transform: uppercase; }
.feature h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.12; font-weight: 800; }
.card { border-radius: 20px; background: var(--card); border: 1px solid var(--line); }

/* Illustrations (invented names) */
.phone { width: 320px; max-width: 100%; border-radius: 48px; background: #1C1C1E; padding: 12px; box-shadow: var(--shadow); }
.screen { border-radius: 38px; background: #F2F2F7; color: #1C1C1E; overflow: hidden; height: 640px; display: flex; flex-direction: column; }
.screen-top { padding: 44px 18px 12px; background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-top .arrow { width: 30px; height: 30px; border-radius: 15px; background: #E2ECF5; display: flex; align-items: center; justify-content: center; flex: none; }
.screen-top .week { text-align: center; }
.screen-top .week b { display: block; font-size: 16px; }
.screen-top .week span { font-size: 11px; color: #6B6B75; }
.screen-body { padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.part { border-radius: 14px; background: #FFFFFF; overflow: hidden; }
.part-head { color: #FFFFFF; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 7px 12px; background: var(--c); }
.part-head.light { color: #2B2306; }
.part-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.part-body b { font-size: 13px; font-weight: 600; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: #DCE8F3; color: #163F5E; font-size: 12px; font-weight: 500; }
.pill.empty { background: transparent; border: 1.5px dashed #A2A8B1; color: #4E4E57; font-weight: 400; }

.list { padding: 8px 0; }
.list-label { padding: 12px 20px; font-size: 13px; font-weight: 600; color: var(--ink3); letter-spacing: 0.04em; text-transform: uppercase; }
.list-label + .row { border-top: 1px solid var(--line2); }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line2); }
.list-label:first-child + .row { border-top: 1px solid var(--line2); }
.list .list-label:not(:first-child) { border-top: 1px solid var(--line2); padding-top: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--tint-weak); color: var(--tint-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.avatar.warn { background: var(--warn-weak); color: var(--warn-avatar); }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-size: 17px; font-weight: 600; }
.row-text span { font-size: 14px; color: var(--ink3); }
.row-text span.warn { color: var(--warn-ink); }
.badge { padding: 4px 10px; border-radius: 6px; background: var(--tint-weak); color: var(--tint-ink); font-size: 13px; font-weight: 600; }

.share { display: flex; flex-wrap: wrap; gap: 16px; }
.share .card { flex: 1 1 200px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.share .qr { align-items: center; text-align: center; }
.share b { font-size: 16px; font-weight: 600; }
.share span { font-size: 14px; color: var(--ink3); }
.bar { height: 10px; border-radius: 5px; background: var(--c); }
.bar.thin { height: 8px; border-radius: 4px; background: var(--line); }
.w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; }

.mine { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mine .list-label { padding: 0; }
.mine .item { display: flex; gap: 14px; align-items: center; }
.date { width: 52px; text-align: center; border-radius: 12px; background: var(--tint-weak); color: var(--tint-ink); padding: 6px 0; flex: none; }
.date small { display: block; font-size: 12px; }
.date b { font-size: 20px; }
.mine .note { border-radius: 12px; background: var(--bg); padding: 12px 14px; font-size: 14px; color: var(--ink2); }

.privacy { background: var(--deep); color: #FFFFFF; }
.privacy .section-head p { color: var(--deep-ink); }
.privacy-item { border-radius: 18px; background: var(--deep-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.privacy-item h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.privacy-item p { font-size: 16px; color: var(--deep-ink); }

.steps { margin: 0; padding: 0; list-style: none; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-n { width: 40px; height: 40px; border-radius: 20px; background: var(--fill); color: #FFFFFF; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.step p { color: var(--ink2); }

.faq dl, .faq > p { max-width: 820px; }
.faq dl { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.faq dt { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink2); }

/* Documents (legal pages and help) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
.doc .meta { color: var(--ink3); margin: 8px 0 28px; font-size: 15px; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .box { margin-top: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 18px 20px; }

/* Link opened without the app */
.link-page { min-height: 100vh; display: flex; flex-direction: column; }
.link-page main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 64px; }
.link-card { width: 100%; max-width: 520px; padding: 40px 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 20px 40px rgba(22, 63, 94, 0.08); }
.link-card h1 { font-size: 32px; line-height: 1.15; font-weight: 800; }
.link-card .lead { font-size: 18px; }
.link-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.link-steps li { display: flex; gap: 14px; align-items: flex-start; }
.link-steps .step-n { flex: none; width: 30px; height: 30px; font-size: 15px; }
.link-steps .step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 3px; }
.link-steps .step-body > b { font-size: 18px; }
.link-steps p { color: var(--ink2); }
/* Official badges (Apple, Google): never modified, same height, 1/4 of the height clear around them. Apple's white one only where it is the only badge. */
.store-badge { display: block; flex: none; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  html[data-os="ios"] .store-badge .on-light { display: none; }
  html[data-os="ios"] .store-badge .on-dark { display: block; }
}
html[data-os="ios"] .store-badge[data-os="android"], html[data-os="android"] .store-badge[data-os="ios"] { display: none; }
.icon-tile { width: 56px; height: 56px; border-radius: 16px; background: var(--tint-weak); display: flex; align-items: center; justify-content: center; }
.hint { border-radius: 14px; background: var(--bg); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink2); }
.hint svg { flex: none; margin-top: 2px; }
.link-page footer { padding: 24px 16px 40px; text-align: center; font-size: 14px; color: var(--ink3); }
.copied { font-size: 14px; color: var(--ok-ink); min-height: 1.4em; }

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .section, .features { padding-top: 56px; padding-bottom: 56px; }
  .features { gap: 64px; }
  .doc { padding: 32px 16px 56px; }
  .link-card { padding: 28px 20px; }
  .site-header nav { gap: 10px 20px; }
  .nav-links { order: 3; flex-basis: 100%; }
}
