/* The landing page (landing.html): the app's colors and type (styles.css), one column on a phone, two where it helps on
   a wide screen. Spacing is on an 8-point scale; sections are 88px apart on a phone and 136px wide. No violet, and the
   vermilion stays in the logo (DESIGN.md). */

/* ---------- frame ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.land { position: relative; z-index: 1; padding-bottom: calc(24px + var(--safe-b)); }
#join, #how { scroll-margin-top: 24px; }
.land-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.land-soft { color: var(--muted); }

/* a warm wash behind the top of the page */
.land-wash { position: absolute; top: 0; left: 0; right: 0; height: 960px; overflow: hidden; pointer-events: none; z-index: 0; }
.land-wash i { position: absolute; border-radius: 50%; filter: blur(10px); }
.land-wash i:nth-child(1) { width: 820px; height: 560px; left: -240px; top: -200px; background: radial-gradient(closest-side, rgba(255, 150, 100, .20), rgba(255, 150, 100, 0)); }
.land-wash i:nth-child(2) { width: 760px; height: 560px; right: -260px; top: 40px; background: radial-gradient(closest-side, rgba(242, 183, 101, .20), rgba(242, 183, 101, 0)); }
.land-wash i:nth-child(3) { width: 680px; height: 480px; left: 30%; top: 420px; background: radial-gradient(closest-side, rgba(255, 120, 90, .10), rgba(255, 120, 90, 0)); }
@media (prefers-color-scheme: dark) { .land-wash { opacity: .5; } }

/* ---------- type: the page's few sizes ---------- */
.land-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.land-label { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.land-big { margin: 0; font-size: 46px; line-height: 1.02; font-weight: 780; letter-spacing: -.045em; }
.land-h2 { margin: 0; font-size: 32px; line-height: 1.08; font-weight: 760; letter-spacing: -.035em; }
.land-lede { margin: 20px 0 0; max-width: 30em; font-size: 18px; line-height: 1.5; color: var(--muted); }
.land-section-sub { margin: 12px 0 0; max-width: 34em; font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ---------- header ---------- */
.land-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0; }
.land-head .brand { margin: 0; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.land-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.land-nav a { color: var(--ink); text-decoration: none; }
.land-nav-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.land-signin { padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.land-signin:hover { border-color: var(--ink); }

/* ---------- 1. hero: what it is, beside the way in ---------- */
.land-hero { display: grid; gap: 40px; margin: 48px 0 0; }
.land-hero .land-eyebrow { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-bottom: 20px; border-radius: 999px;
                           background: var(--surface); border: 1px solid var(--line); color: var(--ink); letter-spacing: .04em; font-size: 12px; }
.land-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px 20px; box-shadow: var(--shadow); }
.land-card h2 { font-size: 22px; letter-spacing: -.02em; }
.land-card .fine { margin: 16px 0 0; text-align: center; }
.land-error { margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }  /* for bots: off screen, not display:none */

/* the headline's words rise out of a mask, once */
.land-big .wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .1em; margin-bottom: -.1em; }
.land-big .w { display: inline-block; }
.land-big.split:not(.go) .w { transform: translateY(115%); }

/* what the agent does: a list, or with landing.js one line at a time */
.land-refrain { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); max-width: 30em; font-size: 21px; font-weight: 720;
                letter-spacing: -.02em; line-height: 1.25; }
.land-refrain-lead { display: block; color: var(--muted); font-weight: 600; font-size: .8em; letter-spacing: -.01em; margin-bottom: 4px; }
.land-ref { display: block; margin-top: 4px; }  /* a line can wrap (the Coming soon one does on a phone) */
.land-emo { margin-right: .35em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }
.land-soon { display: inline-block; vertical-align: .15em; margin-left: .35em; padding: 3px 10px; border-radius: 999px; background: var(--surface-2);
             color: var(--ink); font-size: 12px; font-weight: 650; letter-spacing: 0; line-height: 1.4; white-space: nowrap; }
