:root {
  --navy: #111d3d;
  --blue: #244da3;
  --gold: #e8bd4a;
  --gold-soft: #fff4c7;
  --ink: #17213d;
  --muted: #68728a;
  --line: #dfe5f1;
  --paper: #f6f8fc;
  --white: #ffffff;
  --green: #128c7e;
  --shadow: 0 20px 56px rgba(17, 29, 61, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(17, 29, 61, 0.96);
  border-bottom: 1px solid rgba(232, 189, 74, 0.28);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.crest {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: "Libre Baskerville", serif;
  font-size: 1.08rem;
}

.brand small {
  color: var(--gold-soft);
}

.nav-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-btn,
.btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
}

.icon-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--blue);
}

.btn.whatsapp {
  background: var(--green);
}

.btn.subtle {
  color: var(--navy);
  background: #edf2fb;
}

.hero {
  color: var(--white);
  background:
    linear-gradient(rgba(17, 29, 61, 0.88), rgba(17, 29, 61, 0.94)),
    linear-gradient(135deg, #192c61, #244da3);
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", serif;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: 4.4rem;
}

h2 {
  font-size: 1.7rem;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.hero-card,
.panel,
.stat-card,
.reminder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  background: var(--white);
  color: var(--ink);
  padding: 24px;
}

.hero-card span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.hero-card strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: 2rem;
}

.toolbar {
  margin-top: -28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd5e6;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.stats-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--white);
  padding: 20px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--blue);
}

.layout {
  margin-top: 24px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--white);
  padding: 22px;
}

.panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reminder-list {
  display: grid;
  gap: 14px;
}

.reminder-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #ffffff;
}

.date-box {
  min-height: 76px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--navy);
  color: var(--white);
}

.date-box span {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.date-box strong {
  font-size: 2rem;
  line-height: 1;
}

.reminder-main {
  min-width: 0;
}

.reminder-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue);
  background: #edf2fb;
  font-size: 0.78rem;
  font-weight: 900;
}

.meta,
.message-preview {
  color: var(--muted);
}

.message-preview {
  margin: 10px 0 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .layout,
  .toolbar,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 3.2rem;
  }

  .layout,
  .toolbar .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav,
  .panel-head,
  .reminder-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .toolbar,
  .stats-grid,
  .layout,
  .reminder-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.55rem;
  }

  .brand small {
    display: none;
  }

  .actions .btn {
    width: 100%;
  }
}
