/* BabyTrack website
   Colours come from the app icon: magenta glass, a lilac bottle and a periwinkle teat. */

:root {
  color-scheme: light dark;

  --paper: #FFFFFF;
  --mist: #F8F0FF;
  --ink: #2B1238;
  --ink-soft: #5E4A6A;
  --rule: #E9DDF2;
  --magenta: #E24DFF;
  --magenta-ink: #A61FD0;
  --lilac: #EFD1FF;
  --periwinkle: #8878FF;
  --button-text: #FFFFFF;
  --shadow-tint: rgba(166, 31, 208, 0.16);

  /* The night panel is dark in both themes */
  --night: #1F0D2E;
  --night-edge: transparent;
  --night-text: #F6ECFF;
  --night-soft: #BDA9CC;
  --night-grid: rgba(239, 209, 255, 0.10);
  --sleep: #EFD1FF;
  --feed: #F47DFF;
  --nappy: #A99CFF;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: system-ui, -apple-system, "SF Pro Text", "Nunito Sans", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.35rem + 2.2vw, 2.625rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);

  --gutter: 16px;
  --width: 72rem;
  --radius-panel: 28px;
  --radius-small: 12px;
}

@media (min-width: 40em) {
  :root {
    --gutter: 32px;
    --step-0: 1.125rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #170A22;
    --mist: #21102F;
    --ink: #F6ECFF;
    --ink-soft: #BDA9CC;
    --rule: #3A2350;
    --magenta-ink: #F47DFF;
    --button-text: #1F0D2E;
    --shadow-tint: rgba(0, 0, 0, 0.4);
    --night: #25123A;
    --night-edge: #3A2350;
  }
}

:root[data-theme="dark"] {
  --paper: #170A22;
  --mist: #21102F;
  --ink: #F6ECFF;
  --ink-soft: #BDA9CC;
  --rule: #3A2350;
  --magenta-ink: #F47DFF;
  --button-text: #1F0D2E;
  --shadow-tint: rgba(0, 0, 0, 0.4);
  --night: #25123A;
  --night-edge: #3A2350;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--magenta-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.flow > * + * {
  margin-top: var(--flow, 1em);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34em;
}

.measure {
  max-width: 38em;
}

.muted {
  color: var(--ink-soft);
}

/* Header */

.site-header {
  padding-block: 20px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--magenta-ink);
}

.site-nav a[aria-current="page"] {
  color: var(--magenta-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 44em) {
  .site-nav {
    order: 0;
    width: auto;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--magenta-ink);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  filter: brightness(1.08);
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  height: 52px;
  width: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.text-link {
  font-weight: 700;
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section--tint {
  background: var(--mist);
}

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

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
}

/* Hero */

.hero {
  padding-top: clamp(24px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.hero h1 {
  max-width: 11.5em;
}

.hero-intro {
  display: grid;
  gap: 24px;
  align-content: end;
}

.hero-intro p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.45;
}

.hero-intro strong {
  color: var(--ink);
}

@media (min-width: 60em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 48px;
  }
}

/* Last night chart */

.night {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--night-edge);
  border-radius: var(--radius-panel);
  background: var(--night);
  color: var(--night-text);
}

.night-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.night-title {
  font-size: var(--step-2);
}

.night-range {
  color: var(--night-soft);
  font-size: var(--step--1);
}

.night-chart {
  --span: 14;
  --label: 4.5rem;
  display: grid;
  gap: 14px;
}

.lane {
  display: grid;
  grid-template-columns: var(--label) 1fr;
  align-items: center;
}

.lane-label {
  color: var(--night-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

.track {
  position: relative;
  height: 40px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      to right,
      var(--night-grid) 0 1px,
      transparent 1px calc(100% / 7)
    );
}

.mark {
  position: absolute;
  top: 50%;
  left: calc(var(--from) / var(--span) * 100%);
  width: calc((var(--to) - var(--from)) / var(--span) * 100%);
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
  transform-origin: left center;
  -webkit-tap-highlight-color: transparent;
}

/* A larger invisible hit area so thin marks are easy to tap */
.mark::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

.mark--sleep {
  background: var(--sleep);
}

.mark--feed {
  min-width: 10px;
  height: 20px;
  border-radius: 6px;
  background: var(--feed);
}

.mark--dot {
  left: calc(var(--at) / var(--span) * 100%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  transform-origin: center;
}

.mark--feed.mark--dot {
  width: 12px;
  height: 20px;
  margin-left: -6px;
  border-radius: 6px;
}

.mark--nappy {
  background: var(--nappy);
}

.mark:focus-visible {
  outline-color: var(--night-text);
}

.mark.is-active {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--night-text);
}

.axis {
  position: relative;
  height: 1.5em;
  margin-left: var(--label);
  color: var(--night-soft);
  font-family: var(--display);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.axis span {
  position: absolute;
  left: calc(var(--at) / var(--span) * 100%);
  transform: translateX(-50%);
  white-space: nowrap;
}

.axis span:first-child {
  transform: none;
}

.axis span:last-child {
  transform: translateX(-100%);
}

@media (max-width: 39.99em) {
  .night-chart {
    --label: 3.75rem;
  }

  .axis .minor {
    display: none;
  }
}

.night-detail {
  min-height: 3em;
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: 18px;
  border-top: 1px solid var(--night-grid);
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.35;
}

.night-detail time {
  color: var(--feed);
  font-variant-numeric: tabular-nums;
}

.night-hint {
  margin-top: 6px;
  color: var(--night-soft);
  font-size: var(--step--1);
}

@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: grow 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--from, var(--at)) * 95ms + 250ms);
  }

  .mark--dot {
    animation-name: pop;
  }
}