/* turning: the lines stack in one slot as tall as the tallest (landing.js measures it) */
.land-refrain.turning .land-refrain-slot { display: block; position: relative; height: 1.3em; overflow: hidden; }
.land-refrain.turning .land-ref { position: absolute; left: 0; right: 0; top: 0; margin: 0; transform: translateY(var(--below, 110%)); opacity: 0;
                                 transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.land-refrain.turning .land-ref.on { transform: none; opacity: 1; }
.land-refrain.turning .land-ref.off { transform: translateY(var(--above, -110%)); opacity: 0; }  /* past the slot's edge, whatever its height */

/* ---------- 2. works with ---------- */
.land-sites { margin: 72px 0 0; text-align: center; }
.land-sites-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.land-site { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #fff;
             box-shadow: var(--shadow); font: 800 17px/1 system-ui, -apple-system, sans-serif; }
.land-site img { width: 100%; height: 100%; object-fit: contain; display: block; }
.land-site.pad-s img { padding: 6%; }
.land-site.pad-l img { padding: 16%; }
.land-site.li { background: #0a66c2; color: #fff; letter-spacing: -1px; }
.land-site.co { background: var(--surface); color: var(--ink); font-size: 14px; }
.land-site.any { background: transparent; color: var(--muted); border: 2px dashed var(--line); box-shadow: none; }
.land-site.any svg { width: 19px; height: 19px; }
.land-sites-cap { margin: 16px auto 0; max-width: 28em; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- 3. coming up ---------- */
.land-events { margin: 88px 0 0; }
.land-events-list { margin-top: 24px; }
.land-day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 4px 8px; }
.land-day:first-child h3 { margin-top: 0; }
.land-evs { list-style: none; margin: 0; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.land-ev { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; }
.land-ev + .land-ev { border-top: 1px solid var(--line); }
.land-ev-time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
.land-ev-main { display: grid; gap: 2px; min-width: 0; }
.land-ev-title { font-weight: 650; font-size: 16px; line-height: 1.3; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.land-ev-title:hover { text-decoration: underline; }
.land-ev-where { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.land-ev-where:empty { display: none; }
.land-ev-src { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.land-ev-src img { border-radius: 4px; background: #fff; }
.land-more { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 12px; border-radius: 999px;
             background: transparent; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.land-more:hover { border-color: var(--ink); }

/* ---------- 4. how it works ---------- */
.land-how { margin: 88px 0 0; }
.land-how-groups { display: grid; gap: 40px; margin-top: 32px; }
.land-group { margin: 0 0 4px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.land-steps { list-style: none; margin: 0; padding: 0; }
.land-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.land-step h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.land-step p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.land-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: 700;
            background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 5. asking again ---------- */
.land-cta { margin: 96px 0 0; padding: 48px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.land-cta-icon { margin: 0 auto 24px; display: block; }
.land-cta .land-section-sub { margin-left: auto; margin-right: auto; }
.land-cta-go { display: inline-flex; width: auto; padding: 0 32px; margin-top: 24px; text-decoration: none; }

/* ---------- footer ---------- */
.land-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding: 24px 0 0;
             border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.land-foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.land-foot nav { display: flex; gap: 20px; }
.land-foot a { color: var(--muted); }

/* ---------- motion (landing.js adds the classes; nothing moves without it, or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .land-wash i { animation: land-drift 22s ease-in-out infinite alternate; }
  .land-wash i:nth-child(2) { animation-duration: 27s; animation-direction: alternate-reverse; }
  .land-wash i:nth-child(3) { animation-duration: 31s; }
  .land-big.split.go .w { animation: land-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .land-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .land-reveal.in { opacity: 1; transform: none; }
  .land-sites.reveal .land-site { opacity: 0; transform: scale(.55); transition: opacity .3s, transform .55s cubic-bezier(.3, 1.6, .5, 1); }
  .land-sites.reveal.in .land-site { opacity: 1; transform: none; }
  .land-sites.reveal.in .land-site.bob { animation: land-bob 4.5s ease-in-out infinite alternate; }
  .land-ev.land-rise { animation: land-up .55s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes land-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(90px, 40px, 0); } }
@keyframes land-rise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes land-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes land-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- a phone ---------- */
@media (max-width: 559px) { .land-nav-link { display: none; } }
@media (max-width: 719px) {
  .land-ev { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }  /* the time goes above the name */
  .land-ev-time { grid-column: 1 / -1; padding: 0; font-size: 13px; color: var(--muted); }
}

/* ---------- a tablet and up ---------- */
@media (min-width: 720px) {
  .land { max-width: 1120px; }
  .land-head { padding-top: 24px; }
  .land-big { font-size: 64px; }
  .land-h2 { font-size: 44px; }
  .land-lede { font-size: 20px; }
  .land-section-sub { font-size: 18px; }
  .land-refrain { font-size: 26px; }
  .land-hero { margin-top: 80px; }
  .land-card { max-width: 460px; padding: 28px 28px 24px; }
  .land-sites { margin-top: 112px; }
  .land-sites-row { gap: 16px; margin-top: 24px; }
  .land-site { width: 64px; height: 64px; border-radius: 18px; font-size: 27px; }
  .land-site.co { font-size: 21px; }
  .land-site.any svg { width: 26px; height: 26px; }
  .land-events, .land-how { margin-top: 136px; }
  .land-how-groups { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
  .land-cta { margin-top: 144px; padding: 72px 48px; }
}

/* ---------- wide: two columns where they help ---------- */
@media (min-width: 960px) {
  main.land { margin-left: auto; margin-right: auto; padding-top: 8px; padding-left: 40px; padding-right: 40px; }  /* styles.css leaves room for a sidebar here */
  .land-big { font-size: clamp(64px, 6.4vw, 84px); }
  .land-hero { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 72px; margin-top: 96px; }
  .land-card { justify-self: end; width: 100%; }
  .land-events { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 72px; align-items: start; }
  .land-events .land-section-head { position: sticky; top: 32px; }
  .land-events-list { margin-top: 0; }
}
