/* Shared standalone product detail page system */

.standalone-product-page {
  --product-accent: #58d9e8;
  --product-accent-2: #7868f2;
  --product-soft: rgba(88, 217, 232, 0.12);
  background: #f6f9fb;
}

.theme-vocab { --product-accent: #7ce6ba; --product-accent-2: #7868f2; --product-soft: rgba(124, 230, 186, 0.13); }
.theme-listening { --product-accent: #58d9e8; --product-accent-2: #5574e9; --product-soft: rgba(88, 217, 232, 0.13); }
.theme-schedule { --product-accent: #ffd56a; --product-accent-2: #ff8d7d; --product-soft: rgba(255, 213, 106, 0.15); }
.theme-starcards { --product-accent: #58d9e8; --product-accent-2: #7868f2; --product-soft: rgba(120, 104, 242, 0.13); }
.theme-anime { --product-accent: #ff8d7d; --product-accent-2: #7868f2; --product-soft: rgba(255, 141, 125, 0.13); }
.theme-custom { --product-accent: #7ce6ba; --product-accent-2: #58d9e8; --product-soft: rgba(124, 230, 186, 0.13); }

.product-detail-header .site-nav a.active::after {
  background: linear-gradient(90deg, var(--product-accent), var(--product-accent-2));
}

.product-page-hero {
  position: relative;
  min-height: 860px;
  padding: 166px 0 104px;
  color: #fff;
  background: #071128;
  overflow: hidden;
}

.product-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(88, 217, 232, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 217, 232, 0.038) 1px, transparent 1px),
    radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--product-accent) 18%, transparent), transparent 31%),
    radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--product-accent-2) 22%, transparent), transparent 33%);
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.product-page-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(430px, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: 76px;
}

.product-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: rgba(221, 233, 250, 0.48);
  font-size: 9px;
}

.product-page-breadcrumb a:hover { color: var(--product-accent); }
.product-page-kicker { margin: 23px 0 0; color: var(--product-accent); font-size: 9px; font-weight: 900; letter-spacing: 0.19em; }

.product-page-hero h1 {
  max-width: 820px;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(58px, 6.3vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.product-page-hero-copy > p:not(.product-page-kicker) {
  max-width: 720px;
  margin: 27px 0 0;
  color: rgba(225, 236, 252, 0.69);
  font-size: 17px;
  line-height: 1.9;
  text-wrap: pretty;
}

.product-page-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.product-page-primary { color: #0d1730; background: linear-gradient(135deg, var(--product-accent), var(--product-accent-2)); }
.product-page-secondary { color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.055); }
.product-page-status { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: rgba(220, 233, 250, 0.5); font-size: 10px; }
.product-page-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--product-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--product-accent) 10%, transparent), 0 0 16px color-mix(in srgb, var(--product-accent) 60%, transparent); }

.product-page-hero-visual {
  position: relative;
  min-height: 630px;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.2s ease-out;
}

.product-page-hero-visual > figure {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  background: #111e43;
  box-shadow: 0 48px 105px rgba(0, 4, 20, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.product-page-hero-visual > figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(7, 17, 40, 0.86)); pointer-events: none; }
