/* Page CSS: only what sits inside a visual and the kit lacks (references/system.md), plus the
   app-frame recipe and one --p-h per card group. Linked last, after the kit and the palette. */

/* the hero collage: pieces sized in % of the collage, their text in container units */
.ly-collage { container-type: inline-size; }
.ly-collage .ly-piece { box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 22px 48px -22px rgb(0 0 0 / .4); }
.pc-video { display: grid; grid-template-rows: 1fr auto; background: #0a0a0a; }
.pc-video img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.pc-video .bar { background: #0a0a0a; display: flex; align-items: center; gap: 2cqw; padding: 2cqw 3cqw; color: #f8f8f8; font: 500 max(13px, 1.9cqw)/1 var(--font-mono); }
.pc-video .bar i { flex: 1; height: .7cqw; min-height: 3px; border-radius: 99px; background: rgb(255 255 255 / .25); position: relative; overflow: hidden; }
.pc-video .bar i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--at, 30%); background: #7fd49a; }
.pc-video .bar b { width: 0; height: 0; border-left: 1.6cqw solid #f8f8f8; border-block: 1cqw solid transparent; }
.pc-video .bar b.pause { width: 1.6cqw; height: 2cqw; border: 0; background: linear-gradient(90deg, #f8f8f8 35%, transparent 35% 65%, #f8f8f8 65%); }
.pc-card { background: #fff; color: #0a0a0a; padding: 3cqw 3.4cqw; display: grid; gap: 1.6cqw; font: 400 max(13px, 2cqw)/1.3 var(--font-text); }
.pc-card .lbl { color: #6a6a6a; font-size: max(13px, 1.7cqw); }
.pc-card .ttl { font: 500 max(15px, 3.2cqw)/1.05 var(--font-display); letter-spacing: -0.02em; }
.pc-card .ln { display: flex; justify-content: space-between; gap: 2cqw; padding-top: 1.4cqw; border-top: 1px solid #ececec; }
.pc-card .ln em { font-style: normal; color: #1f6b3a; font-weight: 500; }
.pc-card .dots { display: flex; gap: 1cqw; }
.pc-card .dots span { width: 4.4cqw; height: 4.4cqw; min-width: 22px; min-height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 max(11px, 1.5cqw)/1 var(--font-text); color: #fff; }
.pc-card .live { display: inline-flex; align-items: center; gap: 1cqw; color: #1f6b3a; font-weight: 500; }
.pc-card .live::before { content: ""; width: 1.4cqw; height: 1.4cqw; min-width: 7px; min-height: 7px; border-radius: 50%; background: #1f6b3a; }
.pc-card kbd { font: 500 max(13px, 1.7cqw)/1 var(--font-mono); padding: .5cqw 1cqw; border: 1px solid #dcdcdc; border-radius: .8cqw; }
.pc-pick { outline: .6cqw solid #7fd49a; outline-offset: -.6cqw; }
@media (max-width: 639px) { .pc-hide-sm { display: none; } }

/* app-frame recipe (sections-library.md) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* card groups */
#steps .panel { --p-h: 336px; }
#features .panel { --p-h: 300px; }
@media (max-width: 639px) { #features .panel { --p-h: 184px; } #steps .panel { --p-h: 200px; } }
/* the three steps go two-up from 1024 to 1279 and stack below: two screens there */
@media (min-width: 640px) and (max-width: 1279px) { #steps { --h: 2; } }

/* the browsers panel: three real marks on the lit panel */
.browsers { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--s-7); }
.browsers .ic { width: 72px; height: 72px; }
@media (max-width: 639px) { .browsers { gap: var(--s-6); } .browsers .ic { width: 48px; height: 48px; } }

/* a room note over a photograph */
.note-over { position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); max-width: 360px; background: #fff; color: #0a0a0a; border-radius: var(--r-md); padding: var(--s-4) var(--s-5); font: 400 var(--t-small)/1.4 var(--font-text); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 18px 40px -20px rgb(0 0 0 / .45); }
.note-over b { display: block; font-weight: 500; margin-bottom: var(--s-1); }

/* the sync statement: three still steps under it */
.sync-steps { margin: var(--s-8) 0 0; padding: 0; }
.sync-steps li { list-style: none; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding-top: var(--s-4); font-size: var(--t-lead); }
.sync-steps .t-label { display: block; margin-bottom: var(--s-2); }

/* close-word: the name hand-set to the wrap at each width */
.close__word { font-size: min(calc((100vw - 2 * var(--gut)) / 7), 182px); white-space: nowrap; }

/* phones: the three steps stack into two screens */
@media (max-width: 639px) { #steps { --hm: 2; } }

/* one button height page-wide: the triptych's 64px button would be a second size of the main action */
.hero--triptych .hero__cta .btn { height: var(--btn-h, 44px); padding-inline: var(--s-5); font-size: var(--t-body); }
/* text people read stays in the ink (7:1) */
#sync .mo-la__sub { color: var(--ink); }
/* the "coming soon" dialog opened by every Get the extension button */
.coming-soon { margin: auto; max-width: min(440px, calc(100vw - 32px)); padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: 20px; background: var(--bg); color: var(--ink); }
.coming-soon::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.coming-soon h2 { margin: 0 0 var(--s-3); }
.coming-soon p { margin: 0 0 var(--s-5); }

/* /privacy: a plain reading page, one column at a comfortable line length */
.legal__bar { padding-block: var(--s-5); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.legal { max-width: 760px; padding-block: var(--s-7) var(--s-9); line-height: 1.6; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 0; }
.legal h2 { font-size: 24px; margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal ul { margin: 0 0 var(--s-4); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: var(--s-2); }
.legal a { color: var(--accent); }
.legal code { font-family: var(--font-mono); font-size: 0.9em; overflow-wrap: anywhere; }
.legal__date { color: var(--muted); margin-top: var(--s-3); }
.legal__table { overflow-x: auto; margin: 0 0 var(--s-5); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s-3); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.legal th { font-weight: 600; }
.legal__barin { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.legal__barin nav { display: flex; gap: var(--s-5); }
.legal__barin nav a { color: inherit; text-decoration: none; }
.legal__barin nav a:hover { color: var(--accent); }

/* /reset-password */
.reset-form { display: grid; gap: var(--s-3); max-width: 420px; }
.reset-form label { font-weight: 600; margin-top: var(--s-2); }
.reset-form input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); background: var(--bg, #fff); color: var(--ink); }
.reset-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reset-form .btn { justify-self: start; margin-top: var(--s-3); }
.reset-form__error { color: #b42318; margin: 0; }
