/* Booktail landing v2, reading-journal style shared with the store promo.
   Mobile first; desktop layout from 960px, two-column hero from 1180px. */

:root {
  --ink: #633e30;
  --muted: #735d51;
  --muted-warm: #6d5446;
  --page: #f6e8d5;
  --card: #fff9ef;
  --paper: #fffaf0;
  --soft: #f2e6d5;
  --line: #e1d1c2;
  --line-soft: #efe2d3;
  /* Carries light text; at 3.1:1 it clears the bar for large text only, which the owner accepted. */
  --coral: #e85c58;
  --amber: #f2ac5a;
  --amber-strong: #f4ad46;
  --highlight: #f5e2b8;
  --highlight-line: #ecd3a3;
  /* Small accent text; --accent-large is lighter and only passes contrast from 24px up, or on icons. */
  --accent: #b0473f;
  --accent-large: #b36248;
  --cream: #faf2e9;
  --band: #4d250e;
  --note: #e4b482;
  --tape: rgba(216, 182, 115, 0.88);
  --bezel: #bd8069;
  --grid-line: rgba(182, 143, 108, 0.16);
  --font-display: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-card: 26px;
  --gutter: 20px;
  --shadow-float: 0 10px 22px rgba(99, 62, 48, 0.12);
  --shadow-paper: 0 20px 40px rgba(99, 62, 48, 0.14);
  --shadow-note: 0 16px 26px rgba(99, 62, 48, 0.24);
  --paper-grid:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}

@media (min-width: 960px) {
  :root {
    --radius-card: 30px;
    --gutter: 72px;
  }
}

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

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

body {
  margin: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Second half of a two-tone heading, as in the store promo. */
.title-accent {
  color: var(--accent-large);
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--card);
}

