/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f5f4f2;
    --color-text: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #686868;
    --color-border: #d8d7d3;
    --color-border-light: #e8e7e3;
    --color-accent: #3a3a38;
    --color-accent-hover: #1a1a1a;
    --color-card-bg: #ffffff;
    --color-error: #b8463a;
    --color-accent-secondary: #d3af37;
    
    --font-serif: 'Crimson Pro', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    
    --max-width: 720px;
    --radius-sm: 8px;
    --radius-md: 12px;
}

.accent-secondary {
    color: var(--color-accent-secondary);
}

/* Visually hidden utility for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.006) 2px,
            rgba(0, 0, 0, 0.006) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* Header */

.site-header {
    background-color: rgba(250, 249, 247, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
}

.header-content {
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wordmark-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.img {
    display: block;
    max-width: 100px;
    height: auto;
    margin: 0;
    padding: 0;
}

.wordmark {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-text);
    line-height: 1.1;
}

.wordmark-descriptor {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1;
}

.header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
}

.header-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--color-text);
}

.header-nav a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.platform-label {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border-light);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
}

/* Typography */

h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.875rem;
    color: var(--color-accent) !important;
}

.shape-card h3 {
    color: var(--color-accent-secondary) !important;
}

.contrast-card h2 {
    color: var(--color-accent) !important;
}

h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--color-accent-secondary);
}

p {
    margin-bottom: 1rem;
}

/* Sections */

section {
    margin-bottom: 3.5rem;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3.5rem 0;
}

/* Hero */

.hero {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
}

.hero-constraint {
    color: var(--color-accent);
}

.hero-container {
    max-width: 560px;
    margin: 0 auto;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
    font-weight: 400;
}


/* Forms */

.email-form {
    margin: 0 auto;
}

.form-wrapper {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-align: left;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(58, 58, 56, 0.08);
}

input[type="email"]:disabled {
    background: var(--color-bg-alt);
    cursor: not-allowed;
    opacity: 0.6;
}

button[type="submit"] {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    background: var(--color-accent) !important;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
    white-space: nowrap;
}

button[type="submit"]:hover:not(:disabled) {
    background: var(--color-accent-hover);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(1px);
}

button[type="submit"]:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button[type="submit"]:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
}

.form-helper {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: left;
    margin: 0;
}


/* Explanation */

.explanation {
    text-align: center;
}

.explanation-body {
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

.explanation-body p {
    margin-bottom: 1.5rem;
}

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

/* Product Shape */

.product-shape {
    text-align: center;
}

.product-intro {
    max-width: 560px;
    margin: 0 auto 2.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.shape-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.25rem;
}

.section-kicker {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.shape-intro {
    color: var(--color-accent);
}

.shape-card {
    text-align: left;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.shape-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.shape-card h3 {
    margin-bottom: 0.875rem;
}

.shape-card p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Preview */

.preview {
    text-align: center;
}

.preview-container {
    max-width: 580px;
    margin: 2rem auto 0;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.04);
}

.preview-block {
  text-align: left;
  margin-bottom: 2rem;
}

.preview-block:last-child {
  margin-bottom: 0;
}

.preview-block h4 {
  margin-bottom: 0.75rem;
}

.preview-text {
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
  transition: opacity 320ms ease, transform 320ms ease;
  will-change: opacity, transform;
}

/* Fade transition for content changes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.held-day[data-animating="true"] .preview-text {
  animation: fadeIn 320ms ease forwards;
}

/* ===== Scripture quote: centered, timeless, independent ===== */

.scripture-text {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--color-text);

  padding: 2.2rem 2rem 2rem;
  border-radius: 18px;

  /* neutral paper — NOT phase-tinted */
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.018),
      rgba(0,0,0,0.002) 60%
    );

  border: 1px solid var(--color-border);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.045);

  transition: box-shadow 320ms ease, border-color 320ms ease;
}

/* Opening quote */
.scripture-text::before {
  content: "“";
  position: absolute;
  left: 1.15rem;
  top: 0.6rem;

  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1;

  color: var(--color-accent-secondary);
  opacity: 0.35;
}

/* Closing quote (NEW) */
.scripture-text::after {
  content: "”";
  position: absolute;
  right: 1.15rem;
  bottom: 0.6rem;

  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1;

  color: var(--color-accent-secondary);
  opacity: 0.35;
}

.scripture-text p {
  margin: 0 0 1.2rem;
}

.scripture-text p:last-of-type {
  margin-bottom: 0;
}

/* Citation: quiet, grounded, not decorative */
.scripture-text cite {
  display: block;
  margin-top: 1.4rem;

  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  opacity: 0.85;
}

