:root {
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", var(--font-system);

  --color-bg: #f5f5f7;
  --color-bg-elevated: #ffffff;
  --color-bg-alt: #e8e8ed;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-placeholder: #34c759;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-media: 0 24px 80px rgba(0, 0, 0, 0.12);

  --nav-height: 52px;
  --max-width: 1080px;
  --section-pad: clamp(64px, 10vw, 120px);

  /* Category accents (from app) */
  --cat-travel: #007aff;
  --cat-relationship: #ff2d55;
  --cat-milestone: #ff9500;
  --cat-health: #34c759;
  --cat-personal: #af52de;
  --cat-work: #5856d6;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.25s;
  --duration-medium: 0.5s;
  --duration-slow: 0.9s;
  --reveal-distance: 28px;
  --shadow-media-hover: 0 32px 96px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-media-hover: 0 32px 96px rgba(0, 0, 0, 0.55);
    --color-bg: #000000;
    --color-bg-elevated: #1c1c1e;
    --color-bg-alt: #2c2c2e;
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-text-tertiary: #6e6e73;
    --color-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-media: 0 24px 80px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

/* —— Motion —— */

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance)) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: hero-enter 1s var(--ease-out) forwards;
  }

  .hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }

  .hero-media {
    opacity: 0;
    animation: hero-enter 1.1s var(--ease-out) 0.38s forwards;
  }

  .hero-video {
    animation: hero-float 7s var(--ease-in-out) 1.5s infinite;
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
    will-change: opacity, transform;
  }

  .scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
    will-change: opacity, transform;
  }

  .scroll-reveal-stagger.is-revealed > * {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
  .scroll-reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 70ms; }
  .scroll-reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 140ms; }
  .scroll-reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 210ms; }
  .scroll-reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 280ms; }
  .scroll-reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 350ms; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Placeholder media (green) —— */

.placeholder-media {
  background-color: var(--color-placeholder);
  position: relative;
  overflow: hidden;
}

.placeholder-image {
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-media);
}

.placeholder-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-media);
}

.placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.play-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  padding-left: 4px;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-medium) var(--ease-out),
    border-color var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 var(--color-border), 0 8px 32px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(0, 0, 0, 0.72);
  }

  .site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--color-border), 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-medium) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  padding: 6px 14px;
  border-radius: 980px;
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-cta:active {
    transform: scale(0.97);
  }
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 980px;
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: scale(0.97);
  }
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.08);
}

.btn-large {
  font-size: 19px;
  padding: 14px 28px;
}

/* —— Hero —— */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 22px var(--section-pad);
  display: grid;
  gap: 48px;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 64px;
  }

  .hero-media {
    max-width: 320px;
    justify-self: end;
  }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(19px, 2.5vw, 21px);
  line-height: 1.381;
  color: var(--color-text-secondary);
  max-width: 32em;
}

@media (min-width: 900px) {
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-media {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.hero-video {
  width: 100%;
  aspect-ratio: 640 / 1392;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-media);
  transition:
    transform var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .hero-media:hover .hero-video {
    animation-play-state: paused;
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-media-hover);
  }
}

/* —— Sections —— */

.section {
  padding: var(--section-pad) 22px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 820px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
}

.section-lead {
  margin: 0 auto 48px;
  max-width: 28em;
  font-size: 19px;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.4211;
}

.section-gallery {
  background: var(--color-bg-elevated);
}

.section-gallery .section-inner {
  text-align: center;
}

.section-gallery .section-lead {
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .section-gallery .section-lead {
    margin-bottom: 40px;
  }
}

/* —— Pill gallery —— */

.pill-gallery {
  max-width: 420px;
  margin: 0 auto;
}

.pill-gallery__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pill-gallery__controls {
  display: flex;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 28px;
  padding: 4px;
  background: var(--color-bg-alt);
  border-radius: 980px;
  gap: 2px;
}

.pill-gallery__pill {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.pill-gallery__pill:hover {
  color: var(--color-text);
}

#pill-browse:checked ~ .pill-gallery__controls label[for="pill-browse"],
#pill-pin:checked ~ .pill-gallery__controls label[for="pill-pin"],
#pill-filter:checked ~ .pill-gallery__controls label[for="pill-filter"] {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 0.5px var(--color-border);
}

