/* rn-site-landing.css: the landing (roachnet.org/), a note from the person who runs RoachWares.
   An editorial page: the headline across the whole width, the roach standing on a lit line beside
   the opening, then one idea per section. The field tells the story with it: loud behind the pile,
   quiet at "So I built RoachNet.", calm while you read the promises. */

/* ---------------------------------------------------------------- the hero */
.rn-land-hero { padding-block: clamp(28px, 4vw, 72px) clamp(56px, 6vw, 110px) !important; }
.rn-land-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 72px); container-type: inline-size; }
.rn-land-hero__eyebrow { grid-column: 1 / -1; }
/* The eyebrow, title and copy keep their own veils, but their pools all sit under the hero's text: a veiled block
   isolates by default, and the title's pool, painted after the eyebrow, hazed it. The wrapper is a container, and so
   already the stacking context that holds them. */
.rn-land-hero__in > [data-veil] { isolation: auto; }
.rn-land-hero__title {
  grid-column: 1 / -1;
  font-family: var(--rw-font-display);
  font-weight: 860;
  font-stretch: var(--rw-display-wdth);
  letter-spacing: -0.028em;
  line-height: 0.92;
  font-size: clamp(2.6rem, 12.4cqi, 6rem);
  color: var(--rw-text);
}
.rn-land-hero__line { display: block; }
.rn-land-hero__line--lit { padding-bottom: 0.06em; background: linear-gradient(98deg, var(--rw-accent) 4%, var(--rw-accent-strong) 38%, var(--rw-signal-text) 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rn-land-hero__stage { position: relative; width: min(78%, 340px); margin: clamp(28px, 5vw, 44px) auto 0; justify-self: center; }
.rn-land-hero__stage .rn-roach { z-index: 1; }
.rn-land-hero__pad {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -9%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rw-signal) 22%, transparent), color-mix(in srgb, var(--rw-glow) 60%, transparent) 55%, transparent);
  filter: blur(6px);
  opacity: 0.85;
  pointer-events: none;
}
.rn-land-hero__copy { margin-top: clamp(28px, 4vw, 40px); }
.rn-land-hero__copy .rn-lede { color: var(--rw-text-muted); font-size: clamp(1.1rem, 0.98rem + 0.5vw, 1.36rem); }
.rn-land-hero__power { grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 64px); }
@container (min-width: 720px) {
  /* the wider line measures 11.61em in Anybody at the display setting; 11.85 leaves 2% for kerning */
  .rn-land-hero__title { font-size: min(calc(100cqi / 11.85), 10.5rem); }
  .rn-land-hero__line { white-space: nowrap; }
}
@media (min-width: 900px) {
  .rn-land-hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; }
  .rn-land-hero__copy { grid-column: 1; grid-row: 3; }
  .rn-land-hero__stage { grid-column: 2; grid-row: 3; width: min(100%, 440px); margin: 0 0 -10px; justify-self: end; }
  .rn-land-hero__power { grid-row: 4; margin-top: 18px; }
}

