/* Apex Grid static LP safe replace package
   Existing structure preserved:
   - root /index.html
   - /contact.php
   - /assets/style.css
   - /thanks/index.html
   - /privacy-policy/index.html
   Existing logo image paths:
   - /assets/apex-logo.png
   - /assets/apex-logo-white.png
*/

:root{
  --navy:#10233f;
  --navy2:#17365f;
  --gold:#c49a4a;
  --gold2:#e8c979;
  --ink:#111827;
  --text:#344054;
  --muted:#667085;
  --bg:#f7f8fb;
  --soft:#eef3f8;
  --white:#fff;
  --line:#e4e7ec;
  --shadow:0 18px 48px rgba(16,35,63,.14);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",YuGothic,Meiryo,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.75;
  letter-spacing:.02em;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1120px,calc(100% - 40px));margin:0 auto}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(228,231,236,.9);
}
.header-inner{
  min-height:76px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}
.header-logo img{width:170px;height:auto}
.nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:14px;
  color:#475467;
  font-weight:700;
}
.nav a:hover{color:var(--navy)}
.nav-cta{
  padding:10px 18px;
  color:#fff!important;
  background:var(--navy);
  border-radius:999px;
}

.hero{
  position:relative;
  overflow:hidden;
  padding:86px 0 78px;
  background:
    radial-gradient(circle at 12% 16%, rgba(196,154,74,.22), transparent 32%),
    linear-gradient(135deg,#f8fafc 0%,#eef3f8 52%,#ffffff 100%);
}
.hero:after{
  content:"";
  position:absolute;
  right:-160px;
  top:-180px;
  width:520px;
  height:520px;
  border-radius:50%;
  background:rgba(16,35,63,.06);
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:46px;
  align-items:center;
}
.eyebrow,.kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(196,154,74,.13);
  color:#8b6a2e;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
}
.hero h1{
  margin:18px 0 0;
  color:var(--navy);
  font-size:clamp(38px,5vw,66px);
  line-height:1.12;
  letter-spacing:.02em;
}
.hero-lead{
  margin:26px 0 0;
  font-size:18px;
  color:#344054;
  font-weight:600;
}
.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  list-style:none;
  padding:0;
  margin:24px 0 0;
}
.hero-points li{
  background:#fff;
  border:1px solid var(--line);
  color:#344054;
  font-size:13px;
  font-weight:800;
  padding:8px 12px;
  border-radius:999px;
}
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  margin-top:30px;
}
.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:50px;
  padding:13px 22px;
  border-radius:999px;
  font-weight:900;
  border:1px solid transparent;
  transition:.2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--gold);color:#fff;box-shadow:0 14px 30px rgba(196,154,74,.28)}