@keyframes grow {
  from {
    transform: translateY(-50%) scaleX(0);
  }
}

@keyframes pop {
  from {
    transform: translateY(-50%) scale(0);
  }
}

/* What you can log */

.log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 28px 32px;
  padding: 0;
  list-style: none;
}

.log-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 14px;
  align-items: start;
  align-content: start;
}

.log-item h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.log-item p {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.45;
}

.log-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--magenta-ink);
  position: relative;
}

.log-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .log-icon {
    background: #3A2350;
  }
}

:root[data-theme="dark"] .log-icon {
  background: #3A2350;
}

.icon-breastfeeding { --icon: url("images/icons/breastfeeding.svg"); }
.icon-bottle { --icon: url("images/icons/baby-bottle.svg"); }
.icon-pump { --icon: url("images/icons/breast-pump.svg"); }
.icon-food { --icon: url("images/icons/baby-meal.svg"); }
.icon-sleep { --icon: url("images/icons/sleep.svg"); }
.icon-tummy { --icon: url("images/icons/infant-massage.svg"); }
.icon-nappy { --icon: url("images/icons/nappy.svg"); }
.icon-bath { --icon: url("images/icons/bath.svg"); }
.icon-weight { --icon: url("images/icons/baby-weight.svg"); }
.icon-height { --icon: url("images/icons/length.svg"); }
.icon-medication { --icon: url("images/icons/pill.svg"); }
.icon-vaccination { --icon: url("images/icons/syringe.svg"); }

.facts {
  display: grid;
  gap: 20px 32px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.facts li {
  max-width: 24em;
  color: var(--ink-soft);
}

.facts strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
}

@media (min-width: 50em) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Screens */

.phone {
  width: min(100%, 300px);
  padding: 9px;
  border-radius: 48px;
  background: #1A1020;
  box-shadow: 0 30px 60px -20px var(--shadow-tint), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone img,
.phone picture {
  display: block;
  border-radius: 39px;
}

.tablet {
  width: 100%;
  padding: 12px;
  border-radius: 32px;
  background: #1A1020;
  box-shadow: 0 30px 60px -24px var(--shadow-tint);
}

.tablet img {
  border-radius: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.split .phone {
  justify-self: center;
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phones .phone {
  width: min(56%, 280px);
}

.phones .phone + .phone {
  margin-top: 72px;
  margin-left: -9%;
}

@media (min-width: 52em) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .split--flip > :first-child {
    order: 2;
  }

  .split--top {
    align-items: start;
  }
}

.split-copy {
  --flow: 20px;
}

.plain-list {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding-left: 22px;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--magenta);
}

.plain-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.3;
}

.plain-list span {
  color: var(--ink-soft);
}

.plus-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--lilac);
  color: #6D1590;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.free-tag {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}

/* Privacy band */

.privacy-band {
  display: grid;
  gap: 24px 64px;
}

.privacy-band h2 {
  max-width: 10em;
}