/* ---------------------------------------------------------------- the pile */
/* Clipped sideways only: the tabs fly in from the sides, and the veil's soft edge has to reach past the section */
.rn-land-pile { overflow-x: clip; }
.rn-land-pile__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.rn-land-pile .rn-statement { max-width: 30ch; font-family: var(--rw-font-text); font-weight: 560; font-stretch: 100%; letter-spacing: -0.012em; font-size: clamp(1.45rem, 0.9rem + 1.9vw, 2.55rem); line-height: 1.22; color: var(--rw-text); }
.rn-pile-word { font-family: var(--rw-font-display); font-weight: 880; font-stretch: 128%; letter-spacing: -0.02em; color: var(--rw-warn); }
.rn-land-pile__tabs { position: relative; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.rn-land-pile__tabs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--rw-line-strong);
  border-radius: 10px 10px 4px 4px;
  background: var(--rw-surface-2);
  box-shadow: var(--rw-elev-1);
  font: 500 0.82rem/1.2 var(--rw-font-text);
  color: var(--rw-text-muted);
  white-space: nowrap;
  transform: rotate(var(--tilt, 0deg));
}
.rn-land-pile__tabs li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rw-line-strong); }
.rn-land-pile__tabs li:nth-child(1) { --tilt: -3deg; }
.rn-land-pile__tabs li:nth-child(2) { --tilt: 2deg; }
.rn-land-pile__tabs li:nth-child(3) { --tilt: -1deg; }
.rn-land-pile__tabs li:nth-child(4) { --tilt: 4deg; }
.rn-land-pile__tabs li:nth-child(5) { --tilt: -2deg; }
.rn-land-pile__tabs li:nth-child(6) { --tilt: 3deg; }
.rn-land-pile__tabs li:nth-child(7) { --tilt: -2.5deg; }   /* not -4deg: on the widest label the upright box around its line would reach the tab's border, and a contrast check reads the border as its background */
.rn-land-pile__tabs li:nth-child(2)::before, .rn-land-pile__tabs li:nth-child(7)::before { background: var(--rw-warn); }
.rn-land-pile__tabs li:nth-child(1)::before, .rn-land-pile__tabs li:nth-child(4)::before { background: var(--rw-danger); }
@media (prefers-reduced-motion: no-preference) {
  html.rw-js .rn-land-pile:not(.is-on) .rn-land-pile__tabs li { opacity: 0; transform: translate3d(var(--fx, 0), -60px, 0) rotate(calc(var(--tilt) * 4)); }
  .rn-land-pile__tabs li { transition: opacity var(--rw-dur-3) var(--rw-ease-gentle), transform var(--rw-dur-4) var(--rw-ease-snap); }
  .rn-land-pile__tabs li:nth-child(2) { transition-delay: 90ms; --fx: 40px; }
  .rn-land-pile__tabs li:nth-child(3) { transition-delay: 170ms; --fx: -30px; }
  .rn-land-pile__tabs li:nth-child(4) { transition-delay: 240ms; --fx: 60px; }
  .rn-land-pile__tabs li:nth-child(5) { transition-delay: 320ms; --fx: -50px; }
  .rn-land-pile__tabs li:nth-child(6) { transition-delay: 380ms; --fx: 24px; }
  .rn-land-pile__tabs li:nth-child(7) { transition-delay: 450ms; --fx: -12px; }
}
@media (min-width: 900px) {
  .rn-land-pile__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .rn-land-pile__tabs { flex-direction: column; align-items: flex-start; gap: 0; }
  /* Tilted but not stacked on each other's labels: a 4 px gap clears the tilt at every tab's ends */
  .rn-land-pile__tabs li { margin-top: 4px; }
  .rn-land-pile__tabs li:nth-child(odd) { margin-left: 18%; }
  .rn-land-pile__tabs li:nth-child(3n) { margin-left: 34%; }
}

/* ---------------------------------------------------------------- what I wanted */
.rn-land-quiet { text-align: center; }
/* One statement in one voice: the lead-in is set as large as the wants it introduces (only quieter in
   colour and weight), and the answer, "So I built RoachNet.", is the largest line of the three. */
