/* MathWill product pages keep the original DASANA look (generated from the pre-redesign
   stylesheet, scoped to `.theme-product main`). Shared header/footer use styles.css. */
.theme-product main {
  --bg: #eff7ff;
  --bg-strong: #d9edff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #5d6a82;
  --line: rgba(31, 74, 145, 0.12);
  --primary: #1f7dd8;
  --primary-soft: #d8ecff;
  --secondary: #2f8f59;
  --secondary-soft: #dff5e7;
  --accent: #5b6cff;
  --shadow-lg: 0 28px 80px rgba(44, 93, 162, 0.16);
  --shadow-md: 0 16px 40px rgba(44, 93, 162, 0.12);
  --shadow-sm: 0 10px 24px rgba(44, 93, 162, 0.08);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 9px;
  --radius-sm: 7px;
  --container: 1180px;
}
.theme-product main .key-term {
  color: #1f7dd8;
}
.theme-product main .hero {
  padding: 4.5rem 0 2.5rem;
}
.theme-product main .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 2.2rem;
  align-items: center;
}
.theme-product main .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-product main .hero h1,
.theme-product main .page-hero h1,
.theme-product main .mini-hero h1 {
  margin: 1rem 0 1rem;
  
  
          font-size: clamp(2rem, 2.2rem, 2.5rem);

  line-height: 0.95;
  letter-spacing: -0.025em;
}
.theme-product main .hero h1 span,
.theme-product main .page-hero h1 span,
.theme-product main .mini-hero h1 span {
  color: var(--primary);
}
.theme-product main .lead {
  max-width: 42rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}
.theme-product main .hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.theme-product main .hero__actions,
.theme-product main .stacked-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.75rem;
  flex-direction: column;
}
.theme-product main .button--primary {
  color: white;
  background: linear-gradient(135deg, #2f8f59, #2ba369);
  box-shadow: 0 16px 32px rgba(47, 143, 89, 0.18);
}
.theme-product main .button--secondary {
  border-color: rgba(31, 125, 216, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}
.theme-product main .chip-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
}
.theme-product main .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
}
.theme-product main .chip--blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.theme-product main .chip--green {
  background: var(--secondary-soft);
  color: var(--secondary);
}
.theme-product main .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.theme-product main .stat {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}
.theme-product main .stat strong {
  display: block;
  font-size: 1.45rem;
  
}
.theme-product main .stat span {
  color: var(--muted);
  font-size: 0.92rem;
}
.theme-product main .orbit-card {
  position: relative;
  min-height: 36rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 72% 56%, rgba(80, 211, 183, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 246, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.theme-product main .orbit-card--plain,
.theme-product main .hero .orbit-card:empty {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 246, 255, 0.72));
}
.theme-product main .orbit-card--plain::before,
.theme-product main .orbit-card--plain::after,
.theme-product main .hero .orbit-card:empty::before,
.theme-product main .hero .orbit-card:empty::after {
  content: none;
  display: none;
}
.theme-product main .orbit-card--plain .orbit-ring,
.theme-product main .orbit-card--plain .orbit-ring--inner,
.theme-product main .orbit-card--plain .orbit-center,
.theme-product main .orbit-card--plain .orbit-badge,
.theme-product main .orbit-card--plain .math-symbol,
.theme-product main .hero .orbit-card:empty .orbit-ring,
.theme-product main .hero .orbit-card:empty .orbit-ring--inner,
.theme-product main .hero .orbit-card:empty .orbit-center,
.theme-product main .hero .orbit-card:empty .orbit-badge,
.theme-product main .hero .orbit-card:empty .math-symbol {
  display: none;
}
.theme-product main .orbit-card::before {
  content: "";
  width: 28rem;
  height: 28rem;
  top: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
}
.theme-product main .orbit-ring {
  width: 32rem;
  height: 32rem;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}
.theme-product main .orbit-ring--inner {
  width: 14rem;
  height: 14rem;
  top: 10rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}
