/* Surelee website. Colours come from the app icon: forest ink, sage lines,
   one blush heart, on a pale sage page. Type is the app's own: Georgia for
   headlines, the system face for everything else. No web fonts, no
   third-party requests. */

:root {
  --page: #f2f5ef;
  --surface: #ffffff;
  --ink: #1e2b22;
  --ink-soft: #4a5a4e;
  --forest: #3e5f46;
  --forest-deep: #2f4a37;
  --on-forest: #ffffff;
  --sage: #8fa887;
  --line: #c9d6c3;
  --blush: #f2b6b0;
  --band: #2f4a37;
  --band-ink: #eef3ea;
  --band-soft: #c5d4c1;
  --band-line: #4d6b55;
  --focus: #3e5f46;

  --serif: Georgia, "Gelasio", "Noto Serif", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wide: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #16211a;
    --surface: #1f2c23;
    --ink: #e8eee4;
    --ink-soft: #b5c2b3;
    --forest: #a9cba6;
    --forest-deep: #c3dcc0;
    --on-forest: #16211a;
    --sage: #6f8a69;
    --line: #2e3d32;
    --band: #0f1712;
    --band-ink: #e8eee4;
    --band-soft: #b5c2b3;
    --band-line: #2e3d32;
    --focus: #a9cba6;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest-deep);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font: 600 1.1875rem/1.35 var(--sans);
  margin: 0;
}

p {
  margin: 0;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.375rem/1 var(--serif);
  margin-right: auto;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  box-shadow: 0 0 0 1px var(--line);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .nav {
    display: none;
  }
}

/* Buttons --------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--on-forest);
  font: 600 1.0625rem/1.2 var(--sans);
  text-decoration: none;
}

.button:hover {
  background: var(--forest-deep);
  color: var(--on-forest);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.store-badge img {
  height: 3.25rem;
  width: auto;
}

.soon {
  font: 600 1.0625rem/1.4 var(--sans);
  color: var(--ink);
}

.note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

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

.hero {
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy {
  max-width: var(--measure);
}

.answer {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1.5rem 0 0;
  padding: 0.4375rem 1.125rem 0.4375rem 0.4375rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 1rem/1.3 var(--sans);
}

.answer-check {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-forest);
  flex: none;
}

.lede {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.get-note {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* The doorway: the arch from the app icon, around the phone. Top radii of
   999px always resolve to a semicircle, whatever the width, and the heart
   sits on the arch's shoulder (45 degrees: 14.6% of the width in from the
   corner) in a small gap of its own, as it does on the icon. */

.doorway {
  position: relative;
  width: min(100%, 25rem);
  margin: 0 auto;
  padding: 3.25rem 2.25rem 0;
  container-type: inline-size;
}

.doorway-arch {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--sage);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.doorway-heart {
  position: absolute;
  top: 14.6cqw;
  right: 14.6cqw;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.35rem;
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: var(--page);
  color: var(--blush);
}

.phone {
  position: relative;
  border-radius: 2.4rem;
  padding: 0.55rem;
  background: #111612;
  box-shadow: 0 2.5rem 4rem -2.25rem rgba(30, 43, 34, 0.55);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 1.9rem;
}

/* The page's one moment: the doorway rises, then the heart settles in. */
@media (prefers-reduced-motion: no-preference) {
  .doorway-arch {
    animation: rise 1.1s 0.15s cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .doorway-heart {
    animation: settle 0.5s 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
}

@keyframes rise {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translate(50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(50%, -50%) scale(1);
  }
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

/* Two light sections in a row share one gap rather than stacking two. */
.section:not(.band) + .section:not(.band) {
  padding-top: 0;
}

.section-head {
  max-width: var(--measure);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

/* How it works: a real sequence, so the steps are numbered. */

.steps {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 3rem 2.5rem;
  counter-reset: step;
}

@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  counter-increment: step;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.step::before {
  content: counter(step);
  font: 700 3rem/1 var(--serif);
  color: var(--sage);
}

.step p {
  color: var(--ink-soft);
  max-width: 24rem;
}

.step .phone {
  width: min(100%, 15.5rem);
  margin-top: 1rem;
  border-radius: 1.9rem;
  padding: 0.45rem;
  box-shadow: 0 1.75rem 3rem -2rem rgba(30, 43, 34, 0.5);
}

.step .phone img {
  border-radius: 1.5rem;
}

/* Privacy: the one full-bleed band. */

.band {
  background: var(--band);
  color: var(--band-ink);
}

.band h2 {
  color: var(--band-ink);
}

.band .section-head p {
  color: var(--band-soft);
}

.band a {
  color: var(--band-ink);
}

.promises {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--band-line);
}

@media (min-width: 48rem) {
  .promises {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.promise {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.25rem 1rem;
  align-content: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--band-line);
}

.promise svg {
  grid-row: span 2;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--band-soft);
  margin-top: 0.15rem;
}

.promise p {
  color: var(--band-soft);
}

.band-link {
  margin-top: 2rem;
}

/* Premium --------------------------------------------------------------- */

.themes {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.theme {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.swatch {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
}

.swatch-pink { --a: #f0598e; --b: #fde1e8; }
.swatch-lavender { --a: #a678d8; --b: #eadcf6; }
.swatch-ocean { --a: #5da0d5; --b: #d8e8f2; }
.swatch-mint { --a: #5bb48a; --b: #d2e9dc; }
.swatch-midnight { --a: #ff7faf; --b: #1f1a22; }
.swatch-sunset { --a: #e88054; --b: #f9d4be; }

.themes-note {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* FAQ ------------------------------------------------------------------- */

.faq {
  margin-top: 2rem;
  max-width: 46rem;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font: 600 1.125rem/1.4 var(--sans);
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(45deg) translate(-2px, -2px);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after {
    transition: transform 0.2s ease;
  }
}

.faq details p {
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Download -------------------------------------------------------------- */

.download .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .download .wrap {
    grid-template-columns: 1fr auto;
  }
}

.qr {
  display: none;
  width: 13.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 1px var(--line);
  text-align: center;
}

.qr-code {
  position: relative;
}

.qr-code img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 22%;
  box-shadow: 0 0 0 0.3rem #ffffff;
}

.qr p {
  margin-top: 0.875rem;
  color: #4a5a4e;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* A code is for a phone's camera, so it only appears where there is no
   phone in hand. */
@media (hover: hover) and (min-width: 56rem) {
  .qr {
    display: block;
  }
}

/* Plain pages: legal, support, deletion ---------------------------------- */

.prose {
  max-width: 42rem;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.prose h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
}

.prose .meta {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.prose h2 {
  font: 600 1.25rem/1.35 var(--sans);
  margin: 2.5rem 0 0.625rem;
}

.prose p,
.prose li {
  color: var(--ink);
  line-height: 1.7;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ol,
.prose ul {
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose .intro {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

/* Download page --------------------------------------------------------- */

.get-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0 5rem;
}

.get-page img.icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  border-radius: 1.4rem;
  box-shadow: 0 0 0 1px var(--line);
}

.get-page .get {
  justify-content: center;
}

.get-page-more {
  margin-top: 2rem;
}

.get-page .lede {
  max-width: 28rem;
  margin-inline: auto;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-right: auto;
}

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