/* The frame page borrows Keepsake's landing tokens and keeps its layout rules scoped here. */
.frames-shell {
  --frames-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --frames-max: 1140px;
  --frames-card: var(--landing-surface);
  --frames-card-strong: #ffffff;
  --frames-on-band-muted: rgba(243, 238, 227, 0.82);
  --frames-shadow: 0 1.25rem 3.75rem rgba(27, 64, 48, 0.14);
}

.frames-shell,
.frames-shell * {
  box-sizing: border-box;
}

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

.frames-shell .brand-container {
  max-width: var(--frames-max);
}

.frames-shell .frames-page {
  position: relative;
  z-index: 2;
}

.frames-shell .frames-skip-link {
  background: var(--landing-button-fill);
  color: var(--landing-button-text);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: absolute;
  text-decoration: none;
  top: -5rem;
  z-index: 40;
}

.frames-shell .frames-skip-link:focus {
  top: 1rem;
}

.frames-shell .frames-kicker {
  color: var(--landing-accent);
  font-size: 0.78rem;
  font-weight: var(--fw-extra);
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.frames-shell .frames-kicker--light {
  color: var(--landing-on-band-gold);
}

.frames-shell .frames-hero {
  padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(4rem, 8vw, 7rem);
}

.frames-shell .frames-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  grid-template-columns: minmax(0, 0.86fr) minmax(20rem, 1.14fr);
}

.frames-shell .frames-hero__copy {
  max-width: 34rem;
}

