:root {
  --paper: #fbf8f1;
  --panel: #fffdf8;
  --ink: #2d261d;
  --muted: #6e6559;
  --line: rgba(75, 62, 42, 0.18);
  --forest: #435b3a;
  --sea: #346d76;
  --sun: #b98535;
  --sky: #e8f0ec;
  --shadow: rgba(45, 38, 29, 0.13);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.88), rgba(251, 248, 241, 0.96)),
    radial-gradient(circle at 12% 8%, rgba(52, 109, 118, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(185, 133, 53, 0.2), transparent 24rem),
    linear-gradient(135deg, #e2d5c0 0%, #f7f2e8 55%, #d9e2d8 100%);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.template-shell {
  min-height: 100vh;
}

.template-hero {
  padding: 22px clamp(18px, 4vw, 60px) 64px;
}

.template-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1120px, 100%);
  margin: 0 auto 48px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 38px var(--shadow);
  backdrop-filter: blur(16px);
}

.template-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 9px;
  color: #3f3528;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.template-nav a:hover {
  color: var(--sea);
  background: rgba(52, 109, 118, 0.08);
}

.hero-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
  margin: 0 auto;
}

.hero-copy,
.privacy-card,
.section,
.note-panel,
.phase-grid article,
.use-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 48px var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: #30281d;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
}

.hero-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
}

.primary-action {
  color: white;
  background: linear-gradient(135deg, var(--sea), var(--forest));
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--sea);
  background: #fffaf0;
}

.privacy-card {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(67, 91, 58, 0.1), rgba(52, 109, 118, 0.16)),
    var(--panel);
}

.privacy-card span,
.metric-card span,
.phase-grid span {
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-card strong {
  margin-top: 10px;
  color: var(--sea);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.privacy-card p,
.section-heading p,
.metric-card p,
.phase-grid p,
.note-panel li,
.use-list p {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 24px;
  padding: clamp(24px, 4vw, 42px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.section-heading p {
  margin: 14px 0 0;
}

.metric-grid,
.phase-grid,
.tracker-grid,
.use-list {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--sea);
  font-size: 2.6rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 4px;
  color: var(--sun);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 22px;
}

.table-card {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #3f3528;
  background: var(--sky);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.note-panel {
  padding: 24px;
  box-shadow: none;
}

.note-panel h3 {
  margin-bottom: 12px;
}

.note-panel ul {
  margin: 0;
  padding-left: 20px;
}

.phase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phase-grid article,
.use-list article {
  padding: 20px;
  box-shadow: none;
}

.phase-grid h3,
.use-list h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}

.tracker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tracker-grid label {
  display: grid;
  gap: 8px;
  color: #3f3528;
  font-weight: 800;
}

.tracker-grid input,
.tracker-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf0;
}

.tracker-grid textarea {
  min-height: 116px;
  resize: vertical;
}

.tracker-grid label:last-child {
  grid-column: 1 / -1;
}

.use-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .template-hero {
    padding-inline: 16px;
  }

  .hero-layout,
  .split-section,
  .metric-grid,
  .phase-grid,
  .tracker-grid,
  .use-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 16vw, 4.6rem);
  }

  .privacy-card {
    min-height: auto;
  }
}
