/* Beauty Event Planner landing. Palette and type follow the app's "Atelier" design system. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2");
}

:root {
  --porcelain: #fbf6f1;
  --paper: #ffffff;
  --blush: #ebc9c6;
  --blush-soft: #f4e7e2;
  --rosewood: #7e2f45;
  --rosewood-deep: #5c1f31;
  --champagne: #b98a45;
  --champagne-text: #7f5b1c;
  --champagne-light: #d9b36c;
  --ink: #2a1a22;
  --ink-soft: #5e4b54;
  --line: rgba(126, 47, 69, 0.16);
  --line-gold: rgba(185, 138, 69, 0.55);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Century Gothic", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --measure: 1160px;
}

@media (min-width: 700px) {
  :root {
    --gutter: 40px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rosewood);
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--porcelain);
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne-text);
}
.label--light {
  color: var(--blush);
}

.textlink {
  color: var(--rosewood);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.textlink:hover {
  text-decoration-thickness: 2px;
}
.textlink--light {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--porcelain);
}

.sparkle {
  fill: var(--blush);
}
.sparkle--gold {
  fill: var(--champagne);
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 32px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: auto;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  margin-inline: -4px;
}
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--rosewood);
  border-bottom-color: var(--champagne);
}

@media (max-width: 520px) {
  .menu {
    width: 100%;
    column-gap: 18px;
    justify-content: space-between;
  }
  .menu a {
    font-size: 0.94rem;
  }
}

/* ---------- Download call to action ---------- */

.cta {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  justify-content: center;
  padding: 12px 30px 13px;
  border-radius: 12px;
  border: 1px solid var(--rosewood);
  text-decoration: none;
  text-align: left;
}
.cta__small {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cta__big {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.1;
}
.cta--solid {
  background: var(--rosewood);
  color: var(--porcelain);
}
.cta--solid .cta__small {
  color: var(--blush);
}
a.cta--solid:hover {
  background: var(--rosewood-deep);
}
/* Not published yet: a statement, visibly not a button */
.cta--soon {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--champagne);
}
.cta--soon .cta__small {
  color: var(--champagne-text);
}

/* ---------- Screenshots ---------- */

.shot {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  box-shadow: 0 30px 50px -34px rgba(92, 31, 49, 0.55);
}
.shot__img {
  width: 100%;
  height: auto;
}
.shot--rise {
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 0 60px -20px rgba(92, 31, 49, 0.4);
}
.shot--crop {
  aspect-ratio: 5 / 6;
}
.shot--crop .shot__img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Hero ---------- */

.hero__grid {
  display: grid;
  gap: 40px;
  padding-top: 44px;
}
.hero__copy {
  padding-bottom: 8px;
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(3.1rem, 13vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}
.hero__title em {
  display: block;
}
.hero__lede {
  max-width: 34em;
  margin-top: 26px;
  margin-bottom: 30px;
  font-size: 1.16rem;
  color: var(--ink-soft);
}
.hero__facts {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero__screen {
  width: min(78vw, 340px);
  max-height: 380px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: end;
    padding-top: 72px;
  }
  .hero__copy {
    padding-bottom: 72px;
  }
  .hero__screen {
    width: 360px;
    max-height: 590px;
  }
}

/* The countdown ribbon: real lead times from the app's catalogue */

.ribbon {
  position: relative;
  background: var(--rosewood);
  color: var(--porcelain);
  padding-block: 36px 40px;
}
.ribbon__title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}
.ribbon__list {
  margin-top: 20px;
  border-top: 1px solid var(--champagne-light);
}
.ribbon__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 8px;
  align-items: baseline;
  padding-block: 12px;
  border-bottom: 1px solid rgba(235, 201, 198, 0.22);
}
.ribbon__when {
  font-variant-numeric: lining-nums;
  grid-row: span 2;
  align-self: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
}
.ribbon__unit {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
}
.ribbon__step {
  font-size: 1.05rem;
  font-weight: 500;
}
.ribbon__item--day .ribbon__unit {
  color: var(--champagne-light);
}
.ribbon__item--day .sparkle {
  fill: var(--champagne-light);
}
.ribbon__note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--blush);
}

