/* The website's plain styles. Tokens only (design/tokens.css). One appearance: light, on paper (design/website.md). */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 3px solid var(--site-ember);
  outline-offset: 3px;
}

.wrap {
  width: calc(100% - var(--space-48));
  max-width: calc(var(--space-96) * 10 + var(--space-64));
  margin-inline: auto;
}

/* ---- type ---- */

.site-hero {
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.site-h2 {
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.site-feature {
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 750;
}

.site-lead {
  font-size: 16px;
  line-height: 24px;
}

.site-body {
  font-size: 16px;
  line-height: 24px;
}

.site-label {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.block {
  display: block;
}

.accent-text {
  color: var(--site-ember);
}

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

.mb-12 {
  margin-bottom: var(--space-12);
}

.mb-24 {
  margin-bottom: var(--space-24);
}

.mb-32 {
  margin-bottom: var(--space-32);
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-8) var(--space-24);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(calc(-1 * 1px));
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--site-ember);
  border-color: var(--site-ember);
  color: var(--surface);
}

.btn-large {
  min-height: var(--space-64);
  padding-inline: var(--space-32);
  font-size: 18px;
}

.linkish {
  min-height: 44px;
  padding: 0 var(--space-8);
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  line-height: 24px;
  text-decoration: underline;
  cursor: pointer;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
}

/* ---- header and footer ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 44px;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.155em;
  text-decoration: none;
}

.brand img {
  width: var(--space-24);
  height: var(--space-32);
  object-fit: contain;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12) var(--space-24);
  padding-block: var(--space-24);
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-soft);
}

.site-footer nav,
.site-footer .brandline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-16);
}

.site-footer img {
  width: var(--space-16);
  height: var(--space-16);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---- hero ---- */

.sunrise {
  background: var(--faint) url('/img/sunrise.jpg') center / cover no-repeat;
}

.hero-copy {
  max-width: calc(var(--space-96) * 9);
  padding: var(--space-24) var(--space-24) var(--space-32);
  border-radius: var(--radius-hero);
  isolation: isolate;
  position: relative;
}

/* warm paper at 93% over the photograph */
.hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--paper);
  opacity: 0.93;
}

.hero-copy .site-lead {
  margin-top: var(--space-16);
  max-width: calc(var(--space-96) * 5);
}

.hero-copy .site-lead + .site-lead {
  margin-top: var(--space-8);
}

.hero-copy .row {
  margin-top: var(--space-24);
}

.sunrise-top {
  padding-top: var(--space-24);
}

.sunrise-reveal {
  height: calc(var(--space-96) + var(--space-24));
}

/* ---- sections ---- */

.section {
  padding-block: var(--space-64);
}

.what-is {
  display: grid;
  gap: var(--space-32);
}

.what-is-copy {
  display: grid;
  gap: var(--space-16);
  max-width: calc(var(--space-96) * 7);
}

.what-is-copy .strong {
  font-weight: 700;
}

.what-is-copy .site-h2 {
  margin-block: var(--space-8);
}

.film {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--faint);
}

.film video {
  width: 100%;
  height: auto;
}

/* ---- the demonstration ---- */

.xp-band {
  background: var(--faint);
  border-block: 1px solid var(--line);
}

.xp-lead {
  max-width: calc(var(--space-96) * 7);
  margin-bottom: var(--space-24);
  color: var(--ink-soft);
}

.xp-tabs > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.seg label {
  display: grid;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-row);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.seg b {
  font-size: 16px;
  line-height: 1.2;
}

.seg small {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.xp-panel {
  display: none;
}

#xp-work:checked ~ .seg label[for='xp-work'],
#xp-family:checked ~ .seg label[for='xp-family'],
#xp-friends:checked ~ .seg label[for='xp-friends'] {
  border-color: var(--site-ember);
  box-shadow: inset 0 0 0 1px var(--site-ember);
}

#xp-work:focus-visible ~ .seg label[for='xp-work'],
#xp-family:focus-visible ~ .seg label[for='xp-family'],
#xp-friends:focus-visible ~ .seg label[for='xp-friends'] {
  outline: 3px solid var(--site-ember);
  outline-offset: 3px;
}

#xp-work:checked ~ .panels #xp-p-work,
#xp-family:checked ~ .panels #xp-p-family,
#xp-friends:checked ~ .panels #xp-p-friends {
  display: grid;
}

.xp-panel {
  gap: var(--space-24);
}

.scn,
.lens {
  padding: var(--space-24);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.scn {
  display: grid;
  gap: var(--space-12);
  align-content: start;
}

.demo-title {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.bubs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}

.bub {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
}

.av {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--space-32);
  height: var(--space-32);
  border-radius: var(--radius-pill);
  background: var(--faint);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.bub-who {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.bub-text {
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.sug {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
  padding: var(--space-16);
  border-radius: var(--radius-row);
  border: 1px solid var(--site-ember);
  background: var(--paper);
}

.sug img {
  width: var(--space-16);
  height: var(--space-24);
  flex: none;
}

.sug b,
.sug .when {
  display: block;
}

.sug .when {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--site-ember);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.choices span {
  padding: var(--space-4) var(--space-16);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  line-height: 24px;
  font-weight: 700;
}

.choices .yes {
  background: var(--site-ember);
  border-color: var(--site-ember);
  color: var(--surface);
}

.note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.lens dl {
  display: grid;
  gap: var(--space-12);
}

.lens dl > div {
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--line);
}

.lens dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lens dt {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-soft);
}

.lens dt span {
  display: grid;
  place-items: center;
  width: var(--space-16);
  height: var(--space-16);
  border-radius: var(--radius-pill);
  background: var(--faint);
  font-size: 10px;
}

.lens dd {
  font-size: 16px;
  line-height: 24px;
}

.lens .yours dt {
  color: var(--site-ember);
}

.lens .yours dd {
  font-weight: 700;
}

.lens .space-line {
  margin-bottom: var(--space-16);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

/* ---- capabilities ---- */

.caps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-16);
}

