/* Pages */

/* Homepage Hero */
.hero {
  position: relative;
  padding: 84px 0 72px;
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(64px, 6vw, 96px);
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  right: -24%;
  top: 24%;
  width: 820px;
  height: 340px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(111,66,255,0.20), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

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

h1 {
  max-width: 770px;
  font-size: clamp(58px, 5.55vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-spacing: 0.045em;
  font-weight: 900;
  margin-bottom: 34px;
  text-wrap: balance;
}

.lead {
  max-width: 680px;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.78;
  color: #242a42;
  margin-bottom: 42px;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(111, 66, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #343b51;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(27, 19, 67, 0.055);
}

.featured-product-media {
  margin-bottom: 28px;
  padding: 10px;
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(239,234,255,0.68)),
    rgba(255,255,255,0.82);
  box-shadow: 0 22px 58px rgba(37, 24, 83, 0.12);
}

.featured-product-media img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  background: #fbfaff;
}

.featured-secondary {
  min-height: 50px;
  padding: 0 20px;
}

.home-products-section {
  padding-top: 72px;
  padding-bottom: 74px;
}

.home-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  margin-top: 34px;
}

.home-product-card {
  min-height: 260px;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 10%, rgba(111, 66, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,248,255,0.82));
  box-shadow: 0 18px 54px rgba(27, 19, 67, 0.07);
}

.home-product-card-muted {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(250,248,255,0.62));
  color: #5d6478;
}

.product-card-kicker {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-product-card h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-product-card p {
  max-width: 610px;
  margin-bottom: 26px;
  color: #50576f;
  font-size: 17px;
  line-height: 1.72;
}

.home-product-card-muted p {
  margin-bottom: 0;
}

.about-latenora-panel {
  padding: clamp(42px, 6vw, 72px);
  border: 1px solid rgba(111, 66, 255, 0.11);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 20%, rgba(111, 66, 255, 0.10), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(246,243,255,0.82));
  box-shadow: 0 20px 62px rgba(27, 19, 67, 0.07);
}

.about-latenora-panel h2 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.about-latenora-panel .lead {
  max-width: 760px;
  margin-bottom: 0;
}

.about-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  margin-top: 64px;
}

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

.about-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(111, 66, 255, 0.16);
  border-radius: 32px;
  padding: 44px;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 66, 255, 0.22);
  box-shadow: 0 20px 52px rgba(24, 18, 61, 0.09);
}

.about-card h3 {
  font-size: 26px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--text);
}

.about-card p {
  color: #50576f;
  line-height: 1.8;
  font-size: 17px;
  margin: 0;
}

/* Contact Page */
.contact-hero {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.contact-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.contact-head h1 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-head p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #242a42;
  font-size: clamp(19px, 1.65vw, 22px);
  line-height: 1.72;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 4rem auto 0;
}

.contact-card {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(111, 66, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(109, 53, 245, 0.14);
  box-shadow: 0 24px 70px rgba(7, 8, 33, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-card h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.contact-card > a:not(.contact-card-button) {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.contact-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.5rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: #070821;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(7, 8, 33, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(7, 8, 33, 0.24);
}

@media (max-width: 980px) {
  .about-grid,
  .why-grid,
  .home-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-card-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }
}

/* Products Page */
.products-section {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms cubic-bezier(.2,.8,.2,1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
}

.product-icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.product-icon-placeholder svg {
  width: 40px;
  height: 40px;
}

.product-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--green);
  color: var(--white);
}

.product-badge.product-badge-android {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.product-badge.product-badge-progress {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.product-badge.coming-soon {
  background: var(--muted);
}

.product-card h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
}

.product-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}

.section-head h1 {
  max-width: 820px;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  color: var(--text);
  text-wrap: balance;
}

.section-head p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.72;
  font-weight: 550;
}

.section-head h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 30px;
  color: var(--text);
}

.section-head .lead {
  max-width: 700px;
  margin-bottom: 30px;
}