@media (min-width: 900px) {
  .ribbon {
    padding-block: 40px 44px;
  }
  .ribbon__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 28px;
  }
  .ribbon__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 26px 0;
    border-bottom: 0;
  }
  .ribbon__item::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--champagne-light);
  }
  .ribbon__when {
    align-self: flex-start;
    display: flex;
    align-items: center;
    height: 4.2rem;
    font-size: 4.2rem;
  }
  .ribbon__unit {
    margin-top: 10px;
  }
  .ribbon__step {
    margin-top: 6px;
    line-height: 1.35;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: 72px;
}
.section--tint {
  background: var(--blush-soft);
}
.section__head {
  max-width: 44rem;
}
.section__title {
  margin-top: 14px;
  font-size: clamp(2.2rem, 6.4vw, 3.6rem);
}
.section__title--light {
  color: var(--porcelain);
}
.section__title--light em {
  color: var(--blush);
}
.section__intro {
  margin-top: 18px;
  max-width: 36em;
  color: var(--ink-soft);
}

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

/* How it works: three screens, stepped down like a staircase */

.walk {
  display: grid;
  gap: 48px;
  margin-top: 44px;
}
.walk__text {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  margin-bottom: 22px;
}
.walk__num {
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.4rem;
  line-height: 0.8;
  font-variant-numeric: lining-nums;
  color: var(--champagne);
}
.walk__title {
  font-size: 1.75rem;
}
.walk__text p {
  margin-top: 8px;
  color: var(--ink-soft);
}
.walk .shot {
  aspect-ratio: 5 / 6;
}
.walk .shot__img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 900px) {
  .walk {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    margin-top: 64px;
  }
  .walk__step:nth-child(2) {
    margin-top: 64px;
  }
  .walk__step:nth-child(3) {
    margin-top: 128px;
  }
  .walk__text {
    min-height: 11.5rem;
    align-content: start;
  }
  .walk .shot {
    aspect-ratio: auto;
  }
  .walk .shot__img {
    height: auto;
  }
}

/* Feature stories: text and a cropped window of the real screen, alternating sides */

.stories {
  display: grid;
  gap: 64px;
  margin-top: 48px;
}
.story {
  display: grid;
  gap: 26px;
}
.story__title {
  margin-top: 12px;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}
.story__text p:not(.label) {
  margin-top: 14px;
  max-width: 30em;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .stories {
    gap: 96px;
    margin-top: 72px;
  }
  .story {
    grid-template-columns: minmax(0, 1fr) 400px;
    column-gap: 96px;
    align-items: center;
  }
  .story__text {
    padding-top: 28px;
    border-top: 1px solid var(--line-gold);
  }
  .story:nth-child(even) {
    grid-template-columns: 400px minmax(0, 1fr);
  }
  .story:nth-child(even) .story__window {
    order: -1;
  }
}

/* Also inside */

.extras {
  display: grid;
  gap: 40px;
}
.extras__shots {
  display: flex;
  gap: 18px;
  margin-top: 32px;
}
.shot--small {
  flex: 1 1 0;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}
.shot--small .shot__img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.extras__list {
  border-bottom: 1px solid var(--line);
}
.extras__row {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.extras__row dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
}
.extras__row dd {
  margin-top: 6px;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .extras {
    grid-template-columns: 5fr 7fr;
    column-gap: 80px;
    align-items: start;
  }
  .extras__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 32px;
    align-items: baseline;
  }
  .extras__row dd {
    margin-top: 0;
  }
}

/* Private by design */

.private {
  background: var(--rosewood-deep);
  color: var(--porcelain);
  padding-block: 72px;
}
.private__grid {
  display: grid;
  gap: 44px;
}
.private__intro {
  margin-top: 18px;
  margin-bottom: 12px;
  max-width: 30em;
  color: var(--blush);
}
.private__list {
  display: grid;
  gap: 0 40px;
}
.private__list li {
  padding-block: 20px;
  border-top: 1px solid var(--champagne);
}
.private__list h3 {
  font-size: 1.6rem;
}
.private__list p {
  margin-top: 6px;
  color: var(--blush);
}

@media (min-width: 900px) {
  .private {
    padding-block: 104px;
  }
  .private__grid {
    grid-template-columns: 5fr 7fr;
    column-gap: 80px;
    align-items: start;
  }
  .private__list {
    grid-template-columns: 1fr 1fr;
  }
  .private__list li {
    padding-block: 22px 28px;
  }
}

/* Questions */

