/* E.T.P. one-page site (offline, no external dependencies) */

:root{
  --bg: #F8FAFC;
  --bg-2: #FFFFFF;
  --text: #0F172A;
  --muted: rgba(15,23,42,.72);
  --muted-2: rgba(15,23,42,.55);
  --card: rgba(255,255,255,.78);
  --card-2: rgba(255,255,255,.92);
  --stroke: rgba(15,23,42,.12);
  --shadow: 0 14px 40px rgba(15,23,42,.12);
  --shadow-2: 0 10px 24px rgba(15,23,42,.10);
  --accent: #0F766E;
  --accent-2: #F59E0B;
  --radius: 20px;
  --radius-2: 28px;
  --container: 1120px;
  --header-h: 74px;

  --hero-bg: url("../img/bg/hero_light.svg");
  --section-bg: url("../img/bg/section_light.svg");
  --footer-bg: url("../img/bg/footer_light.svg");

  color-scheme: light;
}

[data-theme="dark"]{
  --bg: #070B14;
  --bg-2: #0B1220;
  --text: #F8FAFC;
  --muted: rgba(248,250,252,.74);
  --muted-2: rgba(248,250,252,.56);
  --card: rgba(15,23,42,.55);
  --card-2: rgba(15,23,42,.80);
  --stroke: rgba(248,250,252,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-2: 0 10px 24px rgba(0,0,0,.35);

  --hero-bg: url("../img/bg/hero_dark.svg");
  --section-bg: url("../img/bg/section_dark.svg");
  --footer-bg: url("../img/bg/footer_dark.svg");

  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, rgba(15,118,110,.10), transparent 60%),
              radial-gradient(1200px 800px at 80% 100%, rgba(245,158,11,.08), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow-x:hidden;
  padding-top: var(--header-h);
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: .95em;
  padding: .12em .35em;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(127,127,127,.10);
}

.container{
  width:min(var(--container), calc(100% - 2rem));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:1rem; top:1rem; width:auto; height:auto;
  padding:.6rem .9rem;
  border-radius:12px;
  background:var(--card-2);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow-2);
  z-index:9999;
}

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  backdrop-filter: blur(10px);
  background: rgba(248,250,252,.62);
  border-bottom:1px solid var(--stroke);
}
[data-theme="dark"] .site-header{
  background: rgba(7,11,20,.62);
}

.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  min-width: 140px;
}
.brand-logo{height:40px; width:auto; display:block}
.show-on-dark{display:none}
[data-theme="dark"] .show-on-light{display:none}
[data-theme="dark"] .show-on-dark{display:block}

.nav{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:1rem;
}
.nav-links a{
  padding:.55rem .7rem;
  border-radius: 12px;
  color: var(--muted);
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(127,127,127,.10);
}

.nav-toggle{
  display:none;
  border:1px solid var(--stroke);
  background: rgba(127,127,127,.08);
  border-radius: 14px;
  padding:.55rem .65rem;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  margin:4px 0;
  background: var(--text);
  opacity:.85;
  border-radius: 2px;
}
.theme-toggle{
  display:flex;
  align-items:center;
  gap:.5rem;
  border:1px solid var(--stroke);
  background: rgba(127,127,127,.08);
  border-radius: 14px;
  padding:.55rem .7rem;
  cursor:pointer;
  color: var(--muted);
}
.theme-toggle:hover{color:var(--text)}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-label{font-size:.9rem}

