/*
 * Near's landing page. Colors match src/theme.ts and the rules in
 * docs/design.md: flat white, carnation as the one brand color, no gradients
 * or shadows. Lora SemiBold on the large section titles, Amulya for the rest,
 * and Amulya Bold for the white headlines over the photos at the top and
 * bottom of the page.
 */

:root {
  --ink: #14181D;
  --muted: #5C636C;
  --border: #E2E5E9;
  --border-strong: #CDD2D8;
  --fill: #F2F4F6;
  --brand: #FF5154;
  --brand-text: #C23E40;
  --white: #FFFFFF;
  --sans: 'Amulya', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Lora', Georgia, serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Links */

.text-link {
  color: var(--brand-text);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * A stand-in for Apple's "Download on the App Store" badge, in its shape and
 * wording. Swap in Apple's badge artwork before launch.
 */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 58px;
  padding: 0 22px;
  border-radius: 12px;
  background: #000;
  color: var(--white);
  line-height: 1.05;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.store-badge small {
  font-size: 12px;
}

.store-badge b {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The hero and footer: white type over a photo */

.photo-backed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/*
 * One flat dark layer over each photo keeps the white type readable. Each was
 * measured against the brightest parts of its photo behind the text: at least
 * 4.5:1 for small text and 3:1 for the headlines, at desktop and phone widths.
 * Check again after changing a photo, its crop or its layer.
 */
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
}

.photo-ride img {
  object-position: 50% 65%;
}

.photo-ride::after {
  background: rgba(12, 14, 17, 0.5);
}

.photo-park img {
  filter: saturate(0.9);
}

.photo-park::after {
  background: rgba(12, 14, 17, 0.64);
}

.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

/* The wordmark is carnation, so over a photo it shows in white */
.photo-backed .brand img {
  filter: brightness(0) invert(1);
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 28px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.header-nav {
  display: none;
}

.header-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.header-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-get {
  margin-left: auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 860px) {
  .header-nav {
    display: block;
    margin-left: auto;
  }

  .header-get {
    margin-left: 8px;
  }
}

/* Phone screenshots, standing in a flat panel with their bottoms cut off */

.phone-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: var(--fill);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-muted {
  background: var(--fill);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 20px;
}

.lead {
  color: var(--muted);
  font-size: 20px;
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }

  .section-tight {
    padding-top: 0;
  }

  .section-head {
    margin-bottom: 64px;
  }
}

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  padding-top: 48px;
}

.hero h1 {
  font-size: clamp(60px, 10vw, 148px);
  text-wrap: balance;
}

.hero-text {
  display: grid;
  align-content: start;
  gap: 28px;
  padding-bottom: 8px;
}

.hero .lead {
  max-width: 26em;
  color: var(--white);
  font-size: 21px;
  line-height: 1.45;
}

.fine-print {
  font-size: 15px;
}

/* The phone rises from the bottom edge of the photo */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 440px;
  overflow: hidden;
}

.hero-phone img {
  width: 290px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 380px;
    column-gap: 64px;
    padding-top: 64px;
  }

  .hero h1 {
    grid-column: 1 / -1;
  }

  .hero-text {
    padding-bottom: 72px;
  }

  .hero-phone {
    height: 540px;
    margin-top: -40px;
  }

  .hero-phone img {
    width: 360px;
  }
}

/* How it works */

.steps {
  display: grid;
  gap: 56px;
}

.step-stage {
  height: 400px;
  padding-top: 40px;
}

.step-stage img {
  width: 230px;
}

