/* Momento website. Tokens mirror the app's palette (global.css / lib/palette.ts). */

:root {
  --ivory: #fff8f3;
  --card: #fff8f3;
  --ink: #211012;
  --ink-soft: #705656;
  --berry: #641f2d;
  --on-berry: #fff8f3;
  --brass: #c5a363;
  --blush: #fbece4;
  --hairline: rgb(199 177 177 / 0.35);
  --field: rgb(33 16 18 / 0.46);
  --focus: rgb(100 31 45 / 0.4);
  --bezel: #211012;
  --danger: #e7000b;
  --shadow: 0 30px 60px -28px rgb(33 16 18 / 0.45), 0 12px 24px -16px rgb(33 16 18 / 0.25);

  --serif: "Instrument Serif", "Amiri", Georgia, serif;
  --sans: "Work Sans", "Noto Sans Arabic", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 72px);
  --max: 1760px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
}

/* Dark follows the device unless the visitor picked a theme with the switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #180b0d;
    --card: #211214;
    --ink: #f3e4de;
    --ink-soft: #ae9997;
    --berry: #d07c89;
    --on-berry: #180b0d;
    --brass: #dbb46b;
    --blush: #2b1a1c;
    --hairline: rgb(228 211 207 / 0.16);
    --field: rgb(243 228 222 / 0.38);
    --focus: rgb(208 124 137 / 0.5);
    --bezel: #050203;
    --danger: #ff6467;
    --shadow: 0 30px 60px -28px rgb(0 0 0 / 0.8), 0 12px 24px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
    --ivory: #180b0d;
    --card: #211214;
    --ink: #f3e4de;
    --ink-soft: #ae9997;
    --berry: #d07c89;
    --on-berry: #180b0d;
    --brass: #dbb46b;
    --blush: #2b1a1c;
    --hairline: rgb(228 211 207 / 0.16);
    --field: rgb(243 228 222 / 0.38);
    --focus: rgb(208 124 137 / 0.5);
    --bezel: #050203;
    --danger: #ff6467;
    --shadow: 0 30px 60px -28px rgb(0 0 0 / 0.8), 0 12px 24px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* Arabic: Instrument Serif and Work Sans have no Arabic glyphs, so Arabic
   pages lead with a naskh display face and a matching sans. */
:lang(ar) {
  --serif: "Amiri", "Instrument Serif", serif;
  --sans: "Noto Sans Arabic", "Work Sans", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--hairline) transparent;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--berry);
}

::selection {
  background: var(--berry);
  color: var(--on-berry);
}

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

a {
  color: var(--berry);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Components set their own display, which would otherwise beat `hidden`. */
[hidden] {
  display: none !important;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--berry);
  color: var(--on-berry);
}

.skip:focus {
  top: 12px;
}

.inline {
  display: inline !important;
  min-height: 0 !important;
}

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

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav switch";
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  line-height: 1;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--berry);
  border-top: 1px solid rgb(255 248 243 / 0.18);
  box-shadow: 0 4px 10px -4px rgb(33 16 18 / 0.4);
}

.mark svg {
  width: 16px;
  height: 16px;
  fill: var(--brass);
}

.site-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 4px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--berry);
  text-underline-offset: 0.5em;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out);
}

.lang-toggle:hover {
  background: var(--blush);
}

.lang-toggle:lang(ar) {
  font-family: "Noto Sans Arabic", sans-serif;
}

.lang-toggle:lang(en) {
  font-family: "Work Sans", sans-serif;
}

@media (max-width: 859px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand switch" "nav nav";
    padding-block: 16px 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 4px 22px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    border-block: 1px solid var(--hairline);
  }
}

/* ---------- Store badges ---------- */

.stores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.store-statuses,
.apk-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-play {
  display: block;
  border-radius: 10px;
  transition: transform 0.25s var(--ease-out);
}

.store-play:hover {
  transform: translateY(-2px);
}

.store-play img {
  width: auto;
  height: 56px;
}

/* Store status remains visible alongside the direct APK option. */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border: 1px dashed var(--field);
  border-radius: 10px;
  color: var(--ink-soft);
  line-height: 1.15;
}

.store-soon svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: currentColor;
}

.store-soon small {
  display: block;
  font-size: 12px;
}

.store-soon strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

.apk-download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--berry);
  color: var(--on-berry);
  text-decoration: none;
}

.apk-download strong,
.apk-download small {
  display: block;
}