.caps > li {
  display: grid;
  gap: var(--space-8);
  align-content: start;
  padding: var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.caps h3 {
  margin-top: var(--space-8);
}

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

.cap-eg {
  display: grid;
  align-items: center;
  min-height: calc(var(--space-96) - var(--space-4));
  padding: var(--space-16);
  border-radius: var(--radius-row);
  background: var(--faint);
  border: 1px solid var(--line);
}

.eg-line {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
}

.eg-line b {
  display: block;
  font-size: 15px;
}

.eg-line small {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.eg-av {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--space-32);
  height: var(--space-32);
  border-radius: var(--radius-pill);
  background: var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.eg-av.flame {
  background: var(--site-ember);
  border-radius: var(--radius-control);
}

.eg-av.flame img {
  width: var(--space-16);
  height: var(--space-16);
}

.eg-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
}

.eg-pair span {
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.35;
}

.eg-pair i {
  font-style: normal;
  font-weight: 800;
  color: var(--site-ember);
}

.eg-ask {
  display: grid;
  gap: var(--space-8);
}

.eg-ask b {
  font-size: 15px;
}

/* ---- control ---- */

.control-band {
  background: var(--faint);
  border-top: 1px solid var(--line);
}

.control-lead {
  margin-bottom: var(--space-24);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--site-ember);
}

.control {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-24);
  display: grid;
  gap: var(--space-16);
}

.control li {
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}

.control .ico {
  flex: none;
  width: calc(var(--space-32) + var(--space-8));
  height: calc(var(--space-32) + var(--space-8));
  padding: var(--space-8);
  border-radius: var(--radius-row);
  background: var(--surface);
  border: 1px solid var(--line);
}

.control b {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 18px;
  line-height: 1.3;
}

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

.control-foot {
  max-width: calc(var(--space-96) * 8);
}

/* ---- closing ---- */

.evening {
  position: relative;
  isolation: isolate;
  background: var(--ink) url('/img/coffee.jpg') center / cover no-repeat;
  color: var(--surface);
}

/* the photograph is darkened so white text reads on it */
.evening::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  opacity: 0.45;
}

.evening .wrap {
  padding-block: var(--space-96);
}

.evening .row {
  margin-top: var(--space-48);
  gap: var(--space-16);
}

.evening .small {
  margin-top: var(--space-24);
  font-size: 14px;
  line-height: 24px;
  color: var(--surface);
}

/* ---- plain pages ---- */

.page {
  min-height: calc(var(--space-96) * 4);
  padding-block: var(--space-48) var(--space-96);
}

.page .site-hero {
  font-size: 42px;
  margin-bottom: var(--space-16);
}

.page .site-lead {
  max-width: calc(var(--space-96) * 6);
  color: var(--ink-soft);
}

.page .site-h2 {
  margin: var(--space-48) 0 var(--space-8);
  font-size: 31px;
}

.page .site-body {
  max-width: calc(var(--space-96) * 7);
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.cards > li {
  padding: var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cards b {
  display: block;
  margin-bottom: var(--space-4);
}

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

.tag {
  display: inline-block;
  margin-left: var(--space-8);
  padding: 0 var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--faint);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 620;
  color: var(--ink);
  vertical-align: middle;
}

.steps {
  counter-reset: step;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: var(--space-4);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: var(--site-ember);
}

.coming {
  margin-top: var(--space-24);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-soft);
}

/* ---- the CookieBar ---- */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: var(--space-12);
  pointer-events: none;
}

.cookie-in {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-16);
  max-width: calc(var(--space-96) * 9);
  margin-inline: auto;
  padding: var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--panel-shadow);
}

.cookie-title {
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.cookie-in p {
  font-size: 14px;
  line-height: 24px;
}

.cookie-in p + p {
  color: var(--ink-soft);
}

.cookie-choose {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
  font-size: 14px;
  line-height: 24px;
}

.cookie-choose label {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
}

/* ---- wider screens ---- */

@media (min-width: 761px) {
  .site-hero {
    font-size: 50px;
  }

  .site-h2 {
    font-size: 42px;
  }

  .site-lead {
    font-size: 18px;
    line-height: 28px;
  }

  .sunrise-top {
    padding-top: var(--space-64);
  }

  .hero-copy {
    padding: var(--space-32) var(--space-32) var(--space-48);
  }

  .sunrise-reveal {
    height: calc(var(--space-96) * 2 + var(--space-48));
  }

  .section {
    padding-block: var(--space-96);
  }

  .caps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
  }

  .caps > li {
    padding: var(--space-24);
  }

  .control {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
  }

  .xp-panel,
  #xp-work:checked ~ .panels #xp-p-work,
  #xp-family:checked ~ .panels #xp-p-family,
  #xp-friends:checked ~ .panels #xp-p-friends {
    grid-template-columns: 3fr 2fr;
  }

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

  .evening .wrap {
    padding-block: calc(var(--space-96) + var(--space-48));
  }

  .page .site-hero {
    font-size: 50px;
  }
}

@media (min-width: 1500px) {
  .site-hero {
    font-size: 76px;
  }

  .page .site-hero {
    font-size: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