.skip-link:focus {
  left: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-coral {
  background-color: var(--coral);
  color: var(--cream);
}

.btn-coral:hover {
  background-color: #dd5450;
}

.btn-brown {
  border-radius: 15px;
  background-color: var(--ink);
  color: var(--cream);
}

.store-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  border-radius: 14px;
  background-color: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.store-badge:hover {
  background-color: #5e3016;
  transform: translateY(-2px);
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.store-badge small {
  font-size: 10px;
  opacity: 0.75;
}

.store-badge strong {
  font-size: 15.5px;
  font-weight: 600;
}

@media (min-width: 960px) {
  .store-badges {
    display: flex;
    gap: 14px;
  }

  .store-badge {
    height: auto;
    gap: 11px;
    padding: 12px 24px;
    border-radius: 15px;
  }

  .store-badge small {
    font-size: 11px;
  }

  .store-badge strong {
    font-size: 18px;
  }
}

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

.site-header {
  position: relative;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-download {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background-color: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.js .menu-toggle {
  display: inline-flex;
}

.site-header.is-open .nav-links {
  position: absolute;
  top: calc(100% - 4px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background-color: var(--card);
  box-shadow: var(--shadow-float);
}

.site-header.is-open .nav-links a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
}

.site-header.is-open .nav-links a:hover {
  background-color: var(--soft);
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background-color: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.lang-menu summary svg {
  display: none;
}

.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background-color: var(--card);
  box-shadow: var(--shadow-float);
  list-style: none;
}

.lang-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
}

.lang-menu a:hover {
  background-color: var(--soft);
}

.lang-menu a[aria-current] {
  background-color: var(--coral);
  color: var(--cream);
  font-weight: 700;
}

@media (min-width: 960px) {
  .nav {
    gap: 40px;
    padding-block: 22px;
  }

  .brand {
    gap: 10px;
    font-size: 25px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-links {
    display: flex;
    gap: 34px;
    color: var(--muted);
    font-size: 15px;
  }

  .nav-links a {
    position: relative;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  /* The underline grows from the left on hover; the reduced-motion rule above makes it instant. */
  .nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--ink);
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    transform: scaleX(1);
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-download {
    display: inline-flex;
  }

  .js .menu-toggle {
    display: none;
  }

  .lang-menu summary {
    height: 40px;
  }

  .lang-menu summary svg {
    display: block;
  }
}

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

.section {
  padding-bottom: 64px;
}

.section-tight {
  padding-bottom: 22px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.1;
}

.section-head .lead {
  color: var(--muted);
  font-size: 16px;
}

.section-head.split h2 {
  font-size: 32px;
  line-height: 1.12;
}

.icon-tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background-color: var(--soft);
  color: var(--accent-large);
}

.tone-highlight .icon-tile {
  background-color: var(--card);
}

/* ---------- Journal pieces: phone, tape, sticky note, paper ---------- */

.phone {
  position: relative;
  flex-shrink: 0;
  width: var(--phone-width, 226px);
  padding: 8px;
  border-radius: 34px;
  background-color: var(--bezel);
  box-shadow: 0 24px 44px rgba(99, 62, 48, 0.24);
}

.phone img {
  width: 100%;
  border-radius: 26px;
}

.phone::before,
.clipping::before,
.lined-note::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  z-index: 1;
  width: 50%;
  height: 32px;
  background-color: var(--tape);
  clip-path: polygon(2% 0, 98% 0, 100% 14%, 97% 30%, 100% 46%, 97% 62%, 100% 78%, 98% 100%, 2% 100%, 0 86%, 3% 70%, 0 54%, 3% 38%, 0 22%);
  transform: translateX(-50%) rotate(-5deg);
}

.tilt-left {
  transform: rotate(-3deg);
}

.tilt-right {
  transform: rotate(3deg);
}

.tilt-left::before {
  transform: translateX(-50%) rotate(5deg);
}

.sticky-note {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 160px;
  padding: 14px 14px 13px;
  background-color: var(--note);
  box-shadow: var(--shadow-note);
  color: var(--ink);
  transform: rotate(-7deg);
}

.sticky-note strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.12;
}

.sticky-note span {
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 960px) {
  .phone {
    border-radius: 38px;
  }

  .phone img {
    border-radius: 30px;
  }

  .phone::before,
  .clipping::before,
  .lined-note::before {
    top: -20px;
    height: 36px;
  }

  .sticky-note {
    width: 196px;
    padding: 18px 18px 17px;
  }

  .sticky-note strong {
    font-size: 23px;
  }

  .sticky-note span {
    font-size: 14px;
  }
}

@media (min-width: 960px) {
  .section {
    padding-bottom: 96px;
  }

  .section-tight {
    padding-bottom: 26px;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 44px;
  }

  .section-head.center {
    align-items: center;
    text-align: center;
  }

  .eyebrow {
    font-size: 13px;
  }

  .section-head h2 {
    font-size: 48px;
  }

  .section-head .lead {
    max-width: 660px;
    font-size: 18px;
  }

  .section-head.split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
  }

  .section-head.split h2 {
    max-width: 620px;
    font-size: 44px;
    line-height: 1.14;
  }

  .section-head.split .lead {
    max-width: 400px;
    font-size: 17px;
  }

  .icon-tile {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

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

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 22px 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background-color: var(--card);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #7fa87a;
}

.hero-title {
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.highlight {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 14px 6px;
  border-radius: 12px;
  background-color: var(--coral);
  color: var(--cream);
  transform: rotate(-1.2deg);
}

.hero-lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 16.5px;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* Grid paper behind the header and hero of the home page, fading out below. */
.page-home {
  position: relative;
  isolation: isolate;
}

.page-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 1180px;
  background-image: var(--paper-grid);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
  pointer-events: none;
}

.hero-art {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 350px;
  height: 540px;
  margin-top: 12px;
}

.paper-sheet {
  position: absolute;
  top: 44px;
  left: 50%;
  width: 300px;
  height: 430px;
  margin-left: -150px;
  background-color: var(--paper);
  box-shadow: var(--shadow-paper);
  transform: rotate(-5deg);
}

.hero-phone {
  position: absolute;
  top: 22px;
  left: 50%;
  --phone-width: 242px;
  margin-left: -113px;
}

.hero-note {
  bottom: 34px;
  left: -6px;
  width: 184px;
}

.hero-note strong {
  font-size: 23px;
}

@media (min-width: 1180px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    align-items: center;
    gap: 40px;
    padding-block: 40px 84px;
  }

  .hero-copy {
    gap: 26px;
  }

  .chip {
    gap: 9px;
    padding: 8px 18px 8px 12px;
    font-size: 13.5px;
  }

  .chip .dot {
    width: 8px;
    height: 8px;
  }

  .hero-title {
    font-size: clamp(58px, 4.9vw, 70px);
    line-height: 1.03;
  }

  .highlight {
    padding: 2px 18px 8px;
    border-radius: 14px;
  }

  .hero-lead {
    max-width: 545px;
    font-size: 19px;
    line-height: 1.62;
  }

  .hero-art {
    max-width: none;
    height: 640px;
    margin: 0;
  }

  .paper-sheet {
    top: 44px;
    left: 34px;
    width: 452px;
    height: 540px;
    margin: 0;
  }

  .hero-phone {
    top: 18px;
    left: 124px;
    --phone-width: 302px;
    margin: 0;
  }

  .hero-note {
    bottom: 40px;
    left: -44px;
    width: 236px;
    padding: 22px 22px 20px;
  }

  .hero-note strong {
    font-size: 28px;
  }

  .page-home::before {
    height: 1000px;
    background-size: 28px 28px;
  }
}

