/* Scriptum website. One stylesheet for every page.
   Colours follow the App Store screenshots: a deep indigo night for the
   hero, soft lavender and the app's cream paper for everything else. */

/* The app's own fonts, served from this site (Latin only). */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --night: #221c44;
  --night-2: #34295f;
  --violet: #5a4a9a;
  --lavender: #efeaf7;
  --lavender-2: #e4ddf2;
  --paper: #f8f6f1;
  --card: #ffffff;
  --ink: #26232f;
  --ink-2: #4a4656;
  --muted: #6e697b;
  --line: rgba(38, 35, 47, 0.1);
  --accent: #42597d;
  --gold: #e2bd62;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 22px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------- Top bar ---------- */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px;
}
.lang a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.lang a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Light pages (legal, support) use a dark-on-light bar. */
.page-light .top {
  position: static;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-light .brand {
  color: var(--ink);
}
.page-light .lang {
  border-color: var(--line);
}
.page-light .lang a {
  color: var(--muted);
}
.page-light .lang a[aria-current="true"] {
  background: var(--lavender);
  color: var(--ink);
}

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

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(120, 98, 200, 0.55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(90, 74, 154, 0.5), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  padding: 96px 0 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.hero .wrap > * {
  min-width: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.78);
  margin: 16px 0 0;
  max-width: 30em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}
.stores a {
  display: block;
  border-radius: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.stores a:hover {
  transform: translateY(-2px);
}
.stores img {
  height: 52px;
  width: auto;
}
.hero .stores a {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 0;
}
.free-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 12px 0 0;
}

/* The phones: a scrolling row on a phone, a fan on a wide screen. */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 40px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar {
  display: none;
}
.shots img {
  flex: 0 0 auto;
  width: 62vw;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 22px;
  scroll-snap-align: center;
  box-shadow: 0 24px 60px rgba(10, 6, 30, 0.45);
}

@media (min-width: 900px) {
  .hero {
    padding-top: 120px;
  }
  .hero .wrap {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 40px;
  }
  .hero .lead {
    font-size: 18px;
    max-width: none;
  }
  .hero-copy {
    padding-bottom: 80px;
  }
  .shots {
    position: relative;
    overflow: visible;
    height: 600px;
    margin: 0;
    padding: 0;
  }
  /* The fan sits right of the column's middle, so the left phone never
     reaches the text. Each phone's pose lives in variables, so hovering
     only has to change the numbers. */
  .shots img {
    position: absolute;
    left: 70%;
    top: 70px;
    width: 250px;
    max-width: none;
    --x: 0%;
    --y: 0px;
    --r: 0deg;
    transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.9s ease;
  }
  .shots img:nth-child(1) {
    top: 10px;
    width: 270px;
    --x: -50%;
    z-index: 3;
  }
  .shots img:nth-child(2) {
    --x: -108%;
    --r: -6deg;
    z-index: 2;
    opacity: 0.92;
  }
  .shots img:nth-child(3) {
    --x: 8%;
    --r: 6deg;
    z-index: 1;
    opacity: 0.92;
  }
  .shots img:nth-child(n + 4) {
    display: none;
  }

  /* Hover: the side phones open out a little, and the one under the
     pointer rises. */
  .shots:hover img:nth-child(2) {
    --x: -114%;
    --r: -8deg;
  }
  .shots:hover img:nth-child(3) {
    --x: 14%;
    --r: 8deg;
  }
  .shots img:hover {
    --y: -14px;
    opacity: 1;
    box-shadow: 0 36px 80px rgba(10, 6, 30, 0.55);
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .shots {
    height: 520px;
  }
  .shots img {
    width: 210px;
  }
  .shots img:nth-child(1) {
    width: 228px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shots img {
    transition: none;
  }
}

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

section {
  padding: 84px 0;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.section-lead {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 34em;
  margin: 16px 0 0;
}

/* Private */
.private {
  background: linear-gradient(180deg, var(--lavender) 0%, var(--paper) 100%);
}
/* Four quiet columns on one white panel, split by hairlines. */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 44px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px rgba(52, 41, 95, 0.07);
}
.pillar {
  padding: 30px 28px;
}
.pillar + .pillar {
  border-top: 1px solid var(--line);
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--accent);
  margin-bottom: 18px;
}
.pillar-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.pillar p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillar + .pillar {
    border-top: 0;
  }
  .pillar:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .pillar:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 1000px) {
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pillar {
    padding: 36px 30px;
  }
  .pillar:nth-child(n + 3) {
    border-top: 0;
  }
  .pillar + .pillar {
    border-left: 1px solid var(--line);
  }
}

/* Feature rows: screenshot beside text, alternating on wide screens. */
/* On a phone the hero already shows the screenshots, so the three rows
   would only add scrolling: they show from tablet width up. */
@media (max-width: 699px) {
  .features {
    display: none;
  }
}
.features {
  padding-top: 40px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 44px 0;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature figure {
  margin: 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(160deg, var(--lavender) 0%, var(--lavender-2) 100%);
  border-radius: 28px;
  padding: 28px 0 0;
  overflow: hidden;
  max-height: 520px;
}
.feature figure img {
  width: 72%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 18px 50px rgba(52, 41, 95, 0.22);
  object-fit: cover;
  object-position: top;
}
.feature ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.feature li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: var(--ink-2);
}
.feature li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.7;
}
.feature p {
  color: var(--ink-2);
  margin: 12px 0 0;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 64px 0;
  }
  .feature:nth-child(even) figure {
    order: 2;
  }
}

