/* PowerSave Advisory — Graphite & Azure design system
   Implemented from the Claude Design "Powersave v2" handoff bundle. */

/* ---------- Tokens & base ---------- */
:root {
  --mist: #EAEDEF;
  --card: #F4F6F7;
  --ink: #161B20;
  --ink-deep: #0F1519;
  --azure: #2E7D32;
  --azure-bright: #2E7D32;
  --azure-lum: #7FB03A;
  --body: #474F57;
  --body-soft: #69727A;
  --muted: #828C94;
  --faint: #939BA3;
  --dark-body: #C3CCD4;
  --dark-muted: #8A929A;
  --light-on-dark: #EEF1F3;
  --hairline: rgba(22, 27, 32, 0.14);
  --hairline-soft: rgba(22, 27, 32, 0.10);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; zoom: 0.8; }
body {
  margin: 0;
  background: var(--mist);
  font-family: var(--sans);
  color: var(--ink);
  overflow-x: hidden;
}
img { display: block; }

@keyframes psReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes psMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal {
  animation: psReveal .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-timeline: view();
  animation-range: entry 2% cover 16%;
}

/* ---------- Shared text styles ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 22px;
}
.eyebrow--lum { color: var(--azure-lum); }

/* Decorative blue eyebrow/kicker description labels hidden per request */
.eyebrow, .kicker-rule { display: none !important; }

.kicker-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.kicker-rule .rule { width: 30px; height: 1.5px; background: var(--azure); }
.kicker-rule .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
}
.kicker-rule--lum .rule { background: var(--azure-lum); }
.kicker-rule--lum .label { color: var(--azure-lum); }

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs .sep { color: #C0C6CC; }
.crumbs .here { color: var(--azure); }
.crumbs--dark .sep { color: #444C54; }
.crumbs--dark .here { color: var(--azure-lum); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--azure-bright); color: #FFFFFF; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary--glow { box-shadow: 0 8px 30px rgba(46, 125, 50, 0.22); }
.btn-primary--glow:hover { box-shadow: 0 14px 40px rgba(46, 125, 50, 0.32); }
.btn-ghost {
  background: transparent;
  color: var(--light-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost--filled { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost--filled:hover { background: rgba(255, 255, 255, 0.13); }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--azure);
}

/* ---------- Site nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(234, 237, 239, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: block;
  height: 34px;
  width: auto;
}
.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name span { color: var(--muted); font-weight: 500; }
.desk-nav { display: flex; align-items: center; gap: 30px; }
.desk-nav a {
  text-decoration: none;
  color: #39424A;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-bottom: 2px;
}
.desk-nav a .dot {
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: transparent;
}
.desk-nav a.active { color: var(--ink); font-weight: 600; }
.desk-nav a.active .dot { background: var(--azure); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--ink);
  color: var(--mist);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 11px 19px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--azure); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(22, 27, 32, 0.16);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.mobile-menu {
  border-top: 1px solid var(--hairline-soft);
  padding: 12px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  text-decoration: none;
  color: #232A30;
  font-weight: 500;
  font-size: 17px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(22, 27, 32, 0.06);
}
@media (max-width: 920px) {
  .desk-nav { display: none; }
  .nav-toggle { display: grid; width: 44px; height: 44px; }
  .nav-cta { padding-top: 13px; padding-bottom: 13px; }
  .mobile-menu a { padding: 14px 4px; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink-deep); overflow: hidden; margin-top: 60px; }
.cta-band .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.cta-band .cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 21, 25, 0.96) 0%, rgba(15, 21, 25, 0.78) 60%, rgba(15, 21, 25, 0.55) 100%);
}
.cta-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 32px;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--light-on-dark);
  margin: 0 auto;
  max-width: 18ch;
}
.cta-inner h2 em { font-style: italic; color: var(--azure-lum); }
.cta-inner .lede {
  max-width: 56ch;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.62;
  color: var(--dark-body);
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Next links ---------- */
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--card);
  transition: border-color .25s, transform .25s;
}
.next-card:hover { border-color: var(--azure); transform: translateY(-3px); }
.next-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
}
.next-card .line { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.next-card--sm { padding: 28px; }
.next-card--sm .line { font-size: 20px; }
@media (max-width: 940px) {
  .next-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; }
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field > span .opt { text-transform: none; letter-spacing: 0; color: #A7AEB5; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(22, 27, 32, 0.18);
  border-radius: 10px;
  background: #FFFFFF;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--azure); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  cursor: pointer;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--azure); }
.consent span { font-size: 13.5px; line-height: 1.5; color: var(--body-soft); }
.consent a { color: var(--azure); }
.btn-submit {
  width: 100%;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  padding: 17px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s;
}
.btn-submit:hover { background: var(--azure); }
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 380px;
  justify-content: center;
}
.form-success[hidden] { display: none; }
.form-success .check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--azure-lum);
  margin-bottom: 24px;
}
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--ink); margin: 0; }
.form-success p {
  margin: 14px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body);
  max-width: 40ch;
}
.form-wrap[hidden] { display: none; }
/* Honeypot — kept in the DOM for bots, invisible and unreachable for real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  /* 16px inputs prevent iOS focus auto-zoom */
  .field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { font-size: 16px; }
}

