/* Layout and components. Every colour, font and size comes from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--c-bg); color: var(--c-text); font: 400 var(--text-base)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
::placeholder { color: var(--c-text-2); opacity: 1; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; font-weight: var(--weight-heading, 600); }
h1 { font-size: var(--text-3xl); line-height: 1.02; font-weight: var(--weight-display, 600); letter-spacing: var(--tracking-display-lg, var(--tracking-display)); }
h1 span { display: block; }
h2 { font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: var(--text-lg); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--text-lg); color: var(--c-text-2); max-width: 46ch; margin-top: var(--space-5); }
.label { font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-2); }
.small { font-size: var(--text-sm); }
.muted { color: var(--c-text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-btn); color: var(--c-btn-text); padding: 8px 16px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * clamp(16px, 4vw, 48px), var(--page)); margin-inline: auto; }
main { flex: 1 0 auto; }
.section { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--c-line); }
.section--alt { background: var(--c-surface-2); }

/* Header */
/* A floating frosted bar: midnight glass over every section, a little more solid once the page scrolls */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; pointer-events: none; }
.site-header.on-midnight { background: transparent; }
.site-header__inner { pointer-events: auto; position: relative; display: flex; align-items: center; gap: var(--space-6); min-height: 64px; padding: 0 10px 0 22px; border-radius: 18px;
  background: rgb(14 25 50 / .6); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgb(239 236 231 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled .site-header__inner { background: rgb(10 20 42 / .78); box-shadow: 0 18px 44px -22px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .06); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header__inner, .site-header.is-scrolled .site-header__inner { background: #14213D; } }
main > .hero:first-child { margin-top: -76px; padding-top: calc(clamp(72px, 10vw, 136px) + 76px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding-block: 6px; color: var(--c-text); font: 500 1.625rem/1 var(--font-display); letter-spacing: -0.012em; font-optical-sizing: auto; }
.wordmark__mark { display: block; width: 26px; height: 26px; flex: none; }
.wordmark__record { fill: var(--c-record, var(--c-accent)); }
.site-footer .wordmark { font-size: 1.375rem; }
.site-footer .wordmark__mark { width: 22px; height: 22px; }
.nav { position: relative; display: flex; gap: 2px; }
.nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font: 500 .9375rem/1 var(--font-body); color: var(--c-text-2); text-decoration: none; transition: color .2s ease; }
.nav a:hover, .nav a.is-current { color: var(--c-text); }
/* a thin brass line that glides under the hovered (or current) link */
.nav__line { position: absolute; left: 0; bottom: 5px; height: 2px; width: 0; border-radius: 2px; background: var(--brass-300, #D7B674); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Squared-off buttons (10px corners), not pills */
.header-signin, .header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 10px; font: 500 .9375rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
/* Sign in, the daily door: frosted glass with a brass key mark; a soft brass light passes across on hover */
.header-signin { position: relative; overflow: hidden; color: var(--c-text); background: rgb(239 236 231 / .07); border: 1px solid rgb(239 236 231 / .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-signin svg { flex: none; color: var(--brass-300, #D7B674); }
.header-signin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(215 182 116 / .22) 50%, transparent 70%); transform: translateX(-120%); }
.header-signin:hover, .header-signin:focus-visible { background: rgb(239 236 231 / .1); border-color: rgb(215 182 116 / .65); }
@media (prefers-reduced-motion: no-preference) {
  .header-signin::after { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
  .header-signin:hover::after { transform: translateX(120%); }
}
.header-cta { padding: 0 14px 0 18px; background: var(--c-btn); color: var(--c-btn-text); border: 1px solid var(--c-btn); }
.header-cta:hover { background: #fff; border-color: #fff; }
.header-cta svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.header-cta:hover svg { transform: translateX(2px); }
.link-arrow { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; font-weight: 500; color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-record, var(--c-accent)); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.link-arrow::after { content: " →"; content: " →" / ""; white-space: pre; }
@media (max-width: 860px) { .nav { display: none; } .site-header__inner { gap: var(--space-4); } }
@media (max-width: 560px) {
  .site-header__inner { min-height: 58px; padding: 0 7px 0 16px; border-radius: 16px; }
  main > .hero:first-child { margin-top: -70px; padding-top: calc(clamp(72px, 10vw, 136px) + 70px); }
  .header-signin, .header-cta { min-height: 42px; font-size: .875rem; }
  .header-signin { padding: 0 12px; } .header-cta { padding: 0 11px 0 13px; }
}
@media (max-width: 380px) { .header-cta svg { display: none; } .header-cta { padding: 0 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--c-btn); background: var(--c-btn); color: var(--c-btn-text); font: 500 var(--text-base)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .15s var(--ease); }
.btn:hover { text-decoration: none; background: var(--c-btn-hover, var(--c-btn)); border-color: var(--c-btn-hover, var(--c-btn)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: var(--text-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* FAQ */
.faq-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.faq-grid > h2 { margin: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 2rem 18px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 4px; top: 21px; font: 400 1.25rem/1 var(--font-mono); color: var(--c-text-2); }
.faq details[open] summary::after { content: "–"; content: "–" / ""; }
.faq details > div { padding: 0 2rem 20px 0; color: var(--c-text-2); max-width: var(--measure); }

/* CTA */
.cta__inner { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.cta h2 { font-size: var(--text-3xl); line-height: 1; letter-spacing: var(--tracking-display); max-width: 16ch; }

/* Forms */
.page-top { border-top: 0; }
.demo-grid { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-grid .small { margin-top: var(--space-5); max-width: 46ch; }
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 6px; }
label { font-weight: 500; font-size: var(--text-sm); }
.req { font-weight: 400; color: var(--c-text-2); }
input, select, textarea { width: 100%; font: inherit; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--radius); padding: 11px 12px; min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-bad); }
.field .error { color: var(--c-bad); font-size: var(--text-sm); }
.status { padding: var(--space-4); border-radius: var(--radius); background: var(--c-surface-2); border-left: 3px solid var(--c-line-strong); }
.status--ok { border-left-color: var(--c-ok); }
.status--warn { border-left-color: var(--c-warn); }
.status--bad { border-left-color: var(--c-bad); }

/* Prose pages */
.prose { max-width: 680px; }
.prose h1 { margin-bottom: var(--space-5); }
.prose h2 { font-size: var(--text-xl); margin: var(--space-7) 0 var(--space-3); }
.prose p + p { margin-top: var(--space-3); }

/* Footer */
.site-footer { border-top: 1px solid var(--c-line); padding-block: var(--space-6); font-size: var(--text-sm); color: var(--c-text-2); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; }
.footer-links a { color: var(--c-text-2); text-decoration: none; display: inline-block; padding: 10px 0; }
.footer-links a:hover { color: var(--c-text); text-decoration: underline; }
.theme-toggle { background: none; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-text-2); font: inherit; padding: 8px 12px; cursor: pointer; min-height: 44px; }

/* Midnight bands (header, hero, closing call to action, footer): the brand's dark ground in both themes */
.on-midnight {
  --c-bg: var(--midnight-900, #14213d); --c-surface: var(--midnight-800, #1c2a48); --c-surface-2: var(--midnight-800, #1c2a48);
  --c-text: #efece7; --c-text-2: #b3bbc9; --c-line: #2c3a58; --c-line-strong: #738199;
  --c-accent: var(--brass-300, #d7b674); --c-record: var(--brass-500, #b08a3e);
  --c-btn: #efece7; --c-btn-text: #0a142a; --c-btn-hover: #ffffff; --c-focus: var(--brass-300, #d7b674);
  background: var(--c-bg); color: var(--c-text); color-scheme: dark;
}
.section.on-midnight, .site-footer.on-midnight { border-top-color: var(--c-line); }
.cta.on-midnight + .site-footer { border-top: 1px solid var(--c-line); }


/* ============ Homepage (2026-10-06 rebuild) ============ */
/* Motion rule: one quiet entrance per block, nothing hidden without JavaScript, nothing moves under reduced motion. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .what__col[data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
  .js .what__col[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .what__col[data-reveal] + .what__col[data-reveal] { transition-delay: .12s; }
}

/* Hero: oversized headline, a slow stage light behind it, the video breaking out underneath */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 10vw, 136px) clamp(72px, 9vw, 120px); }
.hero:has(+ .video:not([hidden])) { padding-bottom: clamp(140px, 16vw, 230px); }
.hero__light { position: absolute; inset: -30% -10% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 78% 18%, rgb(176 138 62 / .16), transparent 70%),
    radial-gradient(42% 52% at 12% 92%, rgb(52 78 136 / .45), transparent 72%); }
@media (prefers-reduced-motion: no-preference) { .hero__light { animation: stage-light 22s ease-in-out infinite alternate; } }
@keyframes stage-light { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--space-7); align-items: end; }
.hero h1 { font-size: clamp(2.75rem, 1.1rem + 5.4vw, 5.75rem); line-height: .98; letter-spacing: -0.022em; font-weight: var(--weight-display, 420); }
.hero h1 span { display: block; color: var(--brass-300, #d7b674); }
.hero .lead { margin-top: 0; max-width: 34ch; color: var(--c-text-2); }
.hero .btn-row { margin-top: var(--space-5); align-items: center; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Video: hidden until site.json has video_url; a placeholder shows on this Mac only */
.video { position: relative; z-index: 1; margin-top: calc(clamp(96px, 12vw, 180px) * -1); padding-bottom: var(--space-8); }
.video__frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--midnight-950, #0a142a); box-shadow: 0 40px 90px -40px rgb(10 20 42 / .55), 0 0 0 1px rgb(239 236 231 / .08); }
.video__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__placeholder { display: grid; place-items: center; height: 100%; color: #b3bbc9; font: 500 var(--text-sm)/1.5 var(--font-body); border: 1px dashed #2c3a58; border-radius: 16px; text-align: center; padding: var(--space-5); }

/* The headache, crossed out */
.statement { border-top: 0; padding-block: clamp(72px, 9vw, 128px); }
.statement__text { font: 400 clamp(1.75rem, 1rem + 2.9vw, 3.25rem)/1.18 var(--font-display); letter-spacing: -0.016em; max-width: 26ch; }
.strike { position: relative; color: var(--c-text-2); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -.06em; right: -.06em; top: 54%; height: max(2px, .06em); border-radius: 2px; background: var(--c-record, var(--c-accent)); transform-origin: left center; }
@media screen and (prefers-reduced-motion: no-preference) {
  .js .statement .strike::after { transform: scaleX(0); transition: transform .55s cubic-bezier(.6, 0, .2, 1); transition-delay: calc(.15s + var(--i) * .22s); }
  .js .statement.is-in .strike::after { transform: scaleX(1); }
  .js .statement .statement__answer { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease) 1.15s, transform .8s var(--ease) 1.15s; }
  .js .statement.is-in .statement__answer { opacity: 1; transform: none; }
}
.statement__answer { display: block; margin-top: .45em; color: var(--c-text); }

/* What it does: managers and crew, side by side */
.what h2 { max-width: 22ch; margin-bottom: var(--space-6); }
.what__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-7); }
.what__col { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: clamp(24px, 3vw, 40px); overflow: hidden; }
.what__col h3 { font-size: var(--text-xl); margin-top: var(--space-3); }
.ticks { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--c-text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 5px; border-left: 2px solid var(--c-text); border-bottom: 2px solid var(--c-text); transform: rotate(-45deg); }
.vignette { margin: auto calc(clamp(24px, 3vw, 40px) * -1) calc(clamp(24px, 3vw, 40px) * -1); margin-top: var(--space-6); flex: 1 0 auto; min-height: 300px; padding: clamp(24px, 3vw, 40px); display: grid; place-items: center; background: var(--c-surface-2); border-top: 1px solid var(--c-line); }
.vignette > * { margin-top: 0; }
@media (max-width: 860px) { .what__grid { grid-template-columns: 1fr; } }

/* Vignettes: small, simplified pictures of the app (Phesti's own look) */
.vg-card, .vg-phone { width: min(100%, 380px); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 14px; padding: 18px; font-size: .875rem; box-shadow: var(--shadow); }
.vg-card__head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; }
.vg-date { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 10px; background: var(--c-surface-2); font: 600 1.125rem/1 var(--font-display); }
.vg-date b { font: 600 .625rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); margin-bottom: 2px; }
.vg-what { display: grid; gap: 2px; min-width: 0; }
.vg-title { font: 500 1.0625rem/1.2 var(--font-display); }
.vg-meta { color: var(--c-text-2); font-size: .8125rem; }
.vg-chip { font-size: .75rem; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-text-2); white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.vg-chip.is-full { background: color-mix(in srgb, var(--c-ok) 14%, transparent); color: var(--c-ok); }
.vg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); color: var(--c-text-2); }
.vg-row > span:last-child { color: var(--c-text); text-align: right; }
/* Manager picture: an event lands on the week, crew fill its slots, tasks get assigned, paperwork comes in (site.js) */
.vg-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.vg-day { display: grid; align-content: start; gap: 4px; min-height: 58px; padding: 6px; border-radius: 8px; background: var(--c-surface-2); }
.vg-day b { font: 600 .625rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-2); }
.vg-bar { display: block; height: 7px; width: var(--w, 70%); border-radius: 4px; background: color-mix(in srgb, var(--c-text) 18%, transparent); }
.vg-bar--new { --w: 100%; height: 14px; background: var(--c-record, #B08A3E); transform-origin: left center; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.vg-day--target { transition: box-shadow .4s ease; }
.vg-slots { display: inline-flex; gap: 4px; }
.vg-slots i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 .625rem/1 var(--font-body); font-style: normal; color: transparent;
  border: 1.5px dashed var(--c-line-strong); transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.vg-slots i.is-on { background: var(--c-text); color: var(--c-bg); border: 1.5px solid var(--c-text); }
.vg-paper { color: var(--c-text-2); transition: color .3s ease; }
.vg-paper::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--c-warn); transition: background-color .3s ease; }
.vg-paper.is-done { color: var(--c-text); }
.vg-paper.is-done::before { background: var(--c-ok); }
.vg-phone { width: min(100%, 290px); border-radius: 26px; padding: 22px 18px 18px; display: grid; gap: 4px; border-width: 1px; }
.vg-phone__k { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); }
/* Crew picture: tasks get checked off one by one and the bar fills (site.js) */
.vg-progress { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--c-surface-2); overflow: hidden; }
.vg-progress__bar { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--c-text); transition: width .6s cubic-bezier(.2, .8, .2, 1), background-color .4s ease; }
.vg-progress__bar.is-full { background: var(--c-ok); }
.vg-progress__label { font-size: .75rem; font-weight: 600; color: var(--c-text-2); margin-top: 2px; }
.vg-check { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 7px; }
.vg-check li { position: relative; padding: 8px 10px 8px 36px; border-radius: 10px; background: var(--c-surface-2); color: var(--c-text); transition: color .3s ease; }
.vg-check li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid var(--c-line-strong); background: var(--c-surface);
  transition: background-color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.vg-check li::after { content: ""; position: absolute; left: 15px; top: 50%; width: 6px; height: 3px; margin-top: -3px; border-left: 2px solid var(--c-on-status); border-bottom: 2px solid var(--c-on-status); transform: rotate(-45deg); opacity: 0; transition: opacity .2s ease .1s; }
.vg-check li.is-done { color: var(--c-text-2); }
.vg-check li.is-done::before { background: var(--c-ok); border-color: var(--c-ok); transform: scale(1.12); }
.vg-check li.is-done::after { opacity: 1; }
.vg-check li.is-done.is-settled::before { transform: none; }
.vg-contact { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.vg-contact i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface-2); font: 600 .625rem/1 var(--font-body); font-style: normal; }
.vg-contact b { margin-left: auto; font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-line-strong); }