/* ---------- Buddies ---------- */

.buddies {
  display: flex;
  gap: 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.buddies::-webkit-scrollbar {
  display: none;
}

.buddy-card {
  display: flex;
  flex: 0 0 276px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 22px 26px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
  text-align: center;
  scroll-snap-align: start;
}

.buddy-portrait {
  position: relative;
  width: 150px;
  height: 150px;
}

.buddy-portrait::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background-color: var(--highlight);
}

.buddy-portrait img {
  position: relative;
  width: 146px;
  height: 146px;
  margin: 2px;
}

.buddy-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.buddy-name {
  font-size: 25px;
  line-height: 1.2;
}

.buddy-species {
  color: var(--muted);
  font-size: 13px;
}

.bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background-color: var(--page);
}

.bubble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background-color: var(--page);
  transform: rotate(45deg);
}

.bubble strong {
  position: relative;
  font-size: 15px;
  font-weight: 600;
}

.bubble span {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--line);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel-dots span.is-active {
  width: 20px;
  background-color: var(--accent);
}

@media (min-width: 960px) {
  .buddies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .buddy-card {
    gap: 18px;
    padding: 30px 30px 34px;
  }

  .buddy-portrait {
    width: 170px;
    height: 170px;
  }

  .buddy-portrait::before {
    inset: 14px;
  }

  .buddy-portrait img {
    width: 164px;
    height: 164px;
    margin: 3px;
  }

  .buddy-name {
    font-size: 27px;
  }

  .buddy-species {
    font-size: 13.5px;
  }

  .bubble {
    gap: 5px;
    padding: 16px 20px;
    border-radius: 20px;
  }

  .bubble strong {
    font-size: 16px;
  }

  .bubble span {
    font-size: 15px;
  }

  .carousel-dots {
    display: none;
  }
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  gap: 22px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 34px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
}

/* Cards with a phone have a fixed height, so the phone runs off the bottom edge. */
.feature-card.has-phone {
  height: 580px;
  padding-bottom: 0;
}

.feature-card.tone-highlight {
  border-color: var(--highlight-line);
  background-color: var(--highlight);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card h3 {
  font-size: 25px;
  line-height: 1.2;
}

.feature-card p {
  color: var(--muted);
  font-size: 15.5px;
}

.feature-card.tone-highlight p {
  color: var(--muted-warm);
}

.feature-card .phone {
  align-self: center;
  margin-top: 26px;
}

.feature-art {
  display: flex;
  justify-content: center;
}

/* A cut-out of the book-in-progress card, taped into the journal. */
.clipping {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-top: 26px;
  padding: 10px;
  background-color: var(--paper);
  box-shadow: var(--shadow-paper);
  transform: rotate(2.5deg);
}

.clipping img {
  border-radius: 12px;
}

.lined-note {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 290px;
  margin: 28px 0 0;
  padding: 30px 22px 26px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 29px, rgba(176, 71, 63, 0.16) 29px, rgba(176, 71, 63, 0.16) 30px);
  box-shadow: var(--shadow-paper);
  transform: rotate(-2.5deg);
}

.lined-note::before {
  transform: translateX(-50%) rotate(3deg);
}

.lined-note blockquote {
  margin: 0;
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  line-height: 30px;
}