.apk-download strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.apk-download small {
  margin-top: 2px;
  color: var(--on-berry);
  font-size: 12px;
  line-height: 1.3;
}

.apk-download:hover {
  filter: brightness(1.08);
}

.apk-download:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.apk-download svg {
  width: 26px;
  height: 26px;
  flex: none;
  stroke: currentColor;
}

.apk-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 260px;
}

.apk-preview-note {
  max-width: 245px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.apk-pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  max-width: 270px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.apk-pending strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.apk-qr {
  display: none;
  align-items: center;
  gap: 14px;
  max-width: 290px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.apk-qr img {
  display: block;
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 8px;
}

@media (min-width: 760px) {
  .apk-qr { display: flex; }
}

@media (max-width: 600px) {
  .stores,
  .apk-section,
  .apk-offer,
  .apk-download { width: 100%; }
}

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

/* On phones the order is headline, request, phone, then the occasion chips,
   so the plan builds where the visitor is looking. */
.hero {
  display: grid;
  grid-template-areas: "copy" "chat" "phone" "chips";
  gap: 28px;
  padding-block: 28px 96px;
}

.hero-copy {
  grid-area: copy;
}

.hero-chat {
  grid-area: chat;
}

.hero-phone {
  grid-area: phone;
}

.hero-chips {
  grid-area: chips;
  align-content: start;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "copy phone" "chat phone" "chips phone";
    column-gap: 64px;
    row-gap: 28px;
    padding-block: 28px 128px;
  }

  .hero-phone {
    align-self: center;
  }
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.display em {
  display: block;
  color: var(--berry);
  font-style: italic;
}

:lang(ar) .display {
  line-height: 1.35;
  letter-spacing: 0;
}

:lang(ar) .display em {
  font-style: normal;
}

.lede {
  max-width: 40ch;
  margin: 20px 0 28px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  text-wrap: pretty;
}

/* The conversation */

.chat {
  display: grid;
  gap: 12px;
  max-width: 460px;
}

.bubble {
  max-width: 100%;
  margin: 0;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.45;
}

.bubble-me {
  justify-self: end;
  min-height: 52px;
  border-end-end-radius: 6px;
  background: var(--berry);
  color: var(--on-berry);
}

.bubble-me .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-inline-start: 2px;
  vertical-align: -0.18em;
  background: currentColor;
  opacity: 0;
}

.is-typing .bubble-me .caret {
  opacity: 1;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.bubble-ai {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  border-end-start-radius: 6px;
  background: var(--blush);
  color: var(--ink);
}

.bubble-ai svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--brass);
}

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

.occasions-label {
  width: 100%;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.chip {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.chip:hover {
  background: var(--blush);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--berry);
  background: var(--berry);
  color: var(--on-berry);
}

/* ---------- Phone ---------- */

.phone-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
}

.phone {
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 48px;
  background: var(--bezel);
  box-shadow: var(--shadow);
}

.screen {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 38px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.screen p {
  margin: 0;
}

/* Sized to content, but always clear of the floating buttons (their top sits
   about 170px above the screen's bottom edge). */
.screen-fit {
  min-height: 0;
  padding-bottom: 180px;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  width: auto;
  height: 10px;
  fill: currentColor;
  stroke: currentColor;
}

.status-icons svg:nth-child(1) {
  width: 16px;
}

.status-icons svg:nth-child(2) {
  width: 14px;
}

.status-icons svg:nth-child(3) {
  width: 22px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 6px;
}

.circle-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.circle-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
}

.app-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.1;
}

.app-sub {
  margin-top: 2px !important;
  color: var(--ink-soft);
  font-size: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 18px 4px;
}

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.badge-ai {
  background: var(--brass);
  color: #211012;
}

.budget {
  margin: 10px 18px 4px !important;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--blush);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--berry);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out);
}

/* Room below the last step for the floating buttons, as in the app. */
.steps {
  margin: 14px 0 0;
  padding: 0 18px 176px;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding-bottom: 14px;
}

.step::before {
  content: "";
  position: absolute;
  inset-block: 22px 0;
  inset-inline-start: 54px;
  width: 1px;
  background: var(--hairline);
}

.step:last-child::before {
  display: none;
}

.step time {
  padding-top: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-card {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--card);
}

.step-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.step-card span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.step-card em {
  font-style: normal;
}

.step-card svg {
  width: 12px;
  height: 12px;
  flex: none;
  stroke: currentColor;
}

/* Steps land one by one. Visible by default: only the script hides them, so
   nothing is lost without JavaScript or with reduced motion. */
