/* check-in.css — Oneness Lifestyles · the gentle check-in (unit U-05).
   A quiet moment to notice how you feel, and a gentle way to meet it.
   Palette tokens are byte-identical to the frozen reference
   (captures/site/styles.css). WCAG: text >= 18px, contrast >= 4.5:1,
   touch targets >= 44px, keyboard reachable, focus visible,
   reduced-motion honored. */

/* ---------- Brand palette (from captures/site/styles.css, byte-identical) ---------- */
:root {
  --brand-blue: #283890;   /* deep blue — primary (theme-color) */
  --brand-green: #6dbc45;  /* vibrant lime green — accent CTA */
  --brand-sand: #c1a178;   /* warm sand — accent */
  --brand-teal: #25c4b8;   /* fun accent */
  --brand-pink: #ff4d8d;   /* fun accent */
  --bg: #f7faff;           /* page background */
  --surface: #ffffff;      /* cards / surfaces */
  --text: #141414;         /* body text */
  --text-2: #3f3f3f;       /* secondary text */
  --line: #dfe5f6;         /* soft blue-grey divider */

  /* WCAG-safe derivations (frozen tokens above are unchanged) */
  --brand-green-deep: #5fae3d;  /* green pill hover (from reference CSS) */
  --brand-green-text: #357a24;  /* link green, >= 4.5:1 on white/surface */
  --brand-sand-light: #e0cbaa;  /* footer link sand, >= 4.5:1 on brand blue */
  --brand-teal-text: #0a6b63;   /* dark teal kicker, >= 4.5:1 on white */
}

/* ---------- Base / reset ---------- */
* {
  box-sizing: border-box;
}

html {
  font-size: 18px;   /* WCAG: root 18px so 1rem = 18px and no text falls below the floor */
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;   /* WCAG: base text >= 18px */
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Accessibility: visible focus + skip link ---------- */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

.site-footer :focus-visible {
  outline-color: var(--brand-sand-light);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  display: inline-block;
  padding: 12px 20px;
  min-height: 44px;
  background-color: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus-visible {
  left: 0;
  outline-offset: 0;
}

/* ---------- Layout container ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background-color: var(--surface);
  border-bottom: 4px solid var(--brand-sand);
}

.site-name {
  margin: 1em 0;
  color: var(--brand-blue);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.site-name a {
  display: inline-block;
  padding: 10px 0;          /* WCAG: comfortable touch target */
  color: var(--brand-blue); /* >= 4.5:1 on white */
  text-decoration: none;
}

.site-name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Check-in hero ---------- */
.check-hero {
  text-align: center;
  padding: 48px 20px 20px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(37, 196, 184, 0.24), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 77, 141, 0.16), transparent 55%),
    linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}

.check-kicker {
  margin: 0 0 12px;
  font-size: 1rem;                /* 18px, >= WCAG floor */
  letter-spacing: 0.14em;
  color: var(--brand-teal-text);  /* >= 4.5:1 on bg */
}

.check-heading {
  margin: 0 0 14px;
  font-size: 2.2rem;
  color: var(--brand-blue);       /* >= 4.5:1 on bg */
}

.check-lede {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-2);           /* >= 4.5:1 on bg */
}

/* ---------- Check-in section / card ---------- */
.check-section {
  padding: 28px 20px 72px;
}

.check-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
}

.check-card-heading {
  margin: 0 0 20px;
  font-size: 1.5rem;               /* 27px */
  color: var(--brand-blue);        /* >= 4.5:1 on white */
}

/* ---------- The six gentle words ---------- */
.word-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.word-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 68px;               /* WCAG: touch target >= 44px */
  padding: 14px 18px;
  font-family: inherit;
  text-align: left;
  background-color: var(--surface);
  border: 2px solid var(--line);
  border-left: 6px solid var(--brand-blue);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.word-tile:hover,
.word-tile:focus-visible {
  border-color: var(--brand-sand);
  box-shadow: 0 2px 12px rgba(40, 56, 144, 0.14);
}

.word-name {
  font-size: 1.25rem;              /* 22.5px */
  font-weight: bold;
  color: var(--brand-blue);        /* ~10:1 on white */
}

.word-line {
  margin-top: 2px;
  font-size: 1rem;                 /* 18px, >= WCAG floor */
  color: var(--text-2);            /* ~10:1 on white */
}

/* ---------- Gentle suggestion ---------- */
.suggestion {
  margin-top: 24px;
  padding: 22px 24px;
  background-color: var(--bg);
  border-left: 6px solid var(--brand-green);
  border-radius: 12px;
}

.suggestion-heading {
  margin: 0 0 8px;
  font-size: 1.3rem;               /* 23.4px */
  color: var(--brand-blue);        /* ~9:1 on bg */
}

.suggestion-copy {
  margin: 0 0 16px;
  color: #33443f;                  /* 10.3:1 on bg */
}

.suggestion-actions {
  margin: 0;
}

/* ---------- Links ---------- */
a {
  color: var(--brand-green-text);  /* 5.3:1 on white */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Primary button (open the guide) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;               /* WCAG: touch target >= 44px */
  padding: 12px 30px;
  border-radius: 999px;
  background-color: var(--brand-green);
  color: var(--text);             /* 7.8:1 on brand green */
  font-weight: bold;
  text-decoration: none;
  font-size: 1.125rem;            /* >= 18px */
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--brand-green-deep);
}

/* ---------- Choose another word ---------- */
.suggestion-again {
  margin: 14px 0 0;
}

.suggestion-again a {
  display: inline-block;
  padding: 12px 4px;              /* WCAG: comfortable touch target */
  color: var(--brand-green-text);
  font-weight: bold;
}

/* ---------- Note + back link ---------- */
.check-note {
  margin: 24px 0 0;
  color: var(--text-2);           /* ~10:1 on white */
}

.check-back {
  margin: 12px 0 0;
}

.check-back a {
  display: inline-block;
  padding: 12px 0;               /* WCAG: comfortable touch target */
  color: var(--brand-green-text);
  font-weight: bold;
}

/* ---------- No-script fallback ---------- */
.check-noscript {
  margin: 24px 0 0;
  color: var(--text-2);
}

.check-noscript ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.check-noscript li {
  margin: 6px 0;
}

.check-noscript a {
  display: inline-block;
  padding: 12px 0;               /* WCAG: comfortable touch target */
  color: var(--brand-green-text);
  font-weight: bold;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 24px;
  background-color: var(--brand-blue);
  color: #e7ebfa;      /* >= 4.5:1 on brand blue */
  text-align: center;
  font-size: 1rem;     /* 1rem = 18px (root is 18px); >= WCAG floor */
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-block;
  padding: 8px 4px;
  color: var(--brand-sand-light);  /* >= 4.5:1 on brand blue */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Small print: the gentle medical note at the foot of every page. */
.site-footer p.footer-note {
  margin: 10px auto 0;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: var(--brand-sand-light);  /* on brand blue, same as links */
  max-width: 34em;
}

/* ---------- Responsive (mobile-first; text never below 18px) ---------- */
@media (min-width: 600px) {
  .word-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .check-hero {
    padding: 72px 24px 24px;
  }
  .check-heading {
    font-size: 2.8rem;
  }
  .check-section {
    padding: 36px 24px 96px;
  }
  .check-card {
    padding: 44px 40px;
  }
  .word-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------- JS reveal (only active when JS is on) ---------- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