.lined-note figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.feature-note {
  right: 10px;
  bottom: 28px;
  width: 150px;
  transform: rotate(6deg);
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 560px;
    gap: 26px;
  }

  .feature-card {
    gap: 14px;
    padding: 40px 36px 0;
  }

  .feature-card.has-phone {
    height: auto;
  }

  .feature-text {
    gap: 14px;
  }

  .feature-card h3 {
    font-size: 26px;
  }

  .feature-card p {
    font-size: 16px;
  }

  .feature-card .phone {
    --phone-width: 252px;
  }

  .lined-note {
    max-width: 300px;
    margin-top: 30px;
    padding: 34px 26px 30px;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(176, 71, 63, 0.16) 31px, rgba(176, 71, 63, 0.16) 32px);
  }

  .lined-note blockquote {
    font-size: 21px;
    line-height: 32px;
  }

  .lined-note figcaption {
    font-size: 13.5px;
  }

  .feature-note {
    right: 16px;
    bottom: 34px;
    width: 176px;
  }

  .feature-note strong {
    font-size: 21px;
  }

  .feature-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 20px;
    padding: 0 0 0 44px;
  }

  .feature-wide.reverse {
    grid-template-columns: 380px minmax(0, 1fr);
    padding: 0 44px 0 0;
  }

  .feature-wide.reverse .feature-art {
    order: -1;
  }

  .feature-wide h3 {
    font-size: 30px;
  }

  .feature-wide p {
    max-width: 400px;
    font-size: 16.5px;
  }

  .feature-art {
    align-self: stretch;
    align-items: center;
  }

  .feature-wide.has-phone .feature-art {
    align-items: flex-start;
  }

  .feature-wide .phone {
    margin-top: 64px;
    --phone-width: 266px;
  }

  .clipping {
    max-width: 366px;
    margin: 0;
    padding: 12px;
  }

  .clipping img {
    border-radius: 14px;
  }
}

/* ---------- Lock screen band ---------- */

.lock-band {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 22px 26px;
  border-radius: 28px;
  background-color: var(--band);
  color: var(--cream);
}

.lock-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lock-band .eyebrow {
  color: var(--amber);
}

.lock-band h2 {
  font-size: 30px;
  line-height: 1.14;
}

.lock-band .lead {
  color: #d8c4b0;
  font-size: 15.5px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #d8c4b0;
  font-size: 14px;
}

.platforms span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.platforms svg {
  color: var(--amber);
}

.lock-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.island {
  display: none;
}

.lock-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid #6a3d21;
  border-radius: 22px;
  background-color: #2e1a0d;
}

.lock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.lock-card-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b39a85;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lock-card-app img {
  width: 20px;
  height: 20px;
}

.lock-card-now {
  color: #b39a85;
}

.lock-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lock-cover {
  flex-shrink: 0;
  width: 46px;
  height: 66px;
  border-radius: 5px;
  background-color: var(--highlight);
}

.lock-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lock-title {
  font-size: 15px;
  font-weight: 600;
}

.lock-timer {
  color: var(--amber-strong);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.lock-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background-color: #4a2b18;
}

.lock-progress span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 999px;
  background-color: var(--amber-strong);
}

.lock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lock-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  background-color: #4a2b18;
  font-size: 14px;
  font-weight: 600;
}

.lock-actions span:last-child {
  background-color: var(--coral);
  color: var(--cream);
}

@media (min-width: 960px) {
  .lock-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: center;
    gap: 60px;
    padding: 62px 66px;
    border-radius: 36px;
  }

  .lock-copy {
    gap: 24px;
  }

  .lock-band .eyebrow {
    font-size: 13px;
  }

  .lock-band h2 {
    font-size: 44px;
  }

  .lock-band .lead {
    max-width: 470px;
    font-size: 17.5px;
  }

  .platforms {
    gap: 26px;
    margin-top: 6px;
    font-size: 15px;
  }

  .island {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 18px;
    border-radius: 999px;
    background-color: #14100d;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
  }

  .island svg {
    color: var(--amber);
  }

  .island-cover {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background-color: var(--coral);
  }

  .lock-card {
    gap: 18px;
    padding: 22px 24px;
    border-radius: 26px;
  }

  .lock-card-top {
    font-size: 13px;
  }

  .lock-card-app img {
    width: 22px;
    height: 22px;
  }

  .lock-cover {
    width: 54px;
    height: 78px;
    border-radius: 6px;
  }

  .lock-title {
    font-size: 16px;
  }

  .lock-timer {
    font-size: 34px;
  }

  .lock-progress {
    height: 6px;
  }

  .lock-actions {
    gap: 10px;
  }

  .lock-actions span {
    border-radius: 13px;
  }
}

/* ---------- Showcase: Book of the Year, Series ---------- */

.showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
}

.showcase.tone-highlight {
  border-color: var(--highlight-line);
  background-color: var(--highlight);
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-title h3 {
  font-size: 28px;
}

.showcase-copy > p {
  color: var(--muted);
  font-size: 15.5px;
}

.showcase.tone-highlight .showcase-copy > p {
  color: var(--muted-warm);
}

.stats-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 16px;
  border-block: 1.5px solid var(--line-soft);
}

.stats-3 > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1.5px solid var(--line-soft);
}

