:root {
  color-scheme: light;
  --bg: #faf7f4;
  --bg-rise: #ffffff;
  --panel: rgba(21, 18, 28, 0.04);
  --panel-strong: rgba(21, 18, 28, 0.07);
  --panel-border: rgba(21, 18, 28, 0.09);
  --panel-border-strong: rgba(21, 18, 28, 0.16);
  --text: #19161f;
  --muted: rgba(25, 22, 31, 0.64);
  --soft-muted: rgba(25, 22, 31, 0.44);
  --accent: #7c5cff;
  --accent-2: #5536e0;
  --accent-text: #6240d6;
  --accent-glow: rgba(124, 92, 255, 0.26);
  --accent-soft: rgba(124, 92, 255, 0.12);
  --glow-2: rgba(255, 150, 120, 0.10);
  --header-bg: rgba(250, 247, 244, 0.78);
  --skip-bg: #19161f;
  --skip-text: #ffffff;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 30px 70px rgba(40, 24, 60, 0.14);
  --shadow-card: 0 16px 40px rgba(40, 24, 60, 0.10);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06070a;
  --bg-rise: #111216;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.10);
  --panel-border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3f8;
  --muted: rgba(245, 243, 248, 0.66);
  --soft-muted: rgba(245, 243, 248, 0.46);
  --accent: #9376ff;
  --accent-2: #6b4bef;
  --accent-text: #b4a3ff;
  --accent-glow: rgba(147, 118, 255, 0.35);
  --accent-soft: rgba(147, 118, 255, 0.18);
  --glow-2: rgba(255, 150, 120, 0.14);
  --header-bg: rgba(6, 7, 10, 0.78);
  --skip-bg: #f5f3f8;
  --skip-text: #15131c;
  --shadow-soft: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 520px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 760px 520px at -12% 18%, var(--glow-2), transparent 55%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

body::selection {
  color: #fff;
  background: var(--accent-2);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

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

h1, h2, h3, p, blockquote {
  margin: 0;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--skip-bg);
  color: var(--skip-text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Layout helpers ---------- */

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 12px;
}

.section-heading {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 48px;
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.section-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px var(--accent-glow);
}

.button-primary[aria-disabled="true"] {
  cursor: default;
}

.button-primary:hover {
  filter: brightness(1.06);
}

.button-secondary {
  background: var(--bg-rise);
  border-color: var(--panel-border-strong);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(40, 24, 60, 0.05);
}

.button-secondary:hover {
  background: var(--panel);
  border-color: var(--panel-border-strong);
}

.button-ghost {
  padding: 9px 18px;
  font-size: 14px;
  background: transparent;
  border-color: var(--panel-border-strong);
  color: var(--muted);
}

.button-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin: 16px auto 0;
  padding: 8px 8px 8px 26px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border-strong);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(40, 24, 60, 0.08);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 720;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(40, 24, 60, 0.14);
}

.brand-logotype {
  display: inline-block;
  width: 58.8px;
  height: 19.6px;
  background: currentColor;
  -webkit-mask: url("/assets/janb-logotype.svg") center / contain no-repeat;
  mask: url("/assets/janb-logotype.svg") center / contain no-repeat;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.site-header nav {
  margin-left: auto;
  margin-right: 24px;
}

nav a:hover {
  color: var(--text);
}

.header-cta {
  flex-shrink: 0;
  padding: 11px 22px;
  font-size: 14px;
}

.theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--panel-border-strong);
  background: var(--bg-rise);
  color: var(--text);
  padding: 0;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}

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

main {
  display: block;
}

