/* WriteQuote website. Airy lilac light theme with the app's real screens.
   No scripts: all motion here is CSS. */
:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --ink: #17102b;
  --body: #554b6c;
  --muted: #6f6585;
  --accent: #6d2ee6;
  --accent-deep: #4c1fb0;
  --line: #eae5f5;
  --soft: #f3eefd;
  --brand: linear-gradient(110deg, #5a22d6, #7a3fe0);
  /* Fraunces for headings, Plus Jakarta Sans for everything else (both hosted with the site). */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 60px -28px rgba(62, 26, 140, 0.35);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--body);
  font: 400 1.05rem/1.6 var(--ui);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.grad {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Floating navigation */
.nav-shell {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px -18px rgba(62, 26, 140, 0.4);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 800 1.2rem/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  transform-origin: 20% 90%;
  animation: quill 4s ease-in-out infinite;
}

/* Like the app's logo: "Write" in ink, "Quote" in the logo's colours.
   The name is written in, then the colours keep flowing through "Quote". */
.brand {
  font-family: var(--ui);
  letter-spacing: -0.03em;
}

.word {
  color: var(--ink);
  animation: write-in 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.word .q {
  background: linear-gradient(100deg, #5a22d6 0%, #8a3fe0 30%, #c13fd8 50%, #8a3fe0 70%, #5a22d6 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: quote-flow 4s ease-in-out 1.1s infinite;
}

.brand:hover .word .q {
  animation-duration: 1.6s;
}

.nav nav {
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--body);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav nav a:hover {
  background: var(--soft);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 30px -12px rgba(109, 46, 230, 0.7);
}

.btn.ghost {
  border-color: #d9cdf5;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn.small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero */
.hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f2fe 0%, #faf8ff 55%, var(--bg) 100%);
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.blob.a {
  top: -140px;
  right: 6%;
  width: 520px;
  height: 520px;
  background: #e9e0fb;
}

.blob.b {
  top: 200px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: #f1ecfb;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 32px;
  padding-block: 48px 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0d4fa;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 31rem;
  margin-top: 20px;
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.soon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #463c5c;
  font-size: 0.88rem;
  font-weight: 500;
}

.soon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Phones */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.device {
  overflow: hidden;
  border: 7px solid #1d1530;
  border-radius: 38px;
  background: #fcf8f4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 34px 70px -26px rgba(47, 19, 112, 0.6);
}

.device img {
  width: 100%;
}

.phones .device {
  position: absolute;
  width: min(40%, 240px);
}

.phones .front {
  z-index: 2;
  top: 0;
  left: 8%;
  transform: rotate(-5deg);
  animation: float-a 7s ease-in-out infinite;
}

.phones .back {
  z-index: 1;
  top: 52px;
  right: 6%;
  transform: rotate(6deg);
  animation: float-b 8s ease-in-out infinite;
}

.sticker {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 9px 13px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 34px -14px rgba(47, 19, 112, 0.55);
}

.sticker b {
  color: #e0245e;
}

.sticker.one {
  top: 62%;
  left: 0;
  animation: bob 5s ease-in-out infinite;
}

.sticker.two {
  bottom: 7%;
  right: 4%;
  animation: bob 6s ease-in-out 1s infinite;
}

/* The drawn home feed in the front phone, using real quote art. */
.feed-screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 20;
  color: #5e4e78;
  font-size: 0.72rem;
  line-height: 1.3;
}

.feed-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 8px;
  color: #24113d;
  font: 800 1rem/1 var(--display);
}

.feed-bar svg,
.feed-acts svg,
.feed-tabs svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-pills {
  display: flex;
  flex: none;
  gap: 4px;
  margin: 0 12px 8px;
  border-radius: 999px;
  padding: 3px;
  background: #f2e9f1;
  font-weight: 600;
  text-align: center;
}

.feed-pills span {
  flex: 1;
  border-radius: 999px;
  padding: 4px;
}

.feed-pills .on {
  background: #ffffff;
  color: #6a3fc0;
}

.feed-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.feed-track {
  animation: feed 16s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

.feed-post {
  padding: 0 12px 12px;
}

.feed-who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
}

.feed-who i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
}

.feed-who b {
  display: block;
  color: #24113d;
}

.feed-post img {
  width: 100%;
  border-radius: 12px;
}

.feed-acts {
  display: flex;
  gap: 12px;
  padding-top: 7px;
}

.feed-acts .end {
  margin-left: auto;
}

.feed-post:first-child .like {
  animation: like 16s linear infinite;
  transform-origin: center;
}

.feed-tabs {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #efe5ec;
  padding: 8px 6px 12px;
  background: #ffffff;
  color: #75697f;
}

.feed-tabs .on {
  color: #6a3fc0;
}

.feed-tabs .plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
}