/* Phrase emphasis stays brand-gold, independent of card color */
.held-scripture [data-phrase].is-accent {
  color: var(--color-accent-secondary);
  font-weight: 600;
  transition: color 260ms ease, opacity 260ms ease;
}

.held-scripture [data-phrase].is-dim {
  opacity: 0.32;
}

/* Mobile tuning */
@media (max-width: 480px) {
  .scripture-text {
    font-size: 1.2rem;
    padding: 1.8rem 1.4rem 1.6rem;
    border-radius: 16px;
  }

  .scripture-text::before,
  .scripture-text::after {
    font-size: 3.0rem;
  }

  .scripture-text::before {
    left: 0.85rem;
    top: 0.5rem;
  }

  .scripture-text::after {
    right: 0.85rem;
    bottom: 0.5rem;
  }
}

.preview-text {
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Contrast section */
.contrast {
  margin-top: 0.5rem;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Base card */
.contrast-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Subtle header rule + top accent */
.contrast-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
}

/* Slightly different personality per card (still quiet) */
.contrast-card:first-child {
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0)) , var(--color-card-bg);
}

.contrast-card:last-child {
  background: linear-gradient(180deg, rgba(0,0,0,0.012), rgba(0,0,0,0)) , var(--color-card-bg);
}

/* Make the heading feel like a card title, not a section title */
.contrast-card h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* Upgraded list styling */
.contrast-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.contrast-card li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Custom bullet marker, no em dash */
.contrast-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.03);
}

/* Slight differentiation for "not" bullets: hollow marker */
.contrast-card:last-child li::before {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

/* Responsive */
@media (max-width: 768px) {
  .contrast-grid {
    grid-template-columns: 1fr;
  }

  .contrast-card {
    padding: 1.75rem;
  }
}


/* FAQ Section */

.faq {
    text-align: center;
}

.faq-list {
    max-width: 580px;
    margin: 2rem auto 0;
    text-align: left;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--color-text);
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.faq-item ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin-top: 0.875rem;
    margin-bottom: 0;
}

.faq-item li {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.625rem;
    padding-left: 0.25rem;
}

.faq-item li:last-child {
    margin-bottom: 0;
}

.faq-item li::marker {
    color: var(--color-text-muted);
}

/* Privacy Page */