/* Gallery: every screenshot in one swipeable row. */
/* Try a page: a diary page visitors can write on. Nothing is stored. */
.try {
  background: var(--lavender);
  text-align: center;
}
.try .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.try-page {
  text-align: left;
}
.try-page {
  position: relative;
  max-width: 620px;
  margin: 36px auto 0;
  background: var(--paper);
  border-radius: 28px;
  padding: 28px 24px 18px;
  box-shadow: 0 30px 70px rgba(52, 41, 95, 0.16), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}
@media (min-width: 600px) {
  .try-page {
    padding: 36px 40px 22px;
  }
}
.try-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.try-date {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}
.try-weekday {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  margin: 2px 0 0;
}
.try-lock {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.try-lock:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(52, 41, 95, 0.14);
}
.try-lock svg,
.try-locked > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.try-moods {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.try-moods button {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.try-moods button:hover {
  color: var(--accent);
}
.try-moods button[aria-pressed="true"] {
  background: rgba(66, 89, 125, 0.12);
  color: var(--accent);
  transform: scale(1.08);
}
.try-moods svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.try-moods svg .eye {
  fill: currentColor;
  stroke: none;
}
.try-question {
  margin-top: 18px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  box-shadow: 0 6px 18px rgba(52, 41, 95, 0.06);
}
.try-question p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  margin: 0;
  transition: opacity 0.35s ease;
}
.try-question p.is-changing {
  opacity: 0;
}
.try-question button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(66, 89, 125, 0.35);
}
.try-page textarea {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: transparent;
  resize: none;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  outline: none;
  min-height: 190px;
  transition: filter 0.6s ease;
}
.try-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.try-finish {
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 10px 24px rgba(66, 89, 125, 0.28);
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}
.try-finish:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(66, 89, 125, 0.34);
}
.try-finish:disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: default;
}
.try-page.is-finished .try-finish {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* Finished: the page glows once, and a gold seal is pressed onto it. */
.try-page.is-finished {
  animation: try-bloom 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes try-bloom {
  0% {
    box-shadow: 0 30px 70px rgba(52, 41, 95, 0.16), 0 0 0 0 rgba(226, 189, 98, 0);
  }
  35% {
    box-shadow: 0 30px 90px rgba(90, 74, 154, 0.3), 0 0 0 10px rgba(226, 189, 98, 0.28);
  }
  100% {
    box-shadow: 0 30px 70px rgba(52, 41, 95, 0.16), 0 0 0 1px rgba(226, 189, 98, 0.5);
  }
}
.try-seal {
  position: absolute;
  right: 22px;
  bottom: 70px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d98f, var(--gold) 60%, #c9a24a);
  box-shadow: 0 10px 26px rgba(160, 120, 30, 0.35), inset 0 -3px 6px rgba(120, 80, 10, 0.25);
  color: #fff;
  opacity: 0;
  transform: scale(1.6) rotate(-24deg);
  pointer-events: none;
}
.try-seal svg {
  position: absolute;
  inset: 0;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.try-seal .ring {
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.7;
}
.try-seal .check {
  stroke-width: 4;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transform: translateY(-6px);
}
.try-seal span {
  position: relative;
  margin-top: 46px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.try-seal i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
}
.try-seal i:nth-of-type(even) {
  background: var(--violet);
  width: 5px;
  height: 5px;
}
.try-page.is-finished .try-seal {
  animation: try-stamp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.try-page.is-finished .try-seal .check {
  animation: try-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
}
.try-page.is-finished .try-seal i {
  animation: try-spark 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.try-seal i:nth-of-type(1) { --dx: -70px; --dy: -40px; }
.try-seal i:nth-of-type(2) { --dx: -20px; --dy: -78px; }
.try-seal i:nth-of-type(3) { --dx: 40px; --dy: -66px; }
.try-seal i:nth-of-type(4) { --dx: -78px; --dy: 18px; }
.try-seal i:nth-of-type(5) { --dx: -48px; --dy: -70px; }
.try-seal i:nth-of-type(6) { --dx: 10px; --dy: -90px; }
@keyframes try-stamp {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-24deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.94) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
}
@keyframes try-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes try-spark {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
}
.try-count {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.try-page.is-locked > :not(.try-locked) {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}
.try-page > * {
  transition: filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.try-locked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(248, 246, 241, 0.55);
  color: var(--ink);
  animation: try-fade 0.6s ease both;
}
.try-locked[hidden] {
  display: none;
}
.try-locked > svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.try-locked-title {
  font-family: var(--serif);
  font-size: 28px;
  margin: 10px 0 4px;
}
.try-locked p {
  max-width: 24em;
  margin: 0;
  color: var(--ink-2);
}
.try-locked button {
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  cursor: pointer;
}
@keyframes try-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .try-locked,
  .try-page.is-finished,
  .try-page.is-finished .try-seal i {
    animation: none;
  }
  .try-page.is-finished .try-seal {
    animation: none;
    opacity: 1;
    transform: rotate(-10deg);
  }
  .try-page.is-finished .try-seal .check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Languages */
.languages {
  text-align: center;
}
.languages .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.lang-cloud {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}
.lang-cloud li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 15px;
}

/* Closing call */
.closing {
  color: #fff;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(120, 98, 200, 0.45), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
}
.closing h2 {
  color: #fff;
}
.closing p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 30em;
  margin: 16px auto 0;
}
.closing .stores {
  justify-content: center;
}
.closing .stores a {
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

/* Footer */
footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  padding: 32px 0 40px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}

/* Language suggestion for visitors whose phone is set to the other language. */
.suggest {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 12px 12px 18px;
  box-shadow: 0 16px 40px rgba(20, 14, 50, 0.25);
  font-size: 15px;
}
.suggest[hidden] {
  display: none;
}
.suggest a {
  margin-left: auto;
  background: var(--night-2);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 7px 12px;
  white-space: nowrap;
}
.suggest button {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

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

.doc {
  padding: 56px 0 88px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 8px;
}
.doc h2 {
  font-size: 28px;
  margin: 44px 0 10px;
}
.doc h3 {
  font-size: 21px;
  margin: 28px 0 6px;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc .updated {
  color: var(--muted);
  font-size: 15px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px 9px 0;
}
.doc .table-wrap {
  overflow-x: auto;
}

/* Comparison page: one white table, the Scriptum column softly lit. */
.compare .wrap {
  max-width: 960px;
}
.compare-lead {
  font-size: 19px;
  max-width: 40em;
}
.compare .table-wrap {
  margin: 32px 0 8px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(52, 41, 95, 0.07);
}
.compare-table {
  min-width: 640px;
  margin: 0;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
}
.compare-table thead th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  color: var(--ink);
  padding-top: 22px;
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}
.compare-table td {
  color: var(--ink-2);
  width: 26%;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table .us {
  background: rgba(239, 234, 247, 0.6);
}
.compare-table thead .us {
  border-radius: 16px 16px 0 0;
  color: var(--violet);
}
.compare-table .yes,
.compare-table .no,
.compare-table .none {
  font-weight: 600;
}
.compare-table .yes {
  color: #4f8a64;
}
.compare-table .no,
.compare-table .none {
  color: var(--muted);
}
.compare h2 {
  font-family: var(--serif);
  font-weight: 400;
}
/* Price cells: what is free, then one plan per line, price on the right. */
.price {
  display: grid;
  gap: 6px;
}
.price-free {
  font-weight: 600;
  color: var(--ink);
}
.price-plan {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.price-plan b {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.price small {
  font-size: 13px;
  color: var(--muted);
}

/* On a phone the table scrolls sideways; the row names stay put. */
@media (max-width: 699px) {
  .compare-table {
    min-width: 600px;
  }
  .compare-table tbody th,
  .compare-table thead td {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--card);
    width: 110px;
    box-shadow: 1px 0 0 var(--line);
  }
}
.compare-cta {
  margin-top: 44px;
  padding: 28px;
  border-radius: 24px;
  background: var(--lavender);
}
.compare-cta p {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
}
.compare-cta .stores {
  margin-top: 16px;
}

/* Support questions */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
  margin: 12px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 21px;
  padding: 18px 28px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--sans);
  font-size: 24px;
  color: var(--violet);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 16px;
}
.faq details p {
  margin: 0 0 10px;
}
.contact-card {
  margin-top: 36px;
  background: var(--lavender);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.contact-card p {
  margin: 0;
}
.contact-card a {
  font-weight: 600;
}

/* Not found */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound p {
  color: var(--ink-2);
}

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