/* inman-aligner: page-specific styles from the design */
/* ==================== Hero: statement + annotated appliance ==================== */
    .in-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
    .in-hero .h1 { max-width: 7.5em; }
    .in-hero .lede { margin-top: 26px; max-width: 32ch; }
    .appl { position: relative; margin: 0; border-radius: var(--r-lg); background: #fff; padding: clamp(20px, 3vw, 40px); box-shadow: 0 40px 70px -44px rgba(20,64,62,.55); }
    .appl img { width: 100%; height: auto; }
    .appl__tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(20,64,62,.6); }
    .appl__tag i { width: 10px; height: 10px; border-radius: 50%; background: #f0dbb0; box-shadow: 0 0 0 4px rgba(240,219,176,.3); }
    .appl figcaption.sr-only { position: absolute; }
    @media (max-width: 960px) { .in-hero__grid { grid-template-columns: minmax(0, 1fr); } }
    @media (max-width: 560px) { .appl__tag { font-size: 12px; padding: 5px 10px 5px 7px; } }

    /* ==================== Time + uses ==================== */
    .weeks { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 112px); align-items: center; }
    .weeks .bignum { font-size: clamp(88px, 11vw, 176px); }
    .uses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
    .uses a { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r); background: var(--cream); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
    .uses a:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -18px rgba(20,64,62,.45); }
    .uses b { font-size: 19px; font-weight: 500; line-height: 1.25; }
    .uses span { font-size: 15px; color: var(--teal); line-height: 1.45; }
    .uses em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 600; font-size: 15px; }
    @media (max-width: 860px) { .weeks { grid-template-columns: 1fr; } }
    @media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

    /* ==================== Squeeze diagram ==================== */
    .sq { border-radius: var(--r-lg); background: #fff; overflow: hidden; }
    .sq__art { position: relative; padding: clamp(16px, 2.4vw, 28px) clamp(12px, 2vw, 24px) 0; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #fbf3ec 70%, #f5ebe2 100%); }
    .sq__art svg { display: block; width: 100%; height: auto; }
    .sq .tc rect { fill: #fff; stroke: #14403e; stroke-width: 1.6; }
    .sq .bow { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
    .sq .bow--out { stroke: #6fb3ad; }
    .sq .bow--in { stroke: #c19a3a; }
    .sq .arw { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s; }
    .sq .arw--out { stroke: #3d7774; }
    .sq .arw--in { stroke: #a37f2a; }
    @media (prefers-reduced-motion: no-preference) {
      .sq.is-playing .arw--out { animation: nudgeUp 1s ease-in-out infinite; }
      .sq.is-playing .arw--in { animation: nudgeDown 1s ease-in-out infinite; }
    }
    @keyframes nudgeUp { 50% { transform: translateY(-4px); } }
    @keyframes nudgeDown { 50% { transform: translateY(4px); } }
    .sq__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px clamp(18px, 2.4vw, 28px) 22px; border-top: 1px solid var(--hairline); }
    .sq__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink); }
    .sq__legend span { display: inline-flex; align-items: center; gap: 8px; }
    .sq__legend i { width: 22px; height: 4px; border-radius: 2px; }
    .sq__cap { padding: 0 clamp(18px, 2.4vw, 28px) 22px; font-size: 14px; color: var(--teal); }

    /* ==================== Orthodontics family strip (shared look across the four orthodontic pages) ==================== */
    .ofam { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .ofam a { display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: 22px; border-radius: var(--r); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
    .ofam a:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(20,64,62,.45); }
    .ofam svg { width: 44px; height: 44px; color: var(--teal); margin-bottom: 8px; }
    .ofam b { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }
    .ofam span { font-size: 15px; line-height: 1.45; color: var(--teal); }
    .ofam em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 15px; font-weight: 600; }
    .ofam a:hover em { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
    .ofam-band { padding-bottom: calc(clamp(80px, 9vw, 136px) + 60px); }
    @media (max-width: 1000px) { .ofam { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 560px) { .ofam { grid-template-columns: 1fr; } .ofam a { min-height: 0; } }
    /* Closing photo moment on phones: photo first, panel below, so the face is not covered */
    @media (max-width: 760px) { .moment { display: block; min-height: 0; } .moment > img { position: relative; height: 320px; } .moment::after { display: none; } .moment__panel { margin: -48px 0 0; } .moment + .band { padding-top: clamp(80px, 9vw, 136px); } .moment { background: var(--mint); padding-bottom: 0; } }
