/*
  The page for pond owners, at /ai-o-balta. The bar, the footer, the closing band and the headings come
  from the landing page's sheet (lp5.css); this one draws the hero with its board to press through, the
  three features with a stand-in of each, and the band that says what it costs.
*/

body.owners {
  --navy: #0c2a55;
  --lac: linear-gradient(135deg, var(--lac-a), var(--lac-b));
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

.owners .f-h2 {
  max-width: 24ch;
}

/* Hero: the promise and the search on one side, the board on the other */

.o-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: calc(var(--wide) + var(--page) * 2);
  margin: 0 auto;
  padding: calc(var(--wip-height) + clamp(7.5rem, 14vw, 11rem)) var(--page) 0;
}

.o-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.o-hero h1 span {
  display: block;
}

.o-lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.o-find {
  max-width: 30rem;
  margin-top: 2.25rem;
  scroll-margin-top: 9rem;
}

.o-find label {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.o-find__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 3.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px var(--hair);
  transition: box-shadow 200ms ease-out;
}

.o-find__field:focus-within {
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 2px var(--accent);
}

.o-find__field svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.o-find__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.o-find__field input::-webkit-search-cancel-button {
  display: none;
}

.o-find__results ul {
  margin: 0.75rem 0 0;
  padding: 0.375rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
  list-style: none;
  animation: o-rise 260ms var(--out);
}

.o-find__results li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 140ms ease-out;
}

.o-find__results li a:hover,
.o-find__results li a:focus-visible {
  background: var(--tint);
}

.o-find__results strong {
  display: block;
  font-weight: 500;
}

.o-find__results small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.o-find__results em {
  flex: none;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: var(--lac);
  color: #fff;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
}

.o-find__results em.is-taken {
  background: var(--tint-strong);
  color: var(--muted);
}