.hero{
  position:relative;
  padding: 3.2rem 0 4.2rem;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:-12%;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.hero-fade{
  position:absolute;
  inset:auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:2rem;
  align-items:start;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:.6rem;
  color: var(--muted);
  font-size: .95rem;
}
.eyebrow img{filter: drop-shadow(0 10px 24px rgba(0,0,0,.15))}
h1{
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height:1.08;
  margin:.85rem 0 .8rem;
  letter-spacing: -0.02em;
}
.lead{
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

.cta-row{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin:1.3rem 0 1.1rem;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:.4rem .65rem;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(127,127,127,.08);
  color: var(--muted);
  font-size: .9rem;
}
.mini-notes{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}

.hero-card{
  position:relative;
  border-radius: var(--radius-2);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.54));
  box-shadow: var(--shadow);
  overflow:hidden;
}
[data-theme="dark"] .hero-card{
  background: linear-gradient(180deg, rgba(15,23,42,.68), rgba(15,23,42,.50));
}
.hero-card-inner{padding:1.35rem 1.35rem 1.2rem}
.hero-card h2{margin:.2rem 0 .8rem; font-size:1.2rem}
.checklist{
  margin:.2rem 0 1.1rem;
  padding:0;
  list-style:none;
}
.checklist li{
  margin:.6rem 0;
  padding-left:1.6rem;
  position:relative;
  color: var(--muted);
}
.checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top:.35rem;
  width:1rem;
  height:1rem;
  border-radius: 6px;
  background: rgba(15,118,110,.14);
  border: 1px solid rgba(15,118,110,.35);
}
.checklist li::after{
  content:"";
  position:absolute;
  left:.28rem;
  top:.58rem;
  width:.42rem;
  height:.22rem;
  border-left:2px solid var(--accent);
  border-bottom:2px solid var(--accent);
  transform: rotate(-45deg);
}
.hero-card-actions{display:flex; gap:.6rem; flex-wrap:wrap}

.section{
  position:relative;
  padding: 4.1rem 0;
}
.section-alt{
  background: linear-gradient(180deg, rgba(127,127,127,.04), transparent 45%);
}
.section-bg{
  position:absolute;
  inset:0;
  background-image: var(--section-bg);
  background-size: cover;
  background-position: center;
  opacity:.55;
  pointer-events:none;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.section .container{position:relative}

.section-head{
  max-width: 70ch;
  margin-bottom: 1.8rem;
}
.section-head h2{
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  margin:0 0 .6rem;
  letter-spacing:-0.02em;
}
.muted{color:var(--muted)}
.small{font-size:.9rem}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:1rem;
}
.card{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow-2);
  padding: 1.1rem 1.1rem 1rem;
}
.card h3{margin:.25rem 0 .45rem; font-size:1.05rem}
.icon{
  width:44px; height:44px;
  border-radius: 16px;
  border:1px solid rgba(15,118,110,.26);
  background: rgba(15,118,110,.10);
  display:flex; align-items:center; justify-content:center;
  color: var(--accent);
}
.icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:1.2rem;
  align-items:start;
}
.stack{display:grid; gap:1rem}

.callout{
  margin-top:1.2rem;
  padding:1rem;
  border-radius: var(--radius);
  background: rgba(245,158,11,.10);
  border:1px solid rgba(245,158,11,.24);
}
.callout h3{margin:.1rem 0 .5rem}
.bullets{
  margin:.25rem 0 0;
  padding-left: 1.05rem;
}
.steps{
  margin:.25rem 0 0;
  padding-left: 1.1rem;
}
.button-row{display:flex; gap:.75rem; flex-wrap:wrap}