.stats-3 > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.tone-highlight .stats-3,
.tone-highlight .stats-3 > div {
  border-color: #e6cf9f;
}

.stats-3 strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.stats-3.words strong {
  font-size: 18px;
}

.stats-3 span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tone-highlight .stats-3 span {
  color: var(--muted-warm);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.showcase-art {
  position: relative;
  display: flex;
  justify-content: center;
  height: 440px;
  margin-top: 6px;
}

.showcase-art::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  border-radius: 58% 42% 46% 54% / 46% 54% 46% 54%;
  background-color: var(--highlight);
}

.showcase.tone-highlight .showcase-art::before {
  border-radius: 44% 56% 52% 48% / 52% 46% 54% 48%;
  background-color: var(--card);
}

.showcase-art .phone {
  align-self: flex-start;
  margin-top: 24px;
  --phone-width: 230px;
}

.showcase-note {
  bottom: 26px;
  left: -8px;
}

@media (min-width: 960px) {
  .showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 56px;
    padding: 44px 58px;
    border-radius: 36px;
  }

  .showcase.reverse {
    grid-template-columns: 440px minmax(0, 1fr);
  }

  .showcase.reverse .showcase-art {
    order: -1;
  }

  .showcase-copy {
    gap: 20px;
  }

  .showcase-title {
    gap: 12px;
  }

  .showcase-title h3 {
    font-size: 34px;
  }

  .showcase-copy > p {
    max-width: 520px;
    font-size: 16.5px;
  }

  .stats-3 {
    max-width: 520px;
    margin-top: 4px;
    padding-block: 22px;
  }

  .stats-3 > div {
    gap: 3px;
    padding-left: 24px;
  }

  .stats-3 strong {
    font-size: 30px;
  }

  .stats-3.words strong {
    font-size: 22px;
  }

  .stats-3 span {
    font-size: 13.5px;
  }

  .chips {
    gap: 10px;
  }

  .chips span {
    padding: 8px 16px;
    font-size: 13.5px;
  }

  .showcase-art {
    align-items: center;
    height: 580px;
    margin: 0;
  }

  .showcase-art::before {
    top: 100px;
    width: 380px;
    height: 380px;
    margin-left: -190px;
  }

  .showcase-art .phone {
    align-self: center;
    margin-top: 0;
    --phone-width: 286px;
  }

  .showcase-note {
    bottom: 54px;
    left: -18px;
  }
}

/* ---------- Small features ---------- */

.mini-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 6px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
  list-style: none;
}

.mini {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1.5px solid var(--line-soft);
}

.mini:last-child {
  border-bottom: 0;
}

.mini .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.mini-accent .icon-tile {
  background-color: var(--highlight);
}

.mini-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini h3 {
  font-size: 19px;
  line-height: 1.3;
}

.mini p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (min-width: 960px) {
  .mini-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .mini,
  .mini:last-child {
    flex-direction: column;
    gap: 13px;
    padding: 30px 28px;
    border: 1.5px solid var(--line);
    border-radius: 24px;
    background-color: var(--card);
  }

  .mini .icon-tile {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .mini-accent,
  .mini-accent:last-child {
    border-color: var(--highlight-line);
    background-color: var(--highlight);
  }

  .mini-accent p {
    color: var(--muted-warm);
  }

  .mini-accent .icon-tile {
    background-color: var(--card);
  }

  .mini-text {
    gap: 13px;
  }

  .mini h3 {
    font-size: 21px;
  }

  .mini p {
    font-size: 15.5px;
    line-height: 1.6;
  }
}

/* ---------- Personalisation ---------- */

.personal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 22px;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background-color: var(--card);
}

.personal-top,
.personal-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.personal h2 {
  font-size: 30px;
  line-height: 1.14;
}

.personal .lead {
  color: var(--muted);
  font-size: 15.5px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatches span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.swatches img {
  width: 54px;
  transform: rotate(-8deg);
}

.sw-coral { background-color: var(--coral); }
.sw-amber { background-color: var(--amber); }
.sw-sage { background-color: #7fa87a; }
.sw-blue { background-color: #6f7fb3; }
.sw-brown { background-color: var(--ink); }

.stats-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line-soft);
}

.stats-6 > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stats-6 strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.stats-6 span {
  color: var(--muted);
  font-size: 12.5px;
}

@media (min-width: 960px) {
  .personal {
    gap: 34px;
    padding: 58px 62px;
    border-radius: 36px;
  }

  .personal-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 60px;
  }

  .personal h2 {
    font-size: 42px;
  }

  .personal .lead {
    max-width: 480px;
    font-size: 17px;
  }

  .swatches {
    justify-content: flex-end;
    gap: 14px;
  }

  .swatches span {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .swatches img {
    width: 76px;
  }

  .stats-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: 30px;
  }

  .stats-6 > div {
    gap: 4px;
    padding-left: 26px;
    border-left: 1.5px solid var(--line-soft);
  }

  .stats-6 > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stats-6 strong {
    font-size: 32px;
  }

  .stats-6 span {
    font-size: 13.5px;
  }
}

