/*
 * Shared by every rs-landing block (handle rs-landing-base, front end and editor). theme.json values only:
 * --wp--custom--landing--… (the landing set), --wp--custom--web--color--… (the web palette), --wp--preset--….
 */

/* Section shells */
.rs-section {
  position: relative;
  box-sizing: border-box;
  padding-inline: var(--wp--custom--landing--fluid--gutter);
  font-family: var(--wp--preset--font-family--core);
  color: var(--wp--preset--color--ink-base);
  -webkit-font-smoothing: antialiased;
}

.rs-section *,
.rs-section *::before,
.rs-section *::after {
  box-sizing: border-box;
}

.rs-container {
  position: relative;
  max-width: var(--wp--custom--landing--layout--container);
  margin-inline: auto;
}

.rs-container--narrow {
  max-width: var(--wp--custom--landing--layout--narrow);
}

.rs-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Type */
.rs-eyebrow {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--wp--preset--color--text-secondary);
}

/* The awaiting launch design writes eyebrows in title case; the Verify page keeps its capitals. */
.rs-eyebrow--caps {
  text-transform: uppercase;
}

.rs-eyebrow--muted {
  color: var(--wp--custom--web--color--text--group-label);
}

.rs-eyebrow--bronze {
  color: var(--wp--custom--landing--color--bronze-light);
}

.rs-label {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-secondary);
}

.rs-title {
  margin: 0;
  font-size: var(--wp--custom--landing--fluid--section-title);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: inherit;
}

.rs-accent {
  color: var(--wp--custom--web--color--bronze--hover-deep);
}

.rs-on-navy .rs-accent {
  color: var(--wp--custom--landing--color--bronze-light);
}

.rs-lede {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--wp--preset--color--ink-navy);
  text-wrap: pretty;
}

.rs-on-navy .rs-lede {
  color: var(--wp--custom--web--color--on-navy--body);
}

.rs-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* Buttons */
.rs-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--wp--custom--radius--lg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--wp--custom--landing--motion--quick)
      var(--wp--custom--landing--motion--ease),
    border-color var(--wp--custom--landing--motion--quick) var(--wp--custom--landing--motion--ease),
    color var(--wp--custom--landing--motion--quick) var(--wp--custom--landing--motion--ease);
}

.rs-btn--sm {
  height: 46px;
  padding: 0 20px;
}

.rs-btn--bronze,
.rs-btn--bronze:visited {
  background: var(--wp--preset--color--bronze-base);
  color: var(--wp--preset--color--text-inverse);
}

.rs-btn--bronze:hover,
.rs-btn--bronze:focus-visible {
  background: var(--wp--custom--web--color--bronze--hover-deep);
  color: var(--wp--preset--color--text-inverse);
}

.rs-btn--bronze:active {
  background: var(--wp--preset--color--bronze-text);
}

.rs-btn--navy,
.rs-btn--navy:visited {
  background: var(--wp--preset--color--ink-navy);
  border-color: var(--wp--preset--color--ink-navy);
  color: var(--wp--preset--color--text-inverse);
}

.rs-btn--navy:hover,
.rs-btn--navy:focus-visible {
  background: var(--wp--custom--landing--color--navy-line);
  border-color: var(--wp--custom--landing--color--navy-line);
  color: var(--wp--preset--color--text-inverse);
}

.rs-btn--white,
.rs-btn--white:visited {
  background: var(--wp--preset--color--surface-card);
  color: var(--wp--preset--color--ink-base);
}

.rs-btn--white:hover,
.rs-btn--white:focus-visible {
  background: var(--wp--custom--web--color--bronze--wash);
  color: var(--wp--preset--color--ink-base);
}

.rs-section a:focus-visible,
.rs-section button:focus-visible,
.rs-section summary:focus-visible,
.rs-section input:focus-visible {
  outline: 2px solid var(--wp--preset--color--bronze-base);
  outline-offset: 2px;
}

/* Store badges */
.rs-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.rs-badges--start {
  justify-content: flex-start;
}

.rs-badge {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: 9px;
  transition: opacity var(--wp--custom--landing--motion--quick)
    var(--wp--custom--landing--motion--ease);
}

a.rs-badge:hover {
  opacity: 0.85;
}

.rs-badge__img {
  display: block;
  height: 56px;
  width: auto;
}