.theme-product main .orbit-center {
  position: absolute;
  top: 10.4rem;
  left: 50%;
  width: 11.5rem;
  height: 11.5rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: center / cover no-repeat url("/assets/images/mathy.png");
  border: 4px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 50px rgba(18, 31, 55, 0.22);
}
.theme-product main .orbit-center::before {
  content: none;
}
.theme-product main .orbit-badge,
.theme-product main .math-symbol {
  position: absolute;
  display: grid;
  place-items: center;
}
.theme-product main .orbit-badge {
  width: 4.7rem;
  height: 4.7rem;
  border-radius: 50%;
  font-size: 1.8rem;
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}
.theme-product main .orbit-badge--violet { top: 3.8rem; left: 6rem; background: linear-gradient(135deg, #9b6fff, #b15cff); }
.theme-product main .orbit-badge--blue { top: 7.4rem; right: 5rem; background: linear-gradient(135deg, #42b3ff, #2d76eb); }
.theme-product main .orbit-badge--pink { top: 18rem; left: 4rem; background: linear-gradient(135deg, #ff5ccd, #b244ff); }
.theme-product main .orbit-badge--green { top: 9rem; left: 50%; transform: translateX(2rem); background: linear-gradient(135deg, #28c38f, #5dcf7e); }
.theme-product main .orbit-badge--navy { top: 26rem; right: 8rem; background: linear-gradient(135deg, #2d76eb, #1686d9); }
.theme-product main .math-symbol {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #5175ff;
  text-shadow: 0 10px 18px rgba(81, 117, 255, 0.28);
}
.theme-product main .math-symbol--plus { top: 10rem; left: 8rem; font-size: 7rem; transform: rotate(12deg); }
.theme-product main .math-symbol--eq { top: 17rem; right: 5.6rem; font-size: 6rem; transform: rotate(-12deg); }
.theme-product main .math-symbol--div { top: 26rem; left: 9rem; font-size: 6rem; transform: rotate(-32deg); }
.theme-product main .math-symbol--sum { top: 3.5rem; right: 10rem; font-size: 5rem; transform: rotate(16deg); }
.theme-product main .orbit-copy {
  position: absolute;
  inset: auto 2rem 2rem;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}
.theme-product main .orbit-copy strong {
  
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;

}
.theme-product main .section {
  padding: 2rem 0 2rem;
}
.theme-product main .section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.theme-product main .section-heading h2,
.theme-product main .section-heading h3 {
  margin: 0;
  
  
  
  font-size: 1.45rem;

  line-height: 1;
}
.theme-product main .section-heading p {
  margin: 0;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.75;
}
.theme-product main .card-grid,
.theme-product main .feature-grid,
.theme-product main .audience-grid,
.theme-product main .job-grid,
.theme-product main .value-grid,
.theme-product main .detail-grid,
.theme-product main .detail-grid--2,
.theme-product main .cta-grid,
.theme-product main .story-grid,
.theme-product main .contact-grid {
  display: grid;
  gap: 1.2rem;
}
.theme-product main .feature-grid,
.theme-product main .value-grid,
.theme-product main .detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.theme-product main .detail-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-product main .audience-grid,
.theme-product main .job-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-product main .story-grid,
.theme-product main .contact-grid,
.theme-product main .cta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-product main .card,
.theme-product main .job-card,
.theme-product main .feature,
.theme-product main .story-panel,
.theme-product main .contact-panel,
.theme-product main .cta-panel,
.theme-product main .detail-panel,
.theme-product main .value-panel {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
}
.theme-product main .feature,
.theme-product main .value-panel,
.theme-product main .detail-panel {
  min-height: 100%;
}
.theme-product main .job-card {
  display: grid;
  gap: 0.35rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.theme-product main .job-card:hover,
.theme-product main .job-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(47, 143, 89, 0.34);
  box-shadow: 0 22px 48px rgba(44, 93, 162, 0.14);
}
.theme-product main .pill {
  width: fit-content;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 700;
}
.theme-product main .pill--archived {
  background: rgba(93, 106, 130, 0.16);
  color: var(--muted);
}
.theme-product main .job-card h3,
.theme-product main .feature h3,
.theme-product main .value-panel h3,
.theme-product main .story-panel h3,
.theme-product main .detail-panel h2,
.theme-product main .detail-panel h3,
.theme-product main .contact-panel h3,
.theme-product main .cta-panel h3 {
  margin: 0.25rem 0;
  font-size: 1.45rem;
  line-height: 1.2;

}
.theme-product main .job-card--archived h3 {
  font-size: 1.05rem;
  color: var(--muted);
}
.theme-product main .job-card p,
.theme-product main .feature p,
.theme-product main .value-panel p,
.theme-product main .story-panel p,
.theme-product main .detail-panel p,
.theme-product main .contact-panel p,
.theme-product main .cta-panel p,
.theme-product main .page-hero p,
.theme-product main .mini-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.theme-product main .meta-list,
.theme-product main .detail-list,
.theme-product main .legal-links,
.theme-product main .crumbs,
.theme-product main .contact-list {
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}
.theme-product main .meta-list li,
.theme-product main .detail-list li,
.theme-product main .contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}
.theme-product main .news-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.theme-product main .news-card {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.theme-product main .news-card:hover,
.theme-product main .news-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(47, 143, 89, 0.34);
  box-shadow: 0 22px 48px rgba(44, 93, 162, 0.14);
}
.theme-product main .news-card__image {
  display: block;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 125, 216, 0.08), rgba(47, 143, 89, 0.08));
}
.theme-product main .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.theme-product main .news-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 0 1.5rem 1.5rem;
}
.theme-product main .news-card__body h3 {
  margin: 0.25rem 0;
  font-size: 1.45rem;
  line-height: 1.2;
}
.theme-product main .news-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.theme-product main .job-card__link,
.theme-product main .text-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--secondary);
  font-weight: 700;
}
.theme-product main .spotlight {
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 35, 62, 0.96), rgba(31, 125, 216, 0.88));
  color: white;
  box-shadow: var(--shadow-lg);
}
.theme-product main .contact-panel--accent {
  background: linear-gradient(145deg, #0f2952 0%, #1b4ea8 52%, #1f7dd8 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 64px rgba(15, 41, 82, 0.36);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.theme-product main .contact-panel--accent .pill {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.theme-product main .contact-panel--accent h3 {
  color: white;
  font-size: 1.45rem;
}
.theme-product main .contact-panel--accent p {
  color: rgba(255, 255, 255, 0.8);
}
.theme-product main .contact-panel--accent .contact-panel__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}
.theme-product main .contact-panel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: white;
  color: #0f2952;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  width: fit-content;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.theme-product main .contact-panel__btn:hover,
.theme-product main .contact-panel__btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.theme-product main .contact-panel__btn svg {
  flex-shrink: 0;
}
.theme-product main .spotlight p,
.theme-product main .spotlight li {
  color: rgba(255, 255, 255, 0.82);
}
.theme-product main .spotlight .card h3 {
  color: var(--text);
}
.theme-product main .spotlight .card p {
  color: var(--muted);
}
.theme-product main .spotlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.theme-product main .spotlight-list,
.theme-product main .detail-checklist,
.theme-product main .seo-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.theme-product main .spotlight-list li,
.theme-product main .detail-checklist li,
.theme-product main .seo-list li {
  padding-left: 1.4rem;
  position: relative;
}
.theme-product main .spotlight-list a {
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;

  text-underline-offset: 0.26em;
}
.theme-product main .spotlight-list a {
  color: inherit;
}
.theme-product main .spotlight-list a:hover,
.theme-product main .spotlight-list a:focus-visible {
  color: var(--primary);
}
.theme-product main .spotlight-list li::before,
.theme-product main .detail-checklist li::before,
.theme-product main .seo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #66e0b4, #7db3ff);
}
.theme-product main .mini-hero,
.theme-product main .page-hero {
  padding: 4rem 0 1rem;
}
.theme-product main .mini-hero__panel,
.theme-product main .page-hero__panel {
  padding: 2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
}
.theme-product main .crumbs {
  margin-bottom: 1rem;
}
.theme-product main .crumbs a,
.theme-product main .crumbs span {
  color: var(--muted);
  font-weight: 600;
}
.theme-product main .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
  gap: 1.2rem;
  align-items: start;
}
.theme-product main .sidebar-card {
  position: sticky;
  top: 6.75rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}
