.device-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 10px solid #18181826;
  border-radius: 8px;
  background: #18181826;
  box-shadow: var(--shadow);
}

.device-frame::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
}

.device-frame img {
  width: 100%;
  aspect-ratio: 5 / 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  object-fit: cover;
}

.hero-carousel {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 26px 86px rgba(20, 24, 22, 0.16);
}

.hero-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2000ms ease;
}

.hero-carousel__image.is-active {
  opacity: 1;
}

.hero-product {
  position: absolute;
  top: 50%;
  right: -3vw;
  bottom: auto;
  z-index: 1;
  margin: 0;
  width: min(1040px, 72vw);
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-product::before {
  content: none;
}

.device-frame--story {
  width: 100%;
}

.product-photo {
  margin: 0;
}

.product-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-caption {
  position: absolute;
  z-index: 2;
  right: -3vw;
  bottom: -60px;
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: right;
}

.hero-moment {
  position: absolute;
  z-index: 2;
  right: auto;
  left: clamp(12px, 5vw, 72px);
  bottom: 8%;
  display: grid;
  max-width: 320px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  box-shadow: 0 16px 42px rgba(20, 24, 22, 0.1);
  backdrop-filter: blur(10px);
}

.hero-moment strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.hero-moment span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.story-controls {
  display: grid;
  gap: 14px;
}

.story-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease;
}

.story-control:hover,
.story-control.is-active {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.story-control strong {
  display: block;
  color: var(--ink);
}

.story-control span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-grid,
.theme-grid,
.step-grid,
.context-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-grid,
.context-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
}

.feature-card,
.theme-card,
.step-card,
.context-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-card,
.step-card {
  padding: 28px;
}

.feature-card__index,
.step-card__index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
}

.feature-card h3,
.step-card h3 {
  margin-top: 26px;
}

.feature-card p,
.step-card p {
  margin-top: 10px;
  color: var(--muted);
}

.theme-card,
.context-card {
  overflow: hidden;
}

.theme-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.theme-card:hover img {
  transform: scale(1.025);
}

.theme-card__body,
.context-card__body {
  padding: 22px;
}

.theme-card__body p,
.context-card__body p {
  margin-top: 10px;
  color: var(--muted);
}

.context-card__scene {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: #f5f8f6;
  padding: 28px;
}

.context-card__frame {
  width: min(310px, 88%);
  border: 7px solid #18181826;
  border-radius: 8px;
  background: #18181826;
  box-shadow: 0 18px 48px rgba(20, 24, 22, 0.14);
}

.context-card__frame img {
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: 2px;
  object-fit: cover;
}

.theme-card__meta {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
}

.buy__content .button--wide {
  margin-top: 30px;
}

.secure-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 14, 0.56);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 34px;
  box-shadow: var(--shadow);
}

.modal__panel > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--ink-soft);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.modal__close img {
  width: 20px;
  height: 20px;
}

.platform-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.platform-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.platform-card img {
  width: 32px;
  height: 32px;
}

.platform-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.platform-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-card__badge {
  border-radius: 8px;
  background: var(--mist);
  color: var(--green);
  padding: 4px 8px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
}

.platform-card a,
.platform-card span {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

.platform-card a {
  background: var(--ink);
  color: var(--white);
}

.platform-card span {
  background: #eef1f0;
  color: var(--muted);
}

.policy-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.policy-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 14px;
  color: var(--ink-soft);
  font-weight: 800;
}

.policy-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.policy-body {
  margin-top: 24px;
  color: var(--ink-soft);
}

.policy-body a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
}