.btn-primary:hover{background:#a87c33}
.btn-secondary{background:#fff;color:var(--navy);border-color:var(--line);box-shadow:0 10px 24px rgba(16,35,63,.08)}
.hero-note{margin-top:16px;color:var(--muted);font-size:13px}

.hero-panel{
  background:rgba(255,255,255,.9);
  border:1px solid #fff;
  border-radius:30px;
  padding:30px;
  box-shadow:var(--shadow);
}
.panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}
.panel-header img{width:150px}
.panel-tag{
  background:var(--navy);
  color:#fff;
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
}
.hero-panel h2{
  color:var(--navy);
  margin:0 0 20px;
  font-size:24px;
  line-height:1.45;
}
.quick-diagnosis{display:grid;gap:14px}
.diagnosis-item{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:#475467;
}
.diagnosis-icon{
  width:42px;height:42px;
  border-radius:14px;
  background:#f8efd9;
  display:grid;
  place-items:center;
  color:#8b6a2e;
  font-weight:900;
}

.trust-strip{background:var(--navy);padding:22px 0}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.trust-item{
  color:#fff;
  text-align:center;
  font-weight:800;
  border-right:1px solid rgba(255,255,255,.16);
}
.trust-item:last-child{border-right:none}

.section{padding:86px 0}
.section-gray{background:var(--bg)}
.section-head{
  text-align:center;
  max-width:820px;
  margin:0 auto 42px;
}
.section-head h2{
  margin:14px 0 0;
  color:var(--navy);
  font-size:clamp(28px,3.4vw,42px);
  line-height:1.35;
}
.section-head p{
  margin:16px 0 0;
  color:var(--muted);
  font-size:16px;
}

.problem-grid,.value-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.problem,.card,.plan,.flow-step,.next-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 12px 30px rgba(16,35,63,.06);
}
.problem{
  position:relative;
  min-height:92px;
  padding:22px 22px 22px 54px;
  font-weight:800;
  color:#344054;
}
.problem:before{
  content:"✓";
  position:absolute;
  left:20px;
  top:22px;
  width:24px;height:24px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
}
.message-box{
  margin:30px auto 0;
  max-width:940px;
  background:linear-gradient(135deg,var(--navy),var(--navy2));
  color:#fff;
  border-radius:26px;
  padding:30px;
  text-align:center;
  box-shadow:var(--shadow);
}
.message-box strong{color:#fff}

.card{padding:26px}
.card-num{
  width:44px;height:44px;
  border-radius:14px;
  background:#f8efd9;
  color:#8b6a2e;
  display:grid;
  place-items:center;
  font-weight:900;
  margin-bottom:16px;
}
.card h3,.plan h3,.flow-step strong,.about-card h3{
  color:var(--navy);
}
.card h3{font-size:20px;line-height:1.45;margin:0 0 10px}
.card p{color:var(--muted);margin:0}

.promise{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:28px;
  align-items:center;
}
.panel-dark{
  background:linear-gradient(135deg,var(--navy),#1f3d68);
  color:#fff;
  border-radius:30px;
  padding:36px;
  box-shadow:var(--shadow);
}
.panel-dark h2{font-size:34px;line-height:1.35;margin:14px 0}
.panel-dark p{color:rgba(255,255,255,.84)}
.promise-list{display:grid;gap:14px}
.promise-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 18px;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
  align-items:center;
  box-shadow:0 10px 24px rgba(16,35,63,.06);
  font-weight:800;
}
.icon{
  width:34px;height:34px;
  border-radius:50%;
  background:#f8efd9;
  color:#8b6a2e;
  display:grid;
  place-items:center;
  font-weight:900;
}

.plan-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.plan{position:relative;padding:28px}
.plan.featured{border:2px solid var(--gold)}
.label{
  position:absolute;
  top:16px;
  right:16px;
  background:var(--gold);
  color:#fff;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  font-weight:900;
}
.price{
  margin:16px 0;
  color:#8b6a2e;
  font-size:28px;
  font-weight:900;
}
.check-list{
  margin:0;
  padding-left:1.2em;
  color:#475467;
}
.check-list li{margin:6px 0}
.plan-note{margin-top:22px;color:var(--muted);font-size:14px;text-align:center}

.flow{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}
.flow-step{padding:22px}
.flow-step small{
  color:#8b6a2e;
  font-weight:900;
}
.flow-step strong{
  display:block;
  font-size:18px;
  margin:8px 0;
}
.flow-step p{margin:0;color:var(--muted);font-size:14px}

.faq{display:grid;gap:14px;max-width:920px;margin:0 auto}
details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px 20px;
  box-shadow:0 10px 24px rgba(16,35,63,.05);
}
summary{
  cursor:pointer;
  font-weight:900;
  color:var(--navy);
}
details p{margin:12px 0 0;color:var(--muted)}

