/* waycrest.dev: the two pop-ups shared by every page (Contact, and "Try the apps"), lifted from home.css 2.0.0 so the
   Studio pages (design 3.0.0) can carry them without the day-sky page's styles. home.js drives them. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; }
.btn.big { height: 56px; font-size: 16px; }
.solid, .ghost { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 20px; border-radius: var(--radius-button); font: 600 16px/1 var(--font-text); text-decoration: none; cursor: pointer; }
.solid { border: 0; background: var(--ink); color: var(--page); }
.ghost { border: 1.5px solid var(--line); background: transparent; color: var(--ink); }
.solid:disabled { opacity: .6; cursor: progress; }
.trio { display: flex; }
.trio img { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.trio img + img { margin-left: -7px; }
.x { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: var(--page); color: var(--ink); cursor: pointer; z-index: 1; }
.x svg { width: 18px; height: 18px; }
/* the contact popup, in the Try panel's look (1.0.1): same size, radius, Close button and Ink primary button */
.contact-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--page); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .35); overflow: auto; }
.contact-dialog::backdrop { background: rgba(10, 10, 20, .55); }
.dialog-head { position: relative; padding: 32px 32px 0; }
.dialog-head h2 { font: 600 32px/1.04 var(--font-display); letter-spacing: -.035em; padding-right: 44px; }
.contact-dialog .lead { padding: 18px 32px 8px; color: var(--mut); font-size: 15.5px; line-height: 1.5; }
.dialog-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 32px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.dialog-address { display: grid; gap: 2px; }
.dialog-address span { font-size: 13px; font-weight: 600; color: var(--mut); }
.dialog-email { font: 600 15px var(--font-text); }
.copy-button { height: 36px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.contact-dialog .solid { margin: 24px 32px 32px; }

/* Try the apps: a panel over the page, a sheet from the bottom on phones */
.try-d { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--page); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .35); overflow: auto; overscroll-behavior: contain; }
.try-d::backdrop { background: rgba(10, 10, 20, .55); }
.try-d .step { padding: 32px; display: grid; gap: 18px; }
.try-d [hidden] { display: none !important; }
.try-d h2 { font-size: 32px; line-height: 1.04; letter-spacing: -.035em; font-weight: 600; padding-right: 44px; text-wrap: balance; }
.try-d h2:focus { outline: none; }
.try-d .lead, .try-d .note { color: var(--mut); font-size: 15.5px; line-height: 1.5; }
.try-d .note a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* the picks are small versions of the page's moments */
.try-d .picks { display: grid; gap: 10px; }
.try-d .pick { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; border: 0; border-radius: var(--radius-pick); text-align: left; cursor: pointer; transition: transform .2s; }
.try-d .pick:hover { transform: translateY(-2px); }
.try-d .pick > * { position: relative; z-index: 1; }
.try-d .pick img { width: 44px; height: 44px; border-radius: 12px; }
.try-d .pick b { display: block; font-size: 17px; font-weight: 600; }
.try-d .pick b + span { display: block; margin-top: 2px; font-size: 14px; opacity: .82; }
.try-d .pick .t { font-size: 26px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.try-d .pick .t small { font-size: 12px; margin-left: 2px; }
.try-d .p-ai { background: var(--ai-ground); color: var(--ai-ink); box-shadow: inset 0 0 0 1.5px var(--ai-ink); }
.try-d .p-ai::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -102px; height: 112px; border: 1.5px solid var(--ai-ink); border-radius: 50%; opacity: .35; }
.try-d .p-mail { background: var(--mail-ember); color: var(--mail-on-ember); }
.try-d .p-mail b + span { opacity: .94; }
.try-d .p-pick { background: radial-gradient(90% 120% at 85% 0%, var(--pick-glow), var(--pick-ground) 70%); color: #fff; }
.try-d .p-pick .t { color: var(--pick); }
/* step two */
.chosen { display: flex; flex-wrap: wrap; gap: 8px; }
.chosen .pick { width: auto; min-height: 0; padding: 8px 12px 8px 8px; border-radius: 14px; grid-template-columns: auto auto; gap: 10px; cursor: default; }
.chosen .pick:hover { transform: none; }
.chosen .pick img { width: 28px; height: 28px; border-radius: 8px; }
.chosen .pick b { font-size: 14.5px; }
.chosen .pick::after { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .lbl2 { display: block; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--mut); }
.phonepick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phonepick label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: var(--radius-control); border: 1.5px solid var(--line); font-weight: 600; font-size: 15.5px; cursor: pointer; }
.phonepick input { position: absolute; opacity: 0; pointer-events: none; }
.phonepick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.phonepick label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.phonepick em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mut); }
.note.iph { background: color-mix(in srgb, var(--sun) 14%, var(--page)); color: var(--ink); border-radius: var(--radius-control); padding: 12px 14px; font-size: 14.5px; }
.gm { display: flex; align-items: center; height: 58px; border: 1.5px solid var(--ink); border-radius: var(--radius-control); padding: 0 16px; font-size: 17px; }
.gm:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 60%, transparent); }
.gm input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.gm span { color: var(--mut); }
.gm:has(+ .err:not(:empty)) { border-color: var(--error); }
.err { color: var(--error); font-size: 14.5px; font-weight: 600; }
.err:not(:empty) { margin-top: 8px; }
.ts:empty { display: none; }
.ts { min-height: 0; }
.acts { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
/* done: the sun comes up over a horizon */
.rise { position: relative; width: 100%; height: 96px; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.rise b { position: absolute; left: 50%; bottom: -23px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 7px var(--page), 0 0 0 8.5px var(--sun); animation: rise .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
@keyframes rise { from { transform: translateY(40px); } to { transform: translateY(-38px); } }

@media (prefers-color-scheme: dark) {
  .try-d, .contact-dialog { box-shadow: 0 0 0 1.5px var(--line), 0 40px 100px rgba(0, 0, 0, .6); }
}
@media (max-width: 640px) {
  .try-d { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 28px 28px 0 0; max-height: 92vh; }
  .try-d .step { padding: 24px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .try-d h2, .dialog-head h2 { font-size: 27px; }
  .contact-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 28px 28px 0 0; max-height: 92vh; }
  .dialog-head { padding: 24px 16px 0; }
  .contact-dialog .lead { padding: 18px 16px 8px; }
  .dialog-row { margin: 0 16px; }
  .contact-dialog .solid { margin: 24px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .pick .t { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .pick { transition: none; } .pick:hover { transform: none; } .rise b { animation: none; transform: translateY(-38px); } }