.rs-badges--sm .rs-badge__img {
  height: 52px;
}

.rs-badge .rs-img-missing {
  width: 168px;
  height: 56px;
  border-radius: 9px;
}

/* A theme image that has not been exported yet: an empty frame of the same box. */
.rs-img-missing {
  display: block;
  background: var(--wp--custom--web--color--surface--muted);
}

/* Phone mock (rs_landing_phone) */
.rs-phone {
  position: relative;
  flex: none;
}

.rs-phone__btn {
  position: absolute;
  width: 3px;
  background: var(--wp--custom--landing--color--device-edge);
}

.rs-phone__btn--1,
.rs-phone__btn--2,
.rs-phone__btn--3 {
  left: -3px;
  border-radius: 2px 0 0 2px;
}

.rs-phone__btn--1 {
  top: 17%;
  height: 6%;
}

.rs-phone__btn--2 {
  top: 25%;
  height: 9%;
}

.rs-phone__btn--3 {
  top: 36%;
  height: 9%;
}

.rs-phone__btn--4 {
  right: -3px;
  top: 28%;
  height: 13%;
  border-radius: 0 2px 2px 0;
}

.rs-phone__frame {
  position: relative;
  padding: 3px;
  border-radius: 15.5% / 7.4%;
  background: var(--wp--custom--landing--color--device-button);
  box-shadow: var(--wp--custom--landing--shadow--phone);
}

.rs-phone--sm .rs-phone__frame {
  box-shadow: 0 20px 50px var(--wp--custom--landing--color--ink-18);
}

.rs-phone__body {
  position: relative;
  padding: 2.2%;
  border-radius: 15% / 7.2%;
  background: var(--wp--custom--landing--color--device-body);
}

.rs-phone__screen > img,
.rs-phone__screen > .rs-img-missing {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 820;
  object-fit: cover;
  border-radius: 13.4% / 6.4%;
  background: var(--wp--custom--web--color--surface--off-white);
}

.rs-phone__notch {
  position: absolute;
  top: 3.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3.3%;
  border-radius: 999px;
  background: var(--wp--custom--landing--color--device-body);
}

/* Browser mock (rs_landing_browser) */
.rs-browser {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wp--preset--color--surface-card);
  border: 1px solid var(--wp--custom--web--color--border--default);
  border-radius: var(--wp--custom--radius--xl);
  box-shadow: 0 20px 50px var(--wp--custom--landing--color--ink-14);
}

.rs-browser__bar {
  flex: none;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--wp--custom--web--color--surface--off-white);
  border-bottom: 1px solid var(--wp--custom--web--color--border--default);
}

.rs-browser__bar span {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--wp--custom--web--color--border--hover);
}

.rs-browser__bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--wp--preset--color--text-secondary);
}

.rs-browser__screen {
  flex: 1;
  min-height: 0;
}

.rs-browser__screen > img,
.rs-browser__screen > .rs-img-missing {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  background: var(--wp--preset--color--surface-page);
}

/* Icons (rs_landing_glyph) */
.rs-glyph {
  display: block;
  flex: none;
}

/* Status pill */
.rs-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  background: var(--wp--custom--web--color--success--tint-soft);
  color: var(--wp--preset--color--success-base);
}

/* Scroll reveal (shared/reveal.ts sets .rs-reveal-on on <html>; without it nothing is hidden). */
.rs-reveal-on [data-reveal] {
  transition:
    opacity var(--wp--custom--landing--motion--reveal) var(--wp--custom--landing--motion--ease),
    transform var(--wp--custom--landing--motion--reveal) var(--wp--custom--landing--motion--ease);
}

.rs-reveal-on [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(var(--wp--custom--landing--motion--rise));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Phones: every section title drops to 26–30 px (the design's `section h2`). Scoped to the title classes, so the
   Legal page's own h2 headings keep their size. Two classes, so it wins over a block's single-class rule. */
@media (max-width: 480px) {
  .rs-section .rs-title,
  .rs-section .rs-crew-tour__title,
  .rs-section .rs-site-footer__title {
    font-size: var(--wp--custom--landing--fluid--title-phone);
    line-height: 1.15;
  }
}

/* 360 px and below: a 16 px side gutter on every section but the crew tour, which pads its own track. */
@media (max-width: 360px) {
  .rs-section:not(.rs-crew-tour) {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.rs-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
