/* Palam — palamapp.com — shared styles */

:root {
  --green: #0f6e56;
  --green-deep: #0b5743;
  --mint: #e1f5ee;
  --ink: #12211b;
  --muted: #44584f;
  --rule: #dcebe4;
  --bg: #fcfefd;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Header */
.site-header {
  padding: 22px 0;
}

.wordmark {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--green);
}

.wordmark:hover,
.wordmark:focus {
  text-decoration: none;
  color: var(--green-deep);
}

/* Landing */
.hero {
  padding: 44px 0 32px;
}

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
}

.lede + .lede {
  margin-top: 14px;
}

.lede.punch {
  font-weight: 800;
  color: var(--green-deep);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

.cta-row {
  margin-top: 6px;
}

.cta-row .btn {
  margin: 14px 0 10px;
}

.cta-row .muted {
  margin: 0;
}

/* Pillars */
.pillars-section {
  padding: 10px 0 8px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 14px;
}

.pillar {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 18px 18px 14px;
}

.pillar h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* How it works */
.how {
  padding: 26px 0 4px;
}

.how h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 14px 52px;
  color: var(--muted);
}

.steps li strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 2px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--mint);
  border-radius: 20px;
  padding: 28px 24px;
  margin: 16px 0 36px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

.card p {
  margin: 0 0 12px;
}

.card .steps {
  margin: 4px 0 14px;
}

.card .steps li {
  color: inherit;
}

.card .steps li::before {
  background: #ffffff;
}

.card p:last-child {
  margin-bottom: 0;
}

.contact {
  padding: 0 0 56px;
  color: var(--muted);
}

.contact strong {
  color: var(--ink);
  font-weight: 700;
}

/* Inner pages (privacy, terms, delete account) */
.page {
  padding: 12px 0 56px;
}

.page h1 {
  font-size: clamp(1.8rem, 6.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 20px 0 6px;
}

.page .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 26px;
}

.page h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}

.page p {
  margin: 0 0 14px;
}

.page ul,
.page ol {
  margin: 8px 0 16px;
  padding-left: 1.3rem;
}

.page li {
  margin: 6px 0;
}

.note {
  background: var(--mint);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0;
}

/* Policy table (terms page) */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.95rem;
}

.policy-table th {
  text-align: left;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 700;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  vertical-align: top;
}

/* Return page / 404 */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  margin: 20px 0 14px;
}

.btn:hover,
.btn:focus {
  background: var(--green-deep);
  color: #fff;
  text-decoration: none;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0 40px;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
}
