
/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard Variable', -apple-system, sans-serif; line-height: 1.5; color: #111; background-color: #f5f5f5; }
img { max-width: 100%; height: auto; display: block; }

/* Mobile Container */
#mobile-app { max-width: 480px; margin: 0 auto; background-color: #fff; min-height: 100vh; position: relative; overflow-x: hidden; }

/* PC Responsive Media Query */
@media (min-width: 1024px) {
    #mobile-app {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
    }

    /* General Adjustments */
    .pad-20 { padding: 80px 40px !important; }
    .pc-br { display: block; }
    h2, h2[style] { font-size: 46px !important; margin-bottom: 30px !important; letter-spacing: -1.5px !important; line-height: 1.4 !important; }
    h3, h3[style] { font-size: 36px !important; margin-bottom: 25px !important; letter-spacing: -1px !important; line-height: 1.4 !important; }
    h4, h4[style] { font-size: 28px !important; margin-bottom: 15px !important; line-height: 1.4 !important; }
    p, p[style], .desc { font-size: 20px !important; line-height: 1.7 !important; }
    span, span[style] { font-size: 18px !important; }
    div[style*="font-size: 11px"], div[style*="font-size: 14px"], div[style*="font-size: 15px"] { font-size: 18px !important; }
    
    /* Exceptional smaller text */
    p.brand, p[style*="font-size: 13px"], .brand, .brand-blue { font-size: 16px !important; letter-spacing: 1px !important; }
    p.sys-label { font-size: 18px !important; margin-bottom: 15px !important; }

    /* Header */
    .main-header { height: 80px; }
    .logo { font-size: 28px; }
    .user-icon svg { width: 32px; height: 32px; }

    /* Images */
    .full-img { width: 100%; max-width: none; }
    .sec-img-only { width: 100%; }
    .sec-img-only img { width: 100%; max-width: none; }

    /* Video Highlights */
    .sec-video-highlight iframe { width: 100%; max-width: none; display: block !important; }

    /* Certifications Grid */
    .cert-grid-2x2 { grid-template-columns: repeat(5, 1fr) !important; gap: 30px !important; max-width: 1000px; margin: 0 auto; align-items: center; }
    .cert-grid-2x2 img[style*="grid-column"] { grid-column: span 1 !important; transform: scale(1.25); }
    .cert-dropdown { max-width: 800px; margin: 40px auto 0 !important; }
    .cert-links { display: flex !important; justify-content: center; gap: 15px !important; }

    /* Systems Titles */
    .sec-systems { text-align: center; padding-top: 100px !important; }

    /* Systems Summary Stacked -> Row */
    .sec-systems-summary { display: flex; justify-content: center; gap: 40px; padding: 100px 40px !important; }
    .sys-block { flex: 1; margin-bottom: 0 !important; max-width: 350px; }
    .sys-block h3, .sys-block h3[style] { font-size: 30px !important; word-break: keep-all; min-height: 84px; }

    /* Registered Design */
    .sec-design { display: flex; align-items: center; justify-content: center; padding: 100px 60px !important; gap: 80px; }
    .sec-design > div:first-child { max-width: 50% !important; }
    .sec-design > div:last-child { position: static !important; transform: none !important; width: 300px !important; }

    /* System Details Generic */
    .sec-systems-black, .sec-systems-sys02, .sec-systems-sys03 { padding: 100px 40px !important; text-align: center; overflow: hidden; }
    .sec-systems-black > div[style*="margin"],
    .sec-systems-sys02 > div[style*="margin"],
    .sec-systems-sys03 > div[style*="margin"] { margin-left: -40px !important; margin-right: -40px !important; max-width: none; width: auto; }
    
    /* System Text alignments */
    .sec-systems-black h4, .sec-systems-sys02 h4, .sec-systems-sys03 h4,
    .sec-systems-black h4[style], .sec-systems-sys02 h4[style], .sec-systems-sys03 h4[style] { text-align: center; font-size: 28px !important; margin-top: 40px !important; }
    .sec-systems-black p, .sec-systems-sys02 p, .sec-systems-sys03 p,
    .sec-systems-black p[style], .sec-systems-sys02 p[style], .sec-systems-sys03 p[style] { text-align: center; font-size: 20px !important; }

    /* Fix specific section layout for System 02 */
    section[style*="background-color: #fff; padding: 20px 20px 40px 20px;"] { padding: 60px 40px !important; overflow: hidden; }
    section[style*="background-color: #fff"] img { width: calc(100% + 80px); max-width: none; margin-left: -40px; display: block; }
    section[style*="background-color: #fff"] > div[style*="display: flex"] { max-width: 800px; margin: 20px auto 0 !important; }

    section[style*="background-color: #f8f9fa; padding: 30px 20px;"] { max-width: none; width: 100%; margin: 0 auto; padding: 60px 40px !important; text-align: center; }

    /* Protocol Carousel */
    .sec-protocol { text-align: center; }
    .protocol-carousel { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 20px !important; overflow: hidden !important; padding: 40px 0 !important; max-width: 1000px; margin: 0 auto !important; width: 100% !important; }
    .protocol-carousel .card { flex: none !important; width: 100% !important; }

    /* Complete Set */
    .sec-set > div { top: 100px !important; left: 100px !important; }
    .sec-set img { max-width: 100%; }

    /* Specs & Insurance */
    .sec-specs { max-width: 1000px; margin: 0 auto; padding: 100px 40px !important; }
    .sec-specs > div > div[style*="padding: 25px 20px"] { display: flex; justify-content: space-between; align-items: flex-start; text-align: center; padding: 40px !important; }
    .sec-specs > div > div[style*="padding: 25px 20px"] > div { flex: 1; margin-bottom: 0 !important; }
    .sec-specs > div > div[style*="padding: 25px 20px"] > div:nth-child(2) { border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; }
    .sec-specs p[style*="font-size: 24px"] { font-size: 40px !important; }
    .sec-specs p[style*="font-size: 15px"] { font-size: 20px !important; }
    .sec-specs p[style*="font-size: 14px"] { font-size: 18px !important; }
    .sec-specs div[style*="background-color: #192a48"] { font-size: 18px !important; padding: 16px 24px !important; }

    /* CTA */
    .sec-cta { padding: 100px 40px 140px !important; overflow: hidden; }
    .sec-cta img { width: calc(100% + 80px); max-width: none; margin-left: -40px; margin-bottom: 40px; display: block; }
    .sec-cta .btn-group { max-width: 600px; margin: 0 auto; }
    .sec-cta .btn { font-size: 18px; padding: 20px 0; }

    /* Floating Button */
    .floating-buy { max-width: 1200px !important; padding: 20px 40px !important; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,0.08); }
    .floating-buy span:first-child { font-size: 16px !important; }
    .floating-buy span:last-child { font-size: 32px !important; }
    .floating-buy a { font-size: 22px !important; max-width: 250px !important; padding: 18px 40px !important; }
}