.about-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:30px;
  align-items:start;
}
.about-lead{
  font-size:18px;
  font-weight:800;
  color:#344054;
}
.about-grid p{color:var(--muted)}
.about-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:28px;
  box-shadow:var(--shadow);
}
.about-card dl{margin:0;display:grid;gap:14px}
.about-card dt{font-weight:900;color:#8b6a2e}
.about-card dd{margin:4px 0 0;color:#475467}

.contact{
  padding:86px 0;
  background:linear-gradient(135deg,var(--navy),#1f3d68);
  color:#fff;
}
.contact-grid{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:34px;
  align-items:start;
}
.contact h2{
  font-size:clamp(28px,3.4vw,42px);
  line-height:1.35;
  margin:14px 0;
}
.contact p{color:rgba(255,255,255,.84)}
.contact-kicker{color:#f7e6b1;background:rgba(255,255,255,.12)}
.check-list-white{color:#fff}
.check-list-white li{color:#fff}
.form-wrap{
  background:#fff;
  color:var(--ink);
  border-radius:28px;
  padding:30px;
  box-shadow:0 22px 60px rgba(0,0,0,.22);
}
.form-wrap h3{margin:0 0 8px;color:var(--navy);font-size:26px}
.form-note{font-size:13px;color:var(--muted);margin-bottom:18px}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.form-group{display:grid;gap:7px}
.form-group.full{grid-column:1/-1}
label{font-size:14px;color:var(--navy);font-weight:900}
input,textarea{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #d0d5dd;
  border-radius:12px;
  font:inherit;
  outline:none;
}
textarea{min-height:132px;resize:vertical}
input:focus,textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(196,154,74,.15);
}
.honeypot{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
.privacy-check{margin:18px 0 0}
.privacy-check label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#344054;
  font-weight:800;
}
.privacy-check input{
  width:18px;
  min-height:18px;
  margin-top:5px;
  flex:0 0 auto;
}
.privacy-check a{color:var(--navy);text-decoration:underline}
.submit-btn{
  width:100%;
  margin-top:20px;
  min-height:54px;
  border:0;
  border-radius:999px;
  background:var(--gold);
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(196,154,74,.28);
}
.submit-btn:hover{background:#a87c33}

.site-footer-pro{
  background:#071527;
  color:rgba(255,255,255,.76);
  padding:56px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.35fr .75fr .95fr .95fr;
  gap:34px;
}
.footer-brand img{width:170px;margin-bottom:18px}
.footer-brand p,.footer-col p{margin:0;color:rgba(255,255,255,.74);font-size:14px}
.footer-col h3{color:#fff;margin:0 0 12px;font-size:15px}
.footer-col a{
  display:block;
  color:rgba(255,255,255,.76);
  margin:8px 0;
  font-size:14px;
}
.footer-contact-btn{
  display:inline-block!important;
  margin-top:12px!important;
  background:var(--gold);
  color:#fff!important;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:34px;
  padding-top:20px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  font-size:13px;
}
.footer-bottom a{text-decoration:underline}

.thanks-wrap{
  min-height:calc(100vh - 260px);
  background:linear-gradient(135deg,#f8fafc,#eef3f8);
  padding:84px 0;
  display:grid;
  place-items:center;
}
.thanks-card{
  width:min(960px,calc(100% - 40px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  padding:44px;
  text-align:center;
  box-shadow:var(--shadow);
}
.logo-on-dark{width:180px;margin:0 auto 24px;background:var(--navy);padding:12px;border-radius:14px}
.big-check{
  width:72px;height:72px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 auto 20px;
  background:#ecfdf3;
  color:#039855;
  font-size:40px;
  font-weight:900;
}
.thanks-card h1{color:var(--navy);font-size:36px;line-height:1.3;margin:0 0 14px}
.next-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:30px 0;
}
.next-item{padding:20px;text-align:left}
.next-item small{color:#8b6a2e;font-weight:900}
.next-item strong{display:block;color:var(--navy);font-size:18px;margin:6px 0}
.next-item p{margin:0;color:var(--muted);font-size:14px}

.legal-hero{
  background:linear-gradient(135deg,var(--navy),#1f3d68);
  color:#fff;
  padding:72px 0;
  text-align:center;
}
.page-logo-white{width:190px;margin:0 auto 24px}
.legal-hero h1{font-size:40px;line-height:1.3;margin:14px 0}
.legal-hero p{max-width:760px;margin:0 auto;color:rgba(255,255,255,.82)}
.legal-main{background:var(--bg);padding:70px 0}
.legal-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:38px;
  box-shadow:var(--shadow);
}
.legal-meta{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
  color:var(--muted);
}
.legal-section{padding:28px 0;border-bottom:1px solid var(--line)}
.legal-section:last-child{border-bottom:0}
.legal-section h2{margin:0 0 12px;color:var(--navy)}
.legal-section p,.legal-section li{color:#475467}
.legal-section ul{margin:10px 0 0}

@media(max-width:980px){
  .nav a:not(.nav-cta){display:none}
  .hero-grid,.promise,.about-grid,.contact-grid{grid-template-columns:1fr}
  .problem-grid,.value-grid,.plan-grid{grid-template-columns:repeat(2,1fr)}
  .flow{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .trust-item:nth-child(2){border-right:none}
}
@media(max-width:640px){
  .container{width:min(100% - 28px,1120px)}
  .header-inner{min-height:66px}
  .header-logo img{width:138px}
  .hero{padding:58px 0}
  .section,.contact{padding:62px 0}
  .hero h1{font-size:38px}
  .hero-panel,.form-wrap,.legal-card,.thanks-card{padding:24px;border-radius:22px}
  .problem-grid,.value-grid,.plan-grid,.flow,.form-grid,.footer-grid,.next-grid,.trust-grid{grid-template-columns:1fr}
  .trust-item{border-right:none;border-bottom:1px solid rgba(255,255,255,.16);padding-bottom:12px}
  .trust-item:last-child{border-bottom:none;padding-bottom:0}
  .btn,.btn-row a{width:100%}
  .footer-bottom{display:block}
  .footer-bottom div+div{margin-top:10px}
}