.step h3 {
  margin-top: 28px;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Feature rows */

.features {
  display: grid;
  gap: 72px;
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature-text p {
  max-width: 480px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 20px;
}

.feature-stage {
  height: 440px;
  padding-top: 48px;
}

.feature-stage img {
  width: 250px;
}

@media (min-width: 900px) {
  .features {
    gap: 112px;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }

  .feature-flip .feature-text {
    order: 2;
  }

  .feature-stage {
    height: 540px;
    padding-top: 64px;
  }

  .feature-stage img {
    width: 290px;
  }
}

/*
 * Map: example listings around a made-up visitor, with a search panel like a maps app's.
 * Matching listings are ink pins and the rest shrink to gray dots, so the neighborhood stays
 * in view while you narrow it down. map.js fills it in.
 */

.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.map-canvas {
  position: relative;
  height: 420px;
  background: #F4F4F1;
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.map-fallback[hidden] {
  display: none;
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.map-panel svg {
  display: block;
}

.map-panel button {
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.map-panel button:focus-visible,
.map-pin:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.map-top {
  padding: 16px 16px 0;
}

.map-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: text;
}

.map-field:focus-within {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.map-field > svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.map-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.map-field input::placeholder {
  color: #858B92;
}

.map-field input::-webkit-search-cancel-button {
  display: none;
}

.map-clear {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
}

.map-clear svg {
  width: 15px;
  height: 15px;
}

.map-clear[hidden] {
  display: none;
}

/* Every kind shows at once as a pill, wrapping onto a second line, with the chosen one in ink */
.map-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.map-kinds button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  font-size: 14px;
  font-weight: 500;
}

.map-kinds button:hover {
  background: var(--border);
}

.map-panel .map-kinds button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
}

.map-kinds svg {
  width: 14px;
  height: 14px;
}

.map-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.map-count {
  color: var(--muted);
  font-size: 14px;
}

.map-sort-menu {
  position: relative;
}

/* A quiet text button: the sort icon and the current order, in the count's size */
.map-panel .map-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.map-sort-button svg {
  width: 15px;
  height: 15px;
}

.map-sort-button:hover,
.map-sort-button[aria-expanded='true'] {
  background: var(--fill);
}

/* Points down when closed and turns over to point up while the menu is open */
.map-sort-button .map-sort-caret {
  width: 12px;
  height: 12px;
  margin-left: -1px;
  transition: transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.map-sort-button[aria-expanded='true'] .map-sort-caret {
  transform: rotate(180deg);
}

/* The sort menu drops over the results, outlined rather than lifted with a shadow */
.map-sort-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--white);
  list-style: none;
  transform-origin: top right;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1),
    visibility 0s;
}

/* Hidden by fading out rather than display: none, so closing can animate too. visibility keeps it
   out of the tab order and away from screen readers once the fade ends. */
.map-sort-options[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.14s ease,
    transform 0.14s ease,
    visibility 0s 0.14s;
}

.map-sort-heading {
  padding: 6px 12px 4px 10px;
  color: var(--muted);
  font-size: 13px;
}

.map-sort-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 14px;
  text-align: left;
}

.map-sort-options button:hover,
.map-sort-options button:focus-visible {
  background: var(--fill);
}

.map-sort-options button:focus-visible {
  outline-offset: -3px;
}

.map-sort-options svg {
  flex: none;
  width: 16px;
  height: 16px;
  visibility: hidden;
}

.map-sort-options [aria-checked='true'] {
  font-weight: 700;
}

.map-sort-options [aria-checked='true'] svg {
  visibility: visible;
}

.map-body {
  min-height: 0;
  max-height: 440px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.map-results[hidden],
.map-place[hidden] {
  display: none;
}

.map-day {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 18px 6px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.map-list {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.map-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0 8px;
  width: 100%;
  padding: 9px 18px;
  border: 0;
  background: none;
  text-align: left;
}

.map-row:hover {
  background: var(--fill);
}

.map-row-lead {
  padding-top: 1px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.map-row b {
  font-weight: 500;
  line-height: 1.3;
}

.map-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.map-empty {
  padding: 22px 18px;
  color: var(--muted);
}

.map-place {
  padding: 16px 18px 22px;
}

.map-panel .map-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px -4px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--brand-text);
  font-weight: 500;
}

.map-back svg {
  width: 18px;
  height: 18px;
}

.map-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.map-kind svg {
  width: 16px;
  height: 16px;
}

.map-title {
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.map-host {
  color: var(--muted);
}

.map-facts {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.map-facts li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.map-facts svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--muted);
}

.map-facts small {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.map-posted {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* A reward, drawn as a ticket like the app's, with a notch on each side */
.map-ticket {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.3;
}

.map-ticket::before,
.map-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
}

.map-ticket::before {
  left: -8px;
  clip-path: inset(0 0 0 50%);
}

.map-ticket::after {
  right: -8px;
  clip-path: inset(0 50% 0 0);
}

.map-ticket svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.map-ticket span {
  padding-left: 12px;
  border-left: 1px dashed var(--border-strong);
}

.map-note {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Pins: an ink circle with the kind's icon, carnation once picked, a gray dot when it doesn't match */
.map-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.map-pin svg {
  display: block;
  width: 12px;
  height: 12px;
}

.map-pin:hover,
.map-pin.is-hot {
  transform: scale(1.15);
}

.map-pin[aria-pressed='true'] {
  background: var(--brand);
  transform: scale(1.25);
}

.map-pin.is-out {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  background: #A3A8AE;
}

.map-pin.is-out svg {
  display: none;
}

.map-marker:has(.map-pin:not(.is-out)) {
  z-index: 1;
}

.map-marker:has(.map-pin.is-hot, .map-pin[aria-pressed='true']) {
  z-index: 3;
}

/* The visitor, drawn like the phone's own blue dot so it reads as "you" at a glance */
.map-here {
  position: relative;
  width: 18px;
  height: 18px;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  background: #0A84FF;
  box-shadow: 0 0 0 1px rgba(20, 24, 29, 0.14);
}

.map-here::before {
  content: '';
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.16);
  animation: map-here 2.4s ease-out infinite;
}

@keyframes map-here {
  from {
    opacity: 1;
    transform: scale(0.5);
  }

  to {
    opacity: 0;
    transform: scale(1.4);
  }
}

.map-here span {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  color: #0A6CD6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 2px #FFFFFF,
    0 0 2px #FFFFFF,
    0 0 3px #FFFFFF;
  transform: translateY(-50%);
}

/* The map's own controls, in the page's shapes */
.map-canvas .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: none;
}

.map-canvas .maplibregl-ctrl-attrib,
.map-canvas .maplibregl-cooperative-gesture-screen {
  font-family: var(--sans);
}

.map-canvas .maplibregl-ctrl-attrib {
  font-size: 12px;
}

/* On wide screens the panel floats over the map's left side */
@media (min-width: 900px) {
  .map-canvas {
    height: 680px;
  }

  .map-panel {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    width: 384px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
  }

  .map-body {
    max-height: none;
  }

  .map-pin {
    width: 28px;
    height: 28px;
  }

  .map-pin svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin,
  .map-sort-caret,
  .map-sort-options,
  .map-sort-options[hidden] {
    transition: none;
  }

  .map-here::before {
    animation: none;
    transform: scale(0.9);
  }
}

/* Activities */

.activities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activities img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: var(--fill);
}