/* ---------- Call to action ---------- */

/* A taped journal page on grid paper. */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-top: 56px;
  padding-bottom: 84px;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--paper-grid);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
  padding: 48px 22px 46px;
  background-color: var(--paper);
  box-shadow: var(--shadow-paper);
  text-align: center;
  transform: rotate(-1deg);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 100px;
  height: 30px;
  background-color: var(--tape);
  clip-path: polygon(2% 0, 98% 0, 100% 14%, 97% 30%, 100% 46%, 97% 62%, 100% 78%, 98% 100%, 2% 100%, 0 86%, 3% 70%, 0 54%, 3% 38%, 0 22%);
}

/* On phones the tape stays inside the page gutter, or it would widen the page. */
.cta::before {
  left: -10px;
  transform: rotate(-32deg);
}

.cta::after {
  right: -10px;
  transform: rotate(32deg);
}

.cta img {
  width: 82px;
}

.cta h2 {
  max-width: 720px;
  font-size: 30px;
  line-height: 1.16;
}

.cta .store-badges {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 240px;
}

.cta-note {
  color: var(--muted);
  font-size: 13px;
}

.cta-sticky {
  top: -30px;
  right: -6px;
  width: 150px;
  transform: rotate(7deg);
}

@media (min-width: 960px) {
  .cta-band {
    padding-top: 72px;
    padding-bottom: 120px;
  }

  .cta-band::before {
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  }

  .cta {
    gap: 26px;
    padding: 66px 60px 70px;
  }

  .cta::before,
  .cta::after {
    top: -14px;
    width: 140px;
    height: 38px;
  }

  .cta::before {
    left: -30px;
  }

  .cta::after {
    right: -30px;
  }

  .cta .store-badges {
    max-width: none;
  }

  .cta-sticky {
    top: -34px;
    right: 64px;
    width: 210px;
  }

  .cta img {
    width: 104px;
  }

  .cta h2 {
    font-size: 46px;
    line-height: 1.14;
  }

  .cta .store-badges {
    width: auto;
    margin-top: 4px;
  }

  .cta-note {
    font-size: 14.5px;
  }
}

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

.site-footer {
  border-top: 1.5px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  transition: background-color 0.15s ease;
}

.social a:hover {
  background-color: var(--card);
}

.social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(30%) saturate(600%) hue-rotate(350deg) brightness(95%) contrast(90%);
  opacity: 0.8;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 30px;
  padding-block: 20px 30px;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

@media (min-width: 960px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    padding-top: 56px;
  }

  .footer-brand .brand img {
    width: 42px;
    height: 42px;
  }

  .footer-brand .brand {
    font-size: 23px;
  }

  .social {
    gap: 12px;
  }

  .social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .footer-heading {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 16px;
    padding-block: 24px 40px;
    border-top: 0;
    font-size: 13.5px;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: calc(900px + var(--gutter) * 2);
  padding-block: 12px 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.legal-head {
  margin: 16px 0 32px;
  text-align: center;
}

.legal-head h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-meta {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.legal-body {
  padding: 28px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--card);
}

.legal-body h2 {
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
  font-size: 24px;
  line-height: 1.25;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.legal-body table {
  display: block;
  width: 100%;
  margin: 16px 0 20px;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background-color: var(--soft);
  color: var(--ink);
  font-weight: 600;
}

.legal-body .highlight-box {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background-color: var(--highlight);
}

.legal-body .highlight-box p:last-child {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .legal-head h1 {
    font-size: 44px;
  }

  .legal-body {
    padding: 48px;
  }

  .legal-body h2 {
    font-size: 28px;
  }
}

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

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-block: 64px 96px;
  text-align: center;
}

.not-found img {
  width: 120px;
}

.not-found h1 {
  font-size: 34px;
}

.not-found p {
  max-width: 440px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .not-found h1 {
    font-size: 48px;
  }
}
