/* DeliNote – shared stylesheet */
:root {
  --bg:        #F5F3EF;
  --text:      #2E2E2E;
  --green:     #6F8461;
  --surface:   #E7E9DD;
  --card:      #A8B68C;
  --warm:      #D6C7B3;
  --radius:    16px;
  --font:      -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4em; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

/* ── Layout ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site nav ── */
.site-nav {
  background: var(--bg);
  border-bottom: 1.5px solid var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* ── Footer ── */
footer {
  background: var(--surface);
  margin-top: 80px;
  padding: 36px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.7;
}
footer a { color: var(--green); }
footer .footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

/* ── Cards / surfaces ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.card-warm {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 24px 28px;
}

/* ── Hero (home page) ── */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
}
.hero h1 { margin-bottom: 16px; }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.75;
  max-width: 480px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Screenshots strip ── */
.screenshots {
  padding: 48px 0;
  overflow: hidden;
}
.screenshots-track {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.screenshots-track img {
  height: 280px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  object-fit: contain;
  background: transparent;
}

/* ── Features ── */
.features {
  padding: 48px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.feature-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}
.feature-item h3 { font-size: 0.95rem; }
.feature-item p { font-size: 0.85rem; opacity: 0.7; margin: 0; }

/* ── Inner pages ── */
.page-header {
  padding: 56px 0 32px;
  border-bottom: 1.5px solid var(--surface);
  margin-bottom: 40px;
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-header .meta {
  font-size: 0.82rem;
  opacity: 0.5;
  margin-top: 8px;
}

.prose section {
  margin-bottom: 40px;
}
.prose section h2 {
  color: var(--green);
  border-bottom: 1.5px solid var(--surface);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Support callout */
.support-callout {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
  text-align: center;
}
.support-callout h2 { color: var(--green); margin-bottom: 8px; }
.support-callout a.btn { margin-top: 12px; }

/* Warning box */
.warning-box {
  background: #fff8ec;
  border-left: 4px solid #c97c2f;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.82rem; }
  .screenshots-track img { height: 200px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 32px; }
}
