
/* Welcome page (Joel chose mockup B, 28 Nov 2026; docs/style-guide/welcome-b.html). On computers the photo and the glass tile are one piece: the tile overlaps the
   right edge of the photo, so the glass shows the photo through it. A blurred copy of the same photo is the
   page background. On phones: a short photo band, then one column. Values come from tokens.css. */
:root { color-scheme: light; --photo: url(/img/entry/photo-1.webp); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--af-ivory); color: var(--af-body); font-family: var(--af-font); font-size: var(--af-text-md); line-height: 1.5; overflow-wrap: break-word; }
p, h1, h2 { margin: 0; }
a { color: var(--af-forest-700); }
:focus-visible { outline: 3px solid var(--af-clay-600); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sprout: grows in, then sways */
.sprout { overflow: visible; flex: none; }
.sprout path { transform-box: view-box; transform-origin: 12px 22px; }
.grow .sprout-stem { animation: sStem .7s ease-out both; }
.grow .sprout-l { animation: sLeaf .6s .45s ease-out both, sSway 4s 1.2s ease-in-out infinite; }
.grow .sprout-r { animation: sLeaf .6s .6s ease-out both, sSway 4s 1.4s ease-in-out infinite reverse; }
@keyframes sStem { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sLeaf { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sSway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }

/* ---------- page frame ---------- */
.page { position: relative; min-height: 100vh; min-height: 100dvh; }
.stage { position: relative; z-index: 1; }

/* photo panel */
.panel { position: relative; overflow: hidden; background: var(--af-forest-900) var(--photo) center 30% / cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,59,39,0) 45%, rgba(18,59,39,.88) 100%); }
.cap { position: absolute; z-index: 1; color: #fff; display: grid; gap: 6px; }
.cap h2 { color: #fff; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.cap p { color: #dfeadf; }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.5); }
.dots i.on { width: 26px; background: var(--af-harvest-400); }

/* the content */
.tile { position: relative; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--af-forest-900); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
h1 { color: var(--af-ink); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.statement { color: #000; text-align: justify; text-align-last: left; hyphens: none; }

.services { list-style: none; margin: 0; padding: 0; display: grid; }
.services li { display: flex; align-items: center; color: var(--af-forest-900); font-weight: 600; }
.services .t { display: grid; place-items: center; background: var(--af-mint-100); color: var(--af-forest-700); border-radius: var(--af-radius-tile); flex: none; }

.fld { position: relative; display: grid; gap: 6px; }
.fld label { font-weight: 600; color: var(--af-ink); font-size: var(--af-text-sm); }
.inwrap { position: relative; }
.inwrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--af-muted); pointer-events: none; }
.in { width: 100%; min-height: 48px; padding: 0 14px 0 42px; font: inherit; color: var(--af-ink); background: var(--af-white); border: 1px solid var(--af-line-strong); border-radius: var(--af-radius-input); }
.in::placeholder { color: var(--af-muted); }
.llist { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 6px 0 0; padding: 4px; list-style: none; max-height: 232px; overflow: auto; background: var(--af-white); border: 1px solid var(--af-line); border-radius: var(--af-radius-card); box-shadow: 0 12px 28px rgba(18,59,39,.16); }
.llist a { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--af-ink); text-decoration: none; }
.llist a span { color: var(--af-muted); font-size: var(--af-text-sm); }
.llist a i { margin-left: auto; color: var(--af-leaf-600); font-style: normal; font-weight: 700; }
.llist li.on a, .llist a:hover { background: var(--af-mint-100); }
.llist [aria-selected="true"] a { font-weight: 600; }
.llist .lnone { padding: 10px 12px; color: var(--af-muted); font-size: var(--af-text-sm); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--af-radius-button); font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--af-harvest-400); color: var(--af-forest-900); }
.btn.primary:hover { background: var(--af-harvest-500); }
.btn.outline { background: var(--af-white); color: var(--af-forest-700); border: 1.5px solid var(--af-forest-700); }
.btn.outline:hover { background: var(--af-mint-50); }

.rule { height: 1px; background: var(--af-line); border: 0; margin: 0; }

.ads { display: grid; gap: 8px; }
.adhead { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { font-size: var(--af-text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--af-pending-fg); }
.adots { display: flex; gap: 5px; }
.adots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.adots button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--af-line-strong); transition: width .2s; }
.adots button[aria-current="true"]::before { width: 20px; background: var(--af-forest-700); }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--af-radius-card); }
.track::-webkit-scrollbar { display: none; }
.ad { flex: 0 0 100%; scroll-snap-align: start; display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--af-butter-100); border-radius: var(--af-radius-card); text-decoration: none; color: var(--af-ink); }
.ad img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.ad b { display: block; font-size: var(--af-text-md); line-height: 1.3; }
.ad p { font-size: var(--af-text-sm); color: var(--af-body); line-height: 1.4; margin-top: 2px; }
.ad .go { display: inline-block; margin-top: 4px; font-size: var(--af-text-sm); font-weight: 700; color: var(--af-forest-700); }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }

.foot { font-size: var(--af-text-sm); color: var(--af-muted); text-align: center; }
.foot a { font-weight: 600; }