.o-find__note {
  margin: 0.75rem 0.25rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.o-find__add {
  display: inline-block;
  margin: 0.625rem 0.25rem 0;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-underline-offset: 0.2em;
}

/* The board */

.o-demo {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.o-demo__water {
  position: absolute;
  inset: 0 -6% 0 4%;
  border-radius: 46% 54% 52% 48% / 55% 46% 54% 45%;
  background:
    radial-gradient(70% 60% at 30% 25%, rgb(255 255 255 / 0.35), transparent 70%),
    var(--lac);
  opacity: 0.9;
}

.o-board {
  position: relative;
  width: min(100%, 25rem);
  padding: 1.375rem;
  border-radius: 1.75rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.o-board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.o-board__head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.o-board__head p {
  margin: 0.125rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.o-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tint);
  transform-origin: 50% 20%;
}

.o-bell svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.o-bell i {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  display: grid;
  place-items: center;
  min-width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: var(--danger-fill);
  color: #fff;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 600;
}

.o-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.o-figures dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.o-figures dd {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin: 0.125rem 0 0;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.o-figures small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
}

.o-stands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.o-stands li {
  display: grid;
  gap: 0.0625rem;
  padding: 0.5rem 0.625rem 0.5625rem;
  border-radius: 0.875rem;
  background: var(--tint);
  transition:
    background-color 300ms ease-out,
    color 300ms ease-out;
}

.o-stands b {
  font-size: 1.125rem;
  font-weight: 500;
}

.o-stands span {
  color: var(--muted);
  font-size: 0.6875rem;
}

.o-stands [data-state='held'] {
  background: var(--lac);
  color: #fff;
}

.o-stands [data-state='held'] span {
  color: rgb(255 255 255 / 0.8);
}

.o-stands [data-state='asked'] {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.o-stands [data-state='asked'] span {
  color: var(--accent);
}

.o-request {
  min-height: 9.25rem;
  margin-top: 1rem;
}

.o-request__card {
  padding: 1rem;
  border-radius: 1.125rem;
  background: var(--tint);
  animation: o-rise 420ms var(--out);
}

.o-request p {
  margin: 0;
}

.o-request__what {
  margin-top: 0.25rem !important;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.o-request__what b {
  color: var(--ink);
  font-weight: 600;
}

.o-request__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.o-request__actions .button--primary {
  flex: 1;
}

.o-request__card--done {
  display: grid;
  gap: 0.875rem;
  justify-items: start;
}

.o-request__sent {
  display: flex;
  align-items: center;
  min-height: 9.25rem;
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  animation: o-rise 320ms var(--out);
}

@keyframes o-rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

@keyframes o-pop {
  40% {
    transform: scale(1.09);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .o-stands [data-fresh] {
    animation: o-pop 460ms var(--out);
  }
}

@media (prefers-reduced-motion: reduce) {
  .o-request__card,
  .o-request__sent,
  .o-find__results ul {
    animation: none;
  }
}

/* What an owner gets: three features, each beside a stand-in to try */

.o-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.o-feature--flip .o-feature__copy {
  order: 2;
}

.o-feature h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.o-feature__copy > p {
  max-width: 34rem;
  margin: 0.875rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.o-ticks {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.o-ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.o-ticks li::before {
  content: '';
  position: absolute;
  top: 0.4em;
  left: 0.125rem;
  width: 0.875rem;
  height: 0.4375rem;
  border-bottom: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  rotate: -45deg;
}

/* The pond's own page, small */

.o-page {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.o-page__bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.o-page__bar i {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--page-accent);
  transition: background-color 300ms ease-out;
}

.o-page__bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.o-page__cover {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0 0.5rem;
  padding: 2.75rem 1rem 2.25rem;
  border-radius: 1.125rem;
  background:
    radial-gradient(90% 70% at 50% 110%, color-mix(in srgb, var(--page-accent) 38%, transparent), transparent 70%),
    var(--navy);
  color: #fff;
  text-align: center;
  transition: background 300ms ease-out;
}

.o-page__cover p {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.o-page__cover span {
  font-size: 0.875rem;
  opacity: 0.75;
}

.o-page__cover b {
  margin-top: 0.75rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--page-accent);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 300ms ease-out;
}

.o-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.125rem 1.125rem;
  border: 0;
}

.o-swatches legend {
  float: left;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.o-swatches div {
  display: flex;
  gap: 0.375rem;
}

.o-swatches button {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  transition:
    transform 180ms var(--out),
    box-shadow 180ms ease-out;
}

.o-swatches button:hover {
  transform: scale(1.12);
}

.o-swatches button[aria-pressed='true'] {
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 3.5px var(--ink);
}

/* A package, picked and said back */

.o-pack {
  display: grid;
  gap: 0.75rem;
  padding: 1.375rem;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.o-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--tint);
}

.o-seg--two {
  grid-template-columns: 1fr 1fr;
}

.o-seg button {
  height: 2.5rem;
  padding: 0 0.25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 200ms ease-out,
    color 200ms ease-out;
}

.o-seg button[aria-pressed='true'] {
  background: var(--primary);
  color: var(--on-primary);
}

.o-pack__count {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.o-pack__count input {
  flex: 1;
  accent-color: var(--accent);
}

.o-pack__count output {
  width: 1ch;
  font-variant-numeric: tabular-nums;
}

.o-pack__sentence {
  margin: 0.25rem 0 0;
  padding: 1rem 1.125rem;
  border-radius: 1.125rem;
  background: var(--tint);
  color: var(--muted);
  line-height: 1.5;
}

.o-pack__sentence strong {
  color: var(--ink);
  font-weight: 600;
}

.o-pack__sentence span {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: 1.125rem;
}

.o-pack__sentence b {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Ten days of chances */

.o-forecast {
  padding: 1.375rem;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.o-forecast__bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 0.5rem;
  height: 11rem;
}

.o-forecast__bars i {
  position: relative;
  height: var(--chance);
  border-radius: 0.5rem;
  background: var(--tint-strong);
}

.o-forecast__bars i[data-best] {
  background: var(--lac);
}

.o-forecast__bars span {
  position: absolute;
  right: 0;
  bottom: -1.5rem;
  left: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  text-align: center;
}

.o-forecast p {
  margin: 2.25rem 0 0;
  font-weight: 500;
}

/* The rest of what comes with it */

.o-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(4rem, 9vw, 7rem) 0 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  box-shadow: inset 0 1px 0 var(--faint);
  list-style: none;
}

.o-more svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: color-mix(in srgb, var(--accent) 12%, transparent);
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.o-more h3 {
  margin: 0.875rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.o-more p {
  margin: 0.375rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

/* What it costs */

.o-free {
  margin: clamp(4.5rem, 10vw, 8rem) var(--frame) 0;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--page);
  border-radius: 2rem;
  background:
    radial-gradient(60% 90% at 100% 100%, rgb(52 209 191 / 0.28), transparent 70%),
    var(--navy);
  color: #fff;
  scroll-margin-top: 6rem;
}

.o-free h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.o-free > p + p {
  margin-top: 0.75rem;
}

.o-free > p {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
  opacity: 0.82;
}

.o-free__sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 44rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding-top: 1.5rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2);
}

.o-free__sum dt {
  font-size: 0.9375rem;
  opacity: 0.72;
}

.o-free__sum dd {
  margin: 0.25rem 0 0;
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

/* Three steps */

.o-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.o-steps li {
  padding-top: 1.25rem;
  box-shadow: inset 0 1.5px 0 var(--ink);
  counter-increment: step;
}

.o-steps li::before {
  content: counter(step);
  display: block;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.o-steps h3 {
  margin: 1rem 0 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.o-steps p {
  margin: 0.375rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Questions */

.o-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

.o-faq details {
  box-shadow: inset 0 -1px 0 var(--faint);
}

.o-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.o-faq summary::after {
  content: '';
  flex: none;
  width: 0.5625rem;
  height: 0.5625rem;
  margin-right: 0.25rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -0.125rem;
  transition:
    rotate 240ms var(--out),
    translate 240ms var(--out);
}

.o-faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 0.125rem;
}

.o-faq details p {
  max-width: 38rem;
  margin: 0;
  padding: 0 2rem 1.25rem 0;
  color: var(--muted);
  line-height: 1.55;
  animation: o-rise 280ms var(--out);
}

.owners :is(.o-find__results a, .o-seg button, .o-swatches button, .o-faq summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 62rem) {
  .o-hero,
  .o-feature,
  .o-faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-hero h1 {
    max-width: 14ch;
  }
  .o-feature--flip .o-feature__copy {
    order: 0;
  }
  .o-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .o-demo__water {
    inset: 0 2%;
  }
}

@media (max-width: 40rem) {
  .o-hero {
    padding-top: calc(var(--wip-height) + 6.5rem);
  }
  .o-more,
  .o-steps,
  .o-free__sum {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-free {
    border-radius: 1.5rem;
  }
  .o-free__sum div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .o-free__sum {
    gap: 0.75rem;
  }
  .o-board {
    padding: 1.125rem;
  }
  .o-seg button {
    font-size: 0.8125rem;
  }
}