.section-head .lead + .lead {
  margin-top: 18px;
  margin-bottom: 42px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  padding: clamp(1.55rem, 3vw, 2.15rem);
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(111, 66, 255, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(24, 18, 61, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 66, 255, 0.20);
  box-shadow: 0 24px 62px rgba(24, 18, 61, 0.10);
}

.card-title {
  margin-bottom: 0.8rem;
  color: var(--text);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 850;
  line-height: 1.18;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

/* HabitSight App Details */
.app-details-hero {
  padding: clamp(4.4rem, 8vw, 7rem) 0 clamp(3.25rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 240, 255, 0.84) 52%, rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(111, 66, 255, 0.10);
}

.app-details-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.app-details-hero-copy {
  max-width: 760px;
}

.app-details-hero-single {
  grid-template-columns: 1fr;
}

.app-details-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(111, 66, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(24, 18, 61, 0.06);
}

.app-details-kicker img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.app-details-hero h1 {
  max-width: 780px;
  margin-bottom: 1.35rem;
  color: var(--text);
  font-size: clamp(3.35rem, 6vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.app-details-hero p {
  max-width: 650px;
  color: #3f465c;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.72;
  font-weight: 560;
}

.app-details-section {
  padding-top: clamp(3.75rem, 7vw, 5.75rem);
}

.insight-explainer-grid,
.insight-label-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.app-details-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.app-detail-card,
.insight-explainer-card,
.insight-label-card,
.insight-disclaimer {
  border: 1px solid rgba(111, 66, 255, 0.13);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 255, 0.78));
  box-shadow:
    0 20px 58px rgba(24, 18, 61, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-detail-card,
.insight-explainer-card,
.insight-label-card {
  padding: clamp(1.45rem, 3vw, 2.15rem);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.app-detail-card:hover,
.insight-explainer-card:hover,
.insight-label-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 66, 255, 0.22);
  box-shadow:
    0 26px 68px rgba(24, 18, 61, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.app-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: rgba(111, 66, 255, 0.11);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.app-detail-card h2,
.insight-explainer-card h3,
.insight-label-card h3 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.app-detail-card p,
.insight-explainer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 520;
}

.user-insights-section {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
}

.app-insights-section {
  position: relative;
}

.app-section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.app-section-head span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-section-head h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.app-section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.75;
  font-weight: 550;
}

.app-section-head-compact {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
}

.app-section-head-compact h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.8rem);
}

.insight-explainer-wide {
  grid-column: 1 / -1;
}

.insight-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.insight-card-head h3 {
  margin-bottom: 0;
}

.insight-card-marker {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(111, 66, 255, 0.10);
  flex: 0 0 auto;
}

.app-category-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.app-category-pill {
  min-height: 126px;
  padding: 1rem;
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.app-category-pill strong,
.app-category-pill span {
  display: block;
}

.app-category-pill strong {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.app-category-pill span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.insight-label-card ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-label-card li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 560;
}

.insight-label-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(111, 66, 255, 0.10);
}

.insight-label-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 240, 255, 0.80));
}

.insight-label-card h3 {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(111, 66, 255, 0.12);
}

.insight-disclaimer {
  margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.insight-disclaimer p {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
  font-weight: 560;
}

@media (max-width: 980px) {
  .app-details-hero-grid,
  .app-category-pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-details-card-grid,
  .insight-explainer-grid,
  .insight-label-card-grid {
    grid-template-columns: 1fr;
  }

  .insight-explainer-wide {
    grid-column: auto;
  }
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 920px;
}

.faq-list details {
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(24, 18, 61, 0.06);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
  line-height: 1.35;
}

.faq-list summary:focus-visible {
  outline: 3px solid rgba(111, 66, 255, 0.22);
  outline-offset: 6px;
  border-radius: 12px;
}

.faq-list p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.terms-content {
  max-width: 900px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(24, 18, 61, 0.07);
}

.terms-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.terms-content h2:first-of-type {
  margin-top: 1.5rem;
}

.terms-content p,
.terms-content li {
  color: var(--muted);
  line-height: 1.78;
}

.terms-content ul {
  margin: 0.5rem 0 0 1.25rem;
}

.terms-content a {
  color: var(--primary);
  font-weight: 750;
}

/* HabitSight Usage Access Guide */
.usage-guide-section .section-head {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.usage-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.usage-guide-card,
.usage-trust-card {
  border: 1px solid rgba(111, 66, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(111, 66, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 245, 255, 0.80));
  box-shadow:
    0 20px 56px rgba(24, 18, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.usage-guide-wide,
.usage-guide-notes,
.usage-trust-card {
  grid-column: 1 / -1;
}

.usage-guide-kicker {
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usage-guide h2,
.usage-trust-card h2 {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.usage-guide p,
.usage-trust-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.usage-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  margin-top: 1.35rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: #070821;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(7, 8, 33, 0.20);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.usage-play-badge:hover,
.usage-play-badge:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(7, 8, 33, 0.26);
}

.usage-play-badge img {
  width: 20px;
  height: 20px;
}

.usage-helper,
.usage-note,
.usage-pdf-helper {
  margin-top: 1rem !important;
  font-size: 0.92rem;
}

.usage-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 42px;
  margin-top: 1.35rem;
  padding: 0 1rem;
  border: 1px solid rgba(111, 66, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(24, 18, 61, 0.05);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.usage-pdf-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(111, 66, 255, 0.10);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.usage-pdf-link:hover,
.usage-pdf-link:focus-visible {
  outline: none;
  border-color: rgba(111, 66, 255, 0.28);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 14px 32px rgba(24, 18, 61, 0.08);
  transform: translateY(-1px);
}

.usage-pdf-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(111, 66, 255, 0.12), 0 14px 32px rgba(24, 18, 61, 0.08);
}

.usage-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.usage-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.95rem;
  border: 1px solid rgba(111, 66, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 235, 255, 0.64));
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.usage-flow span:not(:last-child)::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.8rem;
  border-right: 2px solid rgba(111, 66, 255, 0.46);
  border-bottom: 2px solid rgba(111, 66, 255, 0.46);
  transform: rotate(-45deg);
}

.usage-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.usage-device-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.usage-device-table th,
.usage-device-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.usage-device-table th {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(111, 66, 255, 0.08);
}

.usage-device-table th:first-child,
.usage-device-table td:first-child {
  width: 30%;
  color: var(--text);
  font-weight: 850;
}

.usage-device-table td {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  border-top: 1px solid rgba(111, 66, 255, 0.10);
}

.usage-device-table tbody tr:nth-child(even) {
  background: rgba(111, 66, 255, 0.035);
}

.usage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usage-list li,
.usage-trust-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
  line-height: 1.65;
}

.usage-list li::before,
.usage-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(111, 66, 255, 0.10);
}

.usage-troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.usage-troubleshooting-grid article {
  padding: 1.1rem;
  border: 1px solid rgba(111, 66, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.70);
}

.usage-troubleshooting-grid h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.usage-trust-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 66, 255, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 235, 255, 0.78));
}

