:root {
  --navy:#10213e; --blue:#087cf0; --orange:#ff850d;
  --surface:#f5f7fb; --radius:20px; --text:#243149; --muted:#6f7c90;
  --sidebar:252px; --line:#e7ecf5; --shadow:0 12px 40px #142b5510;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;font:16px/1.65 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--surface);min-width:320px}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
/* Desktop application shell */
.topbar{position:fixed;inset-block:0;inset-inline-start:0;width:var(--sidebar);background:#fff;border-inline-end:1px solid var(--line);z-index:40;display:flex;flex-direction:column;align-items:stretch;gap:26px;padding:32px 16px 22px;box-shadow:3px 0 24px #11274406}
.brand{display:flex;align-items:center;justify-content:center;padding:10px 10px 25px;border-bottom:1px solid var(--line)}
.brand img{width:195px;max-height:86px;object-fit:contain;display:block}
.desktop-nav{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.desktop-nav a{display:flex;align-items:center;gap:13px;font-size:14px;font-weight:720;line-height:1.4;padding:13px 15px;border-radius:14px;color:#53647c;transition:background .18s,color .18s,transform .18s}
.desktop-nav a::before{content:'◦';font-size:24px;line-height:15px;width:20px;text-align:center;color:#9baac1}
.desktop-nav a:nth-child(1)::before{content:'⌂'}
.desktop-nav a:nth-child(2)::before{content:'▶';font-size:15px}
.desktop-nav a:nth-child(3)::before{content:'▤';font-size:20px}
.desktop-nav a:nth-child(4)::before{content:'◉';font-size:19px}
.desktop-nav a:nth-child(5)::before{content:'▦';font-size:19px}
.desktop-nav a:nth-child(6)::before{content:'✉';font-size:19px}
.desktop-nav a:hover,.desktop-nav a.active{background:#eaf3ff;color:var(--blue)}
.desktop-nav a.active::before{color:var(--blue)}
.header-actions{margin-top:auto;padding:16px 6px 2px;border-top:1px solid var(--line)}
.language-switch{display:flex;gap:6px;justify-content:center}
.language-switch button{flex:1;min-height:40px;border:1px solid var(--line);border-radius:12px;padding:7px;background:#fff;font-size:12px;font-weight:750;color:var(--navy)}
.language-switch button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
main,footer{margin-inline-start:var(--sidebar)}
main{max-width:1800px;padding:28px clamp(18px,3.4vw,58px) 30px}
/* Dashboard hero */
.hero{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(118deg,var(--navy) 0%,#164585 53%,var(--blue) 100%);min-height:390px;border-radius:calc(var(--radius) + 12px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(230px,.75fr);align-items:center;gap:28px;padding:clamp(34px,5vw,64px);color:#fff;box-shadow:0 20px 45px #102f6870}
.hero::before{content:'';position:absolute;inset-block-start:-190px;inset-inline-end:-150px;width:520px;height:520px;border:75px solid #ffffff0b;border-radius:50%;z-index:-1}
.hero::after{content:'';position:absolute;inset-block-end:-160px;inset-inline-start:20%;width:400px;height:400px;border:55px solid #ffffff08;border-radius:50%;z-index:-1}
.hero-content{min-width:0}
.eyebrow{display:inline-flex;align-items:center;min-height:34px;padding:4px 15px;border-radius:999px;background:#ffffff1b;border:1px solid #ffffff38;font-weight:750;font-size:13px;backdrop-filter:blur(8px)}
.hero h1{font-size:clamp(32px,3.9vw,56px);font-weight:850;line-height:1.25;margin:19px 0 12px;letter-spacing:-.035em}
.hero p{font-size:clamp(15px,1.4vw,18px);line-height:1.9;color:#e5efff;max-width:640px;margin:0}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}
.button{display:inline-flex;justify-content:center;align-items:center;text-align:center;gap:8px;min-height:47px;padding:10px 22px;border-radius:14px;font-weight:800;border:1px solid transparent;transition:transform .18s,box-shadow .18s}
.button:hover{transform:translateY(-2px);box-shadow:0 9px 22px #061e3d24}
.button.primary{background:var(--orange);color:white}
.button.secondary{background:#fff;color:var(--navy)}
.button.blue{background:var(--blue);color:#fff}
.hero-visual{display:grid;place-items:center;padding:24px;min-height:250px;border:1px solid #ffffff3b;border-radius:calc(var(--radius) + 8px);background:#ffffff18;backdrop-filter:blur(4px);box-shadow:inset 0 1px 0 #ffffff36}
.hero-visual img{max-height:230px;width:100%;object-fit:contain;filter:drop-shadow(0 13px 17px #06173626)}
/* Rounded, app-like content panels */
#dynamicSections{display:grid;gap:24px;margin-top:28px}
.section{padding:30px clamp(20px,3.2vw,42px) 36px;background:#fff;border-radius:calc(var(--radius) + 7px);box-shadow:var(--shadow);border:1px solid var(--line);scroll-margin-top:24px}
.section.alt{background:#fff}
.section-heading{text-align:start;margin-bottom:24px}
.section-heading h2{margin:0 0 4px;color:var(--navy);font-size:clamp(23px,2.35vw,31px);font-weight:850;letter-spacing:-.02em}
.section-heading p{margin:0;color:var(--muted);font-size:14px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.card{display:flex;flex-direction:column;min-width:0;border-radius:var(--radius);padding:21px 18px;background:var(--surface);border:1px solid #eaf0f7;transition:transform .18s,box-shadow .18s,border .18s}
.card:hover{transform:translateY(-3px);border-color:#c2dcff;box-shadow:0 14px 24px #132c4b12}
.card .icon{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;color:var(--blue);font-size:26px;background:#e4efff}
.card:nth-child(2) .icon{color:#b46c09;background:#fff1dc}
.card:nth-child(3) .icon{color:#7357d9;background:#efeaff}
.card:nth-child(4) .icon{color:#188477;background:#e1f6f2}
.card h3{font-size:17px;color:var(--navy);margin:14px 0 4px;font-weight:800}
.card p{font-size:13px;color:var(--muted);margin:0}
.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.product{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:var(--radius);background:#fff;border:1px solid var(--line);box-shadow:0 8px 26px #10213e0a;transition:transform .18s,box-shadow .18s}
.product:hover{transform:translateY(-3px);box-shadow:0 14px 34px #10213e19}
.product-image{height:200px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#e8f3ff,#f2f5ff);font-size:62px}
.product-image img{width:100%;height:100%;object-fit:contain;padding:12px}
.product-body{padding:19px;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.product h3{font-size:18px;line-height:1.45;color:var(--navy);margin:10px 0 5px;font-weight:800}
.product p{color:var(--muted);font-size:14px;margin:5px 0 13px}
.product .button{margin-top:auto;min-height:43px}
.pill{font-size:12px;font-weight:750;padding:4px 11px;border-radius:999px;background:#fff1df;color:#955600}
.price{font-weight:800;color:var(--navy)!important}
.about-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:26px;align-items:center}
.about-layout p{font-size:16px;line-height:1.95;color:var(--text)}
.about-photo{min-height:230px;display:grid;place-items:center;padding:25px;border-radius:var(--radius);background:var(--surface)}
.about-photo img{max-height:200px;object-fit:contain}
.features{display:flex;flex-wrap:wrap;gap:9px}
.features span{padding:7px 14px;border-radius:999px;background:#eaf3ff;color:var(--navy);font-size:13px;font-weight:750}
.form-card{max-width:760px;margin:auto;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:25px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.form-field{display:flex;flex-direction:column;gap:5px;margin-bottom:13px}
.form-field label{font-size:14px;font-weight:700;color:var(--navy)}
.form-field input,.form-field textarea{width:100%;min-width:0;border:1px solid #d8e2f1;border-radius:12px;padding:11px 13px;background:#fff;color:var(--text)}
.form-field input:focus,.form-field textarea:focus{outline:2px solid #087cf044;border-color:var(--blue)}
textarea{min-height:105px;resize:vertical}
.contact-box{display:grid;gap:14px;justify-items:center;text-align:center}
.contact-box>a{font-weight:750;color:var(--blue);overflow-wrap:anywhere}
.contact-social{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.contact-social a{border-radius:12px;padding:8px 14px;background:#eaf3ff;color:var(--navy)}
footer{padding:32px 26px 45px;background:#101e35;color:#dce6f5;text-align:center}
.footer-brand img{width:175px;max-height:64px;object-fit:contain}
.footer-brand p{max-width:620px;margin:10px auto 19px;font-size:14px}
.footer-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}
.footer-links a,.footer-links button{color:#e1e9f5;font-size:13px;background:transparent;border:0;padding:4px}
.footer-links a:hover,.footer-links button:hover{text-decoration:underline}
.copyright{font-size:12px;margin:20px 0 0;border-top:1px solid #ffffff20;padding-top:17px}
.bottom-nav{display:none}
dialog{border:0;border-radius:20px;padding:24px;max-width:520px;width:min(92%,520px);box-shadow:0 20px 75px #0005;color:var(--text)}
dialog::backdrop{background:#0007}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head button{border:0;background:none;font-size:24px}
[dir=ltr] .hero-content{text-align:left}
/* Medium screens: compact application rail */
@media(max-width:1100px) and (min-width:761px){:root{--sidebar:204px}.topbar{padding-inline:10px}.brand img{width:170px}.desktop-nav a{padding:11px 10px;font-size:12px;gap:7px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:40px;grid-template-columns:1.15fr .85fr}}
/* Phone: compact app header + persistent bottom navigation */
@media(max-width:760px){
 html{scroll-padding-top:78px}
 body{padding-bottom:calc(78px + env(safe-area-inset-bottom));background:#f4f7fc}
 .topbar{position:sticky;inset:auto;top:0;width:100%;height:72px;padding:7px 16px;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;border:0;border-bottom:1px solid var(--line);box-shadow:0 3px 14px #12335a0c;backdrop-filter:blur(16px);background:#fffffff2}
 .brand{padding:0;border:0;justify-content:flex-start;min-width:0}
 .brand img{width:142px;max-height:54px}
 .desktop-nav{display:none}
 .header-actions{margin:0;padding:0;border:0}
 .language-switch button{min-width:33px;min-height:36px;padding:5px 7px;border-radius:10px;font-size:11px}
 main,footer{margin-inline-start:0}
 main{padding:14px 12px 22px}
 .hero{min-height:0;grid-template-columns:1fr;gap:20px;padding:28px 23px 22px;border-radius:25px;box-shadow:0 12px 30px #102a5960}
 .hero h1{font-size:clamp(30px,8vw,43px);line-height:1.3;margin:13px 0 9px}
 .hero p{font-size:14px;line-height:1.9}
 .eyebrow{font-size:11px;min-height:30px}
 .hero-actions{gap:9px;margin-top:20px}
 .hero-actions .button{flex:1;min-width:118px;font-size:13px;padding:9px 12px}
 .hero-visual{min-height:104px;padding:12px;border-radius:18px}
 .hero-visual img{max-height:100px}
 #dynamicSections{gap:14px;margin-top:15px}
 .section{padding:23px 17px 26px;border-radius:23px;scroll-margin-top:86px}
 .section-heading{margin-bottom:17px}
 .section-heading h2{font-size:23px}
 .section-heading p{font-size:12px}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .card{padding:14px;border-radius:17px;min-height:158px}
 .card .icon{width:43px;height:43px;border-radius:13px;font-size:21px}
 .card h3{font-size:14px;margin:10px 0 4px}
 .card p{font-size:11px;line-height:1.55}
 .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .product-image{height:135px;font-size:45px}
 .product-body{padding:13px}
 .product h3{font-size:14px}
 .product p{font-size:12px;line-height:1.5}
 .product .button{width:100%;padding:8px 6px;min-height:39px;font-size:11px}
 .pill{font-size:10px}
 .about-layout,.form-grid{grid-template-columns:1fr}
 .about-photo{min-height:150px}.about-photo img{max-height:120px}
 .form-card{padding:15px;border-radius:17px}
 .form-field label{font-size:13px}
 footer{padding:32px 18px 30px}
 .footer-links{gap:7px 13px}
 .bottom-nav{position:fixed;inset-inline:0;bottom:0;z-index:60;display:flex;align-items:stretch;justify-content:space-around;min-height:calc(67px + env(safe-area-inset-bottom));padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:#fffffff7;border-top:1px solid #e4eaf4;box-shadow:0 -8px 30px #10213e16;backdrop-filter:blur(20px)}
 .bottom-nav a{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:3px 2px;border-radius:12px;color:#68758a;line-height:1.25;font-weight:700;font-size:11px}
 .bottom-nav a>span{font-size:22px;line-height:1.15}
 .bottom-nav a>small{font-size:10px}
 .bottom-nav a.active{background:#eaf3ff;color:var(--blue)}
}
@media(max-width:370px){.cards,.products{grid-template-columns:1fr}.card{min-height:auto}.brand img{width:115px}.language-switch button{min-width:30px;padding:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* MyProf professional contact section */
#contact .section-heading{margin-bottom:28px}
.contact-layout{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:24px;align-items:stretch}
.contact-intro{border-radius:24px;padding:clamp(25px,3vw,40px);background:linear-gradient(145deg,var(--navy),#1a4d89);color:#fff;display:flex;flex-direction:column;align-items:flex-start;min-width:0;overflow:hidden;position:relative}
.contact-intro:after{content:"";pointer-events:none;position:absolute;inset-inline-end:-95px;inset-block-end:-95px;width:255px;height:255px;border:38px solid #ffffff0c;border-radius:50%}
.contact-kicker{font-size:12px;font-weight:800;letter-spacing:.025em;background:#ffffff1e;border:1px solid #ffffff35;padding:6px 14px;border-radius:999px}
.contact-intro h3{font-size:clamp(23px,2.8vw,34px);line-height:1.4;margin:20px 0 10px;color:#fff}
.contact-intro>p{font-size:15px;line-height:1.9;color:#e1ebff;margin:0 0 22px}
.contact-points{display:grid;gap:13px;margin:4px 0 24px}
.contact-point{display:flex;gap:9px;align-items:flex-start;font-size:14px;font-weight:650;color:#f3f7ff}
.contact-social{margin-top:auto;justify-content:flex-start;position:relative;z-index:1}
.contact-social-link{border-radius:10px;padding:9px 13px;background:#ffffff20!important;border:1px solid #ffffff45;color:#fff!important;font-size:12px;font-weight:750}
.contact-form-card{min-width:0;border-radius:24px;padding:clamp(22px,3vw,36px);background:#fff;border:1px solid var(--line);box-shadow:0 16px 42px #142b5510}
.contact-form-card h3{font-size:clamp(21px,2vw,27px);color:var(--navy);margin:0 0 3px}
.contact-subtitle{font-size:14px;color:var(--muted);margin:0 0 22px}
.contact-form .form-field{margin-bottom:15px}
.contact-form .form-field label{font-size:13px;font-weight:750;color:var(--navy)}
.contact-form .form-field input,.contact-form .form-field textarea{width:100%;background:#f9fbfe;border:1px solid #dce5f1;border-radius:12px;padding:12px 14px;min-height:46px;color:var(--text)}
.contact-form .form-field textarea{min-height:135px;resize:vertical}
.contact-form .form-field input:focus,.contact-form .form-field textarea:focus{background:#fff;border-color:var(--blue);outline:3px solid #087cf020}
.contact-notice{font-size:12px;line-height:1.65;color:var(--muted);margin:1px 0 15px}
.contact-submit{width:100%;border:0;min-height:49px}
@media(max-width:970px){.contact-layout{grid-template-columns:1fr}.contact-intro{min-height:270px}}
@media(max-width:760px){.contact-layout{gap:14px}.contact-intro,.contact-form-card{padding:23px 18px;border-radius:19px}.contact-intro{min-height:0}.contact-intro h3{font-size:24px}}


/* MyProf logo white background */
.hero-visual {
  background: #ffffff !important;
  border-color: #ffffff !important;
  backdrop-filter: none !important;
}
.hero-visual img {
  filter: none !important;
}

/* About section without repeated logo */
.about-layout {
  grid-template-columns: 1fr !important;
}
.about-photo {
  display: none !important;
}


/* MyProf footer logo: clear white background */
.footer-brand img,
#footerLogo {
    display: block !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-sizing: content-box !important;
    width: min(220px, 80%) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto 16px !important;
    filter: none !important;
}

/* Form delivery feedback */
.direct-form-status { margin:12px 0 0; font-weight:700; color:#167348; line-height:1.7; }
.direct-form-status.is-error { color:#ae2828; }
button[type="submit"]:disabled { opacity:.65; cursor:wait; }
.contact-notice[hidden] { display:none!important; }


/* Individual product detail pages */
.product-detail-page{min-height:58vh}
.detail-back{display:inline-flex;margin:0 0 24px;color:var(--blue);font-weight:800;text-decoration:none}
.product-detail-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:clamp(24px,5vw,58px);align-items:center}
.product-detail-image{background:#fff;border:1px solid var(--line);border-radius:22px;padding:12px;display:flex;align-items:center;justify-content:center;min-height:280px;overflow:hidden}
.product-detail-image img{width:100%;height:auto;max-height:620px;object-fit:contain;border-radius:12px}
.product-detail-content h1{color:var(--navy);font-size:clamp(27px,4vw,42px);line-height:1.35;margin:0 0 18px}
.product-detail-description{white-space:pre-line;line-height:2;font-size:15px;color:var(--text)}
.product-detail-cta{display:inline-flex;margin-top:16px;min-width:190px;justify-content:center}
@media(max-width:760px){.product-detail-layout{grid-template-columns:1fr}.product-detail-image{min-height:0}.product-detail-image img{max-height:520px}.product-detail-description{font-size:14px}}


/* Social media links: icon-only, accessible, and consistent in contact + footer */
.social-icons{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.social-icon-link{width:46px;height:46px;display:inline-grid;place-items:center;border-radius:14px;border:1px solid #dce7f6;background:#eaf3ff;color:var(--navy);transition:transform .18s,background .18s,color .18s,box-shadow .18s}
.social-icon-link svg{width:23px;height:23px;display:block;fill:currentColor}
.social-icon-link:hover{transform:translateY(-3px);background:var(--blue);color:#fff;box-shadow:0 8px 18px #087cf033}
.social-icon-link.is-pending{opacity:.38;cursor:default;pointer-events:none}
.contact-social{margin-top:22px}
.footer-social{margin:22px auto 0}
.footer-social .social-icon-link{background:#ffffff12;border-color:#ffffff35;color:#fff}
.footer-social .social-icon-link:hover{background:var(--orange);color:#fff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.social-icon-link{width:42px;height:42px;border-radius:13px}.social-icon-link svg{width:21px;height:21px}}