.will-build .step {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
}

.will-build .step.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.tabbar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 10px 18px;
  border-top: 1px solid var(--hairline);
  background: var(--ivory);
}

.tabbar > span {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.tabbar > span.on {
  color: var(--berry);
}

.tabbar b {
  font-weight: 500;
}

.tabbar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* The app's floating buttons: + to create, the sparkle for the assistant. */
.fabs {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 78px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fab {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--berry);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
}

.fab svg {
  width: 22px;
  height: 22px;
  stroke: var(--on-berry);
}

.fab-ai {
  width: 38px;
  height: 38px;
  border: 1px solid var(--focus);
  background: var(--ivory);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}

.fab-ai svg {
  width: 17px;
  height: 17px;
  fill: var(--berry);
  stroke: none;
}

.sample-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

/* Today screen */

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 12px 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.45);
  font-size: 12px;
}

.notice b {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.notice-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--berry);
}

.notice-mark svg {
  width: 11px;
  height: 11px;
  fill: var(--brass);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 6px 14px 12px;
}

.day {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 6px 0 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.day small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day b {
  font-size: 14px;
  font-weight: 600;
}

.day i {
  width: 4px;
  height: 4px;
  border-radius: 2px;
}

.day.dot i {
  background: var(--berry);
}

.day.on {
  background: var(--berry);
}

.day.on small,
.day.on b {
  color: var(--on-berry);
}

.day.on i {
  background: var(--on-berry);
}

.today-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 18px 12px;
}

.today-head .app-title {
  font-size: 30px;
}

.big-date {
  color: var(--berry);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.weather-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--blush);
  font-size: 12px;
}

.weather-line svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: var(--berry);
}

.plan-card {
  margin: 0 18px 10px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background:
    linear-gradient(var(--wash, transparent), var(--wash, transparent)),
    var(--card);
}

.plan-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.plan-card span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

/* Physical sides: the drawn screen is always left-to-right, like the app, so
   the button column is on the right even when the hint is Arabic. */
.hint {
  margin: 4px 64px 0 18px !important;
  color: var(--ink-soft);
  font-size: 11px;
}

/* Memories screen */

.otd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 12px;
  padding: 8px;
  border-radius: 20px;
  background: var(--blush);
}

.otd-when {
  color: var(--berry);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.otd-title {
  margin-top: 2px !important;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
}

.otd-count {
  color: var(--ink-soft);
  font-size: 11px;
}

.otd-go {
  margin-inline-start: auto;
}

.otd-go svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-soft);
}

.photo-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  aspect-ratio: 1;
  border: 1px dashed var(--field);
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink-soft);
}

.photo-slot svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.photo-slot small {
  font-size: 9px;
}

.photo-slot-sm {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
}

.pills {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
}

.pills span {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
}

.albums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  padding: 0 14px;
}

.album-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.album-tile > span:last-child {
  color: var(--ink-soft);
  font-size: 11px;
}

/* ---------- Story sections ---------- */

.chapter {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 96px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 960px) {
  .chapter {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 80px;
    padding-block: 128px;
  }

  .chapter-flip .chapter-copy {
    order: 2;
  }

  .chapter-stack {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.headline {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(ar) .headline {
  line-height: 1.4;
  letter-spacing: 0;
}

.chapter-copy p {
  max-width: 44ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.points {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  max-width: 44ch;
}

.points svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  stroke: var(--berry);
}

/* Together */

.together {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.panel {
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--card);
}

.panel-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--hairline);
}

.person:first-of-type {
  border-top: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  background: var(--blush);
  color: var(--berry);
  font-weight: 600;
  font-size: 14px;
}

.person-name {
  flex: 1;
  font-weight: 500;
}

.role {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink-soft);
  font-size: 12px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--field);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.link-row svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--berry);
}

.link-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Close ---------- */

.close {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: 128px 112px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.close .headline {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem);
}

.close p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-soft);
}

.close .stores {
  align-items: center;
}

/* ---------- Page heads, breadcrumbs, prose ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.page-head,
.guide-head {
  max-width: 780px;
  padding-block: 20px 16px;
}

.doc-title,
.prose h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(ar) .doc-title,
:lang(ar) .prose h1 {
  line-height: 1.4;
  letter-spacing: 0;
}

.guide-meta {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.guide-lede {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  text-wrap: pretty;
}

.doc {
  max-width: 72ch;
  padding-block: 32px 96px;
}

.prose .effective {
  margin: 8px 0 40px;
  color: var(--ink-soft);
}

.prose h2 {
  margin: 48px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-inline-start: 1.3em;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--berry);
}

.table-wrap {
  margin: 8px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: start;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--blush);
  font-weight: 600;
}

/* On phones a three-column table squeezes to a word per line: each row
   becomes a small block instead, its cells labelled from the header. */