.faq {
  display: grid;
  gap: 32px;
}
.faq__list {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-block: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--champagne-text);
}
.faq__item[open] summary::after {
  content: "\2212";
}
.faq__item summary:hover {
  color: var(--rosewood);
}
.faq__item p {
  max-width: 40em;
  padding-bottom: 22px;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: 5fr 7fr;
    column-gap: 80px;
    align-items: start;
  }
}

/* Closing call */

.finale {
  border-top: 1px solid var(--line-gold);
  padding-block: 80px;
  text-align: center;
}
.finale__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.finale__title {
  margin-block: 22px 34px;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  line-height: 1;
}
.finale__title em {
  display: block;
}

@media (min-width: 900px) {
  .finale {
    padding-block: 120px;
  }
}

/* ---------- Colophon ---------- */

.colophon {
  background: var(--ink);
  color: var(--porcelain);
  padding-block: 56px 28px;
  font-size: 0.98rem;
}
.colophon__grid {
  display: grid;
  gap: 36px;
}
.colophon__name {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
}
.colophon__line {
  margin-top: 8px;
  max-width: 24em;
  color: #cdbfc4;
}
.colophon__links {
  display: grid;
  align-content: start;
}
.colophon__links a,
.colophon__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.colophon__links a:hover,
.colophon__mail:hover {
  color: var(--champagne-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.colophon .label {
  color: var(--champagne-light);
}
.colophon__mail {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}
.colophon__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 246, 241, 0.16);
  font-size: 0.88rem;
  color: #cdbfc4;
}

@media (min-width: 900px) {
  .colophon__grid {
    grid-template-columns: 5fr 3fr 4fr;
    column-gap: 64px;
  }
}

/* ---------- Document pages: privacy, help, release notes, 404 ---------- */

.doc {
  padding-block: 56px 88px;
}
.doc__wrap {
  max-width: calc(800px + 2 * var(--gutter));
}
.doc__title {
  margin-top: 16px;
  font-size: clamp(2.5rem, 8vw, 4rem);
}
.doc__meta {
  margin-top: 18px;
  color: var(--ink-soft);
}
.doc__summary {
  margin-top: 36px;
  padding: 26px 28px 28px;
  background: var(--blush-soft);
  border-left: 3px solid var(--champagne);
  border-radius: 0 14px 14px 0;
}
.doc__summary h2 {
  font-size: 1.7rem;
}
.doc__summary ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.doc__summary li {
  position: relative;
  padding-left: 22px;
}
.doc__summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--rosewood);
  transform: rotate(45deg);
}
.doc__summary p {
  margin-top: 10px;
  color: var(--ink-soft);
}
.doc__mail {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 4.6vw, 2.1rem);
  color: var(--rosewood);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.doc__sub {
  margin-block: 56px 20px;
  font-size: 2.1rem;
}
.doc__cta {
  margin-top: 44px;
}

.prose {
  margin-top: 16px;
}
.prose h2 {
  margin-top: 52px;
  font-size: 2.1rem;
  scroll-margin-top: 24px;
}
.prose p,
.prose ul {
  margin-top: 16px;
}
.prose ul {
  display: grid;
  gap: 10px;
}
.prose li {
  position: relative;
  padding-left: 24px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 10px;
  height: 1px;
  background: var(--champagne-text);
}
.prose a {
  color: var(--rosewood);
  font-weight: 500;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.prose strong {
  font-weight: 600;
}

.release {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-gold);
}
.release__version {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.release__notes {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.release__notes li {
  position: relative;
  padding-left: 24px;
}
.release__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--champagne);
  transform: rotate(45deg);
}

.doc--centre {
  text-align: center;
  padding-block: 88px 120px;
}
.lost__code {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 0.9;
  color: var(--champagne);
}
.lost__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 32px;
}
.lost__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

@media print {
  .masthead,
  .colophon,
  .cta {
    display: none;
  }
}

/* ---------- Tablet: two columns where a single one would stretch the screens ---------- */

@media (min-width: 640px) and (max-width: 899px) {
  .ribbon__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
  .walk {
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }
  .story {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 40px;
    align-items: center;
  }
  .story:nth-child(even) {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .story:nth-child(even) .story__window {
    order: -1;
  }
  .private__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .menu {
    column-gap: 8px;
  }
  .menu a {
    font-size: 0.86rem;
  }
}