.privacy-content {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.privacy-body {
    text-align: left;
    color: var(--color-text-secondary);
    margin-top: 2rem;
}

.privacy-body p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.privacy-body a {
    color: var(--color-accent-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy-body a:hover {
    border-bottom-color: var(--color-accent-secondary);
}

/* Closing */

.closing {
    text-align: center;
}

.closing-container {
    max-width: 540px;
    margin: 0 auto;
}

.closing-headline {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.closing-body {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

.closing-body p {
    margin-bottom: 0.875rem;
}

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

/* Footer */

footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3.5rem;
    border-top: 1px solid var(--color-border);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.footer-trust {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-links a:hover {
    border-bottom-color: var(--color-text-muted);
}

.footer-domain {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* Scroll behavior */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Override sticky header on mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 0;
    }
    
    .site-header {
        position: relative !important;
    }
}

/* Responsive */

@media (max-width: 768px) {
    .header-content {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
        gap: 1.25rem;
    }
    
    .platform-label {
        padding-left: 1rem;
    }
    
    main {
        padding: 2.5rem 1.25rem 2rem;
    }
    
    .hero {
        padding: 1rem 0 2rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-subheadline {
        font-size: 1.0625rem;
    }
    
    h2 {
        font-size: 1.625rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    button[type="submit"] {
        width: 100%;
    }
    
    .contrast-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .section-divider {
        margin: 2.75rem 0;
    }
    
    section {
        margin-bottom: 2.75rem;
    }
    
    .preview-container {
        padding: 1.75rem;
    }
    
    .shape-card {
        padding: 1.5rem;
    }
    
    .contrast-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 1rem;
    }
    
    .header-nav a {
        font-size: 0.875rem;
    }
    
    .platform-label {
        font-size: 0.75rem;
        padding-left: 0.75rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.0625rem;
    }
    
    body {
        font-size: 16px;
    }
    
    /* Stack moment pills horizontally at smaller breakpoint too */
    .moment-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .moment {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.55rem;
        min-height: 44px;
    }
    
    .moment-icon {
        width: 18px;
        height: 18px;
    }
    
    .moment-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .moment-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
}

@media (max-width: 560px) {
  .moment-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  /* Condense moment pills to icon-only on mobile */
  .moment {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.55rem;
    min-height: 44px;
  }
  
  .moment-icon {
    width: 18px;
    height: 18px;
  }
  
  .moment-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .moment-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .held-day-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ===== Preview: elevated “moments” (icons + beautiful phase color) ===== */

.held-day {
  /* defaults; JS overrides on click */
  --phase-tint: 216 186 104;     /* "R G B" */
  --phase-wash: 0.14;            /* alpha for the soft wash */
  --phase-border-mix: 42%;       /* percentage mix for border tint */
}

/* Card reacts to click: border tint + layered wash for depth */
.preview-container.held-day {
  transition: border-color 380ms ease, background 380ms ease, box-shadow 380ms ease;
  border-color: color-mix(in srgb, rgb(var(--phase-tint)) var(--phase-border-mix), var(--color-border));
  background:
    radial-gradient(
      920px 300px at 16% 0%,
      rgb(var(--phase-tint) / var(--phase-wash)),
      transparent 64%
    ),
    radial-gradient(
      680px 220px at 90% 12%,
      rgb(var(--phase-tint) / calc(var(--phase-wash) * 0.55)),
      transparent 70%
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, rgb(var(--phase-tint)) 7%, transparent),
      transparent 40%
    ),
    var(--color-card-bg);
}

.held-day-top {
  text-align: left;
  margin-bottom: 2rem;
}

.held-day-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.held-day-now {
  font-weight: 600;
  color: var(--color-text);
}

.held-day-help {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Moments row (3 across) */

.moment-row {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

/* "chip" buttons that take the CURRENT phase color when active */
.moment {
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg-alt) 55%, transparent);
  border-radius: 999px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  transition: border-color 260ms ease, background-color 260ms ease, transform 120ms ease, box-shadow 260ms ease, color 260ms ease;
}

.moment:active {
  transform: translateY(1px);
}

.moment:focus-visible {
  outline: 2px solid var(--color-accent-secondary);
  outline-offset: 3px;
}

.moment-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

.moment-icon svg {
  width: 20px;
  height: 20px;
}

.moment-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.moment.is-active {
  border-color: color-mix(in srgb, rgb(var(--phase-tint)) 46%, var(--color-border));
  background: color-mix(in srgb, rgb(var(--phase-tint)) 12%, var(--color-card-bg));
  box-shadow: 0 0 0 6px color-mix(in srgb, rgb(var(--phase-tint)) 10%, transparent);
}

.moment.is-active .moment-icon {
  color: color-mix(in srgb, rgb(var(--phase-tint)) 70%, var(--color-text));
}

.moment.is-active .moment-label {
  color: var(--color-text);
}

/* Scripture focus: keep highlighted words in accent-secondary (brand gold) */
.held-scripture [data-phrase].is-dim {
  opacity: 0.38;
}

.held-scripture [data-phrase].is-accent {
  color: var(--color-accent-secondary);
  transition: color 260ms ease, opacity 260ms ease;
}

/* ===== Muting: mute the non-focused text (Lens vs Carry) based on focus ===== */

.held-day #heldLens,
.held-day #heldCarry {
  transition: color 260ms ease, opacity 260ms ease;
}

/* Default (both): readable-muted */
.held-day[data-focus="both"] #heldLens,
.held-day[data-focus="both"] #heldCarry {
  color: var(--color-text-muted);
  opacity: 1;
}

/* Focus "a" => Lens stays readable, Carry mutes further */
.held-day[data-focus="a"] #heldLens {
  color: var(--color-text-muted);
  opacity: 1;
}

.held-day[data-focus="a"] #heldCarry {
  color: color-mix(in srgb, var(--color-text-muted) 70%, var(--color-bg));
  opacity: 0.68;
}

/* Focus "b" => Carry stays readable, Lens mutes further */
.held-day[data-focus="b"] #heldCarry {
  color: var(--color-text-muted);
  opacity: 1;
}

.held-day[data-focus="b"] #heldLens {
  color: color-mix(in srgb, var(--color-text-muted) 70%, var(--color-bg));
  opacity: 0.68;
}

/* Keep other non-primary preview copy muted */
.preview.product-intro,
.preview .held-day-help,
.preview .preview-text {
  color: var(--color-text-muted);
}

.product-intro {
    color: var(--color-accent);
}

/* Mobile */
@media (max-width: 560px) {
  .moment-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  /* Condense moment pills to icon-only on mobile */
  .moment {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.55rem;
    min-height: 44px;
  }
  
  .moment-icon {
    width: 18px;
    height: 18px;
  }
  
  .moment-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .moment-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .held-day-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.held-scripture [data-phrase].is-dim {
  opacity: 0.32;
}

.held-scripture [data-phrase].is-accent {
  color: var(--color-accent-secondary);
  font-weight: 600;
  transition: color 260ms ease, opacity 260ms ease;
}