/* Brand alignment: example institutions re-skin a simplified Phesti, one after another */
.brand { position: relative; isolation: isolate; overflow: hidden; }
.brand__wash { position: absolute; z-index: -1; width: 60vmax; height: 60vmax; right: -18vmax; top: -10vmax; border-radius: 50%; background: var(--b-primary, #1b5e45); opacity: .12; filter: blur(90px); transition: background-color 1.4s cubic-bezier(.65, 0, .35, 1); pointer-events: none; }
.brand__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.brand__copy .lead { max-width: 38ch; }
@media (max-width: 960px) { .brand__grid { grid-template-columns: 1fr; } }

/* The stage: a simplified app window and phone, always light like the app */
.brand__stage { display: grid; color: #1d2433; font: 400 13px/1.35 var(--font-body); }
.brand__layer { --b-deep: #12372a; --b-primary: #1b5e45; --b-accent: #c8834a; --b-tint: #e7f0ec; --b-font: Georgia, serif;
  grid-area: 1 / 1; position: relative; padding: 0 0 clamp(40px, 6vw, 64px); }
.ui { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 360px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 30px 70px -30px rgb(20 33 61 / .45), 0 0 0 1px rgb(20 33 61 / .08); }
.ui__side { background: var(--b-deep); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 22px; }
.ui__brand { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.ui__mark { display: grid; place-items: center; flex: none; }
.ui__mark svg { width: 34px; height: 34px; display: block; }
.ui__name { font: 600 13px/1.15 var(--b-font); letter-spacing: -.005em; }
.ui__nav { display: grid; gap: 2px; }
.ui__nav span { padding: 8px 10px; border-radius: 7px; color: rgb(255 255 255 / .72); font-weight: 500; }
.ui__nav .is-on { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 3px 0 0 var(--b-accent); }
.ui__main { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ui__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui__h { font: 600 20px/1.1 var(--b-font); letter-spacing: -.01em; color: #121826; }
.ui__btn { background: var(--b-primary); color: #fff; font-weight: 600; font-size: 12px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.ui__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ui__days span { display: grid; justify-items: center; gap: 3px; padding: 7px 0; border-radius: 8px; color: #6a7383; font-size: 11px; background: #f4f6f8; }
.ui__days b { font-size: 14px; color: #1d2433; font-weight: 600; }
.ui__days .is-today { background: var(--b-tint); box-shadow: inset 0 -3px 0 var(--b-accent); }
.ui__list { display: grid; gap: 0; border-top: 1px solid #e8ebef; }
.ui__row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid #e8ebef; }
.ui__time { color: #6a7383; font-size: 12px; font-variant-numeric: tabular-nums; }
.ui__ev { display: grid; font-weight: 600; color: #1d2433; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__ev small { font-weight: 400; color: #6a7383; font-size: 11.5px; }
.ui__chip { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--b-tint); color: var(--b-deep); white-space: nowrap; }
.ui__chip--open { background: #fff; box-shadow: inset 0 0 0 1px var(--b-accent); color: #1d2433; }
.ui-phone { position: absolute; right: clamp(-8px, -1vw, 0px); bottom: 0; width: clamp(150px, 30%, 210px); border-radius: 26px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -24px rgb(20 33 61 / .5), 0 0 0 1px rgb(20 33 61 / .1), 0 0 0 6px #fff, 0 0 0 7px rgb(20 33 61 / .12); }
.ui-phone__bar { display: flex; align-items: center; gap: 8px; padding: 16px 14px 12px; background: var(--b-deep); color: #fff; font: 600 12px/1.1 var(--b-font); }
.ui-phone__bar svg { width: 24px; height: 24px; display: block; }
.ui-phone__body { display: grid; gap: 3px; padding: 14px 14px 16px; }
.ui-phone__k { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6a7383; }
.ui-phone__t { font: 600 16px/1.15 var(--b-font); color: #121826; }
.ui-phone__m { font-size: 11.5px; color: #6a7383; }
.ui-phone__btn { margin-top: 10px; text-align: center; background: var(--b-primary); color: #fff; font-weight: 600; font-size: 12px; padding: 9px; border-radius: 10px; }
/* The institution marks (fictional) */
.mk-w { fill: #fff; } .mk-p { fill: var(--b-primary); } .mk-a { fill: var(--b-accent); } .mk-as { fill: none; stroke: var(--b-accent); } .mk-ps { fill: none; stroke: var(--b-primary); }
@media (max-width: 640px) {
  .ui { grid-template-columns: 112px minmax(0, 1fr); min-height: 300px; }
  .ui__side { padding: 14px 8px; }
  .ui__brand { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 80px; }
  .ui__name { font-size: 11px; }
  .ui__nav span { padding: 6px 8px; font-size: 11.5px; }
  .ui__main { padding: 14px 12px; }
  .ui__days { display: none; }
  .ui__row { grid-template-columns: minmax(0, 1fr) auto; }
  .ui__time { display: none; }
  .ui__btn { display: none; }
  .ui-phone { display: none; }
  .brand__layer { padding-bottom: 0; }
}

.faq-section { border-top: 0; }
.nowrap { white-space: nowrap; }
.brand h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.875rem); }

/* Review fixes, 2026-10-06 */
.wordmark__tm { font: 400 .45em/1 var(--font-body); align-self: flex-start; margin: 2px 0 0 1px; color: var(--c-text-2); }
.form .btn-row { margin-top: var(--space-2); }
.vg-card .vg-meta { white-space: nowrap; }
.vg-row { flex-wrap: wrap; }
.vg-row > span:last-child { margin-left: auto; white-space: nowrap; }
@media (max-width: 480px) {
  .vignette { padding: 20px 14px; min-height: 0; }
  .vg-card { padding: 16px; }
  .vg-card__head { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .vg-chip { grid-column: 2; justify-self: start; }
}
@media (min-width: 961px) and (max-width: 1199px) {
  .ui { grid-template-columns: 148px minmax(0, 1fr); }
  .ui__row { grid-template-columns: minmax(0, 1fr) auto; }
  .ui__time { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ui { box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .1); }
}
:root[data-theme="dark"] .ui { box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .1); }

/* Menu links: the page content fades, the view moves to the section, and it fades back in (site.js initSectionNav). The header stays live. */

/* Sign in: the page fades into the same aurora the app's sign-in screen stands on (sizes and colours match
   product/app/assets/phesti.css .aurora), so the hand-over is seamless; coming back, it fades away again */
.portal { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; background: #0A142A;
  opacity: 0; transition: opacity .75s cubic-bezier(.4, 0, .2, 1); }
.portal__blobs { position: absolute; inset: 0; filter: blur(80px) saturate(1.15); }
.portal i { position: absolute; border-radius: 50%; will-change: transform; }
.portal i:nth-child(1) { width: 58vmax; height: 58vmax; left: -14vmax; top: -18vmax; background: #23437F; opacity: .8; }
.portal i:nth-child(2) { width: 46vmax; height: 46vmax; right: -14vmax; top: 6vmax; background: #0E5866; opacity: .7; }
.portal i:nth-child(3) { width: 30vmax; height: 30vmax; left: 34vmax; bottom: -16vmax; background: #B08A3E; opacity: .38; }
.portal i:nth-child(1) { animation: au-a 14s ease-in-out var(--au-phase, 0s) infinite; }
.portal i:nth-child(2) { animation: au-b 17s ease-in-out var(--au-phase, 0s) infinite; }
.portal i:nth-child(3) { animation: au-c 12s ease-in-out var(--au-phase, 0s) infinite; }
@keyframes au-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 30% { transform: translate3d(9vmax, 5vmax, 0) scale(1.1); } 65% { transform: translate3d(3vmax, 11vmax, 0) scale(.94); } }
@keyframes au-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 35% { transform: translate3d(-10vmax, 6vmax, 0) scale(1.08); } 70% { transform: translate3d(-4vmax, -6vmax, 0) scale(.96); } }
@keyframes au-c { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 40% { transform: translate3d(-14vmax, -7vmax, 0) scale(1.25); } 75% { transform: translate3d(6vmax, -3vmax, 0) scale(1.05); } }
.portal.is-closing { opacity: 1; }
.portal.is-arriving { opacity: 1; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
.portal.is-arriving.is-lifting { opacity: 0; }

/* The native scrollbar is hidden so it never takes up width (and never jumps when Sign in hands over to the app);
   a slim thumb floats over the page instead, shows while scrolling or near the right edge, and can be dragged (site.js) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.scroll-thumb { position: fixed; top: 0; right: 3px; z-index: 60; width: 6px; border-radius: 6px; background: rgb(120 129 147 / .55);
  opacity: 0; cursor: grab; touch-action: none; transition: opacity .45s ease, width .2s ease, background-color .2s ease; }
.scroll-thumb.is-on, .scroll-thumb:hover { opacity: 1; }
.scroll-thumb:hover, .scroll-thumb.is-drag { width: 9px; background: rgb(120 129 147 / .8); }
.scroll-thumb.is-drag { cursor: grabbing; }
@media (pointer: coarse) { .scroll-thumb { pointer-events: none; } }
@media print { .scroll-thumb { display: none; } }

/* Review fixes (2026-10-06) */
.portal.is-closing { pointer-events: auto; }   /* nothing underneath can be clicked during the hand-over */
main[tabindex="-1"]:focus, section[tabindex="-1"]:focus { outline: none; }
/* during a wipe only the outgoing layer casts the shadow, so it never doubles or travels with the seam */
.brand__stage > .brand__layer + .brand__layer .ui { box-shadow: 0 0 0 1px rgb(20 33 61 / .08); }
.brand__stage > .brand__layer + .brand__layer .ui-phone { box-shadow: 0 0 0 1px rgb(20 33 61 / .1), 0 0 0 6px #fff, 0 0 0 7px rgb(20 33 61 / .12); }

/* The written-out logo: "Phesti" in Newsreader with a brass full stop (logo option 8, chosen 2026-10-06) */
.wordmark { align-items: baseline; gap: 0; }
.wordmark__tm { margin-left: 3px; }
.wordmark__dot { display: inline-block; width: .17em; height: .17em; margin-left: .045em; border-radius: 50%; background: var(--c-record, #B08A3E); }
.on-midnight .wordmark__dot { background: var(--brass-500, #B08A3E); }
