/* Squible: the Register design language. Ink on warm paper, hairline rules, one accent. */
:root {
  --paper: #F7F5F0; --sheet: #FDFCFA; --band: #F2EFE8; --press: #EDE9E0;
  --ink: #191814; --ink2: #4A443B; --mute: #6B655C; --faint: #8A8379;
  --rule: #E4E0D7; --rule2: #CFC9BC; --edge: #DED8CC;
  --blue: #2E3A72; --red: #9E3B2E; --green: #2F5D44; --amber: #8A6A1F;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--paper); color: var(--ink); font: clamp(14px, 0.6vw + 12.4px, 15.5px)/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a.ser, a:has(> .ser) { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; left: -9999px; }

.ser { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }
.lab { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.mute { color: var(--ink2); } .faint { color: var(--faint); }
.green { color: var(--green); } .amber { color: var(--amber); } .red { color: var(--red); } .blue { color: var(--blue); }
h1.title { font: 400 clamp(26px, 2.2vw + 14px, 38px)/1.05 var(--serif); letter-spacing: -.01em; }
h2.sub { font: 400 clamp(18px, 1vw + 14px, 22px)/1.15 var(--serif); }
.dbl { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); height: 4px; }

/* buttons */
.bt, .bg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 2px; font: 500 13.5px var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .16s, transform .16s; }
.bt { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.bt:hover { background: #2E2C26; transform: translateY(-1px); }
.bg { border: 1px solid var(--rule2); background: var(--sheet); color: var(--ink); }
.bg:hover { background: var(--press); transform: translateY(-1px); }
.bt:disabled, .bg:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.sm { min-height: 36px; padding: 0 12px; font-size: 11.5px; }
.lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.plain { text-transform: none; letter-spacing: 0; justify-content: flex-start; text-align: left; white-space: normal; }
.link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-weight: 500; }
.link-danger { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-weight: 500; }
.link-danger:hover { text-decoration: underline; }
.danger { color: var(--red); }
.brand-row { display: inline-flex; align-items: center; gap: 8px; }
.brand-row svg { flex: 0 0 auto; }

/* forms */
.in { min-height: 42px; border: 1px solid var(--rule2); background: var(--sheet); padding: 0 11px; border-radius: 2px; width: 100%; }
.in:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.in.bad { border-color: var(--red); }
select.in { padding-right: 6px; }
.fl { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.err { color: var(--red); font-size: 13px; margin-top: 5px; }
.hint { color: var(--mute); font-size: 13px; margin-top: 6px; }

/* layout */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav { flex: 0 0 196px; border-right: 1px solid var(--rule); padding: 22px 0; display: flex; flex-direction: column; gap: 2px; }
.nav .brand { padding: 0 14px 22px; }
.nav .who { margin-top: auto; padding: 0 14px; display: flex; flex-direction: column; gap: 3; }
.legal-row { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.legal-row a { color: var(--mute); text-decoration: none; }
.legal-row a:hover { color: var(--ink); }
.nav-link { font-weight: 500; padding: 10px 4px; }
.site-bar, .site-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.site-bar { padding-top: 16px; padding-bottom: 16px; }
.site-foot { padding-top: 28px; padding-bottom: 28px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.next-card { flex-direction: row; align-items: center; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font: 400 26px/1.15 var(--serif); margin-top: 8px; }
.prose p, .prose li { font-size: 15.5px; color: var(--ink2); }
.prose ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.nav a.item { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-left: 2px solid transparent;
  color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a.item:hover { background: var(--press); color: var(--ink); }
.nav a.item.on { border-left-color: var(--ink); color: var(--ink); background: var(--press); }
.main { flex: 999 1 560px; min-width: 0; padding: 26px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.end { align-items: flex-end; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 0; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.card { background: var(--sheet); border: 1px solid var(--edge); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.strong { border-color: var(--ink); }
.card.band { background: var(--band); border-color: var(--rule); }
.card h2.sub.ruled, .ruled { border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.steps a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--faint); font-size: 13.5px; font-weight: 500; min-height: 40px; }
.steps a .n { width: 26px; height: 26px; border: 1px solid var(--rule2); background: var(--sheet); display: flex; align-items: center; justify-content: center; font: 11px var(--mono); }
.steps a.on { color: var(--ink); } .steps a.on .n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps a.done { color: var(--green); } .steps a.done .n { border-color: var(--green); color: var(--green); }

/* ruled lists and tables */
.list { background: var(--rule); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 1px; }
.list > * { background: var(--sheet); padding: 11px 14px; }
.list > .head { background: var(--band); padding: 8px 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.tag { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px; border: 1px solid var(--rule2);
  font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--sheet); white-space: nowrap; }
.tag.g { color: var(--green); border-color: #A9C0B2; } .tag.a { color: var(--amber); border-color: #D8C9A0; }
.tag.r { color: var(--red); border-color: #D9B5AE; } .tag.b { color: var(--blue); border-color: #B9C0D8; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 10px; border: 0;
  border-left: 2px solid transparent; background: transparent; cursor: pointer; text-align: left; font: 500 13.5px var(--sans); width: 100%; }
.pick:hover { background: var(--press); } .pick.on { background: var(--press); border-left-color: var(--ink); }
.bar { height: 5px; background: var(--press); display: block; } .bar > span { display: block; height: 5px; background: currentColor; }
.sq { width: 34px; height: 34px; border: 1px solid var(--rule2); background: var(--sheet); cursor: pointer; border-radius: 2px; font-size: 17px; }
.sq:hover { background: var(--press); }

/* timetable grid */
.grid { background: var(--rule); border: 1px solid var(--rule); display: grid; gap: 1px; }
.grid > div { background: var(--paper); min-height: 54px; }
.grid .h { background: var(--band); min-height: 32px; display: flex; align-items: center; justify-content: center; }
.grid .p { padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.grid .brk { background: var(--band); min-height: 22px; display: flex; align-items: center; justify-content: center; }
.cell { padding: 0; display: flex; flex-direction: column; gap: 1px; }
.lesson { flex: 1; border: 0; border-left: 2px solid var(--blue); background: var(--paper); padding: 7px 9px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; width: 100%; transition: box-shadow .15s; }
.lesson:hover { box-shadow: 0 5px 12px rgba(25,24,20,.12); }
.lesson.sel { background: var(--press); outline: 2px solid var(--ink); outline-offset: -2px; }
.lesson .s { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; line-height: 1.2; }
.lesson .t { font-size: 12px; color: var(--ink2); line-height: 1.25; }
.drop { border: 0; background: transparent; width: 100%; flex: 1; min-height: 54px; cursor: pointer; }
.drop.can { background: #EEF3EE; } .drop.can:hover { background: #DCE9DE; }
.avail { border: 0; min-height: 40px; cursor: pointer; font: 500 13px var(--sans); }

/* messages */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 2px; font-size: 14px; z-index: 50; max-width: min(560px, 92vw); box-shadow: 0 10px 30px rgba(25,24,20,.3); }
.toast.bad { background: var(--red); }
.empty { border: 1px dashed var(--rule2); padding: 28px; text-align: center; color: var(--ink2); background: var(--sheet); }
.spin { width: 16px; height: 16px; border: 2px solid var(--rule2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: pulse 1.5s ease-in-out infinite; }
.assist { flex: 0 0 300px; min-width: 0; border-left: 1px solid var(--rule); padding: 26px 20px; background: #FBF9F5; display: flex; flex-direction: column; gap: 14px; }
.assist.coverage-detail { flex: 0 0 min(560px, 48vw); padding: 28px 28px; gap: 16px; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
@media (max-width: 1024px) {
  .assist.coverage-detail { flex: 1 1 100%; position: static; max-height: none; padding: 20px 20px; }
}
@media (max-width: 760px) {
  .assist.coverage-detail { padding: 18px 16px; }
}
.bubble { padding: 11px 13px; font-size: 14px; max-width: 92%; border-radius: 2px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--paper); }
.bubble.it { align-self: flex-start; border: 1px solid var(--rule); background: var(--sheet); }

/* website */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.sect { border-top: 1px solid var(--rule); padding: 84px 0; }
.hero-h { font: 400 clamp(32px, 4.6vw + 8px, 62px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.h2 { font: 400 clamp(26px, 3vw + 10px, 42px)/1.08 var(--serif); letter-spacing: -.01em; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 52px; align-items: center; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 22px; }
.sheet { background: var(--sheet); border: 1px solid var(--edge); box-shadow: 0 26px 50px -18px rgba(25,24,20,.26); }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.stage { transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; position: relative; width: min(520px, 100%); height: auto; aspect-ratio: 520 / 420; margin: 0 auto; }
.stage > * { max-width: 100%; }
@keyframes drift { 0%, 100% { transform: translate3d(0,0,86px); } 50% { transform: translate3d(0,-11px,86px); } }
.flt { animation: drift 7.5s ease-in-out infinite; }
.lift { transition: transform .2s, box-shadow .2s; } .lift:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(25,24,20,.09); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; } .flt, .pulse, .spin { animation: none; }
  .bt:hover, .bg:hover, .lift:hover { transform: none; }
}
@media (max-width: 1280px) {
  .main { padding: 22px 24px 36px; }
  .assist { flex: 0 0 260px; padding: 22px 16px; }
  .wrap { padding: 0 32px; }
  .sect { padding: 68px 0; }
  .two { gap: 36px; }
}
@media (max-width: 1024px) {
  .nav { flex: 0 0 168px; padding: 18px 0; }
  .nav a.item { font-size: 13.5px; padding: 0 12px; }
  .main { flex: 999 1 420px; padding: 20px 20px 32px; }
  .assist { flex: 1 1 100%; order: 2; border-left: 0; border-top: 1px solid var(--rule); padding: 20px 20px; }
  .wrap { padding: 0 24px; }
  .sect { padding: 56px 0; }
}
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .nav { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--rule); padding: 8px; }
  .nav .brand { flex: 1 1 100%; padding: 4px 10px 8px; }
  .nav .who { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 0; padding: 8px 10px 4px; border-top: 1px solid var(--rule); }
  .nav a.item { border-left: 0; border-bottom: 2px solid transparent; min-height: 40px; padding: 0 10px; }
  .nav a.item.on { border-bottom-color: var(--ink); }
  .site-bar, .site-foot { flex-direction: column; align-items: flex-start; }
  .next-card { flex-direction: column; align-items: flex-start; }
  .price-row { flex-direction: column; align-items: flex-start; }
  .main { padding: 18px 16px 32px; }
  .assist { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--rule); padding: 18px 16px; }
  .wrap { padding: 0 20px; }
  .sect { padding: 48px 0; }
  .card { padding: 16px; }
  .cols { gap: 14px; }
  .steps { gap: 4px 14px; }
  .two { gap: 28px; }
  .three { gap: 14px; }
  .tbl { font-size: 12.5px; }
  .tbl th, .tbl td { padding: 8px 9px; }
}
@media (max-width: 480px) {
  .nav { padding: 6px; gap: 2px; }
  .nav a.item { font-size: 12.5px; padding: 0 8px; min-height: 36px; }
  .main { padding: 14px 12px 28px; }
  .assist { padding: 14px 12px; }
  .card { padding: 13px; }
  .wrap { padding: 0 14px; }
  .sect { padding: 38px 0; }
  .bt, .bg { padding: 0 14px; font-size: 12.5px; }
  .in { min-height: 44px; }
  .sq { width: 36px; height: 36px; }
  .list > * { padding: 10px 11px; }
  .tag { font-size: 10px; padding: 0 8px; }
}
@media print {
  .nav, .assist, .noprint, .toast { display: none !important; }
  body { background: #fff; } .main { padding: 0; }
}

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); font-size: 13.5px; }
.tbl th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2);
  background: var(--band); padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