@media (max-width: 560px) {
  .prose thead {
    display: none;
  }

  .prose tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
  }

  .prose tbody tr:last-child {
    border-bottom: 0;
  }

  .prose td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .prose td:first-child {
    font-weight: 600;
  }

  .prose td[data-label]:not(:first-child)::before {
    content: attr(data-label) ": ";
    color: var(--ink-soft);
  }
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--blush);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Guides ---------- */

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.guide-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title go" "desc go" "meta go";
  gap: 4px 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}

.guide-row-title {
  grid-area: title;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  transition: color 0.2s var(--ease-out);
}

.guide-row:hover .guide-row-title {
  color: var(--berry);
}

.guide-row-desc {
  grid-area: desc;
  max-width: 70ch;
  color: var(--ink-soft);
}

.guide-row-meta {
  grid-area: meta;
  color: var(--ink-soft);
  font-size: 14px;
}

.guide-row-go {
  grid-area: go;
  align-self: center;
  width: 22px;
  height: 22px;
  stroke: var(--ink-soft);
}

[dir="rtl"] .guide-row-go {
  transform: scaleX(-1);
}

.guide-grid {
  display: grid;
  gap: 48px;
  padding-block: 24px 64px;
}

.guide-body {
  max-width: 68ch;
}

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

.aside-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.5rem;
  text-align: center;
}

@media (min-width: 1000px) {
  .guide-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
  }

  .guide-aside,
  .how-aside {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

.cta-band {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-block: 16px 64px;
  padding: 64px 24px;
  border-radius: 28px;
  background: var(--blush);
  text-align: center;
}

.cta-band .headline {
  margin: 0;
}

.cta-band p {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-soft);
}

.cta-band .stores {
  align-items: center;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
}

.related {
  padding-bottom: 72px;
}

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

.faq {
  max-width: 780px;
  border-top: 1px solid var(--hairline);
}

.qa {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.qa h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.qa p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
}

.faq-more {
  padding-block: 32px 16px;
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  gap: 48px;
  padding-block: 16px 48px;
}

@media (min-width: 1000px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
  }
}

.how {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
  border-top: 1px solid var(--hairline);
}

.how-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  counter-increment: how;
}

.how-step::before {
  content: counter(how);
  grid-row: span 2;
  color: var(--berry);
  font-family: "Instrument Serif", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.how-step h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
}

.how-step p {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-block: 20px 96px;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
  }
}

.contact-direct {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.contact-direct svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  stroke: var(--berry);
}

.contact-panel {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--card);
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:lang(ar) .field label {
  font-size: 14px;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--field);
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23705656' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

[dir="rtl"] .field select {
  background-position: left 14px center;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: transparent;
}

.hint-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.app-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pw {
  position: relative;
}

.pw input {
  padding-inline-end: 84px;
}

.pw-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 6px;
  min-width: 64px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--focus);
  border-radius: 10px;
}

.match[data-state="ok"] {
  color: #1f7a45;
}

.match[data-state="bad"] {
  color: #b3261e;
}

.trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  justify-self: start;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  background: var(--berry);
  color: var(--on-berry);
  font: 600 16px/1 var(--sans);
  cursor: pointer;
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.button:hover {
  opacity: 0.94;
}

.button:active {
  transform: scale(0.99);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
}

.form-status p {
  margin: 0;
  color: var(--ink-soft);
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blush);
  color: var(--danger);
}

/* ---------- Shared plan page ---------- */

.shared {
  padding-block: 24px 24px;
}

/* A summary card beside the running order, like the app's plan screen. */
.shared-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .shared-layout {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 72px;
    padding-block: 24px 16px;
  }

  .shared-summary {
    position: sticky;
    top: 24px;
  }
}

.shared-summary {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background:
    linear-gradient(rgb(100 31 45 / 0.05), rgb(100 31 45 / 0.05)),
    var(--card);
}

.shared-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--berry);
}

.shared-mark svg {
  width: 19px;
  height: 19px;
  fill: var(--brass);
}

.shared-summary .badge {
  display: inline-block;
  margin-bottom: 12px;
}

.shared-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(ar) .shared-title {
  line-height: 1.35;
  letter-spacing: 0;
}

