/* AP Photo page
   Same patterns as Calendar, Online Booking, Client Management and Telemedicine. */

.ph-page {
    --ph-ink: #111827;
    --ph-text: #58616f;
    --ph-muted: #7b8492;
    --ph-border: #e8edef;
    --ph-teal: #137f8c;
    --ph-gold: #d99a2b;
    background: #ffffff;
    color: var(--ph-ink);
    float: left;
    overflow: hidden;
    width: 100%;
}

header {
    background-color: #001d33;
}

.ph-page * {
    box-sizing: border-box;
}

.ph-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-page figure {
    margin: 0;
}

.ph-container {
    margin: 0 auto;
    max-width: 1210px;
    padding: 0 24px;
    width: 100%;
}

.ph-section {
    padding: 72px 0;
}

.ph-nowrap {
    white-space: nowrap;
}

/* Type */
.ph-page h1,
.ph-page h2,
.ph-page h3 {
    color: var(--ph-ink);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.ph-page h1 {
    font-size: 56px;
    line-height: 1.05;
}

.ph-page h2 {
    font-size: 38px;
    line-height: 1.16;
    text-wrap: balance;
}

.ph-page p {
    color: var(--ph-text);
    font-size: 17px;
    line-height: 1.58;
    margin: 0;
}

.ph-eyebrow {
    color: #58616f !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
}

/* Hero */
.ph-hero {
    background:
        radial-gradient(circle at 10% 28%, rgba(167, 234, 242, 0.55), transparent 28%),
        radial-gradient(circle at 88% 34%, rgba(255, 205, 116, 0.34), transparent 30%),
        linear-gradient(145deg, #f4fbfc 0%, #ffffff 50%, #fff8ec 100%);
    padding: 126px 0 72px;
    position: relative;
}

.ph-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    bottom: 0;
    content: "";
    height: 120px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.ph-hero > .ph-container {
    position: relative;
    z-index: 1;
}

.ph-hero-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.ph-hero-copy {
    min-width: 0;
}

.ph-page .ph-lede {
    margin-top: 22px;
    max-width: 36em;
}

/* Framed landscape photo + floating cards */
.ph-visual {
    min-width: 0;
    position: relative;
}

.ph-frame {
    aspect-ratio: 3 / 2;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
    overflow: hidden;
    padding: 10px;
    width: 100%;
}

.ph-frame img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ph-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 18px 36px -12px rgba(30, 60, 80, 0.28);
    display: flex;
    font-family: 'Roboto', sans-serif;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    position: absolute;
    z-index: 2;
}

.ph-card-tl { left: -26px; top: -22px; }
.ph-card-br { bottom: -24px; right: -20px; }
.ph-card-tr { right: -22px; top: -22px; }
.ph-card-bl { bottom: -24px; left: -22px; }

.ph-card-icon {
    align-items: center;
    background: #e3f4f6;
    border-radius: 10px;
    color: var(--ph-teal);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.ph-card-icon-gold {
    background: #fdf3df;
    color: #c27a12;
}

.ph-card-icon svg,
.ph-icon svg,
.ph-feature-icon svg {
    display: block;
}

.ph-card-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ph-card-body strong {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.ph-card-body small {
    color: #7b8492;
    font-size: 12px;
}

/* Placeholders (remove as real images land) */
.ph-placeholder {
    align-items: center;
    background: repeating-linear-gradient(135deg, #f3f8f9 0, #f3f8f9 14px, #fbfcfc 14px, #fbfcfc 28px);
    border: 1px dashed #cfe3e6;
    border-radius: 12px;
    color: var(--ph-muted);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    justify-content: center;
    padding: 12px;
    text-align: center;
    width: 100%;
}

/* Split sections */
.ph-split {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ph-split-reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.ph-copy {
    min-width: 0;
}

.ph-copy > p {
    margin-top: 20px;
    max-width: 36em;
}

/* Capture: copy sits on a white card with the brand gradient edge */
.ph-capture-copy {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(30, 43, 56, 0.07);
    padding: 40px 40px 38px 44px;
    position: relative;
}


.ph-page .ph-chips-label {
    color: var(--ph-ink);
    font-size: 15px;
    font-weight: 600;
    margin-top: 26px;
}

.ph-page .ph-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ph-chips li {
    background: #f1f9fa;
    border: 1px solid #d4ecef;
    border-radius: 999px;
    color: #0f6773;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    padding: 8px 16px;
}

/* Treatment plans */
.ph-page .ph-callout {
    background: linear-gradient(90deg, #eef8fa 0%, rgba(238, 248, 250, 0.35) 100%);
    border-left: 3px solid #29b8c7;
    border-radius: 4px 14px 14px 4px;
    color: var(--ph-ink);
    font-size: 16.5px;
    margin-top: 26px;
    padding: 18px 22px;
}

/* Device frames for app screenshots */
.ph-device-wrap {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.ph-device {
    background: #ffffff;
    border: 1px solid #e3e8ec;
    box-shadow:
        0 0 0 8px #f3f5f7,
        0 24px 48px -16px rgba(30, 50, 70, 0.28);
    overflow: hidden;
    padding: 10px;
}

.ph-device img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ph-device-phone {
    aspect-ratio: 1 / 2;
    border-radius: 34px;
    max-width: 250px;
    width: 100%;
}

.ph-device-phone img,
.ph-device-phone .ph-placeholder {
    border-radius: 24px;
}

.ph-device-tablet {
    aspect-ratio: 7 / 5;
    border-radius: 24px;
    width: 100%;
}

.ph-device-tablet img,
.ph-device-tablet .ph-placeholder {
    border-radius: 14px;
}

/* Results */
.ph-heading {
    margin: 0 auto 40px;
    max-width: 820px;
    text-align: center;
}

.ph-heading p {
    margin: 16px auto 0;
    max-width: 44em;
}

.ph-compare {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-compare-card {
    aspect-ratio: 3 / 2;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.ph-compare-card img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ph-compare-label {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    bottom: 22px;
    box-shadow: 0 6px 16px rgba(30, 43, 56, 0.12);
    color: var(--ph-ink);
    font-family: 'Roboto', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    left: 22px;
    letter-spacing: 0.06em;
    padding: 7px 14px;
    position: absolute;
    text-transform: uppercase;
}

.ph-page .ph-benefits {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.ph-benefits li {
    align-items: center;
    background: #fbf8f2;
    border-radius: 16px;
    color: var(--ph-ink);
    display: flex;
    flex-direction: column;
    font-size: 15.5px;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    line-height: 1.4;
    padding: 22px 18px;
    text-align: center;
}

.ph-icon {
    color: var(--ph-gold);
    display: block;
}


/* HIPAA: feature pills */
.ph-page .ph-features {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.ph-features li {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(30, 43, 56, 0.05);
    color: var(--ph-ink);
    display: flex;
    font-size: 15px;
    gap: 12px;
    line-height: 1.4;
    padding: 14px 16px;
}

.ph-feature-icon {
    align-items: center;
    background: linear-gradient(135deg, #e6f6f8 0%, #eef9ee 100%);
    border-radius: 10px;
    color: var(--ph-teal);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

/* Final CTA (shared panel) */
.ph-final-cta {
    padding: 24px 0 40px;
}

.ph-cta-panel {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(242, 180, 30, 0.22), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(41, 184, 199, 0.22), transparent 55%),
        linear-gradient(135deg, #fffaf2 0%, #f1fbfc 100%);
    border: 1px solid #e6edf2;
    border-radius: 28px;
    margin: 0 auto;
    max-width: 1000px;
    padding: 80px 64px;
    text-align: center;
}

.ph-page .ph-cta-eyebrow {
    color: #b0620f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.ph-page .ph-cta-panel h2 {
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.ph-page .ph-cta-lead {
    color: var(--ph-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    margin: 0 auto;
    max-width: 640px;
}

.ph-cta-btn {
    align-items: center;
    background: linear-gradient(90deg, #e35d24 0%, #f2b41e 100%);
    border-radius: 999px;
    box-shadow: 0 14px 28px -12px rgba(227, 93, 36, 0.55);
    color: #ffffff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin-top: 28px;
    min-height: 56px;
    padding: 16px 34px;
    text-decoration: none;
    transition: box-shadow 160ms ease;
}

.ph-cta-btn:hover,
.ph-cta-btn:focus {
    box-shadow: 0 18px 32px -12px rgba(227, 93, 36, 0.65);
    color: #ffffff;
    text-decoration: none;
}

.ph-cta-btn:focus-visible {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px rgba(19, 127, 140, 0.55);
    outline: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .ph-page h1 {
        font-size: 50px;
    }

    .ph-hero-grid,
    .ph-split {
        gap: 44px;
    }

    .ph-card-tl { left: -12px; }

    .ph-card-br,
    .ph-card-tr { right: -12px; }
}

@media (max-width: 991px) {
    .ph-hero {
        padding: 112px 0 64px;
    }

    .ph-hero-grid,
    .ph-split,
    .ph-split-reverse {
        grid-template-columns: 1fr;
    }

    .ph-hero-copy {
        text-align: center;
    }

    .ph-page .ph-lede {
        margin-left: auto;
        margin-right: auto;
    }

    .ph-visual {
        margin: 24px auto 0;
        max-width: 640px;
        width: 100%;
    }

    .ph-copy {
        margin: 0 auto;
        max-width: 640px;
        width: 100%;
    }

    .ph-capture .ph-copy,
    .ph-plans .ph-copy,
    .ph-secure .ph-copy {
        order: -1;
    }

    .ph-section {
        padding: 62px 0;
    }

    .ph-page .ph-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ph-device-tablet {
        max-width: 640px;
    }


    .ph-cta-panel {
        padding: 64px 48px;
    }

    .ph-page .ph-cta-panel h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .ph-container {
        padding: 0 18px;
    }

    .ph-page h1 {
        font-size: 40px;
    }

    .ph-page h2 {
        font-size: 31px;
    }

    .ph-page p {
        font-size: 16px;
    }

    .ph-compare {
        grid-template-columns: 1fr;
    }
}

/* Phones: cards stack above and below the photo */
@media (max-width: 575px) {
    .ph-hero {
        padding: 96px 0 40px;
    }

    .ph-page h1 {
        font-size: 34px;
    }

    .ph-page h2 {
        font-size: 28px;
    }

    .ph-section {
        padding: 52px 0;
    }

    .ph-visual {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ph-card {
        inset: auto;
        margin: 0 auto;
        max-width: 300px;
        position: relative;
        width: 100%;
    }

    .ph-card-tl,
    .ph-card-tr { order: 1; }

    .ph-frame { order: 2; }

    .ph-card-br,
    .ph-card-bl { order: 3; }

    .ph-capture-copy {
        padding: 28px 22px 26px 26px;
    }

    .ph-page .ph-features {
        grid-template-columns: 1fr;
    }

    .ph-benefits li {
        font-size: 14px;
        padding: 18px 12px;
    }


    .ph-nowrap {
        white-space: normal;
    }

    .ph-final-cta {
        padding: 10px 0 24px;
    }

    .ph-cta-panel {
        border-radius: 22px;
        padding: 48px 22px;
    }

    .ph-page .ph-cta-panel h2 {
        font-size: 28px;
    }
}

/* Hero logo (replaces the text eyebrow) */
.ph-page .ph-logo {
    margin: 0 0 18px;
}

.ph-logo img {
    display: inline-block;
    height: 40px;
    width: auto;
}

/* Tablet screenshot ships with its own device frame */
.ph-device-shot {
    display: block;
    filter: drop-shadow(0 24px 34px rgba(30, 50, 70, 0.2));
    height: auto;
    width: 100%;
}

/* Stacked logo at the top of the demo panel */
.ph-cta-logo {
    display: block;
    height: 84px;
    margin: 0 auto 18px;
    width: auto;
}

@media (max-width: 575px) {
    .ph-logo img {
        height: 32px;
    }

    .ph-cta-logo {
        height: 64px;
    }
}

/* ERecord Draw phone mock (sample photo and markings) */
.ph-draw {
    background: #ffffff;
}

.ph-draw-screen {
    background: #f6f8fa;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    gap: 8px;
    height: 100%;
    overflow: hidden;
    padding: 16px 12px 12px;
}

.ph-draw-top {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ph-draw-top strong {
    color: #111827;
    font-size: 14px;
}

.ph-draw-top small {
    color: #7b8492;
    font-size: 11px;
}

.ph-draw-tools {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6ebef;
    border-radius: 10px;
    display: flex;
    gap: 7px;
    padding: 6px 8px;
}

.ph-draw-tools i {
    background: var(--c);
    border-radius: 50%;
    height: 14px;
    width: 14px;
}

.ph-draw-tools i.ph-draw-on {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--c);
}

.ph-draw-tools b {
    color: #4b5563;
    font-size: 10.5px;
    font-weight: 600;
    margin-left: auto;
}

.ph-draw-tools b + b {
    margin-left: 6px;
}

.ph-draw-photo {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 12px;
    flex: none;
    overflow: hidden;
    position: relative;
}

.ph-draw-photo img,
.ph-draw-photo svg {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.ph-draw .ph-draw-photo img {
    border-radius: 0;
}

.ph-page .ph-draw-notes {
    background: #ffffff;
    border: 1px solid #e6ebef;
    border-radius: 10px;
    display: grid;
    margin: 0;
    padding: 4px 10px;
}

.ph-draw-notes li {
    align-items: center;
    color: #374151;
    display: flex;
    font-size: 11px;
    gap: 6px;
    padding: 4px 0;
}

.ph-draw-notes li + li {
    border-top: 1px solid #f0f2f4;
}

.ph-draw-notes i {
    background: var(--c);
    border-radius: 50%;
    flex: 0 0 7px;
    height: 7px;
}

.ph-draw-notes b {
    color: #111827;
    margin-left: auto;
}

.ph-draw-save {
    margin-top: auto;
    background: linear-gradient(90deg, #137f8c, #1a9aa8);
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    text-align: center;
}

/* Comparison view mocks (sample photos) */
.ph-cmp {
    background: #ffffff;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ph-cmp-h {
    grid-template-columns: 1fr 1fr;
}

.ph-cmp-v {
    grid-template-rows: 1fr 1fr;
}

.ph-cmp-pane {
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.ph-compare-card .ph-cmp-pane img {
    border-radius: 0;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    width: 100%;
}

.ph-cmp-v .ph-cmp-pane img {
    object-position: 50% 40%;
}

.ph-cmp-pane span {
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    left: 12px;
    padding: 4px 10px;
    position: absolute;
    top: 12px;
}

.ph-cmp-handle {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25);
    height: 30px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
}

.ph-cmp-handle::before {
    border: solid #137f8c;
    border-width: 0 0 0 2px;
    content: "";
    height: 12px;
    left: 14px;
    position: absolute;
    top: 9px;
}

.ph-cmp-v .ph-cmp-handle::before {
    border-width: 2px 0 0;
    height: 0;
    left: 9px;
    top: 14px;
    width: 12px;
}

@media (max-width: 575px) {
    .ph-cmp-pane span {
        font-size: 10.5px;
        left: 8px;
        top: 8px;
    }

    .ph-cmp-handle {
        height: 24px;
        width: 24px;
    }

    .ph-cmp-handle::before {
        height: 10px;
        left: 11px;
        top: 7px;
    }

    .ph-cmp-v .ph-cmp-handle::before {
        height: 0;
        left: 7px;
        top: 11px;
        width: 10px;
    }
}

/* Keep these phrases together at every width */
.ph-hero h1 .ph-nowrap,
.ph-keep {
    white-space: nowrap;
}

/* Capture: service tags in an even two-column grid */
.ph-page .ph-capture .ph-chips {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
}

.ph-capture .ph-chips li {
    align-items: center;
    display: flex;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .ph-page .ph-capture .ph-chips {
        gap: 8px;
    }

    .ph-capture .ph-chips li {
        font-size: 13.5px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ERecord Draw: total row and plan note */
.ph-page .ph-draw-notes .ph-draw-total {
    border-top: 1px solid #e6ebef;
    color: #111827;
    font-weight: 700;
}

.ph-page .ph-draw-plan {
    color: #6b7280;
    font-size: 10.5px;
    line-height: 1.4;
    margin: 0;
    padding: 0 2px;
}

.ph-draw-plan b {
    color: #374151;
}

/* Comparison cards: captions sit below the card, panes get a soft gray backdrop */
.ph-page .ph-compare-item {
    margin: 0;
    min-width: 0;
}

.ph-compare-item .ph-compare-label {
    background: none;
    bottom: auto;
    box-shadow: none;
    color: var(--ph-muted);
    display: block;
    font-size: 12px;
    left: auto;
    margin-top: 14px;
    padding: 0;
    position: static;
    text-align: center;
}

.ph-cmp-pane {
    background: #eceae6;
}

.ph-cmp-h .ph-cmp-pane img {
    object-position: 50% 28%;
}

.ph-cmp-v .ph-cmp-pane img {
    object-position: 50% 50%;
}

.ph-page .ph-compare-note {
    color: var(--ph-muted);
    font-size: 12.5px;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* HIPAA feature cards: gold icon tiles to match the rest of the page */
.ph-features .ph-feature-icon {
    background: #fdf6e8;
    color: var(--ph-gold);
}

/* "Standardized photos for every service": gold-dot list, not pills */
.ph-page .ph-dotlist { display: grid; gap: 8px 22px; grid-template-columns: repeat(2, max-content); list-style: none; margin: 12px 0 0; padding: 0; }
.ph-dotlist li { color: #374151; font-size: 15px; line-height: 1.4; padding-left: 15px; position: relative; }
.ph-dotlist li::before { background: #d99a2b; border-radius: 50%; content: ""; height: 6px; left: 0; position: absolute; top: 0.55em; width: 6px; }

/* ERecord Draw on a tablet (80/20 mock) */
.ptd-wrap { position: relative; padding-bottom: 34px; }

.ptd {
    background: #1f2937;
    border-radius: 26px;
    box-shadow: 0 24px 48px -16px rgba(30, 50, 70, 0.32);
    padding: 12px;
    width: 100%;
}

.ptd-screen {
    background: #ffffff;
    border-radius: 16px;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.ptd-head { align-items: center; background: #f4f7fa; border-bottom: 1px solid #e6ebef; display: flex; justify-content: space-between; padding: 9px 14px; }
.ptd-head strong { color: #111827; font-size: 13.5px; }
.ptd-win { align-items: center; display: inline-flex; gap: 9px; }
.ptd-win i { color: #6b7280; font-style: normal; font-weight: 700; line-height: 1; }
.ptd-win .ptd-i-print { border: 1.5px solid #9aa3ae; border-radius: 2px; height: 10px; width: 12px; }
.ptd-win .ptd-i-help { border: 1.5px solid #9aa3ae; border-radius: 50%; color: #9aa3ae; font-size: 9px; height: 13px; line-height: 10px; text-align: center; width: 13px; }
.ptd-win .ptd-i-close { color: #111827; font-size: 16px; }

.ptd-body { display: grid; gap: 10px; grid-template-columns: 40px 1fr; padding: 10px; }

.ptd-rail { align-items: center; background: #374151; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.ptd-tool { align-items: center; border-radius: 7px; color: #e5e7eb; display: flex; height: 28px; justify-content: center; width: 28px; }
.ptd-tool svg { display: block; }
.ptd-tool.ptd-on { background: #1f7f88; color: #ffffff; }

.ptd-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ptd-bar { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.ptd-save { background: #9b3c6f; border-radius: 7px; color: #ffffff; font-size: 11px; padding: 5px 14px; }
.ptd-btn { align-items: center; border: 1px solid #e3e8ec; border-radius: 6px; color: #374151; display: inline-flex; height: 24px; justify-content: center; width: 28px; }
.ptd-btn svg { display: block; }
.ptd-btn.ptd-off { color: #c3c9cf; }
.ptd-zoom, .ptd-color, .ptd-size { border: 1px solid #e3e8ec; border-radius: 6px; color: #374151; font-size: 10.5px; padding: 4px 8px; }
.ptd-zoom { margin-left: auto; }
.ptd-color { align-items: center; display: inline-flex; gap: 6px; }
.ptd-color i { background: #d64545; border-radius: 2px; height: 10px; width: 10px; }

.ptd-canvas { aspect-ratio: 1235 / 915; background: #f5f7fb; border: 1px solid #e6ebef; border-radius: 8px; overflow: hidden; position: relative; }
.ptd-canvas img { display: block; height: 100%; object-fit: cover; object-position: 50% 30%; width: 100%; }
.ptd-marks { height: 100%; inset: 0; position: absolute; width: 100%; }

.ptd-label { color: #111827; font-size: 8.5px; font-weight: 600; left: 49%; position: absolute; top: 21.5%; transform: translate(-50%, -100%); white-space: nowrap; background: rgba(255, 255, 255, 0.85); border-radius: 4px; padding: 1px 5px; }
.ptd-label::before { background: #111827; border-radius: 50%; content: ""; display: inline-block; height: 4px; margin-right: 4px; vertical-align: 2px; width: 4px; }
.ptd-num { align-items: center; background: #ffffff; border: 1.5px solid #d64545; border-radius: 50%; color: #d64545; display: flex; font-size: 9px; font-weight: 700; height: 16px; justify-content: center; left: 43.1%; position: absolute; top: 44.6%; transform: translateX(-50%); width: 16px; }

/* Dot value prompt floating over the tablet's bottom-left */
.ptd-prompt {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 14px;
    bottom: 0;
    box-shadow: 0 18px 36px -12px rgba(30, 60, 80, 0.3);
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    gap: 6px;
    right: -22px;
    padding: 12px 14px;
    position: absolute;
    width: 190px;
    z-index: 2;
}

.ptd-prompt small { color: #6b7280; font-size: 11px; }
.ptd-input { border: 1.5px solid #29b8c7; border-radius: 7px; color: #111827; font-size: 13px; font-weight: 600; padding: 4px 8px; }
.ptd-actions { display: flex; gap: 6px; justify-content: flex-end; }
.ptd-actions b, .ptd-actions i { border-radius: 999px; font-size: 11px; font-style: normal; padding: 3px 12px; }
.ptd-actions b { background: #1f7f88; color: #ffffff; }
.ptd-actions i { border: 1px solid #d6dce2; color: #374151; }

@media (max-width: 991px) {
    .ptd-wrap { margin: 0 auto; max-width: 560px; width: 100%; }
    .ptd-prompt { right: -8px; }
}

@media (max-width: 575px) {
    .ph-page .ph-dotlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptd { border-radius: 18px; padding: 8px; }
    .ptd-body { grid-template-columns: 32px 1fr; gap: 6px; padding: 6px; }
    .ptd-tool { height: 22px; width: 22px; }
    .ptd-tool svg { height: 13px; width: 13px; }
    .ptd-color, .ptd-size { display: none; }
    .ptd-wrap { align-items: stretch; flex-direction: column; padding-bottom: 0; }
    .ptd-prompt { margin: 12px auto 0; position: relative; left: auto; bottom: auto; width: 220px; }

    /* Hero: compact cards half on the frame edge */
    .ph-hero .ph-visual,
    .ph-capture .ph-visual {
        display: block;
        padding: 34px 0 34px;
        position: relative;
    }

    .ph-hero .ph-visual .ph-card,
    .ph-capture .ph-visual .ph-card {
        gap: 10px;
        inset: auto;
        margin: 0;
        max-width: none;
        padding: 9px 14px 9px 9px;
        position: absolute;
        width: auto;
    }

    .ph-hero .ph-visual .ph-card-tl { bottom: auto; left: auto; right: 10px; top: 0; }
    .ph-hero .ph-visual .ph-card-br { bottom: 0; left: 10px; right: auto; top: auto; }
    .ph-capture .ph-visual { padding-top: 0; }
    .ph-capture .ph-visual .ph-card-bl { bottom: 0; left: auto; right: 10px; top: auto; }

    .ph-hero .ph-card-icon,
    .ph-capture .ph-card-icon { flex: 0 0 34px; height: 34px; width: 34px; }
    .ph-hero .ph-card-body strong,
    .ph-capture .ph-card-body strong { font-size: 13px; }
    .ph-hero .ph-card-body small,
    .ph-capture .ph-card-body small { font-size: 11px; white-space: nowrap; }
}

/* Hero: AP Photo logo badge on the photo (eyebrow is now text) */
.ph-card-logo {
    padding: 12px 18px;
}

.ph-card-logo img {
    display: block;
    height: 26px;
    width: auto;
}

/* Hero H1 is three short sentences, one per line: a touch smaller on wide screens so the middle line clears the photo */
@media (min-width: 992px) {
    .ph-page .ph-hero h1 {
        font-size: clamp(42px, 3.5vw, 50px);
    }
}