/* ---------- computers ---------- */
@media (min-width: 901px) {
  /* one background: the same photo, blurred, washed with ivory */
  .page { height: 100vh; height: 100dvh; overflow: hidden; display: grid; place-items: center; padding: 20px 28px; }
  .page::before { content: ""; position: fixed; inset: -80px; background: var(--photo) center / cover; filter: blur(56px) saturate(1.15); transform: scale(1.1); }
  .page::after { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(251,248,239,.30), rgba(251,248,239,.62) 60%, rgba(251,248,239,.72)); }

  .stage { width: 100%; max-width: 1280px; height: 100%; max-height: 860px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, 560px); align-items: center; column-gap: 72px; }
  .panel { grid-column: 1; grid-row: 1; height: 100%; border-radius: 28px; box-shadow: 0 30px 70px rgba(18,59,39,.28); }
  .cap { left: 36px; bottom: 32px; right: 36px; }
  .cap h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); max-width: 16ch; }
  .cap p { font-size: var(--af-text-md); max-width: 34ch; }

  .side { grid-column: 2; grid-row: 1; position: relative; z-index: 2; display: grid; gap: 10px; justify-items: center; }
  .tile { width: 100%; gap: 14px; padding: 26px 32px 22px; border-radius: 24px;
          background: linear-gradient(150deg, rgba(255,255,255,.72), rgba(255,255,255,.46) 55%, rgba(251,248,239,.62));
          -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
          border: 1px solid rgba(255,255,255,.9);
          box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 0 0 1px rgba(255,255,255,.25), 0 30px 60px rgba(18,59,39,.18), 0 2px 6px rgba(18,59,39,.08); }
  /* a soft reflection across the glass */
  .tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                  background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 72%, rgba(255,255,255,.28) 100%); }
  .tile > * { position: relative; }

  .brand { align-self: center; flex-direction: column; gap: 2px; font-size: 1.6rem; }
  .brand .sprout { width: 64px; height: 64px; }
  .head { text-align: center; display: grid; gap: 8px; }
  h1 { font-size: var(--af-text-4xl); }
  .statement { font-size: 15.5px; line-height: 1.5; max-width: 470px; margin: 0 auto; }

  .services { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .services li { flex-direction: column; gap: 6px; padding: 10px 4px 8px; text-align: center; font-size: var(--af-text-sm); line-height: 1.2;
                 background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); border-radius: var(--af-radius-card); }
  .services .t { width: 36px; height: 36px; border-radius: 10px; }

  .actions { justify-content: center; }
  .ad { background: rgba(255,244,204,.78); }
  .foot { color: var(--af-body); }
}
@media (min-width: 901px) and (min-height: 860px) {
  .tile { gap: 18px; padding: 34px 40px 28px; }
  .brand .sprout { width: 76px; height: 76px; }
  .brand { font-size: 1.8rem; }
  .services li { padding: 14px 4px 12px; }
  .services .t { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .sprout path { animation: none !important; } }

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .panel { height: 240px; background-position: center 22%; }
  .panel::after { background: linear-gradient(180deg, rgba(18,59,39,.05) 0%, rgba(18,59,39,.35) 40%, rgba(18,59,39,.9) 100%); }
  .cap h2, .cap p { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .cap { left: 16px; right: 16px; bottom: 34px; }
  .cap h2 { font-size: 1.375rem; }
  .cap p { font-size: var(--af-text-sm); }
  .dots { margin-top: 6px; }
  .side { position: relative; margin-top: -22px; background: var(--af-ivory); border-radius: 22px 22px 0 0; padding: 20px 16px 20px; display: grid; gap: 18px; }
  .tile { gap: 16px; max-width: 560px; }
  .brand { font-size: 1.3rem; }
  .brand .sprout { width: 34px; height: 34px; }
  .head { display: grid; gap: 8px; }
  h1 { font-size: var(--af-text-3xl); }
  .statement { font-size: 17px; line-height: 1.5; }
  .services { grid-template-columns: 1fr 1fr; gap: 8px; }
  .services li { gap: 10px; min-height: 56px; padding: 8px 10px; font-size: 15px; line-height: 1.25; background: var(--af-white); border: 1px solid var(--af-line); border-radius: var(--af-radius-card); }
  .services .t { width: 36px; height: 36px; border-radius: 10px; }
  .fld label { font-size: var(--af-text-md); }
  .in { font-size: var(--af-text-lg); }
  .btn { font-size: 17px; }
  .foot { max-width: 560px; }
}
@media (max-width: 360px) { .btn { white-space: normal; text-align: center; } }

/* story videos in the panel: each plays to its end, then the next; pictures only with reduced motion */
.panel video, .panel .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .6s; }
.panel video.on, .panel .still.on { opacity: 1; }
.panel .cap .c { display: none; } .panel .cap .c.on { display: grid; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button.on { width: 26px; background: var(--af-harvest-400); }
.ad img { background: var(--af-mint-100); }

/* Sign in, code and sign-up in the same frame (Joel, 28 Nov 2026): like the welcome page they fit the screen and do
   not scroll. On computers the page is fixed to the window; on phones a slim photo strip with the logo replaces the
   tall band so each step fits one phone screen. */
.form-page .tile .e-card { background: none; border: 0; box-shadow: none; padding: 0; gap: 12px; }
.form-page .tile { gap: 12px; }
.form-page .e-brand { align-self: center; }
@media (min-width: 901px) {
  .form-page .side { max-height: 100%; min-height: 0; }
  .form-page .tile { max-height: calc(100dvh - 90px); overflow: auto; scrollbar-width: none; }
  .form-page .tile::-webkit-scrollbar { display: none; }
  .form-page .tile { padding: 22px 30px 18px; }
}
@media (max-width: 900px) {
  .form-page .panel { height: 58px; }
  .form-page .panel .cap, .form-page .panel video { display: none; }
  .form-page .panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,59,39,.85), rgba(18,59,39,.35)); }
  .form-page .panel .band-logo { display: flex; }
  .form-page .side { margin-top: -14px; border-radius: 16px 16px 0 0; padding: 12px 16px 14px; gap: 10px; }
  .form-page .e-brand { display: none; }
  .form-page .tile { gap: 10px; }
}
.panel .band-logo { display: none; position: absolute; z-index: 2; left: 16px; top: 0; height: 58px; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.panel .band-logo svg { width: 26px; height: 26px; }
