/* ==== Example site and Tom's phone (#example on the homepage). Loaded only there, by the section itself. ==== */
.ex-in { display: grid; gap: 32px; }
.ex-copy p { font-size: 20px; max-width: 520px; }
.ex-copy .ex-note { font-family: var(--mono, monospace); font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0; }
@media (min-width: 1100px) { .ex-in { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; } }

.ex-stage { display: flex; gap: 24px; align-items: flex-end; justify-content: center; min-width: 0; }
.ex-site { flex: none; border: 10px solid var(--ink, #101820); border-radius: 40px; overflow: hidden; background: #FFFFFF; }
.ex-site iframe { display: block; width: 375px; height: 720px; border: 0; }

/* Tabs: phones only, and only with JS (without it, the site and Tom's phone simply stack) */
.ex-tabs { display: none; }
@media (max-width: 699px) {
  .ex-stage { display: block; }
  .ex-tabs:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; border: 2px solid var(--ink, #101820); }
  .ex-tabs button { min-height: 48px; padding: 8px; border: 0; background: #FFFFFF; color: var(--ink, #101820); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
  .ex-tabs button[aria-selected="true"] { background: var(--ink, #101820); color: #FFFFFF; }
  .ex-tabs button:focus-visible { outline-offset: -6px; outline-color: #8EA2FF; }
  .ex-stage[data-tab="site"] .tp, .ex-stage[data-tab="tom"] .ex-site { display: none; }
  .ex-site { border-width: 6px; border-radius: 26px; }
  .ex-site iframe { width: 100%; height: clamp(480px, 72svh, 640px); }
  .ex-stage:not([data-tab]) .tp { margin-top: 24px; }
}

/* Tom's phone */
.tp { margin: 0; flex: none; width: 260px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tp-body { width: 100%; height: 540px; padding: 9px; background: var(--ink, #101820); border-radius: 38px; }
.tp-screen { position: relative; height: 100%; border-radius: 30px; background: #24323C; color: #F3F4F0; display: flex; flex-direction: column; align-items: center; padding: 40px 10px 10px; overflow: hidden; }
.tp-screen p { margin: 0; }
.tp-date { font-size: 15px; }
.tp-clock { font-size: 60px; font-weight: 300; line-height: 1.05; }
.tp-list { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; border-radius: 14px; }
.tp figcaption { font-family: var(--mono, monospace); font-size: 15px; font-weight: 500; line-height: 1.45; text-align: center; max-width: 30ch; }
@media (max-width: 699px) {
  .tp { width: 100%; }
  .tp-body { max-width: 380px; height: clamp(480px, 72svh, 640px); }
}

/* Notifications: native <details>, so they open with a tap or Enter and work without JS */
.tp-note { flex: none; background: #F3F4F0; color: #101820; border-radius: 14px; }
.tp-note summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 14px; }
.tp-note summary::-webkit-details-marker { display: none; }
.tp-note summary > * { grid-column: 1; }
.tp-note summary:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.tp-app { grid-column: 1 / -1 !important; display: flex; justify-content: space-between; font-family: var(--mono, monospace); font-size: 13px; color: #3B464D; }
.tp-note strong { font-size: 15px; line-height: 1.25; }
.tp-line { font-size: 14px; line-height: 1.35; }
.tp-thumb { grid-column: 2 !important; grid-row: 2 / span 2; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; align-self: center; }
.tp-note p { font-size: 14px; line-height: 1.4; white-space: pre-line; margin: 0 12px; padding: 6px 0 12px; border-top: 1px dashed #9AA3A8; }
.tp-note[open] .tp-line { display: none; }
.tp-fresh { animation: tp-drop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes tp-drop { from { transform: translateY(-36px); opacity: 0; } }

/* Incoming call, over the lock screen */
.tp-call { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 64px 16px 28px; background: #101518; color: #FFFFFF; text-align: center; }
.tp-call[hidden] { display: none; }
.tp-avatar { width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; }
.tp-ringing .tp-avatar { animation: tp-pulse 1.4s ease-out infinite; }
@keyframes tp-pulse { from { box-shadow: 0 0 0 0 rgba(201, 208, 212, 0.5); } to { box-shadow: 0 0 0 18px rgba(201, 208, 212, 0); } }
.tp-call-state { font-size: 16px; color: #C9D0D4; }
.tp-call-who { font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 6px !important; }
.tp-call-time { font-family: var(--mono, monospace); font-size: 18px; margin-top: 6px !important; }
.tp-call-keys { margin-top: auto; display: flex; gap: 12px; width: 100%; }
.tp-call-keys button { flex: 1; min-height: 52px; border: 0; border-radius: 26px; color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.tp-call-keys button[hidden] { display: none; }
.tp-decline, .tp-end { background: #C42B21; }
.tp-answer { background: #1E7A46; }
.tp-call-keys button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.tp-ringing .tp-body { animation: tp-buzz 1.4s ease-in-out infinite; }
@keyframes tp-buzz { 0%, 30%, 100% { transform: none; } 5%, 15%, 25% { transform: translateX(-3px) rotate(-1deg); } 10%, 20% { transform: translateX(3px) rotate(1deg); } }

@media (prefers-reduced-motion: reduce) { .tp-fresh, .tp-ringing .tp-body, .tp-ringing .tp-avatar { animation: none; } }
/* ==== end example site and Tom's phone ==== */