/* Real screens taking turns in the back phone. */
.screens {
  display: grid;
}

.screens img {
  grid-area: 1 / 1;
}

.screens img + img {
  opacity: 0;
}

.screens img {
  animation: screen-turn 12s linear infinite;
}

.screens img:nth-child(2) {
  animation-delay: 6s;
}

/* Sections */
.section {
  padding-top: 96px;
}

.section-head {
  max-width: 44rem;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-head > p:last-child {
  margin-top: 14px;
  font-size: 1.1rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px 64px;
}

.about svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Features */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.card {
  grid-column: span 4;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: #d7c8f7;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card.wide {
  grid-column: span 7;
}

.card.side {
  grid-column: span 5;
}

.card h3 {
  margin-top: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
}

.card p {
  margin-top: 8px;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent);
}

.icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 0.93rem;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 18px;
}

.card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.card.feature-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 20px;
  background: var(--surface);
}

.stack {
  position: relative;
  aspect-ratio: 1.05;
  min-width: 0;
}

.stack img {
  position: absolute;
  width: 88%;
  border-radius: 16px;
  box-shadow: 0 18px 34px -18px rgba(47, 19, 112, 0.6);
  transition: transform 0.35s ease;
}

.stack img:nth-child(1) {
  top: 4%;
  left: 0;
  transform: rotate(-4deg);
}

.stack img:nth-child(2) {
  top: 30%;
  left: 12%;
  transform: rotate(2deg);
}

.stack img:nth-child(3) {
  top: 54%;
  left: 2%;
  transform: rotate(-2deg);
}

.card:hover .stack img:nth-child(1) {
  transform: rotate(-7deg) translate(-4px, -6px);
}

.card:hover .stack img:nth-child(3) {
  transform: rotate(1deg) translate(-2px, 8px);
}

/* Moods: a moving wall of real quote art. */
.wall {
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.wall-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: wall 42s linear infinite;
}

.wall:hover .wall-track {
  animation-play-state: paused;
}

.wall figure {
  position: relative;
  flex: none;
  width: min(72vw, 360px);
  margin: 0;
}

.wall img {
  width: 100%;
  border-radius: 20px;
}

.wall figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #24113d;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Screenshots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.shots-grid .section-head {
  grid-column: 1 / -1;
}

