/* Touching Green — shared site styles. Reskinned from the Diemo legal-pages template,
   using the app's own green/paper palette instead of Diemo's blue. */

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

:root {
  --green: #4E9E3E;
  --green-light: #9BDD62;
  --green-dark: #2F6B24;
  --ink: #2E2A1E;
  --muted: #6e6e73;
  --paper: #F6F1E4;
  --paper-tint: #EEF6E4;
  --card: #ffffff;
  --border: #f0f0ec;
  color-scheme: light;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--green-dark); }
a:hover { opacity: .75; }

.container { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.container.wide { max-width: 960px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--green-dark);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 2rem;
  font-weight: 600;
}
.back:hover { text-decoration: underline; opacity: 1; }

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 20px rgba(46, 42, 30, .07);
}

.badge {
  display: inline-block;
  background: var(--paper);
  color: var(--muted);
  border-radius: 6px;
  padding: .25rem .6rem;
  font-size: .78rem;
  margin: 0 .4rem .8rem 0;
  font-weight: 600;
}

h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: .5rem; }

.meta {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

h2 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--ink); }
h3 { font-size: .95rem; font-weight: 700; margin: 1.2rem 0 .5rem; }

p { margin-bottom: .9rem; font-size: .95rem; }
p:last-child { margin-bottom: 0; }

.highlight {
  background: var(--paper-tint);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: .9rem 1rem;
  margin: 1rem 0 1.5rem;
  font-size: .93rem;
}

ul { margin: .5rem 0 .9rem 1.3rem; font-size: .95rem; }
li { margin-bottom: .35rem; }

.contact-box {
  background: var(--paper);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: .9rem;
  margin-top: .5rem;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- Landing hub / legal hub cards ---- */

.hub-card {
  background: var(--card);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 2px 20px rgba(46, 42, 30, .08);
  text-align: center;
  margin: 0 auto;
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 16px rgba(46, 42, 30, .15);
}

.hub-card h1 { font-size: 1.8rem; }
.subtitle { color: var(--muted); font-size: .95rem; margin-bottom: 2.5rem; }

.doc-list { list-style: none; text-align: left; }
.doc-list li { border-bottom: 1px solid var(--border); }
.doc-list li:last-child { border-bottom: none; }

.doc-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem .5rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity .15s;
}
.doc-list a:hover { opacity: .65; }

.doc-icon {
  width: 40px;
  height: 40px;
  background: var(--paper);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.doc-info { flex: 1; }
.doc-title { font-weight: 700; font-size: .95rem; }
.doc-lang { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.chevron { color: #c7c7cc; font-size: 1.1rem; }

footer.site-footer {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}
footer.site-footer a { color: var(--muted); text-decoration: underline; }

/* ---- Landing page specific ---- */

.hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}
.hero .app-icon { width: 96px; height: 96px; }
.hero h1 { font-size: 2.4rem; margin-bottom: .6rem; }
.hero .tagline { color: var(--muted); font-size: 1.15rem; max-width: 480px; margin: 0 auto 2rem; }

.store-badges { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.store-badge:hover { opacity: .85; }
.coming-soon-note { color: var(--muted); font-size: .82rem; margin-top: .3rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.feature-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 16px rgba(46, 42, 30, .06);
}
.feature-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.feature-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.feature-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.screenshots {
  max-width: 960px;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}
.screenshots h2 { text-align: center; margin-bottom: 1.5rem; }
.screenshot-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}
.screenshot-placeholder {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, var(--paper-tint), var(--paper));
  border: 2px dashed #c9c29a;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  padding: 1rem;
}
.screenshot-row img {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(46,42,30,.15);
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-band h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---- Help page / contact form ---- */

.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { margin-bottom: .3rem; }
.faq-item p { color: var(--muted); }

form.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid #ddd8c4;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.form-field textarea { min-height: 140px; }

button.submit-btn {
  align-self: flex-start;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .8rem 1.6rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
button.submit-btn:hover { opacity: .88; }
button.submit-btn:disabled { opacity: .5; cursor: default; }

.form-status {
  font-size: .88rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  display: none;
}
.form-status.success { display: block; background: var(--paper-tint); border-left: 3px solid var(--green); color: var(--green-dark); }
.form-status.error { display: block; background: #fff0f0; border-left: 3px solid #c0392b; color: #c0392b; }

.setup-note {
  background: #fff9f0;
  border-left: 3px solid #ff9500;
  border-radius: 0 8px 8px 0;
  padding: .9rem 1rem;
  margin: 1.5rem 0;
  font-size: .85rem;
  color: #3a3a3c;
}