.shared-date {
  margin: 18px 0 0;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
}

.shared-by {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.shared-cat {
  margin: 10px 0 0;
}

.shared-cat span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink-soft);
  font-size: 14px;
}

.shared-desc {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}

:lang(ar) .shared-desc {
  font-style: normal;
}

.shared-budget {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--blush);
  color: var(--ink-soft);
  font-size: 14px;
}

.shared-budget strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.shared-note {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* The running order: a rail of dots, a card per step. */
.shared-timeline .section-title {
  margin-bottom: 20px;
}

.shared-steps {
  position: relative;
}

.shared-day {
  margin: 32px 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shared-day:first-child {
  margin-top: 0;
}

:lang(ar) .shared-day {
  letter-spacing: 0;
  font-size: 14px;
}

.shared-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding-bottom: 14px;
}

.shared-step::before {
  content: "";
  position: absolute;
  inset-block: 14px -2px;
  inset-inline-start: 56px;
  width: 1px;
  background: var(--hairline);
}

.shared-step::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-start: 52px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 0 4px var(--ivory);
}

.shared-step time {
  padding-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.shared-card {
  margin-inline-start: 20px;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--card);
}

.shared-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.shared-card span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 15px;
}

.shared-empty {
  color: var(--ink-soft);
}

.shared-cta {
  margin-top: 64px;
}

/* Loading: the shape of the page, not a message. */
.shared-skeleton {
  display: grid;
  gap: 16px;
  max-width: 560px;
  padding-block: 48px;
}

.sk {
  display: block;
  border-radius: 12px;
  background: var(--blush);
  animation: pulse 1.4s ease-in-out infinite;
}

.sk-badge {
  width: 120px;
  height: 24px;
  border-radius: 999px;
}

.sk-title {
  width: 70%;
  height: 56px;
}

.sk-line {
  width: 45%;
  height: 22px;
}

.sk-row {
  height: 64px;
  border-radius: 16px;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

/* ---------- Pages people reach from an email ---------- */

.auth-card {
  max-width: 520px;
  margin: 48px auto 72px;
}

.auth-card .stores {
  margin-top: 28px;
}

.auth-form {
  margin-top: 28px;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
}

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

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

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

/* ---------- Theme switch ---------- */

.tools {
  grid-area: switch;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}

.theme-toggle:hover {
  background: var(--blush);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* Shows what a tap switches to: the moon while light, the sun while dark. */
.theme-toggle .i-sun-btn { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon-btn { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun-btn { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon-btn { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun-btn { display: block; }
}


/* ---------- Video ---------- */

.film-section {
  max-width: 1040px;
  margin-inline: auto;
}

.film {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #1d1215;
  box-shadow: 0 30px 70px rgba(60, 15, 25, 0.22);
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #1d1215;
}

.film-note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: center;
}

.film-copy {
  max-width: 62ch;
  margin: 0 0 28px;
  color: var(--ink-soft);
}

#tour {
  padding-block: 72px 24px;
  scroll-margin-top: 84px;
}

/* ---------- Videos ---------- */

.film-vertical {
  max-width: 340px;
  margin-inline: auto;
}

.film-vertical video {
  aspect-ratio: 9 / 16;
}

.video-page .film {
  margin-block: 8px 40px;
}

.video-meta {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.video-points,
.video-transcript,
.video-more {
  max-width: 760px;
  margin-bottom: 48px;
}

.video-more {
  max-width: none;
}

.video-transcript p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.video-transcript .film-note {
  text-align: start;
}

.video-points .film-note {
  text-align: start;
}

.video-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.video-card h2 {
  margin: 14px 0 6px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
}

.video-card h2 a {
  color: inherit;
  text-decoration: none;
}

.video-card p {
  margin: 0;
  color: var(--ink-soft);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #1d1215;
  box-shadow: 0 24px 50px rgba(60, 15, 25, 0.18);
}

.video-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.video-card-vertical .video-thumb {
  max-width: 260px;
}

.video-card-vertical .video-thumb img {
  aspect-ratio: 9 / 16;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.video-thumb:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-play svg {
  width: 64px;
  height: 64px;
  padding: 18px 16px 18px 20px;
  border-radius: 50%;
  background: rgb(255 248 243 / 0.92);
  fill: #641f2d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.video-badge {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  padding: 2px 9px;
  border-radius: 8px;
  background: rgb(24 11 13 / 0.78);
  color: #fff8f3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.film-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
}

.film-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