@media (min-width: 52em) {
  .privacy-band {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* Closing call to action */

.closing {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, #F47DFF 0%, #E24DFF 100%);
  color: #2B1238;
}

.closing h2 {
  font-size: var(--step-4);
  font-weight: 900;
  max-width: 9em;
}

.closing p {
  max-width: 30em;
  font-size: var(--step-1);
}

/* Page headers for inner pages */

.page-head {
  padding-top: clamp(24px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-head h1 {
  max-width: 13em;
  margin-bottom: 20px;
}

/* Features page */

.feature-block + .feature-block {
  margin-top: clamp(72px, 10vw, 128px);
}

.feature-block h2 {
  margin-bottom: 4px;
}

.feature-grid {
  display: grid;
  gap: clamp(56px, 8vw, 88px) 72px;
  margin-top: clamp(72px, 10vw, 128px);
}

.feature-grid > .feature-block {
  margin-top: 0;
}

@media (min-width: 60em) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.detail-list > div {
  display: grid;
  gap: 2px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}

.detail-list dt {
  font-family: var(--display);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 40em) {
  .detail-list > div {
    grid-template-columns: 11rem 1fr;
  }
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.jump-links a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.jump-links a:hover {
  background: var(--lilac);
  color: #2B1238;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.compare caption {
  text-align: left;
}

.compare th,
.compare td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  font-family: var(--display);
  font-size: var(--step-0);
  border-bottom-width: 2px;
  border-bottom-color: var(--ink);
}

.compare tbody th {
  font-weight: 600;
}

.compare td {
  width: 7.5rem;
  text-align: center;
}

.compare thead th:not(:first-child) {
  text-align: center;
}

.yes,
.no {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
}

.yes {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill-rule='evenodd' d='M11 0a11 11 0 1 1 0 22a11 11 0 0 1 0-22zm4.6 6.6l-6 6.1-2.3-2.3-1.5 1.5 3.8 3.8 7.5-7.6z'/%3E%3C/svg%3E");
  background: var(--magenta-ink);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.no {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-soft);
  opacity: 0.5;
}

.table-scroll {
  overflow-x: auto;
}

/* FAQ */

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

.faq-nav {
  align-self: start;
}

.faq-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

@media (min-width: 56em) {
  .faq-layout {
    grid-template-columns: 14rem 1fr;
  }

  .faq-nav {
    position: sticky;
    top: 24px;
  }

  .faq-nav ul {
    display: grid;
    gap: 4px;
  }

  .faq-nav .jump-links a {
    background: transparent;
    padding-inline: 0;
  }

  .faq-nav .jump-links a:hover {
    background: transparent;
    color: var(--magenta-ink);
  }
}

.faq-group + .faq-group {
  margin-top: clamp(48px, 7vw, 80px);
}

.faq-group h2 {
  margin-bottom: 16px;
  font-size: var(--step-2);
  scroll-margin-top: 24px;
}

.faq {
  border-bottom: 1px solid var(--rule);
}

.faq:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--magenta-ink), var(--magenta-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--magenta-ink), var(--magenta-ink)) center / 2px 12px no-repeat,
    var(--mist);
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--magenta-ink);
}

.faq-answer {
  --flow: 0.75em;
  max-width: 38em;
  padding-bottom: 22px;
  color: var(--ink-soft);
}

.faq-answer ol,
.faq-answer ul {
  padding-left: 1.3em;
}

.faq-answer li + li {
  margin-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }

    .faq::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.25s ease, content-visibility 0.25s allow-discrete;
    }

    .faq[open]::details-content {
      height: auto;
    }
  }
}

/* Contact */

.route {
  --flow: 10px;
  max-width: 40rem;
  padding: 28px;
  border-radius: 20px;
  background: var(--mist);
}

.route a.address {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.composer {
  display: grid;
  gap: 22px;
  max-width: 40rem;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-weight: 700;
}

.field .hint {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  cursor: pointer;
  font-weight: 600;
}

.choice input:checked + span {
  background: var(--magenta-ink);
  box-shadow: none;
  color: var(--button-text);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

.row-2 {
  display: grid;
  gap: 22px;
}

@media (min-width: 36em) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--magenta-ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 30%, transparent);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

button.button {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.composer-note {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* Privacy policy */

.legal {
  --flow: 1em;
  max-width: 42rem;
}

.legal h2 {
  margin-top: 2.2em;
  font-size: var(--step-2);
}

.legal h3 {
  margin-top: 1.6em;
  font-size: 1.1875rem;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 6px;
}

.summary-box {
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--mist);
}

/* Footer */

.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--magenta-ink);
}

.h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