/* Utilities */
.pad-20 { padding: 40px 20px; }
.text-center { text-align: center; }
.bg-gray { background-color: #fafafa; }
.bg-black { background-color: #111; }
.text-white { color: #fff; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.w-100 { width: 100%; }
.pc-br { display: none; }

/* Typography */
h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
h2 { font-size: 24px; font-weight: 800; line-height: 1.35; margin-bottom: 15px; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.desc { font-size: 14px; color: #666; line-height: 1.6; }
.brand { font-size: 12px; font-weight: 700; color: #5fb2bc; letter-spacing: 1px; margin-bottom: 10px; }
.brand-blue { font-size: 12px; font-weight: 700; color: #192a48; letter-spacing: 1px; margin-bottom: 10px; }

/* Header */
.main-header { height: 60px; border-bottom: none; background: transparent; position: relative; z-index: 50; }
.header-inner { display: flex; justify-content: center; align-items: center; height: 100%; padding: 0 20px; position: relative; }
.logo { font-size: 20px; font-weight: 900; letter-spacing: -1px; color: #192a48; }
.user-icon { position: absolute; right: 20px; }

/* Hero */
.sec-hero { position: relative; }
.hero-text { position: absolute; top: 40px; left: 20px; z-index: 10; }
.product-name { font-size: 16px; margin-top: 20px; }

/* Grids */
.cert-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cert-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.cert-links a { display: block; text-align: center; background: #333; color: #fff; text-decoration: none; padding: 10px; font-size: 13px; border-radius: 4px; }
.sys-icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Specs Table */
.spec-table { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; padding: 15px; border-bottom: 1px solid #eee; }
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: #666; font-size: 14px; }
.spec-row strong { color: #111; font-size: 14px; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; padding: 16px 0; border-radius: 6px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; flex: 1; }
.btn-outline { border: 1px solid #111; color: #111; background: #fff; }
.btn-solid { background: #192a48; color: #fff; }

/* Floating Buy */
.floating-buy { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 15px 20px; background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0)); z-index: 100; }

/* Video */
.youtube-iframe { width: 100%; aspect-ratio: 16/9; border: none; margin-bottom: 15px; border-radius: 8px; }

.cert-dropdown summary::-webkit-details-marker { display: none; }
.pill-btn {
    display: inline-block;
    background: #fff;
    color: #111;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