.shot {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.shot .device {
  width: 100%;
  max-width: 240px;
  transition: transform 0.3s ease;
}

.shot:hover .device {
  transform: translateY(-8px);
}

.shot figcaption {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Premium */
.premium {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  border-radius: 36px;
  padding: clamp(24px, 5vw, 56px);
  background: var(--soft);
}

.perks {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: flex;
  gap: 10px;
}

.perks li::before {
  content: "✓";
  flex: none;
  color: var(--accent);
  font-weight: 700;
}

.perks b {
  color: var(--ink);
  font-weight: 600;
}

.plans {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  background: var(--surface);
  color: var(--ink);
}

.plan.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan h3 {
  color: inherit;
  font-size: 1.05rem;
  font-weight: 700;
}

.plan small {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  opacity: 0.8;
}

.plan .tag {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--brand);
  color: #ffffff;
  font: 600 0.7rem/1.5 var(--ui);
  letter-spacing: 0;
  vertical-align: 2px;
}

.price {
  font: 800 1.9rem/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price span {
  font: 500 0.85rem/1 var(--ui);
  letter-spacing: 0;
  opacity: 0.8;
}

.plans-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero extras: the store button and the numbers under it. */
.btn.store {
  border-radius: 16px;
  padding: 11px 20px;
  background: var(--ink);
  color: #ffffff;
  text-align: left;
}

.btn.store small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.stats b {
  display: block;
  color: var(--ink);
  font: 700 1.7rem/1.1 var(--display);
}

/* Features: eight cards with the soft colourful icons. */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.fcard {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fcard:hover {
  border-color: #d7c8f7;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.fcard .soft {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

.fcard h3 {
  font: 700 1.08rem/1.25 var(--ui);
  letter-spacing: -0.01em;
}

.fcard p {
  font-size: 0.95rem;
}

.new {
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e3f6ec;
  color: #1a7a50;
  font: 700 0.68rem/1.5 var(--ui);
  letter-spacing: 0.02em;
  vertical-align: 2px;
}

/* Moods: pick a feeling, see its scene. Radio buttons, so it works without scripts. */
.moodbox {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  border-radius: 36px;
  padding: clamp(22px, 5vw, 56px);
  background: var(--soft);
  position: relative;
}

.mood-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mood-tabs label {
  border: 1px solid #ddd1f6;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mood-tabs label:hover {
  border-color: var(--accent);
}

.mood-stage {
  display: grid;
  justify-items: center;
}

.mood-art {
  grid-area: 1 / 1;
  width: min(100%, 380px);
  border-radius: 28px;
  box-shadow: 0 34px 70px -34px rgba(47, 19, 112, 0.55);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#m-love:checked ~ .mood-stage .a-love,
#m-sad:checked ~ .mood-stage .a-sad,
#m-happy:checked ~ .mood-stage .a-happy,
#m-hope:checked ~ .mood-stage .a-hope,
#m-motivation:checked ~ .mood-stage .a-motivation,
#m-lonely:checked ~ .mood-stage .a-lonely,
#m-peace:checked ~ .mood-stage .a-peace,
#m-nature:checked ~ .mood-stage .a-nature,
#m-spiritual:checked ~ .mood-stage .a-spiritual,
#m-friendship:checked ~ .mood-stage .a-friendship {
  opacity: 1;
  transform: none;
}

#m-love:checked ~ .mood-tabs [for="m-love"],
#m-sad:checked ~ .mood-tabs [for="m-sad"],
#m-happy:checked ~ .mood-tabs [for="m-happy"],
#m-hope:checked ~ .mood-tabs [for="m-hope"],
#m-motivation:checked ~ .mood-tabs [for="m-motivation"],
#m-lonely:checked ~ .mood-tabs [for="m-lonely"],
#m-peace:checked ~ .mood-tabs [for="m-peace"],
#m-nature:checked ~ .mood-tabs [for="m-nature"],
#m-spiritual:checked ~ .mood-tabs [for="m-spiritual"],
#m-friendship:checked ~ .mood-tabs [for="m-friendship"] {
  border-color: transparent;
  background: var(--brand);
  color: #ffffff;
}

#m-love:focus-visible ~ .mood-tabs [for="m-love"],
#m-sad:focus-visible ~ .mood-tabs [for="m-sad"],
#m-happy:focus-visible ~ .mood-tabs [for="m-happy"],
#m-hope:focus-visible ~ .mood-tabs [for="m-hope"],
#m-motivation:focus-visible ~ .mood-tabs [for="m-motivation"],
#m-lonely:focus-visible ~ .mood-tabs [for="m-lonely"],
#m-peace:focus-visible ~ .mood-tabs [for="m-peace"],
#m-nature:focus-visible ~ .mood-tabs [for="m-nature"],
#m-spiritual:focus-visible ~ .mood-tabs [for="m-spiritual"],
#m-friendship:focus-visible ~ .mood-tabs [for="m-friendship"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Premium: Basic, Premium and Premium+ side by side; Premium stands out. */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 40px;
}

.tier {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
}

.tier.popular {
  border-color: transparent;
  background: linear-gradient(160deg, #5a22d6, #8a3fe0);
  color: #efe7ff;
  box-shadow: 0 30px 60px -30px rgba(90, 34, 214, 0.75);
}

.tier.popular h3,
.tier.popular .price {
  color: #ffffff;
}

.tier h3 {
  color: inherit;
  font: 700 1.1rem/1.3 var(--ui);
  letter-spacing: 0;
}

.tier .tag {
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font: 700 0.7rem/1.5 var(--ui);
  vertical-align: 2px;
}

.tier .price {
  margin-top: 6px;
  color: var(--ink);
  font: 700 2.4rem/1 var(--display);
}

.tier .price span {
  font: 600 0.88rem/1 var(--ui);
  opacity: 0.75;
}

.tier small {
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.75;
}

.ticks {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  font-size: 0.95rem;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%236d2ee6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tier.popular .ticks li::before {
  background-color: rgba(255, 255, 255, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#premium .plans-note {
  margin-top: 18px;
}

#screens .shots-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
  margin: 40px auto 0;
}

/* Help page: topics, then the questions under each. */
.doc.help .faq-list {
  margin-top: 14px;
}

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.help-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.help-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 1000px) {
  .fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .tiers,
  .moodbox {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mood-art {
    transition: none;
  }
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 32px 56px;
}

.faq-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding-inline: 20px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: #d7c8f7;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  max-width: 42rem;
  padding-bottom: 18px;
}

/* Footer */
.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding-block: 36px;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot small {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--body);
}

.mail {
  overflow-wrap: anywhere;
  font-weight: 600;
}

/* Legal and help pages */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.doc {
  max-width: 46rem;
  padding-top: 32px;
}

.doc h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
}

.doc .updated {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc .intro {
  margin-top: 24px;
  color: var(--ink);
  font-size: 1.15rem;
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.doc h2 + p,
.doc h2 + ul,
.doc h2 + ol {
  margin-top: 8px;
}

.doc p + p,
.doc ul + p,
.doc p + ul {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::marker {
  color: var(--accent);
}

.note {
  margin-top: 24px;
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--soft);
  color: var(--ink);
}

/* Motion. Everything here is decoration: the page reads the same without it. */
.hero h1,
.lead,
.actions,
.soon,
.badge {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 { animation-delay: 0.05s; }
.lead { animation-delay: 0.12s; }
.actions { animation-delay: 0.19s; }
.soon { animation-delay: 0.26s; }

.blob.a { animation: drift 16s ease-in-out infinite alternate; }
.blob.b { animation: drift 20s ease-in-out infinite alternate-reverse; }

.faq-list details[open] p {
  animation: rise 0.3s ease both;
}

/* Sections slide in while scrolling; always fully readable. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes quill {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-9deg) translateY(-1px); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-5deg); }
}

@keyframes write-in {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% -2% -10% 0); }
}

@keyframes quote-flow {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: 0% 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes reveal {
  from { transform: translateY(26px); }
  to { transform: none; }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.12); }
}

@keyframes float-a {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-10px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(10px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Moves up one post at a time; the fourth post repeats the first, so it loops cleanly. */
@keyframes feed {
  0%, 26% { transform: translateY(0); }
  33%, 59% { transform: translateY(-25%); }
  66%, 92% { transform: translateY(-50%); }
  100% { transform: translateY(-75%); }
}

@keyframes like {
  0%, 8% { transform: none; color: inherit; fill: none; }
  10% { transform: scale(1.4); color: #e0245e; fill: #e0245e; }
  12%, 28% { transform: none; color: #e0245e; fill: #e0245e; }
  30%, 100% { transform: none; color: inherit; fill: none; }
}

@keyframes screen-turn {
  0%, 47% { opacity: 1; }
  50%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes wall {
  to { transform: translateX(calc(-50% - 8px)); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .phones .front { transform: rotate(-5deg); }
  .phones .back { transform: rotate(6deg); }
}

/* Small screens */
@media (max-width: 980px) {
  .nav nav {
    display: none;
  }

  .hero,
  .about,
  .faq,
  .premium {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-block: 32px 16px;
  }

  .phones {
    width: min(100%, 560px);
    min-height: 0;
    margin-inline: auto;
    aspect-ratio: 1 / 0.95;
  }

  .shots-grid {
    gap: 28px 14px;
  }

  .card,
  .card.side,
  .card.wide {
    grid-column: span 6;
  }

  .card.feature-lead {
    grid-column: 1 / -1;
  }

  .section {
    padding-top: 72px;
  }

  .foot {
    margin-top: 72px;
  }
}

@media (max-width: 620px) {
  .card,
  .card.side,
  .card.wide {
    grid-column: 1 / -1;
  }

  .card.feature-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .phones .device {
    width: 45%;
    border-width: 5px;
    border-radius: 28px;
  }

  .phones .front {
    left: 2%;
  }

  .phones .back {
    right: 2%;
  }

  .sticker.one {
    top: 70%;
    left: 0;
  }

  .sticker.two {
    bottom: 3%;
  }

  .shots-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot .device {
    max-width: 260px;
  }
}

/* Hero, same look as the Play Store feature graphic: logo and words on the
   left, two real app screens on the right. Nothing moves. */
.hero2 {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 560px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero2::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40px -20vw -40px 40%;
  background: radial-gradient(closest-side, rgba(176, 150, 245, 0.55), rgba(176, 150, 245, 0));
}
.hero2-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font: 800 clamp(2.6rem, 6vw, 4.4rem)/1 var(--ui);
  letter-spacing: -0.03em;
}
.hero2-logo img {
  width: clamp(64px, 8vw, 96px);
  height: auto;
}
.hero2 .q {
  color: #6a3de8;
}
.hero2-title {
  margin-top: 28px;
  font: 800 clamp(1.9rem, 4vw, 2.8rem)/1.15 var(--ui);
  letter-spacing: -0.02em;
}
.hero2-lead {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.hero2 .actions {
  margin-top: 30px;
}
.hero2-phones {
  position: relative;
  height: 520px;
}
.hero2-phone {
  position: absolute;
  width: 250px;
  border: 8px solid #f4f2f8;
  border-radius: 34px;
  box-shadow: 0 30px 60px -24px rgba(42, 27, 74, 0.45);
}
.hero2-phone.front {
  left: 8%;
  top: 0;
  z-index: 1;
}
.hero2-phone.back {
  left: 46%;
  top: 40px;
}
@media (max-width: 860px) {
  .hero2 {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero2-phones {
    height: 440px;
  }
  .hero2-phone {
    width: 200px;
  }
  .hero2-phone.front {
    left: 0;
  }
  .hero2-phone.back {
    left: 140px;
  }
}

/* No moving parts anywhere on the site. */
*,
*::before,
*::after {
  animation: none !important;
}
.reveal {
  opacity: 1 !important;
  transform: none !important;
}
.hero2 > * {
  min-width: 0;
}
.hero2 .actions {
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .hero2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Five app screens: one centred row on wide screens, wrapping on smaller ones. */
.shots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 22px;
}
.shots-grid .shot {
  width: 200px;
}
@media (max-width: 520px) {
  .shots-grid .shot {
    width: calc(50% - 11px);
  }
}
#screens .shots-grid {
  max-width: none;
}

/* Screens row that fits any zoom: five equal columns that shrink together. */
#screens .shots-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px clamp(12px, 2vw, 24px);
  max-width: 1180px;
}
#screens .shots-grid .shot {
  width: auto;
}
#screens .shot .device {
  max-width: 230px;
}
@media (max-width: 900px) {
  #screens .shots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #screens .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hero phones size to the window height, so both stay whole at any zoom. */
.hero2 {
  min-height: 0;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero2-phones {
  --ph: clamp(300px, calc(100vh - 210px), 520px);
  height: var(--ph);
}
.hero2-phone {
  width: auto;
  height: calc(var(--ph) - 44px);
}
.hero2-phone.front {
  left: 6%;
}
.hero2-phone.back {
  top: 44px;
  left: calc(6% + var(--ph) * 0.36);
}
@media (max-width: 860px) {
  .hero2-phones {
    --ph: 420px;
  }
  .hero2-phone.front {
    left: 0;
  }
  .hero2-phone.back {
    left: 150px;
  }
}

/* Dark mode: follows the phone or computer setting. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110d1a;
    --surface: #1b1528;
    --ink: #f3effb;
    --body: #c9c0dc;
    --muted: #a59bbb;
    --accent: #a98bff;
    --accent-deep: #8e6cff;
    --line: #2d2540;
    --soft: #1f1830;
    --brand: linear-gradient(110deg, #9d7bff, #c59bff);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
  .nav {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(27, 21, 40, 0.82);
    box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.7);
  }
  .btn.ghost {
    border-color: var(--line);
    background: rgba(27, 21, 40, 0.7);
    color: var(--ink);
  }
  .btn.store {
    background: #f3effb;
    color: #17102b;
  }
  .btn.store svg {
    fill: #17102b;
  }
  .badge {
    border-color: var(--line);
    background: rgba(27, 21, 40, 0.75);
  }
  .mood-tabs label {
    border-color: var(--line);
  }
  .hero2 .q {
    color: #a98bff;
  }
  .hero2::before {
    background: radial-gradient(closest-side, rgba(120, 90, 230, 0.35), rgba(120, 90, 230, 0));
  }
  .hero2-phone {
    border-color: #2a2338;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  }
  .shot .device,
  .device {
    border-color: #2a2338;
    box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.8);
  }
  .shot figcaption,
  .wall figcaption {
    background: var(--surface);
    color: var(--ink);
  }
  .mood-art {
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

/* Short windows (laptops at 100% zoom): each section fits on one screen. */
@media (max-height: 860px) and (min-width: 861px) {
  .section {
    padding-top: 64px;
  }
  .section h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  }
  .section-head p {
    margin-top: 8px;
  }
  #screens .shots-grid {
    margin-top: 24px;
    gap: 18px clamp(10px, 1.6vw, 20px);
  }
  #screens .shot {
    gap: 10px;
  }
  #screens .shot .device {
    max-width: min(230px, calc((100vh - 250px) * 0.45));
  }
  .tiers {
    margin-top: 22px;
  }
  .tier {
    padding: 20px 22px;
  }
  .tier .price {
    font-size: 2rem;
  }
  .ticks {
    gap: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
  }
  #premium .plans-note {
    margin-top: 10px;
  }
}
@media (max-height: 860px) and (min-width: 861px) {
  .fgrid {
    margin-top: 22px;
    gap: 12px;
  }
  .fcard {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    padding: 16px 18px;
  }
  .fcard .soft {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .fcard h3 {
    font-size: 1rem;
  }
  .fcard p {
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .moodbox {
    margin-top: 22px;
    padding: 24px 36px;
  }
  .mood-art {
    width: min(100%, 380px, calc(100vh - 330px));
  }
}
@media (max-height: 860px) and (min-width: 861px) {
  .section-head {
    max-width: none;
  }
}
@media (max-height: 860px) and (min-width: 861px) {
  .moodbox {
    padding: 20px 36px;
  }
  .mood-art {
    width: min(100%, 380px, calc(100vh - 370px));
  }
  #screens .shot .device {
    max-width: min(230px, calc((100vh - 300px) * 0.45));
  }
}

/* Hero, design A: small logo, launch badge, serif headline, trust line. */
.hero2-logo {
  gap: 10px;
  font: 800 1.6rem/1 var(--ui);
  letter-spacing: -0.02em;
}
.hero2-logo img {
  width: 38px;
}
.hero2-badge {
  margin-top: 26px;
  font-size: 0.88rem;
  font-weight: 700;
}
.hero2-title {
  margin-top: 16px;
  font: 700 clamp(2.6rem, min(6vw, 10.5vh), 4.75rem)/1.02 var(--display);
  letter-spacing: -0.03em;
}
.hero2-grad {
  display: block;
  background: linear-gradient(110deg, #5a22d6, #b14bd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero2-lead {
  margin-top: 18px;
  max-width: 34ch;
}
.hero2 .actions {
  margin-top: 28px;
}
.hero2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero2-trust li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 800;
}
@media (max-height: 760px) and (min-width: 861px) {
  .hero2-badge {
    margin-top: 16px;
  }
  .hero2-lead {
    margin-top: 12px;
  }
  .hero2 .actions {
    margin-top: 20px;
  }
  .hero2-trust {
    margin-top: 18px;
  }
}
@media (prefers-color-scheme: dark) {
  .hero2-grad {
    background-image: linear-gradient(110deg, #a98bff, #e08bff);
  }
}

/* Trademark mark after the name (application filed; ® only after registration). */
.tm {
  margin-left: 1px;
  font-size: 0.45em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  color: var(--muted);
}
.hero2-badge {
  margin-top: 0;
}

/* Hero: text sits higher; three phones (splash, write in front, mood). */
.hero2 {
  align-items: start;
  padding-top: 20px;
}
.hero2-text {
  padding-top: 28px;
}
.hero2-phones {
  width: calc(var(--ph) * 1.1);
  max-width: 100%;
  justify-self: end;
}
.hero2-phone.splash {
  left: 0;
  top: 44px;
}
.hero2-phone.front {
  left: calc(var(--ph) * 0.27);
  top: 0;
  z-index: 2;
}
.hero2-phone.back {
  left: calc(var(--ph) * 0.6);
  top: 44px;
  z-index: 1;
}
@media (max-width: 860px) {
  .hero2-phones {
    justify-self: start;
  }
}

/* Six app screens in one row on wide screens. */
#screens .shots-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  #screens .shots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #screens .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