.frames-shell .frames-hero h1 {
  font-size: clamp(3.05rem, 6vw, 5.65rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 10ch;
}

.frames-shell .frames-hero__lead {
  color: var(--landing-muted);
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  line-height: 1.62;
  margin-top: 1.5rem;
  max-width: 34rem;
}

.frames-shell .frames-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.frames-shell .frames-hero__facts {
  color: var(--landing-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.81rem;
  gap: 0.3rem 0.7rem;
  line-height: 1.5;
  margin-top: 1.25rem;
}

.frames-shell .frames-hero__facts span + span::before {
  color: var(--landing-gold-text);
  content: "·";
  margin-right: 0.7rem;
}

.frames-shell .frames-hero__photo {
  margin: 0;
  position: relative;
}

.frames-shell .frames-photo-frame {
  background: var(--frames-card-strong);
  border: 0.8rem solid var(--frames-card-strong);
  box-shadow: 0 2.25rem 5rem rgba(27, 64, 48, 0.18), 0 0.25rem 0.8rem rgba(27, 64, 48, 0.12);
  margin-left: auto;
  max-width: 34rem;
  overflow: hidden;
  position: relative;
  transform: rotate(2.2deg);
}

.frames-shell .frames-photo-frame::after {
  border: 1px solid rgba(255, 255, 255, 0.48);
  content: "";
  inset: 0.8rem;
  pointer-events: none;
  position: absolute;
}

.frames-shell .frames-photo-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.frames-shell .frames-hero__photo figcaption {
  color: var(--landing-muted);
  font-size: 0.77rem;
  line-height: 1.4;
  margin: 1.35rem 0 0 auto;
  max-width: 27rem;
  text-align: right;
}

.frames-shell .frames-hero__photo figcaption span:last-child {
  color: var(--landing-accent);
}

.frames-shell .frames-intro-band {
  background: var(--landing-band);
  color: var(--landing-on-band);
  overflow: clip;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.frames-shell .frames-intro-band__grid {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 0.65fr);
}

.frames-shell .frames-intro-band__copy {
  max-width: 34rem;
}

.frames-shell .frames-intro-band h2,
.frames-shell .frames-intro-band p {
  color: var(--landing-on-band);
}

.frames-shell .frames-intro-band h2 {
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  max-width: 12ch;
}

.frames-shell .frames-intro-band__copy > p:not(.frames-kicker) {
  color: var(--frames-on-band-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-top: 1.25rem;
  max-width: 31rem;
}

.frames-shell .frames-text-link {
  align-items: center;
  color: var(--landing-on-band);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: var(--fw-bold);
  margin-top: 1.5rem;
  padding-block: 0.55rem;
  text-underline-offset: 0.25em;
}

.frames-shell .frames-family-photo {
  margin: 0;
  position: relative;
  transform: rotate(-2.8deg);
}

.frames-shell .frames-family-photo::before {
  background: var(--landing-gold-fill);
  content: "";
  height: 4.5rem;
  left: -1rem;
  opacity: 0.84;
  position: absolute;
  top: -1rem;
  transform: rotate(5deg);
  width: 5rem;
  z-index: 1;
}

.frames-shell .frames-family-photo img {
  border: 0.7rem solid var(--frames-card-strong);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.28);
  max-height: 35rem;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.frames-shell .frames-family-photo figcaption {
  color: var(--landing-on-band-gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 1rem;
  text-align: right;
}

.frames-shell .frames-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.frames-shell .frames-section-heading {
  margin-inline: auto;
  max-width: 45rem;
  text-align: center;
}

.frames-shell .frames-section-heading--wide {
  max-width: 53rem;
}

.frames-shell .frames-section-heading h2,
.frames-shell .frames-demo-copy h2,
.frames-shell .frames-final-band h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
}

.frames-shell .frames-section-heading > p:not(.frames-kicker) {
  color: var(--landing-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 1.1rem auto 0;
  max-width: 39rem;
}

.frames-shell .frames-feature-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.frames-shell .frames-feature-card {
  background: var(--frames-card);
  border: 1px solid var(--landing-line);
  margin: -1px 0 0 -1px;
  min-height: 14rem;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  position: relative;
}

.frames-shell .frames-feature-card:nth-child(1) {
  border-radius: var(--radius-lg) 0 0 0;
}

.frames-shell .frames-feature-card:nth-child(3) {
  border-radius: 0 var(--radius-lg) 0 0;
}

.frames-shell .frames-feature-card:nth-child(4) {
  border-radius: 0 0 0 var(--radius-lg);
}

.frames-shell .frames-feature-card:nth-child(6) {
  border-radius: 0 0 var(--radius-lg) 0;
}

.frames-shell .frames-feature-card--note {
  background: var(--landing-band-alt);
}

.frames-shell .frames-feature-icon {
  align-items: center;
  background: var(--landing-band-alt);
  border: 1px solid var(--landing-line-strong);
  border-radius: 50%;
  color: var(--landing-accent);
  display: inline-flex;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.frames-shell .frames-feature-card h3 {
  font-size: 1.45rem;
  margin-top: 1.1rem;
}

.frames-shell .frames-feature-card p {
  color: var(--landing-muted);
  font-size: 0.94rem;
  line-height: 1.58;
  margin-top: 0.55rem;
}

.frames-shell .frames-demo-band {
  background: var(--landing-band-alt);
  border-block: 1px solid var(--landing-line);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.frames-shell .frames-demo-band__grid {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.88fr);
}

.frames-shell .frames-video-wrap {
  margin-inline: auto;
  max-width: 22rem;
  width: 100%;
}

.frames-shell .frames-video-wrap video {
  aspect-ratio: 9 / 16;
  background: #000;
  border: 0.55rem solid var(--frames-card-strong);
  box-shadow: var(--frames-shadow);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.frames-shell .frames-video-caption {
  color: var(--landing-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0.85rem;
  text-align: center;
}

.frames-shell .frames-demo-copy {
  max-width: 34rem;
}

.frames-shell .frames-demo-copy > p:not(.frames-kicker) {
  color: var(--landing-muted);
  font-size: 1.06rem;
  line-height: 1.65;
  margin-top: 1.25rem;
}

.frames-shell .frames-checklist {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1.6rem;
}

.frames-shell .frames-checklist li {
  align-items: flex-start;
  color: var(--landing-body);
  display: flex;
  font-size: 0.95rem;
  gap: 0.65rem;
  line-height: 1.45;
}

.frames-shell .frames-checklist [data-lucide] {
  color: var(--landing-accent);
  margin-top: 0.1rem;
}

.frames-shell .frames-how {
  background: var(--landing-page);
}

.frames-shell .frames-steps {
  border-top: 1px solid var(--landing-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.frames-shell .frames-step {
  border-bottom: 1px solid var(--landing-line);
  border-right: 1px solid var(--landing-line);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: auto 1fr;
  padding: 2rem 1.5rem 2.2rem;
}

.frames-shell .frames-step:first-child {
  padding-left: 0;
}

.frames-shell .frames-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.frames-shell .frames-step__number {
  color: var(--landing-gold-text);
  font-size: 0.82rem;
  font-weight: var(--fw-extra);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.frames-shell .frames-step h3 {
  font-size: 1.45rem;
}

.frames-shell .frames-step p {
  color: var(--landing-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.55rem;
}

.frames-shell .frames-service-note {
  border-left: 3px solid var(--landing-gold-fill);
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 2.5rem auto 0;
  max-width: 42rem;
  padding-left: 1rem;
}

.frames-shell .frames-service-note strong {
  color: var(--landing-body);
}

.frames-shell .frames-pricing-band {
  background: var(--landing-band);
  color: var(--landing-on-band);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.frames-shell .frames-section-heading--light h2,
.frames-shell .frames-section-heading--light > p:not(.frames-kicker) {
  color: var(--landing-on-band);
}

.frames-shell .frames-section-heading--light > p:not(.frames-kicker) {
  color: var(--frames-on-band-muted);
}

.frames-shell .frames-checkout-paused {
  align-items: baseline;
  border: 1px solid var(--landing-gold-line);
  color: var(--frames-on-band-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 0.35rem 0.6rem;
  justify-content: center;
  line-height: 1.5;
  margin: 2rem auto 0;
  max-width: 54rem;
  padding: 0.9rem 1rem;
  text-align: center;
}

.frames-shell .frames-checkout-paused strong {
  color: var(--landing-on-band);
}

.frames-shell .frames-price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 54rem;
}

.frames-shell .frames-price-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-line-strong);
  color: var(--landing-heading);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.frames-shell .frames-price-card--featured {
  border-color: var(--landing-gold-line);
  box-shadow: 0 1.3rem 3.4rem rgba(0, 0, 0, 0.2);
  transform: translateY(-0.75rem);
}

.frames-shell .frames-price-card--disabled {
  opacity: 0.82;
}

.frames-shell .frames-price-card__topline {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.frames-shell .frames-price-card__label {
  color: var(--landing-accent);
  font-size: 0.76rem;
  font-weight: var(--fw-extra);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.frames-shell .frames-price-card--featured .frames-price-card__label {
  color: var(--landing-gold-text);
}

.frames-shell .frames-price-card__size {
  color: var(--landing-heading);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
}

.frames-shell .frames-price-card__detail {
  color: var(--landing-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 1rem;
  max-width: 21rem;
}

.frames-shell .frames-price-card__price {
  border-bottom: 1px solid var(--landing-line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 2rem;
  padding-bottom: 1.45rem;
}

.frames-shell .frames-price-card__regular {
  color: var(--landing-muted);
  font-size: 0.83rem;
}

.frames-shell .frames-price-card__price strong {
  color: var(--landing-heading);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.frames-shell .frames-price-card__price > span:last-child {
  color: var(--landing-accent);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.frames-shell .frames-price-card--featured .frames-price-card__price > span:last-child {
  color: var(--landing-gold-text);
}

.frames-shell .frames-buy-form {
  margin-top: auto;
  padding-top: 1.5rem;
}

.frames-shell .frames-buy-form .landing-button {
  width: 100%;
}

.frames-shell .frames-buy-form .landing-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.frames-shell .frames-pricing-note {
  color: var(--frames-on-band-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.35rem 1.5rem;
  justify-content: center;
  line-height: 1.5;
  margin: 2rem auto 0;
  max-width: 55rem;
  text-align: center;
}

.frames-shell .frames-pricing-note p {
  color: var(--frames-on-band-muted);
  margin: 0;
}

.frames-shell .frames-pricing-note strong {
  color: var(--landing-on-band);
}

.frames-shell .frames-faq-list {
  border-top: 1px solid var(--landing-line);
  margin-top: 2.5rem;
}

.frames-shell .frames-faq-list details {
  border-bottom: 1px solid var(--landing-line);
  padding: 1.35rem 0;
}

.frames-shell .frames-faq-list summary {
  color: var(--landing-heading);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--fw-semibold);
  list-style-position: outside;
  padding-right: 1rem;
}

.frames-shell .frames-faq-list summary::marker {
  color: var(--landing-accent);
}

.frames-shell .frames-faq-list details p {
  color: var(--landing-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0.8rem 0 0 1.1rem;
  max-width: 41rem;
}

.frames-shell .frames-final-band {
  background:
    radial-gradient(circle at 76% 0%, rgba(217, 174, 66, 0.27), transparent 20rem),
    var(--landing-band);
  color: var(--landing-on-band);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  text-align: center;
}

.frames-shell .frames-final-band__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.frames-shell .frames-final-band h2 {
  color: var(--landing-on-band);
  max-width: 14ch;
}

.frames-shell .frames-final-band p:not(.frames-kicker) {
  color: var(--frames-on-band-muted);
  font-size: 1.06rem;
  line-height: 1.6;
  margin-top: 1.1rem;
  max-width: 35rem;
}

.frames-shell .frames-final-band .landing-button {
  margin-top: 1.65rem;
}

@media (max-width: 860px) {
  .frames-shell .frames-hero__grid,
  .frames-shell .frames-intro-band__grid,
  .frames-shell .frames-demo-band__grid {
    grid-template-columns: 1fr;
  }

  .frames-shell .frames-hero__copy,
  .frames-shell .frames-demo-copy {
    max-width: 42rem;
  }

  .frames-shell .frames-photo-frame {
    margin-inline: auto;
    max-width: 32rem;
  }

  .frames-shell .frames-hero__photo figcaption {
    margin-inline: auto;
    max-width: 32rem;
  }

  .frames-shell .frames-intro-band__grid {
    gap: 3rem;
  }

  .frames-shell .frames-family-photo {
    margin-inline: auto;
    max-width: 30rem;
  }

  .frames-shell .frames-family-photo img {
    max-height: 31rem;
  }

  .frames-shell .frames-video-wrap {
    margin-inline: 0;
  }

  .frames-shell .frames-demo-band__grid {
    gap: 3rem;
  }
}

@media (max-width: 720px) {
  .frames-shell .frames-hero h1 {
    max-width: 12ch;
  }

  .frames-shell .frames-feature-grid,
  .frames-shell .frames-steps,
  .frames-shell .frames-price-grid {
    grid-template-columns: 1fr;
  }

  .frames-shell .frames-feature-card,
  .frames-shell .frames-feature-card:nth-child(1),
  .frames-shell .frames-feature-card:nth-child(3),
  .frames-shell .frames-feature-card:nth-child(4),
  .frames-shell .frames-feature-card:nth-child(6) {
    border-radius: 0;
    min-height: 0;
  }

  .frames-shell .frames-feature-card:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .frames-shell .frames-feature-card:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .frames-shell .frames-step,
  .frames-shell .frames-step:first-child,
  .frames-shell .frames-step:last-child {
    border-bottom: 1px solid var(--landing-line);
    border-right: 0;
    padding: 1.5rem 0;
  }

  .frames-shell .frames-step:last-child {
    border-bottom: 0;
  }

  .frames-shell .frames-price-card--featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .frames-shell .frames-hero {
    padding-top: 2.75rem;
  }

  .frames-shell .frames-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .frames-shell .frames-hero__actions .landing-button {
    width: 100%;
  }

  .frames-shell .frames-hero__facts {
    display: grid;
    gap: 0.25rem;
  }

  .frames-shell .frames-hero__facts span + span::before {
    content: "";
    margin: 0;
  }

  .frames-shell .frames-photo-frame {
    border-width: 0.55rem;
  }

  .frames-shell .frames-photo-frame::after {
    inset: 0.55rem;
  }

  .frames-shell .frames-family-photo img {
    border-width: 0.55rem;
  }

  .frames-shell .frames-video-wrap {
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frames-shell *,
  .frames-shell *::before,
  .frames-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .frames-shell .frames-photo-frame,
  .frames-shell .frames-family-photo {
    transform: none;
  }
}
