/* ==========================================================
   Chuck Tax  |  style.css
   Colors live in :root below. Change them there to re-theme.
   ========================================================== */
:root {
  --ink: #1d1b3a;        /* deep navy text */
  --ink-soft: #4a4868;
  --cream: #fff8ef;      /* page background */
  --white: #ffffff;
  --coral: #ff5d73;
  --teal: #13c4a3;
  --sun: #ffc93c;
  --grape: #7b5cff;
  --sky: #3fa7ff;
  --lime: #8bd346;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(29, 27, 58, .10);
  --shadow-pop: 6px 6px 0 var(--ink);
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 999px; padding: .7em 1.3em;
  border: 2.5px solid var(--ink); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-lg { font-size: 1.08rem; padding: .85em 1.6em; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { box-shadow: 4px 4px 0 #fff; }
.btn-portal { background: var(--teal); color: var(--ink); padding: .55em 1.1em; box-shadow: 3px 3px 0 var(--ink); }
.btn-portal svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--ink); box-shadow: 0 4px 0 rgba(29,27,58,.06); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.08); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; }
.logo-text span { color: var(--coral); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 700; padding: .45em .8em; border-radius: 999px;
  transition: background .2s;
}
.nav-links a:hover { background: rgba(255, 201, 60, .45); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 3px; margin: 4px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: 0; animation: drift 14s ease-in-out infinite alternate; }
.blob-1 { width: 420px; height: 420px; background: var(--sun); top: -120px; right: -80px; }
.blob-2 { width: 340px; height: 340px; background: #ffb3c0; bottom: -120px; left: -100px; animation-delay: -4s; }
.blob-3 { width: 260px; height: 260px; background: #9ff0df; top: 40%; left: 45%; animation-delay: -8s; opacity: .4; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: .3em 1em; font-weight: 800; font-size: .9rem; margin-bottom: 18px; box-shadow: 3px 3px 0 var(--ink);
}
.squiggle { position: relative; color: var(--coral); white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 15 0 30 7 T 60 7 T 90 7 T 118 6' fill='none' stroke='%23ffc93c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--ink-soft); font-size: .98rem; }

/* hero illustration */
.hero-art { display: flex; justify-content: center; }
.card-stack { position: relative; width: min(400px, 100%); padding: 34px 24px; }
.paper { position: absolute; inset: 34px 24px; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius); }
.paper-back { background: var(--grape); transform: rotate(9deg) translate(16px, 6px); }
.paper-mid { background: var(--teal); transform: rotate(-6deg) translate(-12px, 4px); }
.paper-front { position: relative; inset: auto; padding: 26px 26px 22px; box-shadow: var(--shadow-pop); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.paper-head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-family: var(--font-head); }
.paper-head strong { margin-left: 8px; font-size: 1.1rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.dot:nth-child(2) { background: var(--sun); }
.dot:nth-child(3) { background: var(--teal); }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; font-weight: 700; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist .box {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px;
  border: 2.5px solid var(--ink); font-size: .9rem; font-weight: 900;
}
.checklist .done .box { background: var(--teal); color: var(--ink); }
.checklist .pending { color: var(--ink-soft); }
.progress { height: 14px; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #f1ecff; }
.progress span { display: block; height: 100%; width: 60%; background: repeating-linear-gradient(45deg, var(--coral) 0 10px, #ff8396 10px 20px); animation: fill 2.8s ease-in-out infinite alternate; }
@keyframes fill { from { width: 45%; } to { width: 80%; } }
.sticker {
  position: absolute; font-family: var(--font-head); font-weight: 600; background: var(--sun);
  border: 2.5px solid var(--ink); border-radius: 14px; padding: .4em .9em; box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.sticker-1 { top: 0; right: -6px; transform: rotate(8deg); animation: wiggle 4s ease-in-out infinite; }
.sticker-2 { bottom: 4px; left: -10px; background: var(--white); transform: rotate(-7deg); font-size: 1.3rem; animation: wiggle 4.5s ease-in-out infinite reverse; }
@keyframes wiggle { 50% { transform: rotate(-4deg) translateY(-6px); } }
.float-emoji { position: absolute; font-size: 2.2rem; animation: floaty 6s ease-in-out infinite; }
.e1 { top: 42%; right: -22px; }
.e2 { top: 6%; left: -12px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(12deg); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: 0 -10px; }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: scroll 30s linear infinite; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.ticker-track span:nth-child(4n+2) { color: var(--sun); }
.ticker-track span:nth-child(4n) { color: var(--coral); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  font-size: .85rem; color: var(--coral); background: #ffe3e7; padding: .3em .9em; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow-light { background: rgba(255,255,255,.14); color: var(--sun); }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 30px 28px;
  position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--accent); }
.card:hover { transform: translate(-4px, -6px) rotate(-.6deg); box-shadow: 8px 10px 0 var(--accent), 8px 10px 0 2.5px var(--ink); }
.card-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--accent); border: 2.5px solid var(--ink); margin-bottom: 18px; transition: transform .3s;
}
.card:hover .card-icon { transform: rotate(-10deg) scale(1.1); }
.card p { color: var(--ink-soft); margin: 0; }

/* why */
.section-dark { background: var(--ink); color: var(--cream); overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px); background-size: 26px 26px;
}
.why-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-copy p { color: #d8d5f0; font-size: 1.1rem; }
.placeholder-note { display: inline-block; border: 2px dashed var(--sun); color: var(--sun) !important; border-radius: 12px; padding: .4em .9em; font-weight: 700; font-size: .95rem !important; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item {
  display: flex; gap: 16px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 24px; transition: background .25s, transform .25s, border-color .25s;
}
.why-item:hover { background: rgba(255,255,255,.12); border-color: var(--sun); transform: translateY(-4px); }
.why-num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--sun); line-height: 1; }
.why-item h3 { color: #fff; font-size: 1.15rem; }
.why-item p { color: #c9c6e6; margin: 0; font-size: .98rem; }

/* steps */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: start; }
.step {
  text-align: center; background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 34px 26px 28px; box-shadow: var(--shadow-pop); transition: transform .25s;
}
.step:hover { transform: translateY(-6px) rotate(.8deg); }
.step-badge {
  width: 70px; height: 70px; margin: -70px auto 16px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #fff;
  background: var(--accent); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.step p { color: var(--ink-soft); margin: 0; }
.step-arrow { align-self: center; font-size: 2rem; color: var(--coral); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
#how .steps { margin-top: 40px; }

/* portal */
.portal-section { padding-top: 20px; }
.portal-card {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--grape), #5a3fe0 60%, #3d2bb0); color: #fff;
  border: 3px solid var(--ink); border-radius: 32px; padding: 56px; box-shadow: 10px 10px 0 var(--ink);
  position: relative; overflow: hidden;
}
.portal-card::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,201,60,.18); right: -120px; top: -140px; }
.portal-copy { position: relative; z-index: 1; }
.portal-copy p { color: #e6e0ff; font-size: 1.1rem; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.portal-small { font-size: .95rem !important; opacity: .85; margin: 0; }
.portal-art { position: relative; z-index: 1; display: flex; justify-content: center; }
.vault { position: relative; width: 200px; height: 200px; }
.vault-door {
  width: 100%; height: 100%; border-radius: 50%; background: var(--sun); border: 4px solid var(--ink);
  display: grid; place-items: center; font-size: 4.5rem; box-shadow: inset 0 0 0 14px rgba(255,255,255,.35), 6px 6px 0 var(--ink);
  animation: spin-slow 20s linear infinite;
}
.vault-door span { animation: spin-slow 20s linear infinite reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.doc {
  position: absolute; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 700;
  border: 2.5px solid var(--ink); border-radius: 10px; padding: .35em .7em; box-shadow: 3px 3px 0 var(--ink);
  animation: floaty 5s ease-in-out infinite;
}
.d1 { top: -10px; left: -30px; transform: rotate(-12deg); }
.d2 { bottom: 10px; right: -34px; animation-delay: -2s; }
.d3 { bottom: -16px; left: 0; animation-delay: -3.5s; background: var(--coral); color: #fff; }

/* faq */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; padding: 0 24px;
  transition: box-shadow .2s, transform .2s;
}
.faq details:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px,-2px); }
.faq details[open] { box-shadow: 4px 4px 0 var(--coral), 4px 4px 0 2.5px var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink);
  font-size: 1.3rem; transition: transform .3s, background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* contact */
.contact-section { background: linear-gradient(180deg, var(--cream), #ffeccc); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.contact-copy p { color: var(--ink-soft); font-size: 1.1rem; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; background: var(--white); border: 2.5px solid var(--ink);
  border-radius: var(--radius); padding: 22px; text-decoration: none; transition: transform .2s, box-shadow .2s;
  min-width: 0;
}
a.contact-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.contact-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent); border: 2.5px solid var(--ink); }
.contact-card small { display: block; color: var(--ink-soft); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }

