/* Me After You — public site stylesheet.
   Warm cream background, deep green accents — matches the in-app theme
   (app/lib/core/theme/may_theme.dart seed colour #2F6B4F, "calm green —
   care, not fear"). Pure CSS, no build step, no external requests. */

:root {
  --cream: #faf3e7;
  --cream-deep: #f1e6d3;
  --card: #fffdf9;
  --line: #e2d4b8;
  --green: #2f6b4f;
  --green-dark: #1f4a37;
  --green-tint: #e4eee7;
  --ink: #241f19;
  --ink-soft: #55493c;
  --amber-bg: #fbe9d0;
  --amber-line: #dcb679;
  --amber-ink: #6b4a1c;
  --focus: #1a5c8a;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.25rem;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-dark);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.primary-nav a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}

.btn-secondary:hover {
  background: var(--green-tint);
}

.btn[aria-disabled="true"] {
  background: var(--cream-deep);
  color: var(--ink-soft);
  border-color: var(--line);
  cursor: not-allowed;
}

/* Hero */

.hero {
  padding: 56px 0 32px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-art {
    order: -1;
    max-width: 220px;
    margin: 0 auto;
  }
}

.hero-eyebrow {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-art {
  width: 100%;
  height: auto;
}

/* Sections */

section {
  padding: 48px 0;
}

.section-intro {
  max-width: 62ch;
  margin: 0 auto 32px;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
}

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

.security {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.honesty-note {
  max-width: 70ch;
  margin: 32px auto 0;
  background: var(--card);
  border: 1px dashed var(--green);
  border-radius: 14px;
  padding: 20px 24px;
}

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

/* Get the app */

.get-app {
  text-align: center;
}

.get-app .wrap {
  max-width: 720px;
}

.download-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 12px;
}

.ios-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--ink-soft);
  font-weight: 600;
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 55ch;
  margin: 20px auto 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* Draft / legal pages */

.legal-page main {
  padding: 40px 0 64px;
}

.legal-page .wrap.narrow {
  max-width: 760px;
}

.draft-banner {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-weight: 600;
}

.draft-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.legal-page h2 {
  margin-top: 2em;
}

.legal-page ul {
  padding-left: 1.3em;
}

.legal-page li {
  margin-bottom: 0.5em;
}

.updated-line {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- App tour (screenshots) ---------- */
.tour {
  background: var(--cream-deep);
}

.tour-strip {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tour-shot {
  flex: 0 0 auto;
  width: 232px;
  margin: 0;
  scroll-snap-align: start;
}

.phone {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(36, 31, 25, 0.12);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.tour-shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding: 0 0.25rem;
}

.tour-shot figcaption strong {
  color: var(--ink);
}

.tour-note {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
