/* ===== Home – Tablet view (matches design: 2 columns, stacked equal-width buttons) ===== */
/* Only between mobile and desktop — does not override mobile (≤576px) */
/* Selectors follow home.css: Section modifiers (e.g. Section--section3), no ID-based layout rules. */

@media (min-width: 577px) and (max-width: 1024px) {
  /* --- HEADER --- */
  .site-header {
    height: 64px;
  }

  .site-header-inner {
    padding: 10px 64px;
  }

  /* --- HERO --- */
  .site-hero {
    height: 754px;
    min-height: 754px;
    --site-header-height: 64px;
  }

  .site-hero-main {
    padding: 0 64px;
  }

  .mudra-hero-bg object.mudra-hero-bg__top {
    /* opacity: 0.64; */
    transform: scale(1.28) translateX(10%);
    transform-origin: top center;
  }

  .site-hero-title {
    font-size: 56px;
    font-weight: 600;
    width: 100%;
    max-width: 700px;
    padding: 16px 0;
  }

  .site-hero-title-line {
    display: inline;
  }

  .site-hero-title-line:last-child {
    white-space: nowrap;
    padding-bottom: 0.06em;
  }

  .site-hero-desc {
    width: 100%;
    max-width: 380px;
    padding-bottom: 40px;
  }

  /* Fixed for iPad Mini: compact buttons sized to content */
  .site-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    max-width: 100%;
    gap: 12px;
  }

  .site-hero-btn {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 14px;
    padding: 12px 20px;
    min-height: 44px;
    box-sizing: border-box;
  }

  .site-hero-btn--primary {
    background-color: #2b2b2b;
    border-color: #2b2b2b;
  }
  .site-hero-btn--primary:hover {
    background-color: #030303;
    border-color: #030303;
  }
  .site-hero-btn--secondary {
    background-color: #fff;
    border-color: #2b2b2b;
    color: #2b2b2b;
  }
  .site-hero-btn--secondary:hover {
    background-color: #ededed;
    border-color: #030303;
    color: #030303;
  }

  .site-hero-dashboard {
    height: 580px;
    width: auto;
    max-width: none;
    top: 55%;
  }

  .site-hero-dashboard-img {
    height: 100%;
    width: auto;
  }

  /* --- SECTION 1: THE SHIFT --- */
  .Section1 {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 48px;
    padding: 90px 64px;
  }

  .Section1 .Content {
    width: 100%;
    max-width: 100%;
  }

  .Section1 .section-title {
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -0.5px;
    padding: 16px 0 20px;
  }

  .section1-shift-visual {
    width: 100%;
    max-width: min(658px, 100%);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    align-self: center;
  }

  .section1-shift-svg--desktop {
    display: none;
  }

  .section1-shift-svg--tablet {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 658 / 585;
    object-fit: contain;
  }

  .section1-shift-svg--mobile {
    display: none;
  }

  /* --- SECTION 2: FEATURE --- */
  .Section.Section--feature {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--feature .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  .Section.Section--feature .section-title {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.4px;
    padding: 16px 0;
  }

  .Section.Section--feature .section-feature-visual {
    width: auto;
    height: auto;
    flex: 0 1 480px;
    max-width: min(480px, 46%);
    align-self: center;
  }

  .Section.Section--feature .section-feature-visual .home-section3-anim-wrap {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 628 / 285;
    min-height: 0;
  }

  .Section.Section--feature .section-feature-visual .home-section3-slide .home-section3-anim-object {
    object-fit: contain;
  }

  /* --- SECTION 3 & 4: HOW IT WORKS / BUILT FOR BOTH SIDES --- */
  .Section.Section--section3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(480px, 46%));
    gap: 40px;
    padding: 90px 64px;
    align-items: center;
  }

  .Section.Section--section3 .Content {
    min-width: 0;
    max-width: 520px;
  }

  .Section.Section--section3 > .Placeholder {
    width: 100%;
    max-width: 480px;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    justify-self: end;
  }

  /* --- SECTION 5: WORKS EVERYWHERE --- */
  .Section.Section--works {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--works .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  .Section.Section--works .section-title {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.4px;
    padding: 16px 0;
  }

  .Section.Section--works .section-feature-visual {
    width: auto;
    height: auto;
    flex: 0 1 480px;
    max-width: min(480px, 46%);
    align-self: center;
  }

  .Section.Section--works > .section-feature-visual .section-feature-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 628 / 285;
    object-fit: contain;
  }

  /* --- SECTION 6: TRUST WITHOUT FRICTION --- */
  .Section.Section--trust {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--trust .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  .Section.Section--trust .section-title {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.4px;
    padding: 16px 0;
  }

  .Section.Section--trust .section-feature-visual {
    width: auto;
    height: auto;
    flex: 0 1 480px;
    max-width: min(480px, 46%);
    align-self: center;
  }

  .Section.Section--trust .section-feature-visual .home-section6-anim-wrap {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 628 / 285;
    min-height: 0;
  }

  .Section.Section--trust .section-feature-visual .home-section6-slide .home-section6-anim-object {
    object-fit: contain;
  }

  /* --- SECTION 8: GOVERNANCE --- */
  .Section.Section--governance {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--governance .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  .Section.Section--governance > .Placeholder {
    width: auto;
    max-width: min(480px, 46%);
    min-width: 0;
    flex: 0 1 480px;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    justify-self: end;
  }

  /* --- SECTION 8.5: STANDARDS & INTEROPERABILITY --- */
  .Section.Section--standards {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--standards .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  .Section.Section--standards > .Placeholder {
    width: auto;
    max-width: min(480px, 46%);
    min-width: 0;
    flex: 0 1 480px;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    justify-self: end;
  }

  /* --- SECTION 9: DEVELOPERS --- */
  .Section.Section--developers {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--developers .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  /* Fixed for iPad Mini text fit values */
  .Section.Section--developers .button-wrapper {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
  }

  .Section.Section--developers .Buttons-primary,
  .Section.Section--developers .Buttons-secondary {
    width: auto;
    min-width: fit-content;
    flex: 0 1 auto;
    height: auto;
    min-height: 44px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .Section.Section--developers .Primary,
  .Section.Section--developers .Secondary {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 16px;
    font-size: 14px;
  }

  .Section.Section--developers .Create-an-account-get-your-keys-and-integrate-MudraID-into-your-agent-runtime-or-your-verification {
    height: auto;
    min-height: 0;
  }

  .Section.Section--developers > .Placeholder {
    width: auto;
    max-width: min(480px, 46%);
    min-width: 0;
    flex: 0 1 480px;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    justify-self: end;
  }

  /* --- SECTION 10: CLOSING --- */
  .Section.Section--closing {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 90px 64px;
  }

  .Section.Section--closing .Content {
    flex: 1 1 0;
    min-width: 0;
    max-width: min(520px, 52%);
  }

  /* Fixed for iPad Mini layout paths */
  .Section.Section--closing .button-wrapper {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
  }

  .Section.Section--closing .Buttons-primary,
  .Section.Section--closing .Buttons-secondary {
    width: auto;
    min-width: fit-content;
    flex: 0 1 auto;
    height: auto;
    min-height: 44px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .Primary,
  .Secondary {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 16px;
    font-size: 14px;
  }

  .Section.Section--closing .Build-for-a-future-where-agents-and-websites-interact-securely-at-scale {
    height: auto;
    min-height: 0;
  }

  .Section.Section--closing .Explore-the-system-Review-the-model-Create-an-account-when-youre-ready {
    height: auto;
    min-height: 0;
  }

  .Section.Section--closing > .Placeholder {
    width: auto;
    max-width: min(480px, 46%);
    min-width: 0;
    flex: 0 1 480px;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    justify-self: end;
  }

  /* --- FOOTER --- */
  footer.site-footer {
    height: auto;
    padding: 0;
  }

  .site-footer-inner {
    padding: 90px 64px;
  }

  .site-footer-main {
    justify-content: space-between;
    gap: 32px;
    flex-wrap: nowrap;
  }

  .site-footer-brand {
    flex-shrink: 0;
    width: 240px;
    min-width: 200px;
  }

  .site-footer-desc {
    width: 100%;
    height: auto;
  }

  .site-footer-nav {
    width: auto;
    gap: 24px;
    grid-template-columns: repeat(4, max-content);
  }

  .site-footer-col {
    max-width: 120px;
  }

  .site-footer-col:last-child {
    max-width: min(200px, 100%);
    min-width: 0;
  }

  .site-footer-col--links {
    max-width: 140px;
  }

  .site-footer-contact {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer-contact-item {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer-contact-item a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }

  .site-footer-copyright {
    margin-top: 48px;
  }

  footer.site-footer::before {
    inset: auto;
    top: 0;
    right: 0;
    width: 432.5px;
    height: 598px;
    background-position: top right;
  }
}