/* Lotus Letters website. One stylesheet for every page; mobile first
   (designed at 375px wide, then widened with a couple of media queries).
   Colors and fonts match the app: lotus pinks, cream, Fraunces + Manrope. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #db5b8f;
  --pink-deep: #a32a58;
  --cream: #fff4f8;
  --blush: #fbe3ee;
  --card: #ffffff;
  --ink: #3a2230;
  --ink-soft: #6e4f60;
  --line: #f1cfdf;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(163, 42, 88, 0.1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

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

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

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pink-deep);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--pink);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--pink-deep);
  margin: 0 0 0.5em;
}
h1 {
  font-size: 2.1rem;
}
h2 {
  font-size: 1.45rem;
  margin-top: 1.8em;
}
h3 {
  font-size: 1.15rem;
  margin-top: 1.4em;
}
p,
ul,
ol {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.25em;
}
li + li {
  margin-top: 0.35em;
}
strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Header & footer --------------------------------------------------- */

.site-header {
  padding: 14px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pink-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
}
.brand img {
  width: auto;
  height: 36px;
}

.site-footer {
  margin-top: 56px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.footer-links li + li {
  margin-top: 0;
}
.footer-links a {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.footer-links a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 0 0 4px;
}

/* ---- Home -------------------------------------------------------------- */

.hero {
  position: relative;
  margin: 4px 0 28px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--blush) url("/img/pond.webp") center 40% / cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-inner {
  position: relative;
  padding: 36px 20px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 244, 248, 0.15) 0%, rgba(255, 244, 248, 0.82) 48%, var(--cream) 100%);
}
.hero-lotus {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(163, 42, 88, 0.28));
}
.hero h1 {
  font-size: 2.5rem;
  margin: 10px 0 6px;
}
.tagline {
  text-wrap: balance;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 22px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}
.features li + li {
  margin-top: 0;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.feature-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}
.feature h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
}

.center {
  text-align: center;
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---- Google Play badge -------------------------------------------------
   Our own "coming soon" badge. When PLAY_STORE_URL is set in
   /js/site-config.js, site.js turns it into a real link (see README). */

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 20px 9px 16px;
  border-radius: 14px;
  background: #1d1418;
  color: #fff;
  text-decoration: none;
  text-align: left;
  line-height: 1.15;
  box-shadow: 0 4px 14px rgba(29, 20, 24, 0.22);
}
.play-badge:hover {
  color: #fff;
}
.play-badge[aria-disabled="true"] {
  cursor: default;
}
.play-badge svg {
  width: 26px;
  height: 28px;
  flex: 0 0 auto;
}
.play-badge-small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.play-badge-big {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---- Text pages (privacy, support, delete) ----------------------------- */

.page-title {
  margin-top: 18px;
}
.meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: -4px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 6px;
  margin: 0 0 18px;
}
.card h2,
.card h3,
.callout h2 {
  margin-top: 0;
}
.callout {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 18px 18px 4px;
  margin: 0 0 22px;
}
.toc {
  font-size: 0.95rem;
}
.toc ol {
  margin-bottom: 0.6em;
}

.data-list {
  margin: 0 0 1em;
  padding: 0;
}
.data-list > div {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.data-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.data-list dt {
  font-weight: 700;
}
.data-list dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

.email-button {
  display: inline-block;
  background: var(--pink-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  margin: 4px 0 18px;
}
.email-button:hover {
  background: var(--pink);
  color: #fff;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 44px 14px 16px;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--pink);
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq .answer {
  padding: 0 16px 4px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
}
.steps li + li {
  margin-top: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Challenge page (/c/CODE) ------------------------------------------ */

.challenge {
  text-align: center;
  padding-top: 8px;
}
.challenge .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 6px;
}
.code-box {
  margin: 18px auto 10px;
  background: var(--card);
  border: 2px dashed var(--pink);
  border-radius: 22px;
  padding: 16px 10px 14px;
  max-width: 340px;
}
.code-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.code {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.16em;
  padding-left: 0.16em; /* balances the trailing letter-spacing */
  color: var(--pink-deep);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.copy-button {
  margin-top: 6px;
  background: none;
  border: 1px solid var(--line);
  color: var(--pink-deep);
  font: 700 0.9rem var(--body);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.copy-button:hover {
  border-color: var(--pink);
}
.open-button {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  margin: 14px 0 6px;
  box-shadow: 0 6px 18px rgba(219, 91, 143, 0.35);
}
.open-button:hover {
  background: var(--pink-deep);
  color: #fff;
}
.small-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.challenge .card {
  text-align: left;
  margin-top: 26px;
}
.badge-row {
  margin: 22px 0 6px;
}

/* ---- 404 ---------------------------------------------------------------- */

.lost {
  text-align: center;
  padding-top: 24px;
}
.lost img {
  width: 110px;
  opacity: 0.9;
}

/* ---- Wider screens ------------------------------------------------------ */

@media (min-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
  .hero-inner {
    padding: 56px 32px 44px;
  }
  .hero-lotus {
    width: 160px;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .tagline {
    font-size: 1.5rem;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .features li:first-child {
    grid-column: 1 / -1;
  }
  .card,
  .callout {
    padding: 22px 24px 8px;
  }
  .code {
    font-size: 3.2rem;
  }
}

/* Policy sections that are switched off in /js/site-config.js. */
[hidden] {
  display: none !important;
}

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