/* ============================================
   PDF AI Suite — Device Pages Stylesheet
   Apple-style enhancements for iPhone/iPad/Mac pages
   ============================================ */

/* ---------- Jumbo Hero (Apple-style big typography) ---------- */
.jumbo {
    text-align: center;
    padding: 80px 24px 40px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 100%);
}
@media (prefers-color-scheme: dark) {
    .jumbo { background: linear-gradient(180deg, #0F0F13 0%, #1E1533 100%); }
}
.jumbo .eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.jumbo h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #111827 0%, #7C3AED 55%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (prefers-color-scheme: dark) {
    .jumbo h1 {
        background: linear-gradient(135deg, #F9FAFB 0%, #A78BFA 55%, #C4B5FD 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}
.jumbo .tagline {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.45;
}
.jumbo .hero-buttons { justify-content: center; }

/* ---------- Section — Works on all devices (overview page) ---------- */
.devices-showcase {
    padding: 100px 24px 80px;
    text-align: center;
}
.devices-showcase .section-header { margin-bottom: 72px; }
.devices-showcase h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.devices-showcase h2 .gradient {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.devices-showcase .section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: var(--max-width);
    margin: 0 auto;
}
@media (max-width: 900px) {
    .devices-grid { grid-template-columns: 1fr; gap: 36px; }
}

.device-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 28px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 520px;
}
.device-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(124,58,237,0.08), transparent 60%);
    pointer-events: none;
}
.device-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(124,58,237,0.15);
    border-color: var(--violet-light);
    color: inherit;
}
.device-card .device-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
    min-height: 260px;
    position: relative;
    z-index: 1;
}
.device-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.device-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.device-card .device-link {
    color: var(--violet);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.device-card:hover .device-link { gap: 10px; }
.device-card .device-link::after {
    content: "→";
    transition: transform 0.3s;
}

/* ---------- CSS Device Frame: iPhone ---------- */
.frame-iphone {
    width: 180px;
    aspect-ratio: 180 / 370;
    background: linear-gradient(135deg, #2a2a2e, #1a1a1e);
    border-radius: 32px;
    padding: 6px;
    position: relative;
    box-shadow:
        0 0 0 2px #3a3a3e,
        0 24px 48px -12px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.05) inset;
}
.frame-iphone::before {
    /* Dynamic Island */
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 20px;
    background: #000;
    border-radius: 14px;
    z-index: 2;
}
.frame-iphone .screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}
.frame-iphone .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Larger iPhone variant for hero */
.frame-iphone.large {
    width: 280px;
}

/* ---------- CSS Device Frame: iPad ---------- */
.frame-ipad {
    width: 320px;
    aspect-ratio: 320 / 450;
    background: linear-gradient(135deg, #2a2a2e, #1a1a1e);
    border-radius: 24px;
    padding: 10px;
    position: relative;
    box-shadow:
        0 0 0 2px #3a3a3e,
        0 28px 56px -16px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.05) inset;
}
.frame-ipad::before {
    /* Front camera */
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 50%;
    z-index: 2;
}
.frame-ipad .screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}
.frame-ipad .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame-ipad.large {
    width: 520px;
}

/* ---------- CSS Device Frame: MacBook ---------- */
.frame-mac {
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.25));
}
.frame-mac .mac-display {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #2a2a2e, #1a1a1e);
    border-radius: 14px 14px 4px 4px;
    padding: 16px 10px 10px;
    position: relative;
    border: 1.5px solid #3a3a3e;
    border-bottom: none;
}
.frame-mac .mac-display::before {
    /* Notch (MacBook Pro 14"/16") */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 10px;
    background: #000;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}
.frame-mac .mac-display::after {
    /* Camera dot */
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #222;
    border: 1px solid #111;
    border-radius: 50%;
    z-index: 3;
}
.frame-mac .mac-display .screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #0a0a0a;
}
.frame-mac .mac-display .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.frame-mac .mac-base {
    width: 112%;
    height: 14px;
    background: linear-gradient(180deg, #c5c5c9 0%, #8a8a8e 40%, #6a6a6e 100%);
    border-radius: 0 0 14px 14px;
    position: relative;
    margin-top: -1px;
}
.frame-mac .mac-base::before {
    /* Hinge notch */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18%;
    height: 4px;
    background: #3a3a3e;
    border-radius: 0 0 8px 8px;
}

.frame-mac.large {
    width: 720px;
}

/* ---------- Device page hero (single device big) ---------- */
.device-hero {
    text-align: center;
    padding: 72px 24px 80px;
    background: transparent;
}
@media (prefers-color-scheme: dark) {
    .device-hero { background: linear-gradient(180deg, #0F0F13 0%, #1E1533 60%, #0F0F13 100%); }
}
.device-hero .hero-device-wrap {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}
.device-hero .device-caption {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ---------- Feature row (device left, text right) ---------- */
.feature-row {
    padding: 100px 24px;
    border-top: none;
}
.feature-row.alt {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(60px) saturate(1.2);
    -webkit-backdrop-filter: blur(60px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.feature-row .row-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
@media (max-width: 900px) {
    .feature-row { padding: 60px 24px; }
    .feature-row .row-inner { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.reverse .row-visual { order: 0; }
}
.feature-row.reverse .row-visual { order: 1; }
.feature-row .row-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}
.feature-row .row-copy h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.feature-row .row-copy p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.55;
}
.feature-row .row-copy .feature-list {
    list-style: none;
    padding: 0;
}
.feature-row .row-copy .feature-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}
.feature-row .row-copy .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 20px;
    height: 20px;
    background: var(--violet);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'><path d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L4 10.4a1 1 0 011.4-1.4l3.1 3.1 6.8-6.8a1 1 0 011.4 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.feature-row .row-copy strong.highlight {
    color: var(--violet);
    font-weight: 700;
}

/* ---------- Universal Purchase banner ---------- */
.universal-banner {
    padding: 80px 24px;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    color: white;
    text-align: center;
}
.universal-banner h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: white;
}
.universal-banner p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto 28px;
    color: white;
}
.universal-banner .devices-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 36px 0 32px;
    flex-wrap: wrap;
}
.universal-banner .devices-row .pill {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.22);
}
.universal-banner .price-tag {
    display: inline-block;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 20px 0 8px;
    color: white;
}
.universal-banner .price-tag small {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
    display: inline-block;
    margin-left: 4px;
}
.universal-banner .btn {
    background: white;
    color: var(--violet-dark);
    border-color: white;
}
.universal-banner .btn:hover {
    background: #F5F3FF;
    color: var(--violet-dark);
}