.theme-product main .sidebar-card h3 {
  margin-top: 0.5rem;
}
.theme-product main .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 1.2rem;
  align-items: start;
}
.theme-product main .contact-sidebar {
  display: grid;
  gap: 1.2rem;
}
.theme-product main .contact-card {
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
}
.theme-product main .contact-card--form {
  background:
    radial-gradient(circle at top right, rgba(93, 214, 176, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 250, 255, 0.88));
}
.theme-product main .contact-card--accent {
  background: linear-gradient(135deg, rgba(18, 35, 62, 0.96), rgba(31, 125, 216, 0.88));
  color: white;
}
.theme-product main .contact-card--accent p,
.theme-product main .contact-card--accent li {
  color: rgba(255, 255, 255, 0.82);
}
.theme-product main .contact-card--accent .pill {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.theme-product main .contact-card--accent .detail-checklist li::before {
  background: linear-gradient(135deg, #9bf0cf, #b4ccff);
}
.theme-product main .contact-card h3 {
  margin: 0.8rem 0 0;
  
  

            font-size: clamp(1rem, 1.5rem, 1.8rem);

  line-height: 1;
  
}
.theme-product main .contact-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.theme-product main .contact-card--accent p {
  color: rgba(255, 255, 255, 0.92);
}
.theme-product main .contact-form {
  display: grid;
  gap: 1.15rem;
}
.theme-product main .contact-form__cluster {
  display: grid;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 74, 145, 0.18);
  box-shadow: 0 14px 30px rgba(44, 93, 162, 0.08);
}
.theme-product main .contact-form__cluster--message {
  background: rgba(255, 255, 255, 0.92);
}
.theme-product main .contact-field {
  display: grid;
  gap: 0.5rem;
}
.theme-product main .contact-field--stacked {
  padding: 0.95rem 1rem 1rem;
}
.theme-product main .contact-form__cluster > .contact-field--stacked + .contact-field--stacked {
  border-top: 1px solid rgba(31, 74, 145, 0.14);
}
.theme-product main .contact-field__label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(23, 32, 51, 0.9);
}
.theme-product main .contact-field__hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.theme-product main .contact-field__control {
  width: 100%;
  min-height: 2rem;
  padding: 0.05rem 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1.4;
  transition: color 180ms ease;
}
.theme-product main .contact-field__control::placeholder {
  color: rgba(93, 106, 130, 0.78);
}
.theme-product main .contact-field__control:focus-visible {
  outline: none;
  color: var(--primary);
}
.theme-product main .contact-field__control--textarea {
  min-height: 12rem;
  resize: vertical;
  padding-top: 0.35rem;
}
.theme-product main .contact-form__footer {
  display: grid;
  gap: 1rem;
  padding-top: 0.25rem;
}
.theme-product main .contact-form__actions {
  display: grid;
  gap: 0.85rem;
}
.theme-product main .contact-form__submit,
.theme-product main .contact-form__secondary {
  width: 100%;
}
.theme-product main .contact-form__submit {
  min-height: 3.8rem;
}
.theme-product main .contact-form__secondary {
  background: rgba(255, 255, 255, 0.78);
}
.theme-product main .contact-form__meta,
.theme-product main .contact-form__status {
  margin: 0;
}
.theme-product main .contact-form__meta {
  color: var(--muted);
  line-height: 1.7;
}
.theme-product main .contact-form__status {
  margin-top: 0.45rem;
  min-height: 1.5rem;
  font-weight: 700;
}
.theme-product main .contact-form__status[data-state="success"] {
  color: var(--secondary);
}
.theme-product main .contact-form__status[data-state="error"] {
  color: #b64d5a;
}
.theme-product main .legal-links {
  justify-content: flex-start;
}
.theme-product main .language-card {
  padding: 1.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(231, 243, 255, 0.82), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(31, 125, 216, 0.12);
}
.theme-product main .language-card h2 {
  margin-top: 0;
  
  font-size: 1.45rem;
}
@media (max-width: 1040px) {
.theme-product main .hero__grid,
.theme-product main .spotlight-grid,
.theme-product main .detail-layout,
.theme-product main .contact-layout,
.theme-product main .story-grid,
.theme-product main .contact-grid,
.theme-product main .cta-grid,
.theme-product main .feature-grid,
.theme-product main .value-grid,
.theme-product main .detail-grid,
.theme-product main .detail-grid--2,
.theme-product main .audience-grid,
.theme-product main .job-grid,
.theme-product main .news-grid {
    grid-template-columns: 1fr;
  }
.theme-product main .hero__grid {
    gap: 1.4rem;
  }
.theme-product main .detail-layout {
    gap: 1rem;
  }
.theme-product main .contact-form__footer {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }
.theme-product main .sidebar-card {
    position: static;
  }
}
@media (max-width: 900px) {
.theme-product main .orbit-card {
    min-height: 34rem;
  }
}
@media (max-width: 720px) {
.theme-product main .hero {
    padding-top: 2rem;
  }
.theme-product main .hero h1,
.theme-product main .page-hero h1,
.theme-product main .mini-hero h1 {
    
          font-size: clamp(2rem, 2.2rem, 2.5rem);

  }
.theme-product main .stats {
    grid-template-columns: 1fr;
  }
.theme-product main .orbit-card {
    min-height: 33rem;
  }
.theme-product main .orbit-card::before {
    width: 22rem;
    height: 22rem;
    top: 2.5rem;
  }
.theme-product main .orbit-center {
    top: 9rem;
    width: 8.8rem;
    height: 8.8rem;
  }
.theme-product main .orbit-center::before {
    width: 6.8rem;
    height: 6.8rem;
  }
.theme-product main .orbit-badge {
    width: 3.9rem;
    height: 3.9rem;
    font-size: 1.45rem;
  }
.theme-product main .orbit-badge--violet { left: 2rem; }
.theme-product main .orbit-badge--blue { right: 1.2rem; }
.theme-product main .orbit-badge--pink { left: 1rem; }
.theme-product main .orbit-badge--green { transform: translateX(0.2rem); }
.theme-product main .orbit-badge--navy { right: 3rem; }
.theme-product main .math-symbol--plus { left: 3.4rem; font-size: 5.3rem; }
.theme-product main .math-symbol--eq { right: 1.8rem; font-size: 4.8rem; }
.theme-product main .math-symbol--div { left: 4rem; font-size: 4.6rem; }
.theme-product main .math-symbol--sum { right: 5rem; font-size: 3.9rem; }
.theme-product main .orbit-copy {
    inset: auto 1rem 1rem;

  }
.theme-product main .contact-card,
.theme-product main .contact-card--form {
    padding: 1.2rem;
  }
.theme-product main .contact-field--stacked {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* ── Page frame and type for product pages ── */
body.theme-product {
  background:
    radial-gradient(circle at top right, rgba(73, 198, 169, 0.18), transparent 24%),
    radial-gradient(circle at left 10% top 20%, rgba(91, 108, 255, 0.13), transparent 26%),
    linear-gradient(180deg, #e9f5ff 0%, #f8fbff 34%, #eef7ff 100%);
}

.theme-product .page-shell::before,
.theme-product .page-shell::after {
  display: block;
}

.theme-product main {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  line-height: normal;
  color: #172033;
}

.theme-product main h1,
.theme-product main h2,
.theme-product main h3,
.theme-product main h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Undo the new design's additions inside product content */
.theme-product main .section,
.theme-product main .page-hero,
.theme-product main .row-section {
  border-bottom: 0;
}

.theme-product main .crumbs {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  margin-bottom: 1rem;
}

.theme-product main .crumbs li + li::before {
  content: none;
}

.theme-product main .crumbs a,
.theme-product main .crumbs span {
  color: var(--muted);
  font-weight: 600;
}

.theme-product main .hero h1,
.theme-product main .page-hero h1 {
  max-width: none;
  font-weight: 800;
}

.theme-product main .hero h1 span,
.theme-product main .page-hero h1 span {
  color: var(--primary);
}

.theme-product main .lead,
.theme-product main .page-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.theme-product main .eyebrow,
.theme-product main .pill,
.theme-product main .service-block__index {
  font-family: inherit;
}

/* Buttons and links in the original style */
.theme-product main .button {
  min-height: 3.4rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.theme-product main .button:hover,
.theme-product main .button:focus-visible {
  transform: translateY(-1px);
}

.theme-product main .button--primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2f8f59, #2ba369);
  box-shadow: 0 16px 32px rgba(47, 143, 89, 0.18);
}

.theme-product main .button--secondary {
  border: 1px solid rgba(31, 125, 216, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.theme-product main .button--light {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f2952;
}

.theme-product main .text-link {
  min-height: 0;
  color: var(--secondary);
  font-weight: 700;
}

.theme-product main .text-link::after {
  content: none;
}

/* Components added for the new MathWill page, drawn in the original style */
.theme-product main .mathwill-intro,
.theme-product main .service-block__grid {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}

.theme-product main .mathwill-intro h2,
.theme-product main .service-block__text h2,
.theme-product main .section-heading h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: normal;
}

.theme-product main .diagram {
  border: 1px solid rgba(31, 74, 145, 0.12);
  border-radius: var(--radius-lg);
  background: #f6f8fb;
}

.theme-product main .contact-band {
  padding: 1rem 0 3rem;
  background: transparent;
}

.theme-product main .contact-band .cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #0f2952 0%, #1b4ea8 52%, #1f7dd8 100%);
  box-shadow: 0 28px 64px rgba(15, 41, 82, 0.36);
}

.theme-product main .contact-band .mono-label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.theme-product main .contact-band h2 {
  font-size: 1.6rem;
}

@media (max-width: 1040px) {
  .theme-product main .service-block__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .theme-product main .mathwill-intro,
  .theme-product main .service-block__grid,
  .theme-product main .contact-band .cta-band {
    padding: 1.25rem;
  }
}

/* Buttons: half of the former pill radius (about 54px tall, so 27px becomes 14px) */
.theme-product main .button,
.theme-product main .button--primary,
.theme-product main .button--secondary,
.theme-product main .button--light,
.theme-product main .contact-panel__btn,
.theme-product main .consent-button {
  border-radius: 14px;
}

/* About-us content: four-step strip and help cards (original style) */
.theme-product main .step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.theme-product main .step-strip li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.theme-product main .step-strip li span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f8f59, #1f7dd8);
  color: #ffffff;
  font-weight: 800;
}

.theme-product main .help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.theme-product main .help-grid .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.theme-product main .help-grid .card p,
.theme-product main .story-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-product main .story-panel .text-link {
  margin-top: 1rem;
}

.theme-product main .section-heading p {
  margin: 0;
}

.theme-product main .mathwill-who {
  grid-template-columns: 1fr;
}

.theme-product main .who-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.theme-product main .who-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.theme-product main .who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #66e0b4, #7db3ff);
}

.theme-product main .who-list strong {
  color: var(--text);
}

.theme-product main .feature-grid .card h3 {
  margin: 0 0 0.5rem;
}

.theme-product main .feature-grid .card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .theme-product main .step-strip,
  .theme-product main .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .theme-product main .step-strip,
  .theme-product main .help-grid {
    grid-template-columns: 1fr;
  }
}