.hero {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero .eyebrow {
  display: flex;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.07;
  margin-bottom: 20px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Hero cards (fanned rail panels) ---------- */

.hero-cards {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(1320px, 100%);
  margin: clamp(36px, 7vw, 64px) auto 0;
  padding-bottom: clamp(16px, 3vw, 34px);
}

.hero-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(100px, 15.5vw, 212px);
  aspect-ratio: 629 / 998;
  margin: 0;
  margin-left: clamp(-58px, -7.6vw, -34px);
  border-radius: 26px;
  overflow: visible;
  transition: transform 0.35s var(--ease);
}

.hero-card:first-child {
  margin-left: 0;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 26px;
  filter: drop-shadow(0 18px 30px rgba(40, 24, 60, 0.16));
  transition: opacity 0.3s var(--ease);
}

.hero-card .card-img--cover-light {
  opacity: 1;
  z-index: 3;
}

.hero-card .card-img--cover-dark,
.hero-card .card-img--detail-light,
.hero-card .card-img--detail-dark {
  opacity: 0;
  z-index: 1;
}

[data-theme="dark"] .hero-card .card-img--cover-light {
  opacity: 0;
}

[data-theme="dark"] .hero-card .card-img--cover-dark {
  opacity: 1;
  z-index: 3;
}

@media (hover: hover) {
  .hero-card:hover .card-img--cover-light {
    opacity: 0;
  }

  .hero-card:hover .card-img--detail-light {
    opacity: 1;
  }

  [data-theme="dark"] .hero-card:hover .card-img--detail-light {
    opacity: 0;
  }

  [data-theme="dark"] .hero-card:hover .card-img--cover-dark {
    opacity: 0;
  }

  [data-theme="dark"] .hero-card:hover .card-img--detail-dark {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card img {
    transition: none;
  }
}

.hero-card:nth-child(1) { transform: rotate(-14deg) translateY(46px); z-index: 1; }
.hero-card:nth-child(2) { transform: rotate(-7deg) translateY(19px); z-index: 2; }
.hero-card:nth-child(3) { transform: rotate(-2deg) translateY(-19px) scale(1.06); z-index: 5; }
.hero-card:nth-child(4) { transform: rotate(3deg) translateY(-6px) scale(1.02); z-index: 4; }
.hero-card:nth-child(5) { transform: rotate(9deg) translateY(23px); z-index: 2; }
.hero-card:nth-child(6) { transform: rotate(15deg) translateY(49px); z-index: 1; }

@media (hover: hover) {
  .hero-card:hover {
    z-index: 6;
  }

  .hero-card:nth-child(1):hover { transform: rotate(-14deg) translateY(30px); }
  .hero-card:nth-child(2):hover { transform: rotate(-7deg) translateY(3px); }
  .hero-card:nth-child(3):hover { transform: rotate(-2deg) translateY(-38px) scale(1.06); }
  .hero-card:nth-child(4):hover { transform: rotate(3deg) translateY(-24px) scale(1.02); }
  .hero-card:nth-child(5):hover { transform: rotate(9deg) translateY(7px); }
  .hero-card:nth-child(6):hover { transform: rotate(15deg) translateY(32px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card {
    transition: none;
  }
}

/* ---------- Intro band ---------- */

.intro-band {
  width: min(880px, calc(100% - 40px));
  margin: clamp(40px, 7vw, 90px) auto;
}

.intro-band blockquote {
  position: relative;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--text);
}

/* ---------- Tool grid ---------- */

.tool-grid-section {
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(60px, 9vw, 120px) auto 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-rise);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 18px;
}

.tool-icon svg {
  width: 21px;
  height: 21px;
}

.tool-card h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Scroll reveal (JS-enhanced only) ---------- */

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-pending.reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {

  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header nav {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero-cards {
    align-items: center;
    padding-bottom: 20px;
  }

  .hero-card {
    width: clamp(66px, 17vw, 94px);
    margin-left: clamp(-14px, -3.6vw, -6px);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero cards: mobile stacked deck ---------- */

.hero-deck-dots {
  display: none;
}

@media (max-width: 640px) {
  .hero-cards {
    display: grid;
    justify-items: center;
    align-items: start;
    width: 100%;
    margin-top: 36px;
    padding: 46px 0 8px;
    overflow-x: clip;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }

  .hero-cards > .hero-card.hero-card {
    --pos: 0;
    --step: min(var(--pos), 3);
    grid-area: 1 / 1;
    width: min(66vw, 270px);
    margin: 0;
    transform-origin: 50% 0;
    transform:
      translateX(calc(var(--drag, 0) * 1px))
      rotate(calc(var(--drag, 0) * 0.04deg))
      translateY(calc(var(--step) * -22px))
      scale(calc(1 - var(--step) * 0.075));
    z-index: calc(10 - var(--pos));
    opacity: clamp(0, calc(3 - var(--pos)), 1);
    filter: brightness(calc(1 - var(--step) * 0.05));
    transition:
      transform 0.45s var(--ease),
      opacity 0.35s var(--ease),
      filter 0.35s var(--ease);
    cursor: grab;
  }

  /* Initial order without JS: Today in front, then Calendar, Tray, … */
  .hero-cards > .hero-card:nth-child(3) { --pos: 0; }
  .hero-cards > .hero-card:nth-child(4) { --pos: 1; }
  .hero-cards > .hero-card:nth-child(5) { --pos: 2; }
  .hero-cards > .hero-card:nth-child(6) { --pos: 3; }
  .hero-cards > .hero-card:nth-child(1) { --pos: 4; }
  .hero-cards > .hero-card:nth-child(2) { --pos: 5; }

  .hero-cards > .hero-card img {
    filter: drop-shadow(0 14px 24px rgba(40, 24, 60, 0.14));
  }

  /* No hover tilt / detail swap inside the mobile deck. */
  .hero-cards .hero-card:hover .card-img--cover-light { opacity: 1; }
  .hero-cards .hero-card:hover .card-img--detail-light,
  .hero-cards .hero-card:hover .card-img--detail-dark { opacity: 0; }
  [data-theme="dark"] .hero-cards .hero-card:hover .card-img--cover-light { opacity: 0; }
  [data-theme="dark"] .hero-cards .hero-card:hover .card-img--cover-dark { opacity: 1; }
  [data-theme="dark"] .hero-cards .hero-card:hover .card-img--detail-dark { opacity: 0; }

  .hero-cards > .hero-card.is-dragging {
    transition: none;
    cursor: grabbing;
  }

  .hero-cards > .hero-card.is-leaving {
    transform:
      translateX(calc(var(--dir, 1) * 115%))
      rotate(calc(var(--dir, 1) * 14deg));
    opacity: 0;
  }

  .hero-deck-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
  }

  .hero-deck-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--panel-border-strong);
    cursor: pointer;
    transition: width 0.3s var(--ease), background 0.3s var(--ease);
  }

  .hero-deck-dots button[aria-current="true"] {
    width: 20px;
    background: var(--accent);
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .hero-cards > .hero-card,
  .hero-deck-dots button {
    transition: none;
  }
}

/* ---------- Feature bento (mirrors the JanB app UI) ---------- */

@font-face {
  font-family: "JanB Greeting";
  src: url("/assets/features/edu-greeting.woff") format("woff");
  font-display: swap;
}

.feature-bento {
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(60px, 9vw, 120px) auto 0;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.ui-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bento-tabs {
  display: flex;
  width: max-content;
  margin: 0 auto 36px;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
}

.bento-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.bento-tabs button[aria-selected="true"] {
  background: var(--bg-rise);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(30, 20, 40, 0.10), 0 0 0 1px var(--panel-border);
}

.bento-tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bento-set {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento.is-ready .bento-set:not(.is-active) {
  display: none;
}

.bento.is-ready .bento-set.is-active {
  animation: bento-in 0.5s var(--ease) both;
}

@keyframes bento-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.bento-card {
  --card-h: 460px;
  position: relative;
  height: var(--card-h);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: var(--tone);
  border: 1px solid var(--panel-border);
}

.bento-card--wide { grid-column: span 7; }
.bento-card--narrow { grid-column: span 5; }
.bento-set > .bento-card:nth-child(3) { grid-column: span 5; }
.bento-set > .bento-card:nth-child(4) { grid-column: span 7; }

.tone-stone { --tone: linear-gradient(165deg, #f4f2f1 0%, #e9e6e5 100%); }
.tone-lilac { --tone: linear-gradient(170deg, #f6f3fd 0%, #e7e1fa 100%); }
.tone-mint  { --tone: linear-gradient(170deg, #f0f8f4 0%, #d5ede2 100%); }
.tone-peach { --tone: linear-gradient(165deg, #fcf5f2 0%, #f6e1db 100%); }
.tone-desert { --tone: #d9c3c6 url("/assets/features/desert.jpg") center 30% / cover no-repeat; }

.tone-desert::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(247, 241, 242, 0.92) 0%, rgba(247, 241, 242, 0.7) 30%, rgba(247, 241, 242, 0) 52%);
}

[data-theme="dark"] .tone-stone { --tone: linear-gradient(165deg, #1b1b1f 0%, #141417 100%); }
[data-theme="dark"] .tone-lilac { --tone: linear-gradient(170deg, #1d1a28 0%, #16131f 100%); }
[data-theme="dark"] .tone-mint  { --tone: linear-gradient(170deg, #15201c 0%, #101814 100%); }
[data-theme="dark"] .tone-peach { --tone: linear-gradient(165deg, #241a19 0%, #1a1312 100%); }

.bento-copy {
  position: relative;
  z-index: 3;
  padding: 34px 36px 0;
  max-width: 330px;
}

.bento-card--copy-bottom .bento-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0 36px 34px;
}

.bento-copy h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.bento-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.tone-desert .bento-copy h3 { color: #1f1a1d; }
.tone-desert .bento-copy p { color: rgba(31, 26, 29, 0.66); }

.bento-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- App UI primitives (light app look in both themes) ---------- */

.bento-art {
  --sb-accent: #f3978a;
  --sb-accent-ink: #e2705f;
  --sb-accent-soft: #fdf2f0;
  --sb-accent-line: #f8d3cc;
  --sb-ink: #1c1b1e;
  --sb-ink-2: #6e6b71;
  --sb-ink-3: #a29fa5;
  --sb-icon: rgba(23, 22, 21, 0.86);
  --sb-line: rgba(0, 0, 0, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--sb-ink);
  font-size: 12px;
  line-height: 1.25;
}

.bento-art .i {
  width: 1em;
  height: 1em;
  flex: none;
  display: block;
}

.bento-art strong { font-weight: 750; }
.bento-art em { font-style: normal; }
.bento-art i { font-style: normal; }

.ui-panel {
  position: absolute;
  width: 300px;
  padding: 18px 16px 16px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(246, 242, 244, 0.86), rgba(236, 229, 232, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(60, 36, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}

.ui-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 2px 14px;
}

.ui-bubble {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f1e3e2;
  color: var(--sb-accent);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ui-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ui-head-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ui-head-text span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sb-ink-2);
}

.ui-card {
  border-radius: 20px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ui-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ui-row-text small {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--sb-ink-2);
}

.ui-row-text strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-row-text em {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--sb-ink-2);
  white-space: nowrap;
}

.ui-chip-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--sb-accent-soft);
  color: var(--sb-accent);
  font-size: 15px;
}

.ui-chip-ic--round { border-radius: 50%; width: 34px; height: 34px; }
.ui-chip-ic--soft { background: #faf3f2; }
.ui-chip-ic--xs { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; background: rgba(243, 151, 138, 0.16); }

.ui-plain-ic {
  color: var(--sb-ink);
  font-size: 17px;
  flex: none;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--sb-line);
}

.ui-row + .ui-row { margin-top: 8px; }
.ui-row .ui-row-text { flex: 1; }

.ui-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--sb-ink-2);
}

.ui-square-btn,
.ui-icon-btn,
.ui-round-btn {
  display: grid;
  place-items: center;
  flex: none;
  background: #fff;
  border: 1px solid var(--sb-line);
  color: var(--sb-ink);
}

.ui-square-btn { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; }
.ui-icon-btn { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.ui-round-btn { width: 30px; height: 30px; border-radius: 50%; font-size: 14px; }

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.ui-btn .i { font-size: 14px; }
.ui-btn--accent { background: var(--sb-accent); color: var(--sb-ink); }
.ui-event .ui-btn--accent { color: #fff; }
.ui-btn--soft { background: #facfc9; color: #c9685b; }
.ui-btn--line { background: #fff; border: 1px solid var(--sb-line); color: var(--sb-ink); }
.ui-btn--sm { height: 28px; padding: 0 12px; border-radius: 9px; }

.ui-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(50, 30, 40, 0.18), 0 2px 6px rgba(50, 30, 40, 0.06);
}

.ui-float .ui-row-text { flex: 1; }

.ui-pill {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fde3df;
  color: #d4604f;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(200, 90, 70, 0.20);
}

.ui-pill .i { font-size: 18px; }

/* Rail */

.ui-rail {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  padding: 14px 0 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(240, 234, 237, 0.82), rgba(230, 222, 226, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(60, 36, 46, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  color: var(--sb-icon);
}

.ui-rail-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 46px;
  font-size: 22px;
}

.ui-rail-item.is-selected {
  border-radius: 15px;
  background: #f7eae9;
  color: var(--sb-accent);
  box-shadow: 0 4px 10px rgba(80, 40, 40, 0.14), inset 0 1px 0 #fff;
}

.ui-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sb-accent);
  color: #4a2a26;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.ui-rail-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--sb-ink-2);
  font-size: 16px;
}

/* Today */

.art-today .ui-rail { left: 47%; top: 34px; }
.art-today .ui-panel { left: calc(47% + 80px); top: 34px; }

.ui-greeting {
  margin: 4px 2px 0;
  font-family: "JanB Greeting", "Snell Roundhand", cursive;
  font-size: 26px;
  line-height: 1.25;
  color: #1c1b1e;
}

.ui-date {
  margin: 2px 2px 10px;
  font-size: 14px;
  font-weight: 750;
  color: var(--sb-ink-2);
}

.ui-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 2px 14px 8px;
}

.ui-weather > .i { font-size: 22px; color: #c0504a; }
.ui-weather span { display: flex; flex-direction: column; }
.ui-weather strong { font-size: 22px; font-weight: 850; }
.ui-weather span span { font-size: 12px; font-weight: 700; color: var(--sb-ink-2); }

.ui-float--nextup { left: 36px; top: 300px; width: 300px; }

/* Calendar */

.ui-tilt-front { transform: rotate(-6deg); }
.ui-tilt-back { transform: rotate(-11deg); }

.ui-week {
  position: absolute;
  right: 30px;
  top: 168px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  width: 300px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(70, 50, 120, 0.10);
}

.ui-week span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ui-week small { font-size: 10.5px; font-weight: 700; color: var(--sb-ink-2); }
.ui-week b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 14px; font-weight: 750; }
.ui-week i { width: 4px; height: 4px; border-radius: 50%; background: var(--sb-accent-line); }
.ui-week .is-today small { color: var(--sb-accent); }
.ui-week .is-today b { background: #fce7e4; box-shadow: inset 0 0 0 1px var(--sb-accent-line); }
.ui-week .is-today i { background: var(--sb-accent); }

.ui-event {
  position: absolute;
  right: -6px;
  top: 250px;
  width: 300px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(70, 50, 120, 0.18), 0 2px 6px rgba(70, 50, 120, 0.06);
}

.ui-event-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ui-avatars { display: flex; align-items: center; }
.ui-avatars i { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -7px; border-radius: 50%; background: var(--c); color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.ui-avatars b { margin-left: 12px; font-size: 10.5px; font-weight: 800; }
.ui-time-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--sb-line); font-size: 11px; font-weight: 750; color: var(--sb-ink-2); }
.ui-event-title { display: block; font-size: 19px; font-weight: 850; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 8px; }
.ui-event-time { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--sb-ink-2); margin-bottom: 12px; }
.ui-notify { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 11.5px; font-weight: 700; color: var(--sb-ink-2); }
.ui-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: #f1f1f2; }
.ui-seg i { padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--sb-ink); }
.ui-seg .is-on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.ui-event .ui-btn { width: 100%; height: 38px; font-size: 13px; }

/* Reminders */

.ui-sheet {
  position: absolute;
  left: 50%;
  width: 320px;
  margin-left: -160px;
  padding: 16px;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.8), 0 24px 60px rgba(40, 80, 60, 0.14);
}

.art-reminders .ui-sheet { top: 150px; bottom: 0; }

.ui-sheet-top { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.ui-sheet-top .ui-row-text { flex: 1; }

.ui-filters { display: flex; gap: 6px; margin-bottom: 16px; }
.ui-filters i { flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; border: 1px solid var(--sb-line); font-size: 11px; font-weight: 700; color: var(--sb-ink-2); }
.ui-filters .is-on { background: #fde9e6; border-color: var(--sb-accent-line); color: var(--sb-ink); }

.ui-group-label { display: flex; justify-content: space-between; margin: 0 2px 8px; font-size: 12px; font-weight: 750; color: var(--sb-ink-2); }
.ui-group-label b { color: var(--sb-accent); font-weight: 750; }
.ui-group-label--dark span { color: var(--sb-ink); font-size: 13px; }
.ui-group-label--dark b { color: var(--sb-ink-2); }

.ui-reminder { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--sb-line); }
.ui-reminder .ui-row-text { flex: 1; }
.ui-reminder .ui-row-text strong { font-size: 13.5px; }
.ui-check { font-size: 20px; color: var(--sb-ink-2); }

.ui-reminder--ghost { margin-top: 84px; opacity: 0.55; }

.ui-reminder--pop {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 298px;
  width: 360px;
  margin-left: -180px;
  padding: 16px;
  border: 0;
  box-shadow: 0 24px 54px rgba(40, 80, 60, 0.20), 0 2px 6px rgba(40, 80, 60, 0.08);
}

.ui-reminder--pop .ui-row-text strong { font-size: 15px; }
.ui-reminder--pop .ui-row-text em { font-size: 11.5px; }

/* Prayers */

.ui-panel--cropped-top { top: -40px; padding-top: 16px; }
.art-prayers .ui-panel {
  left: 44px;
  height: 340px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}

.ui-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ui-selects span { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 11px; background: #f6f7f9; font-size: 12.5px; font-weight: 700; }
.ui-selects .i { font-size: 12px; }
.ui-set-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ui-set-row em { font-size: 11px; font-weight: 650; color: var(--sb-ink-2); }

.ui-prayer { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--sb-line); }
.ui-prayer + .ui-prayer { margin-top: 7px; }
.ui-prayer .ui-row-text { flex: 1; }
.ui-prayer .ui-chip-ic { width: 28px; height: 28px; color: #8d8a90; background: #f7f3f3; }
.ui-prayer.is-next { background: #fdf3f1; border-color: var(--sb-accent-line); }
.ui-prayer.is-next .ui-chip-ic { color: var(--sb-accent); background: #fce0dc; }
.ui-prayer.is-next em { color: var(--sb-accent-ink); }

.ui-toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #ebe9ec; flex: none; }
.ui-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.ui-toggle.is-on { background: #a9a7aa; }
.ui-toggle.is-on::after { left: 18px; }

.ui-float--next-prayer {
  left: 330px;
  top: 92px;
  width: 270px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 18px 20px;
  background: #fdf3f1;
  border: 1px solid var(--sb-accent-line);
}

.ui-float--next-prayer small { font-size: 11.5px; font-weight: 700; color: var(--sb-ink-2); }
.ui-float--next-prayer strong { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; }
.ui-float--next-prayer em { font-size: 13px; font-weight: 750; color: var(--sb-accent-ink); }
.ui-float--next-prayer .ui-round-btn { position: absolute; right: 18px; top: 26px; width: 36px; height: 36px; font-size: 16px; }

.art-prayers .ui-pill { left: 520px; top: 214px; }

/* Tray */

.art-tray .ui-panel { left: calc(100% - 340px); top: 34px; }

.ui-drop { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 18px; background: #fef8f8; border: 1px solid #fbe3df; margin-bottom: 10px; }
.ui-drop-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fde7e3; color: var(--sb-accent); font-size: 20px; flex: none; }
.ui-drop .ui-row-text strong { font-size: 14px; color: #6f6c72; }
.art-tray .ui-btn--soft { width: 100%; margin-bottom: 12px; }
.ui-held { display: flex; align-items: center; gap: 10px; padding: 2px; }
.ui-held .ui-row-text { flex: 1; }
.ui-mini-btn { padding: 4px 8px; border-radius: 7px; border: 1px solid var(--sb-line); font-size: 10.5px; font-weight: 650; color: var(--sb-ink-3); }

.ui-float--clip { left: 36px; top: 268px; width: 330px; }
.ui-float--clip img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }

.art-tray .ui-pill { left: 230px; top: 360px; }

/* Favorites */

.ui-favs {
  position: absolute;
  right: -14px;
  top: 158px;
  width: 320px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(70, 50, 120, 0.18), 0 2px 6px rgba(70, 50, 120, 0.06);
}

.ui-search-field { display: block; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: #f5f5f7; box-shadow: inset 0 0 0 1px var(--sb-line); font-size: 13px; color: var(--sb-ink-3); }
.ui-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ui-select { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; height: 34px; border-radius: 9px; border: 1px solid var(--sb-line); font-size: 13px; }
.ui-search-row .ui-btn--soft { background: #fde3df; color: #a8877f; }
.ui-add-fav { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; font-size: 13px; color: var(--sb-ink-2); }
.ui-add-fav > .i { font-size: 16px; }
.ui-add-fav b { flex: 1; font-weight: 750; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--sb-line); }
.ui-tile-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.ui-tile-ic img { display: block; }
.ui-tile b { font-size: 11.5px; font-weight: 750; }
.ui-mono { font-size: 19px; font-weight: 850; letter-spacing: -0.02em; }

/* Notes */

.art-notes .ui-sheet { top: 150px; bottom: 0; }
.ui-note-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ui-note-actions .ui-icon-btn { margin-left: auto; }
.ui-recent { margin-bottom: 12px; }
.ui-recent strong { font-size: 13.5px; }
.ui-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-note { display: flex; flex-direction: column; gap: 8px; min-height: 130px; padding: 12px; border-radius: 16px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03); }
.ui-note-top { display: flex; align-items: center; justify-content: space-between; color: var(--sb-ink-3); font-size: 12px; }
.ui-note strong { font-size: 15px; font-weight: 850; line-height: 1.2; }
.ui-note em { display: flex; align-items: center; gap: 4px; margin-top: auto; font-size: 10.5px; font-weight: 700; color: var(--sb-ink-2); }

.ui-note--pop {
  position: absolute;
  z-index: 4;
  right: 18px;
  top: 92px;
  width: 160px;
  min-height: 150px;
  transform: rotate(6deg);
  box-shadow: 0 24px 50px rgba(40, 80, 60, 0.18), 0 2px 6px rgba(40, 80, 60, 0.06);
}

.ui-note--pop strong { font-size: 17px; }

/* Wallpapers */

.art-wallpapers .ui-panel { left: 44px; }
.ui-wall-img { display: block; width: 100%; height: 190px; border-radius: 14px; object-fit: cover; margin-bottom: 10px; }
.ui-wall-nav { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; margin-bottom: 8px; }
.ui-wall-nav .ui-icon-btn { width: auto; height: 34px; }
.ui-wall-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-wall-actions .ui-btn { padding: 0 8px; gap: 6px; font-size: 11.5px; }


.ui-float--source { left: 360px; top: 74px; width: 250px; }
.ui-float--source .ui-row-text strong { font-size: 14px; }
.ui-float--source .ui-row-text em { white-space: normal; line-height: 1.35; }
.ui-tag { align-self: flex-start; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--sb-line); color: var(--sb-accent); font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

.art-wallpapers .ui-pill { left: 400px; top: 200px; }
.ui-pill--ok { background: #e6f6e7; color: #3f9a42; box-shadow: 0 12px 28px rgba(60, 150, 70, 0.18); }

/* ---------- Bento responsive ---------- */

@media (max-width: 1080px) {
  .bento-set > .bento-card,
  .bento-set > .bento-card:nth-child(n) {
    grid-column: span 12;
  }

  .art-today .ui-rail { left: auto; right: 360px; }
  .art-today .ui-panel { left: auto; right: 44px; }
  .art-prayers .ui-panel,
  .art-wallpapers .ui-panel { left: auto; right: 360px; }
  .ui-float--next-prayer,
  .ui-float--source { left: auto; right: 60px; }
  .art-prayers .ui-pill { left: auto; right: 40px; }
  .art-wallpapers .ui-pill { left: auto; right: 100px; }
  .art-tray .ui-panel { left: auto; right: 44px; }
  .ui-float--clip { left: auto; right: 320px; }
  .art-tray .ui-pill { left: auto; right: 380px; }
}

@media (max-width: 720px) {
  .bento-tabs { margin-bottom: 24px; }
  .bento-tabs button { padding: 8px 18px; font-size: 14px; }
  .bento-set { gap: 14px; }
  .bento-card { --card-h: 440px; border-radius: 26px; }
  .bento-copy { padding: 26px 24px 0; }
  .bento-card--copy-bottom .bento-copy { padding: 0 24px 26px; }

  .bento-art { transform: scale(0.84); transform-origin: 50% 0; }

  .tone-desert::before { background: linear-gradient(180deg, rgba(247, 241, 242, 0.92) 0%, rgba(247, 241, 242, 0.6) 28%, rgba(247, 241, 242, 0) 45%); }

  .art-today .ui-rail { right: auto; left: calc(50% - 190px); top: 160px; }
  .art-today .ui-panel { right: auto; left: calc(50% - 108px); top: 160px; width: 290px; }
  .art-today .ui-float--nextup { left: calc(50% - 200px); top: 436px; width: 300px; }

  .art-calendar .ui-week { right: auto; left: calc(50% - 150px); top: 150px; }
  .art-calendar .ui-event { right: auto; left: calc(50% - 145px); top: 222px; }

  .art-reminders .ui-sheet,
  .art-notes .ui-sheet { top: 150px; bottom: -80px; }
  .art-reminders .ui-reminder--pop { top: 296px; }
  .art-notes .ui-note--pop { right: calc(50% - 205px); top: 120px; }

  .art-favorites .ui-favs { right: auto; left: calc(50% - 160px); top: 160px; }

  .art-tray .ui-panel { right: auto; left: calc(50% - 125px); top: 150px; }
  .ui-float--clip { right: auto; left: calc(50% - 195px); top: 400px; width: 310px; }
  .art-tray .ui-pill { right: auto; left: calc(50% - 200px); top: 344px; }

  .art-prayers .ui-panel,
  .art-wallpapers .ui-panel { right: auto; left: calc(50% - 180px); }
  .ui-float--next-prayer,
  .ui-float--source { right: auto; left: calc(50% - 30px); top: 150px; width: 230px; }
  .art-prayers .ui-pill { right: auto; left: calc(50% + 40px); top: 280px; }
  .art-wallpapers .ui-float--source { display: none; }
  .art-wallpapers .ui-pill { right: auto; left: calc(50% + 20px); top: 330px; }

  .bento-card--copy-bottom .bento-copy {
    right: 0;
    max-width: none;
    padding-top: 48px;
    background: linear-gradient(180deg, transparent, var(--bento-fade, rgba(237, 234, 233, 0.97)) 40%);
  }
  [data-theme="dark"] .bento-card--copy-bottom .bento-copy { --bento-fade: rgba(21, 21, 24, 0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .bento.is-ready .bento-set.is-active { animation: none; }
  .bento-tabs button { transition: none; }
}

/* ---------- Hero: headline on top, laptop centre stage, cards floating around it ---------- */

.hero {
  width: 100%;
  overflow-x: clip;
}

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

.hero-showcase {
  position: relative;
  width: min(1240px, 100%);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding-bottom: clamp(24px, 4vw, 56px);
}

.hero-arc {
  position: absolute;
  left: 0;
  right: 0;
  top: 6%;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
}

.hero-arc::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1000px, 84%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid var(--panel-border-strong);
  background:
    radial-gradient(closest-side at 50% 58%, rgba(255, 214, 170, 0.55), rgba(255, 214, 170, 0) 70%),
    radial-gradient(closest-side at 50% 40%, var(--accent-soft), transparent 80%);
}

[data-theme="dark"] .hero-arc::before {
  background:
    radial-gradient(closest-side at 50% 58%, rgba(147, 118, 255, 0.20), transparent 70%),
    radial-gradient(closest-side at 50% 40%, rgba(255, 150, 120, 0.08), transparent 80%);
}

.hero-laptop {
  position: relative;
  width: min(860px, 68%);
  margin: 0 auto;
  aspect-ratio: 1868 / 1080;
  scroll-margin-top: 110px;
}

.hero-laptop video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 641px) {
  .hero-copy {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 0 20px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 3.9vw, 3.2rem);
    line-height: 1.06;
  }

  .hero-cards,
  .hero-cards > .hero-card {
    all: unset;
  }

  .hero-cards {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
  }

  .hero-cards > .hero-card {
    --w: clamp(96px, 10.5vw, 140px);
    position: absolute;
    display: block;
    width: var(--w);
    aspect-ratio: 629 / 998;
    border-radius: 26px;
    pointer-events: auto;
    transform: rotate(var(--r));
    transition: transform 0.45s var(--ease);
    animation: hero-float 7s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }

  /* Left of the laptop */
  .hero-cards > .hero-card:nth-child(1) { --r: -7deg; --d: -1s;   left: 7%;  top: -6%; }
  .hero-cards > .hero-card:nth-child(2) { --r: 5deg;  --d: -3.5s; left: 15%; top: 42%; }
  .hero-cards > .hero-card:nth-child(3) { --r: -4deg; --d: -2s;   left: 1%;  top: 36%; }
  /* Right of the laptop */
  .hero-cards > .hero-card:nth-child(4) { --r: 7deg;  --d: -4.5s; right: 7%;  top: -8%; }
  .hero-cards > .hero-card:nth-child(5) { --r: -5deg; --d: -0.5s; right: 15%; top: 40%; }
  .hero-cards > .hero-card:nth-child(6) { --r: 4deg;  --d: -5.5s; right: 1%;  top: 34%; }

  @media (hover: hover) {
    .hero-cards > .hero-card:hover {
      z-index: 20;
      animation-play-state: paused;
      transform: rotate(calc(var(--r) * 0.4)) scale(2);
      box-shadow: 0 40px 90px rgba(40, 24, 60, 0.28);
    }
  }

  /* Grow inward so a 2x card stays on screen instead of being clipped. */
  .hero-cards > .hero-card:nth-child(1) { transform-origin: 0% 0%; }
  .hero-cards > .hero-card:nth-child(2),
  .hero-cards > .hero-card:nth-child(3) { transform-origin: 0% 50%; }
  .hero-cards > .hero-card:nth-child(4) { transform-origin: 100% 0%; }
  .hero-cards > .hero-card:nth-child(5),
  .hero-cards > .hero-card:nth-child(6) { transform-origin: 100% 50%; }
}

@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .hero-laptop { width: 68%; }
  .hero-cards > .hero-card { --w: clamp(84px, 13vw, 116px); }
  .hero-cards > .hero-card:nth-child(3),
  .hero-cards > .hero-card:nth-child(6) { display: none; }
  .hero-cards > .hero-card:nth-child(1) { left: 2%; }
  .hero-cards > .hero-card:nth-child(2) { left: 6%; top: 46%; }
  .hero-cards > .hero-card:nth-child(4) { right: 2%; }
  .hero-cards > .hero-card:nth-child(5) { right: 6%; top: 44%; }
}

@media (max-width: 640px) {
  .hero-actions .button-secondary { display: none; }
  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .hero-showcase { display: flex; flex-direction: column; margin-top: 28px; }
  .hero-showcase > .hero-cards { order: 0; margin-top: 0; }
  .hero-showcase > .hero-deck-dots { order: 1; }
  .hero-showcase > .hero-laptop { order: 2; width: calc(100% + 12px); margin: 22px -6px 0; }
  .hero-arc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cards > .hero-card { animation: none; }
}

/* ---------- Hero: portrait with glass JanB panels orbiting ---------- */

.hero--portrait {
  position: relative;
  padding-bottom: 0;
}

.hero h1 em {
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-badge {
  position: absolute;
  top: clamp(40px, 6vw, 90px);
  right: max(24px, calc((100% - 1180px) / 2));
  width: 104px;
  height: 104px;
  color: var(--text);
  opacity: 0.85;
}

.hero-badge svg { width: 100%; height: 100%; overflow: visible; }
.hero-badge text {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  fill: currentColor;
  transform-origin: 60px 60px;
  animation: hero-badge-spin 28s linear infinite;
}
.hero-badge-star { fill: currentColor; }

@keyframes hero-badge-spin { to { transform: rotate(360deg); } }

/* Glass surface, derived from the app's GlassSystem (white glass, soft
   inner highlight, salmon hero accent). */
.glass {
  --g-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  --g-line: rgba(255, 255, 255, 0.85);
  --g-ink: #1c1b1e;
  --g-ink-2: rgba(28, 27, 30, 0.58);
  --g-chip: rgba(243, 151, 138, 0.16);
  --g-accent: #f3978a;
  --g-accent-ink: #e2705f;
  background: var(--g-bg);
  border: 1px solid var(--g-line);
  box-shadow:
    0 18px 44px rgba(40, 24, 50, 0.14),
    0 2px 6px rgba(40, 24, 50, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 24px rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  color: var(--g-ink);
}

[data-theme="dark"] .glass {
  --g-bg: linear-gradient(140deg, rgba(58, 54, 66, 0.62), rgba(28, 26, 34, 0.46));
  --g-line: rgba(255, 255, 255, 0.16);
  --g-ink: #f5f3f8;
  --g-ink-2: rgba(245, 243, 248, 0.62);
  --g-chip: rgba(243, 151, 138, 0.20);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.glass .i { width: 1em; height: 1em; display: block; flex: none; }

.glass-chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.8em;
  background: var(--g-chip);
  color: var(--g-accent);
  font-size: 1em;
}

.glass-chip .i { width: 1.3em; height: 1.3em; }

.portrait-stage {
  --u: clamp(8.5px, 1.02vw, 13px);
  position: relative;
  width: min(1180px, calc(100% - 40px));
  aspect-ratio: 1180 / 700;
  margin: clamp(10px, 2vw, 28px) auto 0;
  font-size: var(--u);
  perspective: 1400px;
  isolation: isolate;
  text-align: left;
}

.portrait {
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  z-index: 2;
  pointer-events: none;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%), linear-gradient(90deg, transparent 0, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 74%, transparent 99%), linear-gradient(90deg, transparent 0, #000 14%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

[data-theme="dark"] .portrait img {
  filter: brightness(0.92) contrast(1.05);
}

.portrait-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  fill: none;
  stroke: var(--panel-border-strong);
  stroke-width: 1;
}

.portrait-lines path,
.portrait-lines ellipse { vector-effect: non-scaling-stroke; }
.portrait-orbit { stroke-dasharray: 2 6; opacity: 0.8; }

/* Orbiting panels */

.orbit {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85em;
  width: 15.5em;
  padding: 0.95em 1.05em;
  border-radius: 1.5em;
  transform: rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg));
  transform-style: preserve-3d;
  animation: orbit-float 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.orbit--back { z-index: 1; }
.orbit--front { z-index: 3; }

.orbit-text { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.orbit-text small { font-size: 0.85em; font-weight: 650; color: var(--g-ink-2); }
.orbit-text b { font-size: 1.1em; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap; }
.orbit-text em { font-style: normal; font-size: 0.85em; font-weight: 650; color: var(--g-ink-2); white-space: nowrap; }
.orbit-text em.is-accent { color: var(--g-accent-ink); }
.orbit-big { font-size: 1.75em !important; font-weight: 800 !important; line-height: 1.05; }
.orbit-script {
  font-family: "JanB Greeting", "Snell Roundhand", cursive;
  font-weight: 400 !important;
  font-size: 1.25em !important;
  line-height: 1.2;
}

.orbit-wave { display: flex; align-items: center; gap: 0.22em; margin-left: auto; height: 1.6em; }
.orbit-wave i { width: 0.24em; border-radius: 1em; background: var(--g-accent); animation: orbit-wave 1.2s ease-in-out infinite; }
.orbit-wave i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.orbit-wave i:nth-child(2) { height: 90%; animation-delay: -0.6s; }
.orbit-wave i:nth-child(3) { height: 60%; animation-delay: -0.4s; }
.orbit-wave i:nth-child(4) { height: 100%; animation-delay: -0.9s; }
.orbit-wave i:nth-child(5) { height: 50%; animation-delay: -0.1s; }

.orbit--tile { width: 9em; padding: 0.4em; border-radius: 1.2em; }
.orbit--tile img { display: block; width: 100% !important; height: 6.8em !important; max-width: none; object-fit: cover; border-radius: 0.85em; }

/* Positions around the head (stage is 1180 × 700) */
.orbit--focus    { left: 22%;  top: 15%; --ry: 32deg;  --rz: -4deg; --d: -1s; }
.orbit--calendar { left: 59%;  top: 6%;  --ry: -30deg; --rz: 4deg;  --d: -3s; }
.orbit--tile-a   { left: 15%;  top: 40%; --ry: 38deg;  --rz: -6deg; --d: -5s; }
.orbit--tile-b   { left: 67%;  top: 25%; --ry: -36deg; --rz: 6deg;  --d: -2s; }
.orbit--today    { width: 17em; left: 21%;  top: 56%; --ry: 24deg;  --rz: -3deg; --d: -4s; }
.orbit--prayer   { left: 62%;  top: 55%; --ry: -24deg; --rz: 3deg;  --d: -6s; }
.orbit--sound    { left: 41%;  top: 79%; --ry: 0deg;   --rz: -1deg; --d: -2.5s; }

.orbit--back { filter: saturate(0.9); opacity: 0.92; }

@keyframes orbit-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes orbit-wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

/* Side cards linked to the orbit with thin lines */

.glass-side {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 15em;
  padding: 1.4em 1.4em 1.5em;
  border-radius: 1.6em;
}

.glass-side strong { font-size: 1.45em; font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; margin-top: 0.4em; }
.glass-side > span:last-child { font-size: 0.98em; font-weight: 550; color: var(--g-ink-2); line-height: 1.4; }

.glass-side--left  { left: 0;  top: 2%;  transform: rotate(-3deg); }
.glass-side--right { right: 0; top: 30%; transform: rotate(3deg); }

.glass-rail { display: flex; align-items: center; gap: 0.35em; }
.glass-rail i {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: var(--g-ink);
  font-size: 1em;
}
[data-theme="dark"] .glass-rail i { background: rgba(255, 255, 255, 0.10); }
.glass-rail i:first-child { color: var(--g-accent); }
.glass-rail i .i { width: 1.15em; height: 1.15em; }
.glass-rail b { font-size: 0.9em; font-weight: 750; color: var(--g-ink-2); margin-left: 0.3em; }

/* Corner notes */

.portrait-note {
  position: absolute;
  bottom: 12%;
  z-index: 3;
  font-size: 1.15em;
  color: var(--muted);
}

.portrait-note p { margin: 0; line-height: 1.4; font-weight: 500; }
.portrait-note--left { left: 0; }
.portrait-note--right { right: 0; text-align: left; }
.portrait-rule { display: block; width: 2.2em; height: 1px; margin-bottom: 1em; background: var(--panel-border-strong); }
.portrait-star { display: block; width: 1.4em; height: 1.4em; margin-bottom: 0.8em; fill: var(--text); }

/* Smaller screens */

@media (max-width: 900px) {
  .hero-badge { display: none; }
}

@media (max-width: 760px) {
  .portrait-stage {
    --u: clamp(8px, 2.5vw, 11px);
    aspect-ratio: 390 / 470;
    width: 100%;
    margin-left: 0;
  }
  .portrait { left: 3%; width: 94%; }
  .glass-side, .portrait-note, .portrait-lines, .orbit--tile, .orbit--calendar { display: none; }
  .orbit,
  .orbit--today { width: auto; padding: 0.8em 1em; }
  .orbit--focus  { left: 3%;  top: 4%;  --ry: 18deg; }
  .orbit--today  { left: 3%;  top: 52%; --ry: 14deg; }
  .orbit--prayer { left: auto; right: 3%; top: 32%; --ry: -14deg; }
  .orbit--sound  { left: auto; right: 5%; top: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit, .orbit-wave i, .hero-badge text { animation: none; }
}

/* ---------- Product showcase (laptop demo + panel cards) ---------- */

.showcase-section {
  overflow-x: clip;
  padding-top: clamp(48px, 7vw, 96px);
}

.showcase-section .section-heading { margin-bottom: clamp(12px, 2vw, 24px); }

/* ---------- Curved glass panels orbiting the portrait (3D ring) ---------- */

.ring.ring--back { z-index: 1; }
.ring.ring--front { z-index: 4; }
.glass-side { z-index: 6; }

.ring {
  position: absolute;
  left: 52%;
  top: 31%;
  width: 0;
  height: 0;
  z-index: 4;
  transform-style: preserve-3d;
  pointer-events: none;
}

.ring-tilt {
  transform-style: preserve-3d;
  transform: rotateZ(-7deg) rotateX(-16deg);
}

.ring-spin {
  --R: 25em;
  font-size: 1.18em;
  transform-style: preserve-3d;
  will-change: transform;
}


/* Without JS the raw items are hidden; the script turns each into slices. */
.ring-spin > .ring-item:not(.is-built) { display: none; }

.ring-item {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--a));
}

.ring-slice {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sw);
  height: var(--h);
  transform-origin: 0 0;
  transform: rotateY(var(--o)) translateZ(var(--R)) translate(-50%, -50%);
  transform-style: preserve-3d;
}

.ring-face,
.ring-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(180deg, #fdfcfc 0%, #f4f0f1 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.ring-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #faf8f8 0%, #efebec 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .ring-face {
  background: linear-gradient(180deg, #34313b 0%, #24222a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] .ring-back { background: linear-gradient(180deg, #312e38 0%, #222027 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.ring-item--tile .ring-back,
[data-theme="dark"] .ring-item--tile .ring-back { background: transparent; box-shadow: none; }

.ring-slice.is-first .ring-face { border-radius: 1.3em 0 0 1.3em; }
.ring-slice.is-last .ring-face  { border-radius: 0 1.3em 1.3em 0; }
.ring-slice.is-first .ring-back { border-radius: 0 1.3em 1.3em 0; }
.ring-content { white-space: nowrap; }
.ring-slice.is-last .ring-back  { border-radius: 1.3em 0 0 1.3em; }

.ring-content {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  height: var(--h);
  transform: translateX(var(--x));
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0 1em;
  box-sizing: border-box;
  color: var(--g-ink, #1c1b1e);
  --g-ink: #1c1b1e;
  --g-ink-2: rgba(28, 27, 30, 0.58);
  --g-chip: rgba(243, 151, 138, 0.16);
  --g-accent: #f3978a;
  --g-accent-ink: #e2705f;
}

[data-theme="dark"] .ring-content { --g-ink: #f5f3f8; --g-ink-2: rgba(245, 243, 248, 0.62); --g-chip: rgba(243, 151, 138, 0.22); }

.ring-content .i { width: 1em; height: 1em; display: block; flex: none; }
.ring-content.is-tile { padding: 0.35em; }
.ring-content.is-tile img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1em; }

/* Panels on the far side of the ring show only their blank glass back —
   set from JS so it works even where backface-visibility is unreliable. */
/* Far-side panels are dimmed with a filter, not opacity: overlapping
   strips would stack semi-transparent edges into visible seams. */
.ring-item.is-back .ring-back { filter: saturate(0.75) brightness(1.06) contrast(0.88); }
[data-theme="dark"] .ring-item.is-back .ring-back { filter: saturate(0.8) brightness(0.72); }
.ring-item.is-back .ring-face,
.ring-item:not(.is-back) .ring-back { visibility: hidden; }

/* Tiles: image fills the panel, no frame */
.ring-item--tile .ring-face,
[data-theme="dark"] .ring-item--tile .ring-face { background: transparent; box-shadow: none; }

@media (max-width: 760px) {
  .ring { left: 50%; top: 52%; }
  .ring-spin { --R: 16em; font-size: 0.9em; }
}

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

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

.footer {
  position: relative;
  width: min(1240px, calc(100% - 24px));
  margin: clamp(60px, 9vw, 120px) auto 12px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-rise);
  border: 1px solid var(--panel-border);
  color: var(--text);
}

/* Soft glows in the site's accent + warm tones, like the reference's corner light */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 90% at 0% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(70% 60% at 85% 120%, rgba(243, 151, 138, 0.30), transparent 70%);
}

/* Fine dot texture */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--panel-border) 0.8px, transparent 0.9px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  opacity: 0.6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  grid-template-areas:
    "brand cols"
    "legal updates";
  gap: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 80px);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px) clamp(32px, 4vw, 52px);
}

.footer-brand { grid-area: brand; }
.footer-cols { grid-area: cols; }
.footer-legal { grid-area: legal; align-self: end; }
.footer-updates { grid-area: updates; align-self: end; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-logo img {
  width: clamp(48px, 5vw, 60px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(40, 24, 60, 0.16);
}

.brand-logotype--footer {
  width: clamp(73.5px, 7.84vw, 100.45px);
  height: clamp(23.52px, 2.45vw, 32.34px);
}

.footer-tagline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.footer-label {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) auto;
  gap: 32px clamp(28px, 4vw, 64px);
}

.footer-col,
nav.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-col > a {
  font-size: 19px;
  font-weight: 520;
  line-height: 1.75;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.footer-col > a:hover { color: var(--accent-text); }

.footer-col--about p {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 520;
  color: var(--text);
  max-width: 31ch;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-socials a:hover {
  color: var(--accent-text);
  border-color: var(--panel-border-strong);
  background: var(--panel-strong);
}

.footer-socials svg { width: 20px; height: 20px; }

.footer-legal p {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--soft-muted);
}

.footer-legal-links {
  display: flex;
  gap: 10px;
  margin-top: 10px !important;
}

.footer-legal-links a { color: var(--muted); }
.footer-legal-links a:hover { color: var(--text); }

.footer-updates .footer-label { margin-bottom: 6px; }

.footer-updates-lede {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.footer-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--panel-border-strong);
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.footer-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.footer-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-field input::placeholder { color: var(--soft-muted); }

.footer-field button {
  flex: none;
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px var(--accent-glow);
}

.footer-updates-status {
  min-height: 1.4em;
  margin: 10px 0 0 22px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "cols" "updates" "legal";
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-col--about { grid-column: 1 / -1; order: 3; }
  .footer-col > a, .footer-col--about p { font-size: 17px; }
  .footer-inner { padding-left: 22px; padding-right: 22px; }
  .footer-field { padding-left: 16px; }
  .footer-field input { font-size: 14px; }
  .footer-field button { padding: 11px 14px; font-size: 11.5px; }
}

/* Labels in sentence case (no all-caps) */
.eyebrow,
.footer-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 650;
}

.footer-field button {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

@media (min-width: 1100px) {
  .footer-col--about p { white-space: nowrap; max-width: none; font-size: 17px; }
}

/* ---------- Pricing ---------- */

.pricing {
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(70px, 10vw, 130px) auto clamp(30px, 5vw, 60px);
  scroll-margin-top: 100px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--bg-rise);
  border: 1px solid #eaeaeb;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}

[data-theme="dark"] .price-card { border-color: var(--panel-border); }

/* Paid card: soft glow in the site's purple and the app's salmon */
.price-card--paid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 100%, rgba(124, 92, 255, 0.55), transparent 70%),
    radial-gradient(55% 55% at 60% 105%, rgba(243, 151, 138, 0.65), transparent 70%),
    radial-gradient(45% 50% at 100% 85%, rgba(255, 196, 120, 0.55), transparent 70%);
  filter: blur(6px);
}

[data-theme="dark"] .price-card--paid::before { opacity: 0.75; }

.price-name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 560;
}

.brand-logotype--price {
  width: 60.2px;
  height: 19.6px;
}

.price-amount {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-amount span {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--soft-muted);
  margin-left: 4px;
}

.price-card hr {
  width: 100%;
  margin: 24px 0 22px;
  border: 0;
  border-top: 1px solid var(--panel-border);
}

.price-includes {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
  color: var(--soft-muted);
}

.price-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.45;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.price-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.price-btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
}

.price-btn[aria-disabled="true"] {
  cursor: default;
}

.price-btn--dark {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 720px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* "See it in action" heading on one line on wider screens */
.showcase-section .section-heading { max-width: none; }
@media (min-width: 900px) {
  .showcase-section .section-heading h2 { white-space: nowrap; }
}

/* Intro quote in the same italic serif as the hero's "parked at the edge." */
.intro-band blockquote {
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 2.9vw, 1.95rem);
  line-height: 1.4;
}

/* Eyebrows 50% larger, section headings beneath them 25% smaller */
.eyebrow { font-size: 22.5px; margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(1.275rem, 2.4vw, 1.875rem); }