.product-page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-page-hero-visual figcaption { position: absolute; z-index: 2; right: 27px; bottom: 25px; left: 27px; }
.product-page-hero-visual figcaption span,
.product-page-hero-visual figcaption strong { display: block; color: #fff; }
.product-page-hero-visual figcaption span { color: var(--product-accent); font-size: 8px; font-weight: 900; letter-spacing: 0.15em; }
.product-page-hero-visual figcaption strong { max-width: 430px; margin-top: 6px; font-size: 17px; text-wrap: balance; }

.hero-interface-card {
  position: absolute;
  z-index: 4;
  width: 260px;
  padding: 19px;
  color: #1c2740;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 55px rgba(0, 4, 20, 0.26);
  backdrop-filter: blur(18px);
}

.hero-interface-card.card-top { top: 38px; left: -35px; transform: rotate(-3deg); }
.hero-interface-card.card-bottom { right: -30px; bottom: 48px; transform: rotate(2deg); }
.hero-interface-card span,
.hero-interface-card strong,
.hero-interface-card small { display: block; }
.hero-interface-card > span { color: var(--product-accent-2); font-size: 7px; font-weight: 900; letter-spacing: 0.13em; }
.hero-interface-card > strong { margin-top: 9px; color: #202b43; font-size: 20px; text-wrap: balance; }
.hero-interface-card > small { margin-top: 5px; color: #7e8798; font-size: 9px; line-height: 1.5; text-wrap: pretty; }
.hero-interface-card > div { height: 5px; margin-top: 13px; border-radius: 99px; background: #e5e9ef; overflow: hidden; }
.hero-interface-card > div i { display: block; width: var(--card-progress, 72%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--product-accent), var(--product-accent-2)); }

.product-detail-anchor-nav { position: sticky; z-index: 70; top: 82px; border-bottom: 1px solid rgba(16, 23, 53, 0.08); background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 28px rgba(28, 40, 73, 0.05); backdrop-filter: blur(18px); }
.product-detail-anchor-nav .section-shell { display: flex; justify-content: center; gap: clamp(18px, 4vw, 64px); }
.product-detail-anchor-nav a { position: relative; display: flex; align-items: center; min-height: 60px; color: #6d778a; font-size: 11px; font-weight: 750; white-space: nowrap; }
.product-detail-anchor-nav a::after { content: ""; position: absolute; right: 18%; bottom: 0; left: 18%; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--product-accent), var(--product-accent-2)); opacity: 0; transform: scaleX(0.5); transition: opacity 0.25s ease, transform 0.25s ease; }
.product-detail-anchor-nav a:hover::after,
.product-detail-anchor-nav a.is-active::after { opacity: 1; transform: scaleX(1); }
.product-detail-anchor-nav a.is-active { color: #202b43; }

.product-detail-section-block { scroll-margin-top: 150px; padding: 122px 0; }
.product-detail-section-block:nth-of-type(2n) { background: #f1f5f8; }
.product-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.55fr); align-items: end; gap: 70px; }
.product-detail-heading h2 { max-width: 850px; margin: 13px 0 0; color: var(--navy); font-size: clamp(43px, 5vw, 68px); line-height: 1.1; letter-spacing: -0.055em; text-wrap: balance; }
.product-detail-heading > p { margin: 0; color: #606c80; font-size: 15px; line-height: 1.88; text-wrap: pretty; }
.product-detail-section-kicker { margin: 0; color: var(--product-accent-2); font-size: 8px; font-weight: 900; letter-spacing: 0.17em; }

.problem-grid,
.standalone-feature-grid,
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 47px; }
.problem-card,
.standalone-feature-card,
.audience-card { position: relative; min-width: 0; padding: 27px; border: 1px solid rgba(16, 23, 53, 0.075); border-radius: 23px; background: #fff; box-shadow: 0 18px 44px rgba(35, 47, 75, 0.06); }
.problem-card > span,
.standalone-feature-card > span { color: var(--product-accent-2); font-size: 8px; font-weight: 900; letter-spacing: 0.12em; }
.problem-card h3,
.standalone-feature-card h3,
.audience-card h3 { margin: 20px 0 0; color: #28344c; font-size: 19px; text-wrap: balance; }
.problem-card p,
.standalone-feature-card p,
.audience-card p { margin: 10px 0 0; color: #6d788c; font-size: 12px; line-height: 1.75; text-wrap: pretty; }
.problem-icon,
.feature-icon { display: grid; width: 54px; height: 54px; margin-top: 18px; place-items: center; color: var(--product-accent-2); border-radius: 17px; background: var(--product-soft); font-size: 18px; font-style: normal; }

.product-showcase-shell { display: grid; grid-template-columns: minmax(560px, 1.12fr) minmax(400px, 0.88fr); align-items: center; gap: 82px; }
.product-showcase-visual { position: relative; min-height: 650px; }
.product-showcase-visual > figure { position: absolute; inset: 0; margin: 0; border-radius: 32px; background: #101c3f; box-shadow: 0 35px 82px rgba(34, 45, 76, 0.2); overflow: hidden; }
.product-showcase-visual > figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(7, 17, 40, 0.82)); }
.product-showcase-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-showcase-copy h2 { max-width: 700px; margin: 13px 0 0; color: var(--navy); font-size: clamp(42px, 4.6vw, 64px); line-height: 1.11; letter-spacing: -0.055em; text-wrap: balance; }
.product-showcase-copy > p:not(.product-detail-section-kicker) { margin: 22px 0 0; color: #606c80; font-size: 15px; line-height: 1.88; text-wrap: pretty; }
.showcase-points { display: grid; gap: 11px; margin-top: 27px; }
.showcase-points p { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 0; padding: 13px; border: 1px solid rgba(16, 23, 53, 0.07); border-radius: 14px; background: rgba(255, 255, 255, 0.75); }
.showcase-points i { display: grid; width: 35px; height: 35px; place-items: center; color: var(--product-accent-2); border-radius: 11px; background: var(--product-soft); font-style: normal; font-weight: 900; }
.showcase-points strong,
.showcase-points small { display: block; }
.showcase-points strong { color: #354057; font-size: 11px; }
.showcase-points small { margin-top: 4px; color: #7e8797; font-size: 9px; line-height: 1.5; text-wrap: pretty; }

.standalone-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.standalone-feature-card { min-height: 270px; }
.standalone-feature-card:nth-child(4),
.standalone-feature-card:nth-child(5),
.standalone-feature-card:nth-child(6) { background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--product-soft) 55%, #fff)); }

.product-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 48px 0 0; padding: 0; border: 1px solid rgba(16, 23, 53, 0.08); border-radius: 25px; background: #fff; list-style: none; overflow: hidden; }
.product-flow li { position: relative; min-width: 0; min-height: 245px; padding: 28px; border-right: 1px solid rgba(16, 23, 53, 0.07); }
.product-flow li:last-child { border-right: 0; }
.product-flow li > span { display: grid; width: 40px; height: 40px; place-items: center; color: var(--product-accent-2); border-radius: 13px; background: var(--product-soft); font-size: 8px; font-weight: 900; }
.product-flow h3 { margin: 38px 0 0; color: #2b364e; font-size: 17px; text-wrap: balance; }
.product-flow p { margin: 9px 0 0; color: #727d90; font-size: 11px; line-height: 1.72; text-wrap: pretty; }
.product-flow i { position: absolute; right: 25px; bottom: 24px; color: #a0a8b5; font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: 0.12em; }

.audience-card { min-height: 220px; }
.audience-card > span { display: inline-flex; padding: 6px 9px; color: var(--product-accent-2); border-radius: 999px; background: var(--product-soft); font-size: 8px; font-weight: 800; }

.product-trust-block { color: #fff; background: #08122b !important; }
.product-trust-block .product-detail-heading h2 { color: #fff; }
.product-trust-block .product-detail-heading > p { color: rgba(224, 235, 252, 0.63); }
.product-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 44px; }
.product-trust-grid article { padding: 25px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; background: rgba(255, 255, 255, 0.04); }
.product-trust-grid span { color: var(--product-accent); font-size: 8px; font-weight: 900; }
.product-trust-grid h3 { margin: 14px 0 0; color: #fff; font-size: 16px; }
.product-trust-grid p { margin: 9px 0 0; color: rgba(222, 233, 249, 0.57); font-size: 11px; line-height: 1.7; text-wrap: pretty; }

.product-faq-list { display: grid; gap: 10px; max-width: 980px; margin: 43px auto 0; }
.product-faq-list details { border: 1px solid rgba(16, 23, 53, 0.08); border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(35, 47, 75, 0.045); overflow: hidden; }
.product-faq-list summary { position: relative; padding: 19px 54px 19px 21px; color: #303c53; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; text-wrap: pretty; }
.product-faq-list summary::-webkit-details-marker { display: none; }
.product-faq-list summary::after { content: "+"; position: absolute; top: 50%; right: 20px; color: var(--product-accent-2); font-size: 20px; transform: translateY(-50%); transition: transform 0.25s ease; }
.product-faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.product-faq-list details p { margin: 0; padding: 0 21px 20px; color: #687489; font-size: 12px; line-height: 1.8; text-wrap: pretty; }

.product-final-cta { padding: 92px 0; color: #fff; background: linear-gradient(125deg, #111e46, #1a306a 52%, color-mix(in srgb, var(--product-accent-2) 55%, #2c285e)); }
.product-final-cta-shell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.product-final-cta-shell > img { width: 72px; height: 72px; }
.product-final-cta h2 { max-width: 860px; margin: 8px 0 0; color: #fff; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.16; letter-spacing: -0.045em; text-wrap: balance; }
.product-final-cta .section-kicker { color: var(--product-accent); }
.product-final-cta .button { white-space: nowrap; }

.related-products { padding: 82px 0; background: #eef3f6; }
.related-products-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.related-products-heading h2 { margin: 10px 0 0; color: var(--navy); font-size: clamp(30px, 3.5vw, 46px); text-wrap: balance; }
.related-products-heading > a { color: #584bc8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.related-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.related-product-grid a { padding: 20px; border: 1px solid rgba(16, 23, 53, 0.07); border-radius: 18px; background: #fff; box-shadow: 0 13px 32px rgba(35, 47, 75, 0.055); transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.related-product-grid a:hover { transform: translateY(-5px); box-shadow: 0 21px 42px rgba(35, 47, 75, 0.1); }
.related-product-grid span { color: #7770da; font-size: 7px; font-weight: 900; }
.related-product-grid strong { display: block; margin-top: 8px; color: #2a354d; font-size: 15px; }
.related-product-grid small { display: block; margin-top: 6px; color: #7c8697; font-size: 9px; line-height: 1.5; text-wrap: pretty; }

@media (max-width: 1080px) {
  .product-page-hero-shell,
  .product-showcase-shell,
  .product-detail-heading { grid-template-columns: 1fr; gap: 42px; }
  .product-page-hero-copy { max-width: 850px; }
  .product-page-hero-visual { width: min(820px, 100%); margin: 0 auto; }
  .product-detail-heading > p { max-width: 750px; }
  .product-showcase-copy { order: 1; }
  .product-showcase-visual { order: 2; width: min(820px, 100%); margin: 0 auto; }
  .standalone-feature-grid { grid-template-columns: 1fr 1fr; }
  .product-final-cta-shell { grid-template-columns: auto 1fr; }
  .product-final-cta-shell .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .product-page-hero { min-height: auto; padding-top: 130px; }
  .product-page-hero h1 { font-size: clamp(44px, 12vw, 66px); }
  .product-page-hero-copy > p:not(.product-page-kicker) { font-size: 14px; }
  .product-page-hero-visual,
  .product-showcase-visual { min-height: 540px; }
  .hero-interface-card.card-top { left: 12px; }
  .hero-interface-card.card-bottom { right: 12px; }
  .product-detail-anchor-nav { top: 74px; overflow-x: auto; scrollbar-width: none; }
  .product-detail-anchor-nav::-webkit-scrollbar { display: none; }
  .product-detail-anchor-nav .section-shell { width: max-content; justify-content: flex-start; min-width: 100%; padding-inline: 18px; }
  .product-detail-anchor-nav a { padding-inline: 7px; }
  .product-detail-section-block { padding-top: 90px; padding-bottom: 90px; }
  .product-detail-heading h2,
  .product-showcase-copy h2 { font-size: clamp(36px, 9.5vw, 50px); }
  .problem-grid,
  .audience-grid,
  .product-trust-grid { grid-template-columns: 1fr; }
  .standalone-feature-grid { grid-template-columns: 1fr; }
  .product-flow { grid-template-columns: 1fr 1fr; }
  .product-flow li:nth-child(2) { border-right: 0; }
  .product-flow li:nth-child(-n+2) { border-bottom: 1px solid rgba(16, 23, 53, 0.07); }
  .related-product-grid { grid-template-columns: 1fr; }
  .product-final-cta-shell { grid-template-columns: 1fr; text-align: center; }
  .product-final-cta-shell > img { margin: 0 auto; }
  .product-final-cta-shell .button { grid-column: auto; justify-self: center; }
}

@media (max-width: 480px) {
  .product-page-actions { flex-direction: column; }
  .product-page-actions .button { width: 100%; justify-content: center; }
  .product-page-hero-visual,
  .product-showcase-visual { min-height: 455px; }
  .hero-interface-card { width: 195px; padding: 14px; }
  .hero-interface-card > strong { font-size: 16px; }
  .hero-interface-card.card-top { top: 18px; }
  .hero-interface-card.card-bottom { bottom: 18px; }
  .product-flow { grid-template-columns: 1fr; }
  .product-flow li { min-height: 205px; border-right: 0; border-bottom: 1px solid rgba(16, 23, 53, 0.07); }
  .product-flow li:nth-child(2) { border-right: 0; }
  .product-flow li:nth-child(3) { border-bottom: 1px solid rgba(16, 23, 53, 0.07); }
  .related-products-heading { align-items: flex-start; flex-direction: column; }
  .product-final-cta .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .product-page-hero-visual { transform: none !important; transition: none !important; }
  .related-product-grid a { transition: none; }
}
