/* ============================================================
   Coach Riley — shared stylesheet
   Used by: index.html, privacy.html, landing.html
   ============================================================ */

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

/* ----- Base ----- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F9F7F5;
  color: #2D2D2D;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 4rem;
}

/* ----- Card ----- */
.card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid #D5CEC4;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 440px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Logo ----- */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.logo-wrap img {
  height: 180px;
  width: auto;
}

/* ----- Links ----- */
a { color: #3B8574; }

/* ============================================================
   Signup page (index.html)
   ============================================================ */

.beta-badge {
  display: block;
  text-align: center;
  margin-bottom: 0.4rem;
}

.beta-badge span {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #5A6A70;
  border: 1px solid #D5CEC4;
  background: transparent;
  border-radius: 9999px;
  padding: 0.25em 0.7em;
}

.heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #2D2D2D;
  text-align: center;
  margin-bottom: 0.4rem;
}

.heading .accent { color: #D68C7A; }

.subheading {
  font-size: 0.95rem;
  color: #5A6A70;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.field { margin-bottom: 1.35rem; }

label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5A6A70;
  margin-bottom: 0.45rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 1px solid #D5CEC4;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2D2D2D;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: #B0ADA8; }

input:focus, textarea:focus, select:focus {
  border-color: #3B8574;
  box-shadow: 0 0 0 3px rgba(59, 133, 116, 0.12);
}

textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #3B8574;
  pointer-events: none;
}

select {
  cursor: pointer;
  padding-right: 2.5rem;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  padding: 0;
  border-radius: 4px;
  border: 1.5px solid #D5CEC4;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 133, 116, 0.2);
}

input[type="checkbox"]:checked {
  background: #3B8574;
  border-color: #3B8574;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -60%) rotate(45deg);
}

select option[value=""] { color: #B0ADA8; }

.input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #D5CEC4;
  border-radius: 12px;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-prefix-wrap:focus-within {
  border-color: #3B8574;
  box-shadow: 0 0 0 3px rgba(59, 133, 116, 0.12);
}

.input-prefix {
  padding: 0.75rem 0 0.75rem 1rem;
  color: #5A6A70;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  user-select: none;
}

.input-prefix-wrap input {
  border: none;
  box-shadow: none;
  border-radius: 0 12px 12px 0;
  padding-left: 0.25rem;
  flex: 1;
}

.input-prefix-wrap input:focus {
  border: none;
  box-shadow: none;
}

.hint {
  font-size: 0.75rem;
  color: #8E9196;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.divider {
  border: none;
  border-top: 1px solid #D5CEC4;
  margin: 2rem 0;
}

.form-section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8E9196;
  margin: 2rem 0 1.5rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid #EDE8E3;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: #3B8574;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.submit-btn:hover { background: #2F6E60; }

.submit-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 133, 116, 0.3);
}

.strava-connect-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  transition: opacity 0.2s;
}

.strava-connect-btn:hover { opacity: 0.85; }

.strava-connect-btn:focus-visible {
  outline: 3px solid rgba(252, 82, 0, 0.4);
  border-radius: 4px;
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #8E9196;
}

.trust svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ============================================================
   Privacy policy page (privacy.html)
   ============================================================ */

.privacy .card {
  max-width: 640px;
  padding: 2.5rem 2rem;
}

.privacy .logo-wrap img { height: 80px; }

.privacy h1 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 1.75rem;
}

.privacy h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
}

.privacy p, .privacy li {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
}

.privacy ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.privacy li { margin-bottom: 0.25rem; }

.updated {
  font-size: 0.8rem;
  color: #9CA3AF;
  text-align: center;
  margin-bottom: 1.5rem;
}

.back {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: #3B8574;
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.back:hover { opacity: 0.88; }

/* ============================================================
   Landing page (landing.html)
   ============================================================ */

body.landing {
  display: block;
  padding: 0;
  background: #F9F7F5;
}

.landing-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #EDE8E3;
  background: #FFFFFF;
}

.landing-logo {
  height: 48px;
  width: auto;
}

.landing-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-hero {
  padding: 5rem 0 4rem;
  background: #FFFFFF;
  border-bottom: 1px solid #EDE8E3;
}

.landing-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #2D2D2D;
  margin-bottom: 1rem;
  max-width: 600px;
}

.landing-headline .accent { color: #D68C7A; }

.landing-sub {
  font-size: 1.1rem;
  color: #5A6A70;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.invite-form { max-width: 420px; }

.invite-row {
  display: flex;
  gap: 0.5rem;
}

.invite-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D5CEC4;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2D2D2D;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  width: auto;
}

.invite-input::placeholder { color: #B0ADA8; }

.invite-input:focus {
  border-color: #3B8574;
  box-shadow: 0 0 0 3px rgba(59, 133, 116, 0.12);
}

.invite-btn {
  padding: 0.75rem 1.25rem;
  background: #3B8574;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.invite-btn:hover { background: #2F6E60; }

.invite-error {
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 0.4rem;
}

.invite-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #8E9196;
}

.invite-hint a { color: #3B8574; }

.landing-how {
  padding: 4rem 0;
  background: #F9F7F5;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #2D2D2D;
  margin-bottom: 2.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  background: #FFFFFF;
  border: 1px solid #D5CEC4;
  border-radius: 16px;
  padding: 1.75rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  background: #3B8574;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2D2D2D;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: #5A6A70;
  line-height: 1.6;
}

.landing-features {
  padding: 4rem 0;
  background: #FFFFFF;
  border-top: 1px solid #EDE8E3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid #EDE8E3;
  border-radius: 16px;
  background: #F9F7F5;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2D2D2D;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.82rem;
  color: #5A6A70;
  line-height: 1.6;
}

.landing-footer {
  padding: 2rem 0;
  background: #F9F7F5;
  border-top: 1px solid #EDE8E3;
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
