/* The portfolio's phone frame (mofiyinebo.com, css/style.css), here showing live screens
   built from the kit instead of screenshots. Driven by phone-frame.js. */
.phone-prototype {
    --pp-w: 230px;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 auto;
    max-width: 100%;
}

.pp-device {
    background: #121214;
    border-radius: calc(var(--pp-w) * 0.165);
    box-shadow:
        inset 0 0 0 calc(var(--pp-w) * 0.007) #48484d,
        inset 0 0 0 calc(var(--pp-w) * 0.014) #0b0b0c,
        0 26px 50px -22px rgba(0, 0, 0, 0.6),
        0 10px 20px -12px rgba(0, 0, 0, 0.45);
    display: block;
    flex: none;
    padding: calc(var(--pp-w) * 0.036);
    position: relative;
    width: var(--pp-w);
}

/* Side buttons */
.pp-device::before,
.pp-device::after {
    background: #2a2a2e;
    border-radius: 2px;
    content: '';
    position: absolute;
    width: calc(var(--pp-w) * 0.012);
}

.pp-device::before {
    height: calc(var(--pp-w) * 0.2);
    left: calc(var(--pp-w) * -0.01);
    top: 24%;
}

.pp-device::after {
    height: calc(var(--pp-w) * 0.3);
    right: calc(var(--pp-w) * -0.01);
    top: 27%;
}

.pp-screen {
    aspect-ratio: 720 / 1565;
    background: #000;
    border-radius: calc(var(--pp-w) * 0.13);
    clip-path: inset(0 round calc(var(--pp-w) * 0.13));
    display: block;
    isolation: isolate;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
}

.pp-stage,
.pp-layer {
    display: block;
    inset: 0;
    position: absolute;
}

.pp-island {
    background: #000;
    border-radius: 999px;
    display: block;
    height: 4.4%;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 1.35%;
    transform: translateX(-50%);
    width: 30%;
    z-index: 3;
}

.pp-statusbar {
    align-items: center;
    color: #111;
    display: flex;
    font: 600 calc(var(--pp-w) * 0.042)/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    height: 6.2%;
    justify-content: space-between;
    left: 0;
    padding: 0.4% 8% 0 12%;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.pp-statusbar--light {
    color: #fff;
}

.pp-status-icons {
    align-items: center;
    display: flex;
    gap: calc(var(--pp-w) * 0.012);
}

.pp-status-icons svg {
    fill: currentColor;
    height: calc(var(--pp-w) * 0.034);
    width: auto;
}

.pp-cursor {
    aspect-ratio: 1;
    background-color: rgba(20, 20, 20, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35);
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 105%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, scale 0.15s ease, background-color 0.15s ease;
    width: 11%;
    z-index: 5;
}

.pp-cursor.is-visible {
    opacity: 1;
}

.pp-cursor.is-pressing,
.pp-cursor.is-holding {
    background-color: rgba(255, 255, 255, 0.55);
    scale: 0.82;
}

.pp-cursor.is-pressing::after {
    animation: pp-ripple 0.45s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    content: '';
    inset: -2px;
    position: absolute;
}

@keyframes pp-ripple {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(2.2);
    }
}

.pp-personas {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 18px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    max-width: 100%;
    padding: 2px;
}

.pp-persona {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pp-persona[aria-pressed="true"],
.pp-persona.is-demo-press {
    background: var(--primary);
    color: var(--paper);
}

.pp-caption {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0.15rem 0 0;
    min-height: 1.2em;
    text-align: center;
}

.pp-caption strong {
    color: var(--ink);
    font-weight: 600;
}

.pp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    max-width: 330px;
}

.pp-chip {
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
    padding: 0.18rem 0.55rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pp-chip:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.pp-chip[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--paper);
}

.pp-chip:focus-visible,
.pp-persona:focus-visible,
.pp-replay:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.pp-actions {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.4rem 0.9rem;
    justify-content: center;
}

