/* myso legal site — matches the app design system (docs/myso-design-system.md) */

:root {
  --bg: #FDF9F6;          /* cream */
  --accent: #D85A30;      /* terracotta */
  --accent-dark: #993C1D; /* terracotta dark text */
  --accent-border: #F0997B;
  --accent-tint: #FAECE7;
  --card: #FFFFFF;
  --card-border: #D3D1C7;
  --text: #2C2C2A;
  --text-secondary: #888780;
  --divider: #F1EFE8;
  --placeholder: #B4B2A9;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

/* Header / wordmark */
header.site {
  position: relative;
  padding: 32px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}
.wordmark img {
  height: 30px;
  width: auto;
  display: block;
}

.back {
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}
.back:hover { color: var(--accent); }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  margin-top: 24px;
}

h1 {
  font-size: 28px;
  margin: 0 0 4px;
  color: var(--text);
}

.meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 24px;
}

h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--divider);
  color: var(--accent-dark);
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--text);
}

p, li { color: var(--text); }

a { color: var(--accent); }

ul { padding-left: 22px; }
li { margin: 6px 0; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
th {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 600;
}

/* Placeholder highlight — replace these before going live */
mark.ph {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px dashed var(--accent-border);
  border-radius: 6px;
  padding: 0 5px;
  font-size: 0.92em;
}

.legal-emphasis { font-weight: 600; }

footer.site {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 40px;
}
footer.site a { color: var(--text-secondary); }

/* ---------------------------------------------------------------------------
   Landing page (base index.html) — centered hero on a warm gradient
   --------------------------------------------------------------------------- */
body.landing {
  margin: 0;
  min-height: 100vh;
  background: #e06a42;
  background-attachment: fixed;
  color: var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}



.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 56px);
}

/* Text block — always above the phone, centered */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-wordmark {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.hero-wordmark img {
  width: clamp(140px, 15vw, 160px);
  height: auto;
  display: block;
  /* recolor the terracotta logo to cream so it reads on the background */
  filter: brightness(0) invert(1);
}

.hero-tagline {
  font-family: "Quicksand", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #f1f1f1;
  margin: 28px 0 32px;
  opacity: 0.95;
}

.appstore {
  display: inline-block;
}
.appstore img {
  height: 52px;
  width: auto;
  display: block;
}

.hero-phone {
  flex: 0 0 auto;
  width: min(250px, 70vw);
  height: auto;
  display: block;
}

.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 48px;
  color: var(--bg);
  font-family: "Quicksand", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.landing-footer a {
  color: var(--bg);
  text-decoration: none;
  opacity: 0.9;
}
.landing-footer a:hover { opacity: 1; text-decoration: underline; }
.landing-footer span { margin: 0 8px; opacity: 0.5; }
.landing-footer .copyright {
  margin: 12px 0 0;
  font-size: 13px;
  color: #f0f0f0;
  opacity: 0.7;
}

/* Landing page link cards */
.doc-links { margin-top: 24px; display: grid; gap: 10px; }
.doc-link {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
}
.doc-link:hover { border-color: var(--accent-border); }
.doc-link strong { color: var(--accent-dark); font-size: 18px; }
.doc-link span { display: block; color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
