:root {
  --blue-900: #102a43;
  --blue-700: #145da0;
  --blue-500: #1e88e5;
  --gold-500: #d8a526;
  --green-600: #2f8f6b;
  --coral-500: #cf5d4e;
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #dbe3eb;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --soft-gold: #fff7df;
  --soft-green: #eaf7f1;
  --soft-blue: #eaf3ff;
  --shadow: 0 14px 34px rgba(16, 42, 67, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue-900);
  color: white;
  padding: .75rem 1rem;
  z-index: 20;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img { width: min(238px, 56vw); height: auto; }

.site-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink);
  padding: .55rem .72rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .92rem;
}
.site-nav a.active,
.site-nav a:hover { background: var(--soft-blue); color: var(--blue-900); text-decoration: none; }
.nav-toggle { display: none; }

main { min-height: 60vh; }

.hero,
.page-header,
.section-band,
.how-it-works,
.philosophy,
.split-actions,
.detail-layout,
.two-column,
.dashboard-grid,
.resume-page {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: stretch;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 3rem) 0 1rem;
}

.hero-copy {
  background: linear-gradient(135deg, #102a43 0%, #145da0 58%, #2f8f6b 100%);
  color: white;
  padding: clamp(1.2rem, 5vw, 3rem);
  border-radius: 8px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1,
.page-header h1,
.philosophy h2 {
  margin: .35rem 0 1rem;
  line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  letter-spacing: 0;
}

.hero-copy p { max-width: 680px; color: #edf6ff; font-size: 1.08rem; }
.eyebrow,
.card-topline,
.section-heading span {
  display: inline-block;
  color: var(--gold-500);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero-actions,
.tag-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.hero-actions { margin-top: 1.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font-size: .95rem;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--gold-500); color: #201500; }
.button.secondary { background: var(--green-600); color: white; }
.button.ghost { border-color: var(--line); background: white; color: var(--blue-900); }
.button.light { background: white; color: var(--blue-900); }

.hero-panel,
.card,
.split-actions article,
.form-panel,
.flow-panel,
.detail-main,
.detail-aside,
.dashboard-grid article,
.resume-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel { padding: 1.2rem; display: grid; gap: .9rem; align-content: center; }
.hero-panel img { max-height: 128px; width: auto; margin-inline: auto; }
.metric-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: .8rem;
  padding: .8rem;
  background: var(--soft-blue);
  border-radius: 6px;
}
.metric-row strong { color: var(--blue-900); font-size: 2rem; line-height: 1; }
.metric-row span { color: var(--muted); font-weight: 700; }

.split-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.split-actions article { padding: 1.25rem; }
.split-actions h2,
.section-heading h2,
.how-it-works h2,
.detail-main h1,
.page-header h1 { color: var(--blue-900); }

.section-band { padding: 2.5rem 0; }
.section-band.muted { background: transparent; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: .2rem 0 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; min-height: 280px; }
.card h3 { margin: 0; color: var(--blue-900); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card .button { margin-top: auto; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.meta-grid span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: var(--soft-green);
  color: #18543d;
  font-size: .82rem;
  font-weight: 800;
}
.meta-grid span { border-radius: 6px; background: var(--soft-blue); color: var(--blue-900); }
.progress-wrap { height: 9px; border-radius: 999px; background: #e4e9ef; overflow: hidden; }
.progress-wrap span { display: block; height: 100%; background: var(--green-600); }
.card small { color: var(--muted); }

.how-it-works { padding: 2.5rem 0; }
.steps-grid,
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps-grid article { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.steps-grid strong,
.dashboard-grid strong { color: var(--coral-500); font-size: 2rem; }
.steps-grid h3 { margin: .2rem 0; color: var(--blue-900); }

.philosophy { margin-top: 1rem; margin-bottom: 2.5rem; padding: 2rem; border-radius: 8px; background: var(--soft-gold); border: 1px solid #f1d99a; }
.philosophy p { max-width: 800px; color: #5a491c; font-weight: 700; }

.page-header { padding: 2rem 0 1rem; }
.page-header p { max-width: 760px; color: var(--muted); font-size: 1.05rem; }

.filter-bar {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

label { display: grid; gap: .35rem; color: var(--blue-900); font-weight: 800; }
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d3df;
  border-radius: 6px;
  padding: .7rem .75rem;
  font: inherit;
  color: var(--ink);
  background: white;
}
textarea { min-height: 110px; resize: vertical; }
.check { grid-template-columns: auto 1fr; align-items: center; font-weight: 700; color: var(--ink); }
.check input { width: 20px; min-height: 20px; }

.two-column,
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 1rem; margin-bottom: 2rem; align-items: start; }
.form-panel,
.flow-panel,
.detail-main,
.detail-aside { padding: 1.2rem; }
.form-panel h2,
.flow-panel h2,
.detail-main h2,
.detail-aside h2 { color: var(--blue-900); margin-top: 0; }
.form-panel { display: grid; gap: .8rem; }
.step-list { display: grid; gap: .55rem; }
.step-list div,
.step-list a { padding: .75rem; background: var(--soft-blue); border-radius: 6px; font-weight: 800; color: var(--blue-900); }
.notice { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto; padding: 1rem; border-radius: 8px; border: 1px solid var(--line); background: white; }
.notice.success { border-color: #8cc9ab; background: var(--soft-green); color: #18543d; font-weight: 800; }

.detail-main .lead { font-size: 1.1rem; color: var(--muted); }
.requirement-list { display: grid; gap: .65rem; }
.requirement-list div { display: grid; grid-template-columns: 150px 1fr; gap: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.requirement-list strong { color: var(--coral-500); }

.comparison-table { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--blue-900); background: var(--soft-blue); }

.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.dashboard-grid article { padding: 1rem; display: grid; gap: .3rem; }
.dashboard-grid span { color: var(--muted); font-weight: 800; }

.resume-page { margin-top: 2rem; margin-bottom: 2rem; padding: 2rem; max-width: 860px; background: white; }
.resume-page h1 { color: var(--blue-900); margin-top: 0; }
.print-button { margin-top: 1rem; }

.site-footer { margin-top: 3rem; background: var(--blue-900); color: white; padding: 2rem clamp(1rem, 4vw, 3rem); }
.footer-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem; }
.footer-logo { width: 76px; height: auto; margin-bottom: 1rem; }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.site-footer a { display: block; color: #f6d46c; margin: .35rem 0; }
.site-footer p { color: #d7e6f5; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; min-height: 42px; align-items: center; padding: .55rem .8rem; border-radius: 6px; border: 1px solid var(--line); background: white; font-weight: 800; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 72px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: .75rem; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: .8rem; }
  .app-hero,
  .split-actions,
  .two-column,
  .detail-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid,
  .steps-grid,
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; }
  .brand img { width: min(212px, 62vw); }
  .hero,
  .page-header,
  .section-band,
  .how-it-works,
  .philosophy,
  .split-actions,
  .detail-layout,
  .two-column,
  .dashboard-grid,
  .resume-page,
  .filter-bar { width: min(100% - 1rem, 1180px); }
  .hero-copy { min-height: 300px; padding: 1.2rem; }
  .hero-copy h1, .page-header h1, .philosophy h2 { font-size: 2rem; }
  .card-grid,
  .steps-grid,
  .dashboard-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .meta-grid { grid-template-columns: 1fr; }
  .requirement-list div { grid-template-columns: 1fr; }
  .footer-grid { gap: .75rem; }
}

@media print {
  .site-header,
  .site-footer,
  .print-button { display: none; }
  body { background: white; }
  .resume-page { box-shadow: none; border: none; margin: 0; width: 100%; }
}


.about-header p {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--blue-900);
}

.about-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 1rem;
  align-items: start;
}

.about-main,
.about-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-main {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.about-main p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.04rem;
}

.about-main p:first-child {
  color: var(--blue-900);
  font-weight: 800;
  font-size: 1.22rem;
}

.about-aside {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.about-aside img {
  width: min(210px, 70%);
  margin-inline: auto;
}

.about-aside h2 {
  color: var(--blue-900);
  margin: .4rem 0 0;
}

.about-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.about-aside li + li {
  margin-top: .55rem;
}

@media (max-width: 920px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .about-layout {
    width: min(100% - 1rem, 1180px);
  }
}


.profile-live-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-steps-panel,
.profile-step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.profile-steps-panel h2,
.profile-step-card h2 {
  margin-top: 0;
  color: var(--blue-900);
}

.profile-steps-panel nav {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.profile-steps-panel nav a {
  display: block;
  padding: .75rem;
  border-radius: 6px;
  background: var(--soft-blue);
  color: var(--blue-900);
  font-weight: 800;
}

.profile-steps-panel nav a.active {
  background: var(--blue-900);
  color: white;
}

.profile-steps-panel nav a.done::after {
  content: " salvo";
  color: var(--green-600);
  font-weight: 800;
}

.profile-progress {
  height: 10px;
  border-radius: 999px;
  background: #e4e9ef;
  overflow: hidden;
}

.profile-progress span {
  display: block;
  height: 100%;
  background: var(--gold-500);
}

.profile-form {
  box-shadow: none;
  border: 0;
  padding: 0;
}

.form-help {
  color: var(--muted);
  background: var(--soft-gold);
  border: 1px solid #f1d99a;
  border-radius: 6px;
  padding: .75rem;
}

.notice.compact {
  width: 100%;
  margin: 0 0 1rem;
}

@media (max-width: 920px) {
  .profile-live-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .profile-live-layout {
    width: min(100% - 1rem, 1180px);
  }
}


.completion-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: stretch;
}

.completion-hero > div,
.completion-hero > aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.completion-hero h1 {
  color: var(--blue-900);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: .4rem 0 1rem;
}

.completion-hero p,
.completion-hero li {
  color: var(--muted);
}

.completion-hero aside img {
  width: min(180px, 70%);
  margin: 0 auto 1rem;
}

.completion-hero aside h2 {
  color: var(--blue-900);
}

@media (max-width: 920px) {
  .completion-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .completion-hero {
    width: min(100% - 1rem, 1180px);
  }
}


.visibility-warning {
  background: var(--soft-gold);
  border-color: #f1d99a;
  color: #5a491c;
}