/* ---------- Nav active link indicator ---------- */
.nav-links a.active {
    color: var(--violet);
    font-weight: 600;
}

/* ---------- Small utility — centered CTA ---------- */
.cta-center {
    text-align: center;
    padding: 80px 24px;
}
.cta-center h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
}
.cta-center p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ============================================
   Device Family Hero — all Apple devices together
   ============================================ */
.family-hero {
    padding: 100px 24px 80px;
    background: linear-gradient(180deg, #f8f6f9 0%, #eae3e8 30%, #d8d6e3 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
@media (prefers-color-scheme: dark) {
    .family-hero { background: linear-gradient(180deg, #1E1533 0%, #0F0F13 100%); }
}
.family-hero h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.family-hero h2 .gradient {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.family-hero .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 64px;
    line-height: 1.5;
}

/* ---------- Devices ALL-IN-ONE (single composed Pixelmator image) ---------- */
.devices-all-in-one {
    width: 78%;
    max-width: 980px;
    min-width: 320px;
    margin: 0 auto;
    padding: 0 16px;
}
.devices-all-in-one img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
@media (max-width: 880px) {
    .devices-all-in-one {
        width: 94%;
    }
}

.device-family {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    min-height: 440px;
}

/* ---------- iMac frame ---------- */
.frame-imac {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.14));
}
.frame-imac .imac-display {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #fafafc 0%, #ededf0 100%);
    border-radius: 14px;
    padding: 10px 10px 12px;
    position: relative;
    border: 1px solid #d8d8dc;
}
.frame-imac .imac-display::before {
    /* Camera dot */
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    z-index: 2;
}
.frame-imac .imac-display .screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e0e0e4;
}
.frame-imac .imac-display .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.frame-imac .imac-display .chin-logo {
    /* Apple logo area below the screen */
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    height: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.frame-imac .imac-display .chin-logo::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #bbb;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/></svg>") center / contain no-repeat;
}
.frame-imac .imac-neck {
    width: 22%;
    height: 20px;
    background: linear-gradient(180deg, #d8d8dc 0%, #b8b8bc 100%);
    margin-top: -2px;
    border-radius: 0 0 3px 3px;
}
.frame-imac .imac-base {
    width: 48%;
    height: 10px;
    background: linear-gradient(180deg, #e0e0e4 0%, #a8a8ac 80%, #8a8a8e 100%);
    border-radius: 50%/100% 100% 0 0;
    margin-top: -1px;
    position: relative;
}
.frame-imac .imac-base::after {
    /* Soft shadow underneath */
    content: "";
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.16), transparent 70%);
    border-radius: 50%;
}

/* ---------- Device family composition ---------- */
.device-family .fam-imac {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56%;
    z-index: 1;
}
.device-family .fam-mac {
    position: absolute;
    bottom: 6%;
    left: 6%;
    width: 32%;
    z-index: 3;
}
.device-family .fam-mac .frame-mac { width: 100% !important; }
.device-family .fam-ipad {
    position: absolute;
    bottom: 4%;
    right: 22%;
    width: 16%;
    z-index: 4;
}
.device-family .fam-ipad .frame-ipad { width: 100% !important; }
.device-family .fam-iphone {
    position: absolute;
    bottom: 2%;
    right: 6%;
    width: 9%;
    z-index: 5;
}
.device-family .fam-iphone .frame-iphone { width: 100% !important; }

/* Compact labels under device family */
.family-hero .family-caption {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.family-hero .family-caption span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.family-hero .family-caption span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--violet);
}

/* Responsive — stack devices vertically on small screens */
@media (max-width: 880px) {
    .device-family {
        min-height: auto;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .device-family > div { position: static !important; transform: none !important; width: auto !important; }
    .device-family .fam-imac { width: 90% !important; }
    .device-family .fam-mac { width: 70% !important; }
    .device-family .fam-ipad { width: 40% !important; }
    .device-family .fam-iphone { width: 22% !important; }
}