@media (prefers-color-scheme: dark) {
  #pill-browse:checked ~ .pill-gallery__controls label[for="pill-browse"],
  #pill-pin:checked ~ .pill-gallery__controls label[for="pill-pin"],
  #pill-filter:checked ~ .pill-gallery__controls label[for="pill-filter"] {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 0 0.5px var(--color-border);
  }
}

.pill-gallery__stage {
  position: relative;
}

.pill-gallery__panel {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    visibility 0.45s;
}

#pill-browse:checked ~ .pill-gallery__stage .pill-gallery__panel--browse,
#pill-pin:checked ~ .pill-gallery__stage .pill-gallery__panel--pin,
#pill-filter:checked ~ .pill-gallery__stage .pill-gallery__panel--filter {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#pill-browse:checked ~ .pill-gallery__stage .pill-gallery__panel--pin,
#pill-browse:checked ~ .pill-gallery__stage .pill-gallery__panel--filter,
#pill-pin:checked ~ .pill-gallery__stage .pill-gallery__panel--browse,
#pill-pin:checked ~ .pill-gallery__stage .pill-gallery__panel--filter,
#pill-filter:checked ~ .pill-gallery__stage .pill-gallery__panel--browse,
#pill-filter:checked ~ .pill-gallery__stage .pill-gallery__panel--pin {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pill-gallery__media {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-media);
  transition:
    transform var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .pill-gallery__panel:hover .pill-gallery__media {
    transform: translateY(-4px);
    box-shadow: var(--shadow-media-hover);
  }
}

.pill-gallery__filter-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 -4px 16px;
  padding: 0 4px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.pill-gallery__filter-bar::-webkit-scrollbar {
  display: none;
}

.pill-gallery__caption {
  margin: 20px auto 0;
  max-width: 22em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .pill-gallery__panel,
  .pill-gallery__pill {
    transition: none;
  }

  .pill-gallery__panel {
    transform: none;
  }
}

@media (min-width: 600px) {
  .pill-gallery {
    max-width: 480px;
  }

  .pill-gallery__controls {
    max-width: 360px;
    margin-bottom: 36px;
  }

  .pill-gallery__pill {
    font-size: 15px;
    padding: 8px 20px;
  }

  .pill-gallery__filter-bar {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    margin: 0 auto 16px;
    max-width: 340px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .pill-gallery__caption {
    font-size: 17px;
    margin-top: 24px;
  }
}

/* —— Feature blocks —— */

.feature-block--alt {
  background: var(--color-bg-elevated);
}

.feature-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature-grid--reverse .feature-copy {
    order: 2;
  }

  .feature-grid--reverse .feature-media {
    order: 1;
  }
}

.feature-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.feature-text {
  margin: 0 0 20px;
  font-size: 19px;
  color: var(--color-text-secondary);
  line-height: 1.4211;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.feature-list li + li {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .feature-list {
    padding: 0 0 0 1.2em;
    list-style: disc;
  }
}

.feature-media {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-media);
  transition:
    transform var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .feature-media:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-media-hover);
  }
}

/* —— Categories —— */

.section-categories {
  background: var(--color-bg-elevated);
}

.category-grid {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .category-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  }
}

@media (prefers-color-scheme: dark) and (prefers-reduced-motion: no-preference) and (hover: hover) {
  .category-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

.category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, currentColor 15%, transparent);
}

.category-icon::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background-color: currentColor;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.category-card[data-category="travel"] { color: var(--cat-travel); }
.category-card[data-category="travel"] .category-icon::before {
  mask-image: url("assets/icons/travel.svg");
  -webkit-mask-image: url("assets/icons/travel.svg");
}

.category-card[data-category="relationship"] { color: var(--cat-relationship); }
.category-card[data-category="relationship"] .category-icon::before {
  mask-image: url("assets/icons/relationship.svg");
  -webkit-mask-image: url("assets/icons/relationship.svg");
}

.category-card[data-category="milestone"] { color: var(--cat-milestone); }
.category-card[data-category="milestone"] .category-icon::before {
  mask-image: url("assets/icons/milestone.svg");
  -webkit-mask-image: url("assets/icons/milestone.svg");
}