.pp-replay {
    background: none;
    border: 0;
    color: var(--ink);
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* A live screen: laid out at 390×847 like a real phone, then scaled to fit the frame. */
.pp-app {
    background-color: var(--paper);
    background-image: linear-gradient(var(--veil), var(--veil)), var(--texture);
    background-size: 100% 100%, 400px auto;
    color: var(--ink);
    font-family: var(--sans);
    height: 847px;
    left: 0;
    position: absolute;
    top: 0;
    transform: scale(var(--pp-scale, 0.7));
    transform-origin: 0 0;
    width: 390px;
}

.pp-layer {
    overflow: hidden;
}

.pp-screen {
    background: var(--paper);
}

.phone-prototype {
    --pp-w: 300px;
}

.pp-statusbar {
    color: var(--ink);
}

.pp-app--sheet {
    background: transparent;
}

.pp-hint {
    font-weight: 600;
}

.pp-replay {
    cursor: pointer;
    font-weight: 700;
}

/* field notes: the demo app inside the phone (field-notes.js) */
.fn {
    padding: 64px 26px 0;
}

.fn-head {
    margin-bottom: 26px;
}

.fn-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.fn-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 24px 0 12px;
}

.fn-list {
    gap: 16px;
}

.fn-stamp-pad {
    justify-content: flex-start;
    margin-top: 34px;
}

.fn-fab {
    background: var(--primary);
    border: 0;
    border-radius: 14px;
    bottom: 128px;
    box-shadow: 0 14px 22px -12px rgba(var(--shadow), 0.8);
    color: var(--on-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 14px 20px;
    position: absolute;
    right: 24px;
}

.fn-fab span {
    font-size: 18px;
    margin-right: 4px;
}

/* Index tabs rising from the bottom edge instead of a tab bar. */
.fn-tabs {
    align-items: flex-end;
    bottom: 0;
    display: flex;
    gap: 8px;
    height: 92px;
    left: 0;
    padding: 0 16px;
    position: absolute;
    right: 0;
}

.fn-tab {
    background: var(--tone);
    border: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 10px -6px rgba(var(--shadow), 0.45);
    color: var(--tab-ink);
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    height: 62px;
    letter-spacing: 0.04em;
    opacity: 0.82;
    padding-bottom: 18px;
    transition: height 0.28s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.28s ease;
}

.fn-tab[aria-current='page'] {
    height: 76px;
    opacity: 1;
}

.fn-home {
    background: var(--tab-ink);
    border-radius: 3px;
    bottom: 8px;
    height: 5px;
    left: 50%;
    opacity: 0.7;
    position: absolute;
    transform: translateX(-50%);
    width: 134px;
}

.fn-scrim {
    background: rgba(12, 10, 8, 0.42);
    inset: 0;
    position: absolute;
}

.fn-sheet {
    background-color: rgb(var(--sheet));
    background-image: linear-gradient(rgba(var(--sheet), 0.88), rgba(var(--sheet), 0.88)), var(--texture);
    background-size: 100% 100%, 400px auto;
    border-radius: 22px 22px 0 0;
    bottom: 0;
    box-shadow: 0 -12px 30px -14px rgba(0, 0, 0, 0.45);
    left: 0;
    padding: 14px 26px 64px;
    position: absolute;
    right: 0;
}

.fn-grabber {
    background: var(--rule);
    border-radius: 3px;
    display: block;
    height: 5px;
    margin: 0 auto 22px;
    width: 40px;
}

.fn-field {
    margin-top: 34px;
    width: 100%;
}

.fn-sheet-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.fn-cancel {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fn-board {
    display: grid;
    gap: 30px 20px;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding-top: 10px;
}

.fn-note {
    width: 100%;
}

.fn-peel {
    --size: 150px;
    margin-top: 4px;
}

.fn-ticket-wrap {
    margin-top: 8px;
}

.fn-ticket-wrap .pk-ticket {
    width: 100%;
}

.fn-ruler {
    width: 100%;
}

/* Receipts printed inside the phone come out under the status bar, at the app's scale. */
.pp-screen > .pk-receipt-host--inline {
    top: 6.5%;
    transform: translateX(-50%) scale(var(--pp-scale, 0.7));
    transform-origin: 50% 0;
    z-index: 4;
}

@media (max-width: 640px) {
    .phone-prototype {
        --pp-w: min(290px, 76vw);
    }
}

/* Real Flutter renders of the example app, in the same frame. */
.renders {
    margin: 0 0 2rem;
}

.renders-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.render {
    --pp-w: 220px;
}

.render:nth-child(2) {
    transform: translateY(-14px);
}

.render img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.renders figcaption {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: center;
}

@media (max-width: 640px) {
    .render {
        --pp-w: 150px;
    }

    .renders-row {
        gap: 1rem;
    }

    .render:nth-child(3) {
        display: none;
    }
}