/* footer */
.footer { background: var(--ink); color: #cfcce8; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.logo-light .logo-text { color: #fff; }
.footer-tag { margin: 14px 0 0; max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.footer-links a { text-decoration: none; font-weight: 700; color: #fff; transition: color .2s; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.disclaimer { opacity: .7; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n+2), .js .why-list .reveal:nth-child(2n) { transition-delay: .1s; }
.js .cards .reveal:nth-child(3n) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links a { padding: .45em .55em; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 2.5px solid var(--ink); padding: 8px 20px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8em .6em; border-radius: 12px; font-size: 1.1rem; }
  .btn-portal { margin-left: auto; }
  .hero { padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .card-stack { width: min(380px, 100%); }
  .portal-card { box-shadow: 6px 6px 0 var(--ink); }
  .steps { grid-template-columns: 1fr; gap: 54px; }
  .step-arrow { transform: rotate(90deg); justify-self: center; margin: -30px 0; animation: none; }
  .portal-card { grid-template-columns: 1fr; padding: 40px 28px; text-align: left; }
  .portal-art { order: -1; }
  .vault { width: 150px; height: 150px; }
  .vault-door { font-size: 3.3rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .cards, .why-list, .contact-cards { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.3rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1.25rem; }
  .nav-inner { gap: 10px; }
  .btn-portal { font-size: .9rem; padding: .5em .9em; }
  .hero-cta .btn { width: 100%; }
  .portal-actions .btn { width: 100%; }
  .squiggle { white-space: normal; }
  .paper-front { padding: 22px 20px 20px; }
  .paper-head strong { font-size: 1rem; }
  .checklist { font-size: .95rem; }
  .e1 { right: -6px; }
}
@media (max-width: 360px) {
  .btn-portal svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- v2 additions ---------- */
.contact-book { margin-top: 6px; }
.map-link { display: block; font-style: normal; font-weight: 800; font-size: .85rem; color: var(--coral); margin-top: 4px; }
.footer-addr { font-size: .92rem; opacity: .85; }
.footer-addr a { color: var(--sun); text-decoration: none; }
.contact-office { grid-column: 1 / -1; }
.contact-copy .hours { margin-top: 18px; }
.contact-card strong { line-height: 1.35; display: block; }
