/* WorkedEnough — one stylesheet for three pages. Brand colours come straight
   from the app: MinimalView.swift's teal and App.swift's mint. */

:root {
  --teal: #164a3e;
  --teal-bright: #1f6a58;
  --mint: #dbe8e3;
  --ink: #111315;
  --muted: #6b7280;
  --bg: #ffffff;
  --rule: #e5e7eb;
  --panel: #f7f9f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #7fd3bb;
    --teal-bright: #a5e5d1;
    --mint: #16261f;
    --ink: #e8ebe9;
    --muted: #9aa4a0;
    --bg: #0e1211;
    --rule: #232b28;
    --panel: #141a18;
  }
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections carry the rhythm; Flow's minimalism is mostly space. */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--rule); }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.35em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-bright); }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.muted { color: var(--muted); }

small, .small { font-size: 0.9rem; }

/* Hero */
.hero {
  text-align: center;
  padding: 5.5rem 0 4.5rem;
}

.hero img.icon {
  width: 104px;
  height: 104px;
  margin-bottom: 1.5rem;
}

.hero .lede { margin: 0 auto 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--bg);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: var(--teal-bright); color: var(--bg); }

.btn.ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--rule);
}

.btn.ghost:hover { border-color: var(--teal); background: transparent; }

.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
}

.pillars p { font-size: 0.97rem; color: var(--muted); }

/* Feature list */
.feature + .feature { margin-top: 3.5rem; }

.feature p { color: var(--muted); }

/* Pricing */
.price {
  background: var(--mint);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
}

.price .amount {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--teal);
  margin-bottom: 0.2em;
}

.price p { color: var(--ink); }

/* Legal and support pages */
.doc h2 { margin-top: 2.5rem; font-size: 1.25rem; }
.doc h2:first-of-type { margin-top: 1.5rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--panel);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--teal); }

footer .links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* Back link on subpages */
.back {
  display: inline-block;
  margin: 2.5rem 0 0;
  font-size: 0.92rem;
  text-decoration: none;
}