.pdf-wrap{
  border-radius: var(--radius-2);
  border:1px solid var(--stroke);
  background: var(--card-2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pdf-frame{
  width:100%;
  height: min(76vh, 860px);
  border:0;
  display:block;
}
.pdf-fallback{padding:.8rem 1rem; border-top:1px solid var(--stroke); background: rgba(127,127,127,.06)}

.download-panel{
  margin-top: 1.2rem;
  border-radius: var(--radius-2);
  border:1px solid var(--stroke);
  background: var(--card-2);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.download-left{max-width: 64ch}

.support-box{
  margin-top:1rem;
  padding: 0;
  border: none;
  background: none;
}
.support-box form{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.support-box input[type="image"]{
  display:block;
  width: 180px;
  max-width: min(240px, 70vw);
  height:auto;
  border:0 !important;
  padding:0;
  border-radius: 0;
  background: transparent;
  outline: none;
}
.support-box input[type="image"]:hover{filter: brightness(1.04)}
.support-box input[type="image"]:focus-visible{box-shadow: 0 0 0 4px rgba(15,118,110,.28)}
.note{margin-top:1rem}
.contact .label{
  display:inline-block;
  width:68px;
  color: var(--muted-2);
}
.contact a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer{
  position:relative;
  padding: 2.4rem 0;
  overflow:hidden;
  border-top: 1px solid var(--stroke);
}
.footer-bg{
  position:absolute;
  inset:-10%;
  background-image: var(--footer-bg);
  background-size: cover;
  background-position:center;
  opacity:.55;
  pointer-events:none;
}
.footer-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:.8rem;
}
.footer-links{
  display:flex;
  align-items:center;
  gap:.9rem;
}
.footer-links a{
  color: var(--muted);
  padding:.35rem .55rem;
  border-radius: 12px;
}
.footer-links a:hover{
  color: var(--text);
  background: rgba(127,127,127,.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  border-radius: 14px;
  padding:.65rem .95rem;
  border:1px solid var(--stroke);
  background: rgba(127,127,127,.08);
  color: var(--text);
  font-weight: 600;
  letter-spacing: .01em;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow-2)}
.btn:active{transform: translateY(0px); box-shadow:none}
.btn-primary{
  background: linear-gradient(180deg, rgba(15,118,110,1), rgba(13,99,92,1));
  border-color: rgba(15,118,110,.55);
  color: #fff;
}
.btn-secondary{
  background: linear-gradient(180deg, rgba(245,158,11,1), rgba(214,138,9,1));
  border-color: rgba(245,158,11,.55);
  color: #111827;
}
.btn-outline{
  background: transparent;
  border-color: rgba(15,118,110,.45);
  color: var(--text);
}
.btn-ghost{
  background: transparent;
}
.btn-lg{padding:.8rem 1.1rem; border-radius: 16px}

.to-top{
  position:fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px; height: 46px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: var(--card-2);
  box-shadow: var(--shadow-2);
  color: var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top svg{width:22px;height:22px;fill:currentColor}
.to-top.show{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.9,.2,1), transform .7s cubic-bezier(.2,.9,.2,1);
}
.reveal.in-view{opacity:1; transform: translateY(0)}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none}
  .btn{transition:none}
  .hero-bg, .section-bg{transform:none !important}
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns: 1fr; gap:1.2rem}
  .split{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .nav-links{display:none}
  .nav-toggle{display:inline-flex}
  .nav{gap:.6rem}
  .theme-label{display:none}
  .site-header{backdrop-filter: blur(8px)}
  .hero{padding-top: 2.6rem}
  .pdf-frame{height: min(72vh, 760px)}
}

/* Mobile nav overlay */
.nav.open .nav-links{
  display:flex;
  position:absolute;
  top: calc(var(--header-h) - 6px);
  right: 1rem;
  left: 1rem;
  flex-direction:column;
  gap:.2rem;
  padding:.75rem;
  border-radius: 18px;
  border:1px solid var(--stroke);
  background: var(--card-2);
  box-shadow: var(--shadow);
}
.nav.open .nav-links a{
  padding:.7rem .75rem;
  border-radius: 14px;
}


/* PDF embed: load on desktop, click-to-load on mobile to avoid auto-download behavior */
.pdf-shell{
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
:root[data-theme="light"] .pdf-shell{
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
}
.pdf-placeholder{
  height: 100%;
  min-height: 420px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 22px;
  text-align: center;
}
@media (max-width: 900px){
  .pdf-shell{ min-height: 220px; }
  .pdf-placeholder{ min-height: 220px; }
}