.category-card[data-category="health"] { color: var(--cat-health); }
.category-card[data-category="health"] .category-icon::before {
  mask-image: url("assets/icons/health.svg");
  -webkit-mask-image: url("assets/icons/health.svg");
}

.category-card[data-category="personal"] { color: var(--cat-personal); }
.category-card[data-category="personal"] .category-icon::before {
  mask-image: url("assets/icons/personal.svg");
  -webkit-mask-image: url("assets/icons/personal.svg");
}

.category-card[data-category="work"] { color: var(--cat-work); }
.category-card[data-category="work"] .category-icon::before {
  mask-image: url("assets/icons/work.svg");
  -webkit-mask-image: url("assets/icons/work.svg");
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.categories-media {
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

/* —— Widgets —— */

.section-widgets {
  background: var(--color-bg-elevated);
}

.widgets-showcase {
  --widget-media-size: 220px;
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 700px) {
  .widgets-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

.widget-card {
  text-align: center;
}

.widget-card h3 {
  margin: 20px 0 8px;
  font-size: 21px;
  font-weight: 600;
}

.widget-card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.widget-media {
  aspect-ratio: 1;
  width: min(var(--widget-media-size), 100%);
  max-width: var(--widget-media-size);
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  display: block;
  transition: transform var(--duration-medium) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .widget-card:hover .widget-media {
    transform: scale(1.04);
  }
}

.widget-lock-pair {
  --widget-lock-size: var(--widget-media-size);
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: calc(2 * var(--widget-lock-size) + 12px);
  min-height: var(--widget-lock-size);
  margin: 0 auto;
}

@media (max-width: 979px) {
  .widget-lock-pair {
    --widget-lock-size: min(var(--widget-media-size), calc((100% - 12px) / 2));
  }
}

.widget-lock-pair .widget-media {
  flex: 0 0 auto;
  width: var(--widget-lock-size);
  max-width: var(--widget-lock-size);
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  object-fit: contain;
}

.widgets-video {
  max-width: 720px;
  margin: 0 auto;
}

/* —— Bento —— */

.section-bento {
  padding-bottom: var(--section-pad);
}

.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-cell--large {
    grid-row: span 2;
  }

  .bento-cell--wide {
    grid-column: span 2;
  }
}

.bento-cell {
  padding: 28px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.bento-cell h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-cell p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.bento-cell--large h3 {
  font-size: 32px;
}

.bento-cell--large p {
  font-size: 17px;
}

/* —— CTA —— */

.section-cta {
  padding-bottom: var(--section-pad);
}

.cta-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  margin-bottom: 48px;
  transition:
    transform var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .cta-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  }
}

@media (prefers-color-scheme: dark) and (prefers-reduced-motion: no-preference) and (hover: hover) {
  .cta-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.cta-icon-inner {
  font-family: var(--font-rounded);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}

.cta-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-lead {
  margin: 0 auto 28px;
  max-width: 24em;
  font-size: 19px;
  color: var(--color-text-secondary);
}

.cta-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.cta-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.cta-shot {
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
  .cta-gallery {
    grid-template-columns: 1fr;
    max-width: 200px;
  }

  .cta-gallery .cta-shot:not(:first-child) {
    display: none;
  }
}

/* —— Footer —— */

.site-footer {
  padding: 32px 22px 48px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.footer-copy {
  margin: 0;
  flex: 1;
}

@media (max-width: 767px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px 16px;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none;
    width: 100%;
  }
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--color-text-tertiary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-links a[aria-current="page"] {
  color: var(--color-text-secondary);
}

/* —— Legal pages —— */

.legal-page {
  padding: clamp(48px, 8vw, 80px) 22px clamp(64px, 10vw, 96px);
}

.legal-document {
  max-width: 692px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.legal-section + .legal-section {
  margin-top: 40px;
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-section p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.58824;
  color: var(--color-text);
}

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

.legal-list {
  margin: 0;
  padding: 0 0 0 1.2em;
  font-size: 17px;
  line-height: 1.58824;
}

.legal-list li + li {
  margin-top: 8px;
}