.rn-land-quiet__in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(14px, 1.8vw, 22px); max-width: 1040px; }
.rn-land-quiet__intro,
.rn-land-quiet__lines { font-family: var(--rw-font-display); letter-spacing: -0.02em; font-size: clamp(1.6rem, 0.8rem + 2.4vw, 3rem); line-height: 1.1; text-wrap: balance; }
.rn-land-quiet__intro { max-width: 30ch; font-weight: 640; font-stretch: 100%; color: var(--rw-text-muted); }
.rn-land-quiet__lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1em; font-weight: 800; font-stretch: 106%; color: var(--rw-text); }
.rn-land-quiet__lines span { display: block; }
.rn-land-quiet__outro { margin-top: clamp(10px, 1.6vw, 22px); padding-bottom: 0.06em; font-family: var(--rw-font-display); font-weight: 880; font-stretch: 120%; letter-spacing: -0.025em; font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); line-height: 1.02; }
.rn-land-quiet__outro { background: linear-gradient(98deg, var(--rw-accent), var(--rw-signal-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- what RoachNet is */
.rn-land-what__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.rn-land-what__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 34rem; }
.rn-land-what__copy .rn-eyebrow { margin-bottom: 0; }
.rn-land-what__copy p { font-size: 1.08rem; color: var(--rw-text-muted); }
.rn-land-what__where { font-size: 1.2rem !important; color: var(--rw-text) !important; }
@media (min-width: 1024px) { .rn-land-what__in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .rn-land-what .rn-shot--tilt .rn-shot__bezel { --rn-tilt-y: calc(-12deg + var(--rw-progress, 0.5) * 12deg); --rn-tilt-x: calc((0.5 - var(--rw-progress, 0.5)) * 10deg); transition: none; }
}

/* ---------------------------------------------------------------- what you can do with it */
.rn-land-can__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; list-style: none; }
.rn-land-can__aside { margin-top: clamp(40px, 5vw, 72px); max-width: 28ch; font-family: var(--rw-font-display); font-weight: 760; font-stretch: 108%; letter-spacing: -0.02em; font-size: clamp(1.5rem, 0.9rem + 2.4vw, 3rem); line-height: 1.1; color: var(--rw-text); }
@media (min-width: 760px) { .rn-land-can__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- who it's for */
.rn-land-who__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.rn-land-who__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 40rem; }
.rn-land-who__body > p:last-child { color: var(--rw-text-muted); }
@media (min-width: 900px) { .rn-land-who__in { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); } }

/* ---------------------------------------------------------------- the seven promises */
.rn-promises { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; list-style: none; border-top: 1px solid var(--rw-line-strong); }
.rn-promise {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 32px;
  padding: clamp(22px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--rw-line);
}
.rn-promise::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--rw-signal), transparent 60%); transform-origin: left; transform: scaleX(1); transition: transform var(--rw-dur-scene) var(--rw-ease-assemble); }
html.rw-js[data-motion="full"] .rn-promise:not(.is-on)::before { transform: scaleX(0); }
.rn-promise__n { font-family: var(--rw-font-display); font-weight: 860; font-stretch: 130%; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.8rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.2px var(--rw-accent); transition: color var(--rw-dur-4) var(--rw-ease-gentle); }
.rn-promise.is-on .rn-promise__n, html:not(.rw-js) .rn-promise__n { color: color-mix(in srgb, var(--rw-accent) 24%, transparent); }
.rn-promise h3 { font-family: var(--rw-font-display); font-weight: 760; font-stretch: 106%; letter-spacing: -0.015em; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem); line-height: 1.12; color: var(--rw-text); }
.rn-promise p { max-width: 62ch; color: var(--rw-text-muted); }
@media (min-width: 900px) {
  .rn-promise { grid-template-columns: 7rem minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: start; }
  .rn-promise__n { grid-row: 1 / span 2; }
}
.rn-land-promises__note { margin-top: 32px; font-size: 1.08rem; color: var(--rw-text-muted); }

/* ---------------------------------------------------------------- bring it home */
.rn-land-get { text-align: center; }
.rn-land-get__in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; max-width: 980px; }
.rn-land-get__title { font-family: var(--rw-font-display); font-weight: 880; font-stretch: 120%; letter-spacing: -0.03em; font-size: clamp(2.2rem, 1rem + 5.6vw, 6.4rem); line-height: 0.96; color: var(--rw-text); text-wrap: balance; }
.rn-keys { display: inline-flex; gap: 10px; }
.rn-key { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 16px; border: 1px solid var(--rw-line-strong); border-bottom-width: 4px; border-radius: 14px; background: var(--rw-surface-2); box-shadow: var(--rw-elev-2); font: 600 1.4rem/1 var(--rw-font-mono); color: var(--rw-text); transition: transform var(--rw-dur-1) var(--rw-ease-gentle), border-color var(--rw-dur-1) var(--rw-ease-gentle), background-color var(--rw-dur-1) var(--rw-ease-gentle); }
.rn-key[data-active="true"] { transform: translateY(3px); border-bottom-width: 1px; border-color: var(--rw-signal); background: color-mix(in srgb, var(--rw-signal) 14%, var(--rw-surface-2)); }
.rn-land-get__text { font-size: 1.1rem; color: var(--rw-text); }
.rn-land-get__status { color: var(--rw-text-muted); }
.rn-land-get .rn-fine { margin-top: 6px; }
