/* CHERRY: How It Works
 Blueprint: PAGES BLUEPRINT/How_It_Works.png
 Fonts/tokens from home.css (Manrope + Newsreader) */

.page-hiw {
 --hiw-ease: cubic-bezier(0.32, 0.72, 0, 1);
 --hiw-phone-w: clamp(148px, 13.5vw, 178px);
 --hiw-bezel: #1c1c1e;
 overflow-x: clip;
}

/* ═══════════════════════════════════════════
 Hero
 ═══════════════════════════════════════════ */
.hiw-hero {
 padding: clamp(2rem, 4.5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hiw-hero-grid {
 display: grid;
 grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
 gap: clamp(1.75rem, 4vw, 3.5rem);
 /* Top-align so guide open/close height morph does not re-center copy (page jump) */
 align-items: start;
}

.hiw-eyebrow {
 margin: 0 0 0.75rem;
 font-family: var(--font-sans);
 font-size: 9px;
 font-weight: 500;
 letter-spacing: 0.2em;
 text-transform: uppercase;
 color: var(--muted);
}

.hiw-title {
 margin: 0 0 0.65rem;
 font-family: var(--font-sans);
 font-size: clamp(2.5rem, 5.4vw, 4rem);
 font-weight: 600;
 letter-spacing: -0.045em;
 line-height: 1.02;
 color: var(--ink);
}

.hiw-sub {
 margin: 0 0 1rem;
 font-family: var(--font-serif);
 font-size: clamp(1.25rem, 2.2vw, 1.65rem);
 font-weight: 400;
 font-style: italic;
 letter-spacing: -0.02em;
 line-height: 1.25;
 color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.hiw-lede {
 margin: 0;
 max-width: 40ch;
 font-family: var(--font-sans);
 font-size: clamp(13px, 1.2vw, 15px);
 line-height: 1.55;
 letter-spacing: -0.01em;
 color: var(--body);
}

/* Apple product-stage: mineral tray → nested media → quiet caption */
.hiw-hero-visual {
 justify-self: end;
 width: min(100%, 400px);
 margin: 0;
}

.hiw-hero-tray {
 position: relative;
 padding: clamp(0.65rem, 1.4vw, 0.9rem);
 border-radius: 32px;
 background:
 linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.2) 48%, transparent 100%),
 #e6e4de;
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.7) inset,
 0 28px 56px rgba(17, 23, 25, 0.08);
}

.hiw-hero-media {
 position: relative;
 overflow: hidden;
 aspect-ratio: 4 / 3;
 border-radius: 22px; /* concentric to tray 32 − ~10 pad */
 background: #d4d2cc;
}

.hiw-hero-media--illo {
 background: #f8f7f3;
}

.hiw-hero-media::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: inherit;
 box-shadow: inset 0 0 0 1px rgba(17, 23, 25, 0.06);
 pointer-events: none;
}

.hiw-hero-media img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center 42%;
 transform: scale(1.02);
}

.hiw-hero-media--illo img {
 object-fit: contain;
 object-position: center;
 transform: none;
 padding: 0.35rem;
}

/* ═══════════════════════════════════════════
 Steps flow
 ═══════════════════════════════════════════ */