.activities span {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .activities {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
  }
}

/* Hosts: the check-in screen, with notes that point at the parts of it */

.hosts-title {
  max-width: 12em;
}

.hosts {
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.hosts-notes {
  display: grid;
  gap: 28px;
}

.host-note h3 {
  font-size: 20px;
}

.host-note p {
  margin-top: 4px;
  color: var(--muted);
}

.host-note i {
  display: none;
}

/* On phones the screen comes first, so the notes read as describing it */
.hosts-phone {
  order: -1;
}

.hosts-phone img {
  width: 280px;
  margin: 0 auto;
}

.hosts .lead {
  font-size: 20px;
}

.host-list {
  margin: 32px 0 0;
}

.host-list div {
  padding: 16px 0;
  border-top: 1px solid var(--border-strong);
}

.host-list dt {
  font-weight: 700;
}

.host-list dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.hosts-note {
  margin-top: 24px;
  font-weight: 500;
}

/*
 * On wide screens each note sits level with what it describes, with a line
 * running into the phone. --top on each note is measured against the phone
 * at 320px wide, so change both together.
 */
@media (min-width: 1000px) {
  .hosts {
    grid-template-columns: 1fr 320px 1fr;
    gap: 0 48px;
    align-items: start;
    margin-top: 56px;
  }

  .hosts-phone {
    order: 0;
  }

  .hosts-phone img {
    width: 320px;
  }

  .hosts-notes {
    position: relative;
    display: block;
    height: 680px;
  }

  .host-note {
    position: absolute;
    top: var(--top);
    left: 0;
    right: -110px;
    display: flex;
    align-items: flex-start;
  }

  .host-note div {
    flex: 0 0 270px;
  }

  .host-note i {
    position: relative;
    display: block;
    flex: 1;
    margin: 13px 0 0 16px;
    border-top: 1.5px solid var(--ink);
  }

  .host-note i::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--brand);
  }
}

/* Questions */

.faq-layout {
  display: grid;
  gap: 32px;
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 19px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A chevron that turns over when the answer is open */
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

/* The answer slides open and closed where the browser can animate a details element's content
   (Chrome and Edge 131+, Safari 18.4+). Elsewhere it just appears, as it did before. */
@supports selector(::details-content) {
  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      block-size 0.22s ease,
      opacity 0.22s ease,
      content-visibility 0.22s allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after,
  .faq details::details-content {
    transition: none;
  }
}

.faq details p {
  max-width: 640px;
  padding: 0 48px 24px 0;
  color: var(--muted);
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr 2fr;
    gap: 96px;
  }
}

/* Footer */

.closing {
  display: grid;
  justify-items: start;
  gap: 40px;
  padding-top: 160px;
}

.closing h2 {
  font-size: clamp(64px, 12vw, 184px);
}

.footer-bar {
  display: grid;
  gap: 20px;
  margin-top: 140px;
  padding: 28px 0 48px;
  border-top: 2px solid var(--white);
  font-size: 15px;
}

.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-bar nav a {
  text-decoration: none;
}

.footer-bar nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .footer-bar {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 48px;
  }
}