.usage-trust-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usage-guide-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(111, 66, 255, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.usage-guide-footer a {
  color: var(--primary-dark);
  font-weight: 800;
}

.usage-offline-note {
  grid-column: 1 / -1;
  max-width: 780px;
  margin: 0.25rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

/* HabitSight Support */
.support-section {
  padding-top: clamp(5rem, 8vw, 7rem);
  padding-bottom: clamp(6rem, 9vw, 8rem);
}

.support-section .section-head {
  max-width: 720px;
  margin: 0 auto clamp(3.75rem, 6vw, 5rem);
  text-align: center;
}

.support-section .section-head h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.support-section .section-head p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  font-weight: 550;
}

.support-section .contact-grid {
  display: grid;
  place-items: center;
}

.support-section .contact-card {
  width: min(100%, 620px);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(111, 66, 255, 0.14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 10%, rgba(111, 66, 255, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 255, 0.82));
  box-shadow:
    0 24px 70px rgba(24, 18, 61, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
}

.support-section .contact-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.support-section .contact-card p {
  max-width: 430px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 550;
}

.support-section .contact-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: rgba(111, 66, 255, 0.11);
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(111, 66, 255, 0.12);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.support-section .contact-card a:hover,
.support-section .contact-card a:focus-visible {
  background: rgba(111, 66, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(111, 66, 255, 0.18),
    0 12px 28px rgba(111, 66, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-visual img {
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 36px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.motion-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.motion-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(111, 66, 255, 0.12);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.motion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.motion-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: rgba(111, 66, 255, 0.12);
  color: var(--primary);
  font-weight: 900;
}

.motion-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.motion-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

.motion-performance-card {
  background: linear-gradient(180deg, rgba(111, 66, 255, 0.08), rgba(255, 255, 255, 0.94));
  border-color: rgba(111, 66, 255, 0.16);
}

.motion-benefit-card {
  background: linear-gradient(180deg, rgba(111, 66, 255, 0.05), rgba(255, 255, 255, 0.98));
  border-color: rgba(111, 66, 255, 0.10);
}

/* Privacy Policy Page */

.policy-hero {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at top left, rgba(109, 53, 245, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,244,255,0.55));
}

.policy-head {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.policy-head h1 {
  margin-top: 1rem;
}

.policy-subtitle {
  max-width: 720px;
  margin: 1.25rem auto 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.policy-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.policy-meta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(109, 53, 245, 0.10);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.policy-version-control {
  position: relative;
  display: inline-block;
}

.policy-version-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.1rem 3.35rem 0.1rem 1rem;
  border: 1px solid rgba(109, 53, 245, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 255, 0.78));
  box-shadow: 0 12px 32px rgba(7, 8, 33, 0.06);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.policy-version-label {
  color: var(--muted);
  font-weight: 700;
}

.policy-version-value {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

.policy-version-toggle::before {
  content: "";
  position: absolute;
  right: 0.48rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5L7 2.75L10 5.5' stroke='%236F42FF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 8.5L7 11.25L10 8.5' stroke='%236F42FF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat,
    rgba(109, 53, 245, 0.10);
  pointer-events: none;
  transform: translateY(-50%);
}

.policy-version-toggle:hover {
  border-color: rgba(109, 53, 245, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 255, 0.88));
  box-shadow: 0 14px 36px rgba(7, 8, 33, 0.08);
}

.policy-version-toggle:focus-visible {
  outline: none;
  border-color: rgba(109, 53, 245, 0.36);
  box-shadow: 0 0 0 4px rgba(109, 53, 245, 0.10), 0 12px 32px rgba(7, 8, 33, 0.06);
}

.policy-version-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 20;
  min-width: 100%;
  padding: 0.4rem;
  border: 1px solid rgba(109, 53, 245, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(24, 18, 61, 0.14);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.policy-version-control.is-open .policy-version-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.policy-version-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.policy-version-option:hover,
.policy-version-option:focus-visible {
  outline: none;
  background: rgba(109, 53, 245, 0.08);
}

.policy-version-option.is-selected::after {
  content: "";
  width: 0.46rem;
  height: 0.78rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-0.08rem) rotate(45deg);
  flex: 0 0 auto;
}

.policy-content-section {
  padding-top: 0;
}

.policy-content {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.policy-section {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(109, 53, 245, 0.12);
  box-shadow: 0 18px 50px rgba(7, 8, 33, 0.06);
}

.policy-section h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--color-text);
}

.policy-section p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

.policy-section a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 200ms ease;
}

.policy-section a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.8rem, 13vw, 4.1rem);
    word-spacing: normal;
  }

  .app-details-hero {
    padding-top: 3.5rem;
    padding-bottom: 3.35rem;
  }

  .app-details-hero h1 {
    font-size: clamp(2.85rem, 12vw, 4.1rem);
  }

  .app-detail-card,
  .insight-explainer-card,
  .insight-label-card,
  .insight-disclaimer {
    border-radius: 24px;
  }

  .app-category-pill {
    border-radius: 18px;
  }

  .app-category-pill {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .cards,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .usage-guide,
  .usage-list,
  .usage-troubleshooting-grid,
  .usage-trust-card {
    grid-template-columns: 1fr;
  }

  .usage-guide-card,
  .usage-trust-card {
    border-radius: 24px;
  }

  .usage-flow {
    align-items: flex-start;
  }

  .usage-flow span {
    white-space: normal;
  }

  .usage-flow span:not(:last-child)::after {
    display: none;
  }

  .usage-pdf-link {
    width: 100%;
  }

  .usage-device-table,
  .usage-device-table thead,
  .usage-device-table tbody,
  .usage-device-table tr,
  .usage-device-table th,
  .usage-device-table td {
    display: block;
    width: 100% !important;
  }

  .usage-device-table thead {
    display: none;
  }

  .usage-device-table tr {
    padding: 0.95rem;
  }

  .usage-device-table td {
    padding: 0;
    border-top: 0;
  }

  .usage-device-table td + td {
    margin-top: 0.35rem;
  }

  .product-card {
    padding: 28px;
  }

  .trust-badges span {
    min-height: 40px;
    font-size: 13px;
  }

  .featured-product-media {
    margin-bottom: 24px;
    border-radius: 24px;
  }

  .featured-product-media img {
    max-height: 330px;
    border-radius: 18px;
  }

  .home-products-section {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .home-product-card,
  .about-latenora-panel {
    border-radius: 26px;
  }

  .home-product-card {
    min-height: auto;
    padding: 28px;
  }

  .about-latenora-panel {
    padding: 34px 24px;
  }

  .about-latenora-panel h2 {
    font-size: clamp(2.3rem, 11vw, 3.45rem);
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .policy-meta-row {
    align-items: stretch;
  }

  .policy-meta,
  .policy-version-control {
    width: 100%;
  }

  .policy-meta,
  .policy-version-toggle {
    justify-content: center;
  }

  .policy-version-toggle {
    width: 100%;
    padding-left: 1rem;
    padding-right: 3.35rem;
  }

  .policy-version-menu {
    width: 100%;
  }

  .policy-section {
    margin-bottom: 0.75rem;
  }
}

@media print {
  .hero,
  .section,
  .policy-hero {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    min-height: 0 !important;
  }

  h1,
  .section-head h1 {
    font-size: 34px !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
  }

  h2,
  .section-head h2 {
    font-size: 24px !important;
  }

  .lead,
  .section-head p,
  .policy-subtitle {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .card,
  .about-card,
  .product-card,
  .contact-card,
  .motion-card,
  .terms-content,
  .policy-section,
  .faq-list details {
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: rgba(10, 12, 30, 0.16) !important;
    background: #ffffff !important;
  }

  .policy-version-control,
  .product-nav {
    display: none !important;
  }
}