.hiw-steps {
 padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hiw-flow {
 list-style: none;
 margin: 0;
 padding: 0;
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: clamp(0.75rem, 1.5vw, 1.25rem);
 align-items: start;
}

.hiw-step {
 position: relative;
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 1.15rem;
}

.hiw-step-copy {
 max-width: 22ch;
 min-height: 7.5rem;
}

.hiw-step-num {
 display: inline-grid;
 place-items: center;
 width: 28px;
 height: 28px;
 margin: 0 auto 0.55rem;
 border-radius: 50%;
 border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
 font-family: var(--font-sans);
 font-size: 10px;
 font-weight: 600;
 letter-spacing: 0.04em;
 color: var(--ink);
 background: #fff;
}

.hiw-step-title {
 margin: 0 0 0.45rem;
 font-family: var(--font-sans);
 font-size: clamp(14px, 1.25vw, 16px);
 font-weight: 600;
 letter-spacing: -0.02em;
 line-height: 1.25;
 color: var(--ink);
}

.hiw-step-text {
 margin: 0;
 font-family: var(--font-sans);
 font-size: 12px;
 line-height: 1.45;
 color: var(--body);
}

.hiw-flow-arrow {
 display: none;
}

@media (min-width: 981px) {
 .hiw-flow-arrow {
 display: grid;
 place-items: center;
 position: absolute;
 top: calc(7.5rem + var(--hiw-phone-w) * 1.05);
 right: -0.85rem;
 width: 1.7rem;
 color: color-mix(in srgb, var(--ink) 28%, transparent);
 z-index: 2;
 pointer-events: none;
 }

 .hiw-step:last-child .hiw-flow-arrow {
 display: none;
 }
}

/* ═══════════════════════════════════════════
 Phone device (Apple-style titanium frame)
 ═══════════════════════════════════════════ */
.hiw-phone {
 width: var(--hiw-phone-w);
 flex: 0 0 auto;
}

.hiw-phone-cradle {
 padding: 0.65rem 0.55rem 0.85rem;
 border-radius: 999px;
 background: color-mix(in srgb, var(--surface) 88%, #fff);
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.7) inset,
 0 16px 36px rgba(17, 23, 25, 0.05);
}

.hiw-phone-frame {
 position: relative;
 width: 100%;
 aspect-ratio: 9 / 19.4;
 padding: 9px;
 border-radius: 28px;
 background:
 linear-gradient(160deg, #3a3a3c 0%, var(--hiw-bezel) 42%, #0f0f10 100%);
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.18) inset,
 0 0 0 1px rgba(0, 0, 0, 0.45),
 0 22px 48px rgba(17, 23, 25, 0.16);
}

.hiw-phone-btn {
 position: absolute;
 z-index: 4;
 background: #2a2a2c;
 border-radius: 2px;
 box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.hiw-phone-btn--silent {
 left: -1.5px;
 top: 18%;
 width: 2px;
 height: 10px;
}

.hiw-phone-btn--vol-up {
 left: -1.5px;
 top: 26%;
 width: 2px;
 height: 22px;
}

.hiw-phone-btn--vol-down {
 left: -1.5px;
 top: 38%;
 width: 2px;
 height: 22px;
}

.hiw-phone-btn--power {
 right: -1.5px;
 top: 30%;
 width: 2px;
 height: 36px;
}

.hiw-phone-island {
 position: absolute;
 top: 13px;
 left: 50%;
 z-index: 3;
 width: 34%;
 height: 13px;
 transform: translateX(-50%);
 border-radius: 999px;
 background: #000;
 box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hiw-phone-screen {
 position: relative;
 height: 100%;
 overflow: hidden;
 border-radius: 19px; /* concentric: 28 − 9 pad */
 background: #f7f6f2;
 padding: 1.85rem 0.7rem 0.85rem;
 display: flex;
 flex-direction: column;
 color: var(--ink);
 font-family: var(--font-sans);
}

.hiw-phone-screen::before {
 content: "9:41";
 position: absolute;
 top: 11px;
 left: 14px;
 font-size: 7px;
 font-weight: 600;
 letter-spacing: 0.02em;
 color: var(--ink);
 opacity: 0.55;
 z-index: 2;
}

.hiw-home-ind {
 display: block;
 width: 28%;
 height: 3px;
 margin: 0.45rem auto 0;
 border-radius: 999px;
 background: color-mix(in srgb, var(--ink) 22%, transparent);
 flex-shrink: 0;
}

.hiw-app-kicker {
 margin: 0 0 0.35rem;
 font-size: 8px;
 font-weight: 600;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: var(--muted);
}

.hiw-app-title {
 margin: 0 0 0.7rem;
 font-size: 13px;
 font-weight: 600;
 letter-spacing: -0.025em;
 line-height: 1.2;
 color: var(--ink);
}

.hiw-app-pill {
 margin-top: auto;
 display: grid;
 place-items: center;
 height: 28px;
 border-radius: 999px;
 background: var(--cta);
 color: #fff;
 font-size: 9px;
 font-weight: 600;
 letter-spacing: -0.01em;
}

.hiw-app-pill--ghost {
 background: transparent;
 color: var(--ink);
 border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

/* Screen 01: select */
.hiw-svc-list {
 list-style: none;
 margin: 0 0 0.45rem;
 padding: 0;
 display: grid;
 gap: 0.3rem;
 flex: 1;
 min-height: 0;
}

.hiw-svc-list li {
 display: flex;
 align-items: center;
 gap: 0.45rem;
 padding: 0.42rem 0.5rem;
 border-radius: 10px;
 background: #fff;
 border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
 font-size: 9px;
 font-weight: 500;
 letter-spacing: -0.01em;
 color: var(--ink);
}

.hiw-svc-list li.is-on {
 border-color: color-mix(in srgb, var(--ink) 55%, transparent);
 box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}

.hiw-svc-ico {
 display: grid;
 place-items: center;
 width: 18px;
 height: 18px;
 color: var(--ink);
 opacity: 0.75;
 flex-shrink: 0;
}

/* Screen 02: Contact-style details */
.hiw-form-fields {
 display: grid;
 gap: 0.4rem;
 margin: 0 0 0.65rem;
 flex: 1;
 min-height: 0;
}

.hiw-field {
 display: grid;
 gap: 0.18rem;
 margin: 0;
}

.hiw-field > span:first-child {
 font-size: 7.5px;
 font-weight: 500;
 letter-spacing: -0.01em;
 color: var(--muted);
}

.hiw-field em {
 font-style: normal;
 opacity: 0.75;
}

.hiw-field-box {
 display: block;
 min-height: 26px;
 padding: 0.38rem 0.5rem;
 border-radius: 8px;
 background: #fff;
 border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
 font-size: 9px;
 font-weight: 500;
 letter-spacing: -0.015em;
 color: var(--ink);
 line-height: 1.3;
}

.hiw-field-box.is-focus {
 border-color: color-mix(in srgb, var(--ink) 55%, transparent);
 box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}

.hiw-field-box.is-focus [data-sim-fill]::after {
 content: "";
 display: inline-block;
 width: 1px;
 height: 0.95em;
 margin-left: 1px;
 vertical-align: -1px;
 background: var(--ink);
 animation: hiw-caret 1.05s steps(1) infinite;
}

@keyframes hiw-caret {
 50% { opacity: 0; }
}

.hiw-field-box [data-sim-fill]:empty::before {
 content: "";
}

/* Screen 03: send enquiry */
.hiw-consent-line {
 margin: 0 0 0.55rem;
 font-size: 7.5px;
 font-weight: 500;
 letter-spacing: -0.01em;
 color: var(--muted);
}

.hiw-summary {
 margin: 0 0 0.85rem;
 padding: 0;
 display: grid;
 gap: 0.45rem;
 flex: 1;
}

.hiw-summary > div {
 display: flex;
 justify-content: space-between;
 gap: 0.5rem;
 padding: 0.35rem 0.2rem;
 margin: 0 -0.2rem;
 border-radius: 6px;
 border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
 font-size: 9px;
}

.hiw-summary > div.is-focus {
 background: color-mix(in srgb, var(--ink) 4%, transparent);
 border-bottom-color: color-mix(in srgb, var(--ink) 18%, transparent);
 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.hiw-summary > div.is-focus dd[data-sim-fill]::after {
 content: "";
 display: inline-block;
 width: 1px;
 height: 0.95em;
 margin-left: 1px;
 vertical-align: -1px;
 background: var(--ink);
 animation: hiw-caret 1.05s steps(1) infinite;
}

.hiw-summary dt {
 margin: 0;
 color: var(--muted);
 font-weight: 500;
}

.hiw-summary dd {
 margin: 0;
 font-weight: 600;
 letter-spacing: -0.015em;
 color: var(--ink);
}

.hiw-summary-total {
 border-bottom: 0;
 padding-top: 0.5rem;
}

.hiw-summary-total dd {
 font-size: 11px;
}

/* Screen 04: done */
.hiw-screen-done {
 align-items: center;
 text-align: center;
 justify-content: center;
 gap: 0.65rem;
}

.hiw-check {
 width: 48px;
 height: 48px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 color: var(--ink);
 background: #fff;
 box-shadow: 0 10px 24px rgba(17, 23, 25, 0.08);
 margin-bottom: 0.25rem;
}

.hiw-screen-done .hiw-app-title {
 margin: 0;
}

.hiw-done-sub {
 margin: 0;
 max-width: 18ch;
 font-size: 9px;
 line-height: 1.45;
 color: var(--body);
}

.hiw-screen-done .hiw-app-pill {
 margin-top: 0.85rem;
 width: 100%;
}

/* ═══════════════════════════════════════════
 Assurance + finale
 ═══════════════════════════════════════════ */
.hiw-close {
 padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hiw-close-grid {
 display: grid;
 grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.7fr);
 gap: clamp(1.5rem, 3vw, 2.5rem);
 align-items: center;
 padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
 border-radius: 28px;
 background: color-mix(in srgb, var(--surface) 90%, #fff);
 border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
}

.hiw-assure {
 list-style: none;
 margin: 0;
 padding: 0;
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: 0.75rem;
}

.hiw-assure li {
 display: grid;
 gap: 0.55rem;
 justify-items: start;
}

.hiw-assure-icon {
 display: grid;
 place-items: center;
 width: 28px;
 height: 28px;
 color: var(--ink);
}

.hiw-assure-label {
 font-family: var(--font-sans);
 font-size: 11px;
 font-weight: 500;
 letter-spacing: -0.01em;
 line-height: 1.3;
 color: var(--ink);
 max-width: 12ch;
}

.hiw-finale {
 position: relative;
 display: flex;
 align-items: center;
 gap: 0.85rem;
 justify-self: end;
 padding: 0.85rem 1rem 0.85rem 0.85rem;
 border-radius: 999px;
 background: color-mix(in srgb, var(--surface) 80%, #fff);
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.6) inset,
 0 14px 32px rgba(17, 23, 25, 0.06);
 transition: transform 220ms var(--hiw-ease), box-shadow 220ms ease;
}

.hiw-finale:hover {
 transform: translateY(-2px);
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.6) inset,
 0 18px 40px rgba(17, 23, 25, 0.1);
}

.hiw-finale:focus-visible {
 outline: none;
 box-shadow: var(--focus);
}

.hiw-finale-orb {
 width: 48px;
 height: 48px;
 border-radius: 50%;
 flex-shrink: 0;
 background:
 radial-gradient(circle at 35% 30%, #fff 0%, transparent 45%),
 linear-gradient(145deg, #e8ebe8, #cfd4d0);
 box-shadow: 0 8px 18px rgba(17, 23, 25, 0.08);
}

.hiw-finale-copy {
 display: grid;
 gap: 0.1rem;
 font-family: var(--font-serif);
 font-size: 15px;
 font-weight: 400;
 letter-spacing: -0.02em;
 line-height: 1.2;
 color: var(--ink);
}

.hiw-finale-go {
 margin-left: 0.25rem;
 width: 32px;
 height: 32px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 background: var(--ink);
 color: #fff;
 font-size: 14px;
 flex-shrink: 0;
}

/* ═══════════════════════════════════════════
 Responsive
 ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
 .hiw-assure {
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 1rem 1.25rem;
 }
}

@media (max-width: 980px) {
 .hiw-hero-grid {
 grid-template-columns: 1fr;
 }

 .hiw-hero-visual {
 justify-self: start;
 width: min(100%, 340px);
 }

 .hiw-flow {
 grid-template-columns: 1fr;
 gap: 2.25rem;
 max-width: 420px;
 margin-inline: auto;
 }

 .hiw-step-copy {
 min-height: 0;
 }

 .hiw-flow-arrow {
 display: grid;
 position: static;
 width: auto;
 margin: 0.35rem 0 -0.35rem;
 transform: rotate(90deg);
 color: color-mix(in srgb, var(--ink) 28%, transparent);
 }

 .hiw-step:last-child .hiw-flow-arrow {
 display: none;
 }

 .hiw-close-grid {
 grid-template-columns: 1fr;
 }

 .hiw-finale {
 justify-self: start;
 }
}

@media (max-width: 640px) {
 .hiw-phone {
 --hiw-phone-w: min(200px, 62vw);
 }

 .hiw-assure {
 grid-template-columns: 1fr 1fr;
 }

 .hiw-title {
 font-size: clamp(2rem, 9vw, 2.75rem);
 }
}

/* Hero play guide: mineral tray + nested stage */
.hiw-hero-visual {
 overflow: visible;
}

.hiw-hero-tray--guide {
 overflow: visible;
 padding: 0;
 border-radius: 0;
 background: transparent;
 box-shadow: none;
}

.hiw-guide-visual {
 position: relative;
 width: 100%;
}

.contact-player {
 --hiw-phone-w: 168px;
 --hiw-bezel: #1c1c1e;
 width: 100%;
}

.contact-player-shell {
 position: relative;
 width: 100%;
 border-radius: 0;
 background: transparent;
 box-shadow: none;
 overflow: visible;
 transform-origin: center top;
}

/* During open/close morph: clip height tween so content does not spill */
.contact-player.is-morphing .contact-player-shell {
 overflow: hidden;
}

.contact-player[data-state="idle"] .contact-player-shell {
 aspect-ratio: auto;
 background: transparent;
 box-shadow: none;
}

.contact-player:not([data-state="idle"]) .contact-player-shell {
 aspect-ratio: auto;
 height: auto;
 overflow: visible;
 /* Merge with page — no floating white card */
 background: var(--page);
 padding: 1rem 0.85rem 1.05rem;
 border-radius: 0;
 box-shadow: none;
}

.contact-player-poster {
 position: relative;
 width: 100%;
 height: auto;
 display: grid;
 place-items: center;
 padding: 0 0 3.25rem;
 z-index: 2;
 background: transparent;
}

.contact-player:not([data-state="idle"]) .contact-player-poster {
 position: absolute;
 inset: 0;
 pointer-events: none;
}

.contact-player.is-settled .contact-player-poster {
 display: none;
}

.contact-player-poster img {
 width: 100%;
 height: 100%;
 object-fit: contain;
 object-position: center;
 display: block;
}

/* Teaching Lottie — homepage merge: no White Solid card; page cream shows through */
.hiw-teaching-lottie.hero-lottie.hero-mask {
 clip-path: none;
 width: min(100%, 440px);
 max-height: clamp(220px, 28vw, 300px);
 aspect-ratio: 500 / 450;
 height: auto;
 margin: 0 auto;
 border-radius: 0;
 background: var(--page);
 box-shadow: none;
}

.contact-player-poster .hiw-teaching-lottie .hero-lottie-stage {
 padding: 0;
 background: transparent;
}

.hiw-teaching-lottie[data-ready="true"] {
 background: var(--page);
}

.contact-player-play {
 position: absolute;
 left: 50%;
 bottom: 0.7rem;
 z-index: 2;
 transform: translateX(-50%);
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 padding: 0.42rem 0.85rem 0.42rem 0.42rem;
 border: 0;
 border-radius: 999px;
 background: #fff;
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.9) inset,
 0 10px 28px rgba(17, 23, 25, 0.12);
 font: inherit;
 font-size: 12px;
 font-weight: 600;
 letter-spacing: -0.015em;
 color: var(--ink);
 cursor: pointer;
 transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
 .contact-player-play:hover {
 transform: translateX(-50%) translateY(-1px);
 box-shadow:
 0 1px 0 rgba(255, 255, 255, 0.9) inset,
 0 14px 32px rgba(17, 23, 25, 0.14);
 }
}

.contact-player-play:focus-visible {
 outline: none;
 box-shadow: var(--focus);
}

.contact-player-play-ico {
 width: 28px;
 height: 28px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 background: var(--ink);
 color: #fff;
}

.contact-player-stage {
 display: none;
 flex-direction: column;
 align-items: center;
 gap: 0.65rem;
 width: 100%;
}

.contact-player:not([data-state="idle"]) .contact-player-stage {
 display: flex;
}

.contact-player-caption {
 margin: 0;
 display: inline-flex;
 align-items: baseline;
 gap: 0.45rem;
 font-size: 12px;
 letter-spacing: -0.015em;
 color: var(--ink);
}

.contact-player-num {
 font-weight: 650;
 font-variant-numeric: tabular-nums;
}

.contact-player-label {
 font-weight: 600;
 color: var(--body);
}

.contact-player-phone {
 margin: 0 auto;
}

.hiw-phone-frame[data-sim-frame] {
 overflow: hidden;
}

.contact-player-screens {
 position: relative;
 height: 100%;
 border-radius: 19px;
 overflow: hidden;
 background: #f7f6f2;
}

.contact-player-screens .hiw-phone-screen {
 position: absolute;
 inset: 0;
 opacity: 0;
 visibility: hidden;
 pointer-events: none;
 z-index: 0;
}

.contact-player-screens .hiw-phone-screen.is-active {
 opacity: 1;
 visibility: visible;
 z-index: 1;
 pointer-events: auto;
}

/* Simulated list scroll viewport */
.contact-sim-scroll {
 position: relative;
 flex: 1;
 min-height: 0;
 overflow: hidden;
 margin: 0 0 0.35rem;
 mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.contact-sim-scroll .hiw-svc-list {
 transform: translateY(0);
 will-change: transform;
}

.contact-sim-scroll .hiw-svc-list li.is-press {
 transform: scale(0.97);
 background: color-mix(in srgb, var(--surface) 55%, #fff);
}

/* OS standard link pointer — index tip is the hot spot */
.contact-sim-finger {
 position: absolute;
 top: 0;
 left: 0;
 z-index: 12;
 width: 18px;
 height: 27px;
 margin: -1px 0 0 -5px;
 border-radius: 0;
 background: none;
 box-shadow: none;
 opacity: 0;
 pointer-events: none;
 will-change: transform, opacity;
 transform-origin: 34% 2%;
}

.contact-sim-finger-svg {
 display: block;
 width: 100%;
 height: 100%;
 overflow: visible;
 filter: drop-shadow(0 1px 1.25px rgba(0, 0, 0, 0.32));
}

.contact-sim-finger.is-down .contact-sim-finger-svg {
 filter: drop-shadow(0 0.5px 0.75px rgba(0, 0, 0, 0.26));
}

/* iOS-style keyboard */
.contact-sim-kb {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 10;
 padding: 4px 3px 10px;
 background: linear-gradient(180deg, #d1d3d9 0%, #c8cad0 12%, #c8cad0 100%);
 border-radius: 0 0 19px 19px;
 transform: translateY(105%);
 opacity: 0;
 pointer-events: none;
 will-change: transform, opacity;
}

.contact-sim-kb.is-open {
 transform: translateY(0);
 opacity: 1;
}

.contact-sim-kb-pad {
 display: grid;
 gap: 3px;
}

.contact-sim-kb-pad[hidden] {
 display: none;
}

.contact-sim-kb-row {
 display: flex;
 justify-content: center;
 gap: 2.5px;
}

.contact-sim-kb-row--mid {
 padding: 0 8px;
}

.contact-sim-kb-row > span {
 flex: 1 1 0;
 min-width: 0;
 max-width: 14px;
 height: 18px;
 display: grid;
 place-items: center;
 border-radius: 3px;
 background: #fff;
 box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.28);
 font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
 font-size: 8px;
 font-weight: 400;
 line-height: 1;
 color: #111;
 text-transform: none;
 user-select: none;
}

.contact-sim-kb-row > span.is-press {
 background: #b0b3ba;
 transform: scale(0.94);
}

.contact-sim-kb-mod {
 max-width: 22px !important;
 flex: 1.4 1 0 !important;
 background: #aeb1b8 !important;
 font-size: 7px !important;
}

.contact-sim-kb-mod--wide {
 max-width: 28px !important;
 flex: 1.7 1 0 !important;
 font-size: 6.5px !important;
 font-weight: 500 !important;
}

.contact-sim-kb-space {
 max-width: none !important;
 flex: 4 1 0 !important;
 font-size: 6.5px !important;
 color: #333 !important;
}

.contact-sim-kb-mod.is-press,
.contact-sim-kb-space.is-press {
 background: #8e9198 !important;
}

.contact-sim-confirm {
 position: relative;
 overflow: hidden;
}

.contact-sim-ripple {
 position: absolute;
 inset: 50% auto auto 50%;
 width: 8px;
 height: 8px;
 margin: -4px 0 0 -4px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.45);
 opacity: 0;
 pointer-events: none;
 transform: scale(1);
}

.hiw-summary dd[data-sim-fill]:empty::before {
 content: "…";
 color: var(--muted);
 font-weight: 500;
}

.contact-player-bar {
 display: grid;
 gap: 0.55rem;
 width: 100%;
 justify-items: center;
}

.contact-player[data-state="idle"] .contact-player-bar,
.contact-player[data-state="idle"] .contact-player-more {
 display: none;
}

.contact-player-dots {
 display: flex;
 gap: 0.4rem;
 align-items: center;
}

.contact-player-dot {
 width: 7px;
 height: 7px;
 padding: 0;
 border: 0;
 border-radius: 50%;
 background: color-mix(in srgb, var(--ink) 18%, transparent);
 cursor: pointer;
}

.contact-player-dot.is-active {
 background: var(--ink);
 transform: scale(1.15);
}

.contact-player-dot:focus-visible {
 outline: none;
 box-shadow: var(--focus);
}

.contact-player-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.4rem;
 justify-content: center;
}

.contact-player-btn {
 font: inherit;
 font-size: 11px;
 font-weight: 600;
 letter-spacing: -0.01em;
 border-radius: 999px;
 padding: 0.38rem 0.7rem;
 border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
 background: #fff;
 color: var(--ink);
 cursor: pointer;
}

.contact-player-btn--ghost {
 background: transparent;
}

.contact-player-btn--solid {
 background: var(--ink);
 border-color: transparent;
 color: #fff;
}

.contact-player-btn:focus-visible {
 outline: none;
 box-shadow: var(--focus);
}

.contact-player[data-state="ended"] [data-player-toggle] {
 display: none;
}

.contact-player-more {
 font-size: 11px;
 font-weight: 550;
 color: var(--ink);
 text-decoration: none;
 letter-spacing: -0.01em;
}

.contact-player-more:hover {
 text-decoration: underline;
 text-underline-offset: 2px;
}