/* ---------- Detail rows (contact info) ---------- */
.detail-rows { display: flex; flex-direction: column; gap: 0; }
.detail-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.detail-rows > div:last-child { border-bottom: 1px solid var(--hairline); }
.detail-rows .key {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-rows .val { color: var(--ink); font-weight: 600; font-size: 15.5px; text-align: right; text-decoration: none; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-top: 1px solid rgba(22, 27, 32, 0.16); }
.faq-list .end-rule { border-top: 1px solid rgba(22, 27, 32, 0.16); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 26px 0;
}
.faq-q .q-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(22, 27, 32, 0.2);
  background: transparent;
  color: var(--ink);
  transform: rotate(0deg);
  transition: transform .3s, background .25s, border-color .25s, color .25s;
}
.faq-item.open .faq-icon {
  border-color: var(--azure);
  background: var(--azure);
  color: var(--mist);
  transform: rotate(135deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s ease, opacity .35s ease;
}
.faq-item.open .faq-a { max-height: 320px; opacity: 1; }
.faq-a p { margin: 0; padding: 0 56px 28px 0; font-size: 16px; line-height: 1.68; color: var(--body); }

/* ---------- Article (Insights) ---------- */
.ps-article { font-size: 18.5px; line-height: 1.78; color: #39424A; }
.ps-article p { margin: 0 0 22px; }
.ps-article h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 50px 0 18px;
  scroll-margin-top: 100px;
}
.ps-article strong { color: var(--ink); font-weight: 600; }
.ps-article a { color: var(--azure); }
.ps-article ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ps-article li { position: relative; padding-left: 24px; }
.ps-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--azure);
}
.ps-article blockquote {
  margin: 38px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--azure-lum);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
}
.takeaways {
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
  padding: 28px 30px;
  margin-bottom: 40px;
}
.takeaways .takeaways-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 16px;
}
.takeaways ul { margin: 0; }
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.article-byline .avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(22, 27, 32, 0.12);
  display: grid;
  place-items: center;
}
.article-byline .who { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.article-byline .role { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  white-space: nowrap;
}
.article-meta .cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 999px; background: #C0C6CC; }
.article-meta .time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.article-hero {
  position: relative;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
}
.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Legal pages ---------- */
.ps-legal-body { font-size: 16.5px; line-height: 1.72; color: var(--body); }
.ps-legal-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  scroll-margin-top: 100px;
}
.ps-legal-body section { padding: 30px 0; border-top: 1px solid rgba(22, 27, 32, 0.12); }
.ps-legal-body section:first-child { border-top: none; }
.ps-legal-body p { margin: 0 0 14px; }
.ps-legal-body p:last-child { margin-bottom: 0; }
.ps-legal-body ul {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-legal-body li { position: relative; padding-left: 22px; }
.ps-legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--azure);
}
.ps-legal-body a { color: var(--azure); }
.ps-legal-body .ps-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--azure);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.ps-legal-body .note {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--body-soft);
}
.ps-legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.ps-toc { position: sticky; top: 100px; }
.ps-toc .toc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.ps-toc .toc-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}
.ps-toc .toc-links a { text-decoration: none; color: var(--body); font-size: 13.5px; }
@media (max-width: 940px) {
  .ps-legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .ps-toc { position: static; display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #C2CAD2; font-family: var(--sans); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 84px 32px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-name { color: var(--mist); }
.footer-brand .blurb { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.footer-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(46, 125, 50, 0.28);
  border-radius: 999px;
}
.footer-badge .pip { width: 7px; height: 7px; border-radius: 999px; background: var(--azure-lum); }
.footer-badge span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure-lum);
}
.footer-col .col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6A737B;
  margin: 0 0 18px;
}
.footer-col .col-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col .col-links a { text-decoration: none; color: #C2CAD2; font-size: 14.5px; }
.footer-col .col-links a.accent { color: var(--azure-lum); }
.footer-col .col-links span { color: var(--muted); font-size: 14.5px; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 13px; color: #6A737B; }
.footer-bottom .tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A737B;
}
@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Shared responsive helpers ---------- */
@media (max-width: 600px) {
  .ps-pad { padding-left: 22px !important; padding-right: 22px !important; }
}
