/* =========================================================
   Morning Bell — styles.css
   Design tokens from README / .dc.html
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #F4EFE2;
  color: #0E1A30;
  font-family: Newsreader, serif;
}

a { color: #0E1A30; }
a:hover { color: #080F1F; }

::selection { background: #0E1A30; color: #F4EFE2; }

/* ---------- Keyframes ---------- */
@keyframes soak {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0); }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22240%22 height=%22240%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%222%22/%3E%3CfeColorMatrix values=%220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0%22/%3E%3C/filter%3E%3Crect width=%22240%22 height=%22240%22 filter=%22url(%23n)%22/%3E%3C/svg%3E');
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 40px;
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.masthead-name {
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.masthead-note {
  font-size: 14px;
  line-height: 1;
  font-style: italic;
  color: rgba(14,26,48,0.7);
}

.masthead-cta {
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  background: #0E1A30;
  color: #F4EFE2;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(250,245,230,0.16), inset 0 -4px 8px rgba(4,8,18,0.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 880px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 0;
}

.hero-text {
  flex: 1;
  max-width: 560px;
  padding-top: 40px;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-family: Spectral, serif;
  color: rgba(14,26,48,0.6);
  margin-bottom: 20px;
  animation: soak 1.4s cubic-bezier(.2,.7,.2,1) both;
}

.hero-h1 {
  margin: 0;
  font-size: 55px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 540px;
  text-wrap: pretty;
  animation: soak 1.8s cubic-bezier(.2,.7,.2,1) 0.15s both;
}

.hero-subhead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 480px;
  color: rgba(14,26,48,0.85);
  animation: soak 1.8s cubic-bezier(.2,.7,.2,1) 0.4s both;
}

/* ---------- Form pill ---------- */
.form-wrap-anim {
  animation: soak 1.8s cubic-bezier(.2,.7,.2,1) 0.6s both;
}

.form-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FBF6E9;
  border: 1px solid rgba(14,26,48,0.18);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  margin-top: 30px;
  width: fit-content;
  box-shadow: inset 0 2px 6px rgba(14,26,48,0.06), 0 10px 26px rgba(8,15,31,0.1);
}

.form-pill--cta {
  padding: 7px 7px 7px 26px;
  margin-top: 34px;
  box-shadow: inset 0 2px 6px rgba(14,26,48,0.06), 0 14px 34px rgba(8,15,31,0.14);
}

.form-input {
  width: 220px;
  background: transparent;
  border: none;
  font: 400 17px Newsreader, serif;
  color: #0E1A30;
  padding: 8px 2px;
  outline: none;
}

.form-input--cta {
  width: 240px;
  font-size: 18px;
  padding: 9px 2px;
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.liquid-btn {
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  background: #0E1A30;
  color: #F4EFE2;
  border-radius: 999px;
  padding: 14px 30px;
  font: 500 17px Newsreader, serif;
  box-shadow: inset 0 1px 1px rgba(250,245,230,0.16), inset 0 -6px 12px rgba(4,8,18,0.45), 0 12px 26px rgba(8,15,31,0.3);
}

.liquid-btn--cta {
  padding: 16px 34px;
  font-size: 18px;
}

.liquid-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.slosh-layer {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 160%;
  height: 170%;
  border-radius: 48% 52% 50% 50%;
  background: #080F1F;
  transform: translate(-50%, 0);
  pointer-events: none;
}

.btn-label {
  position: relative;
  z-index: 3;
}

.form-note {
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.4;
  font-style: italic;
  color: rgba(14,26,48,0.6);
  animation: soak 1.8s ease 0.75s both;
}

.form-note--cta {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  animation: none;
}

/* ---------- Hero canvas trust line ---------- */
.hero-trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 4;
  text-align: center;
  color: rgba(244,239,226,0.85);
  font-family: Spectral, serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ---------- Brief artifact ---------- */
.brief-col {
  width: 440px;
  flex-shrink: 0;
}

.brief-outer {
  background: #EFE8D6;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 44px 90px rgba(8,15,31,0.34), 0 6px 18px rgba(8,15,31,0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: settle 2s cubic-bezier(.16,.8,.28,1) 0.5s both;
}

.brief-header {
  background: #0E1A30;
  border-radius: 12px;
  padding: 16px 22px 15px;
  color: #F4EFE2;
}

.brief-header-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brief-label-sm {
  font-family: Spectral, serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: rgba(244,239,226,0.8);
}

.brief-chip {
  font-family: Spectral, serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
  background: rgba(244,239,226,0.16);
  padding: 3px 8px;
  border-radius: 4px;
}

.brief-date {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 6px;
}

.counts-row {
  display: flex;
  gap: 8px;
}

.count-panel {
  flex: 1;
  background: #FBF6E9;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.count-label {
  font-family: Spectral, serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
  line-height: 1;
  color: rgba(14,26,48,0.55);
}

.count-num {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.brief-section {
  background: #FBF6E9;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-eyebrow {
  font-family: Spectral, serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  line-height: 1;
  color: rgba(14,26,48,0.6);
  padding: 0 2px 2px;
}

.brief-section--grades {
  gap: 7px;
}

.sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 9px;
  padding: 10px 12px;
  background: #F7F1E2;
  transition: background 0.6s cubic-bezier(.2,.7,.2,1);
}

.sub-row:hover { background: #F1E9D3; }

.grade-row {
  display: grid;
  grid-template-columns: 90px 1fr 54px 62px 26px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 9px;
  padding: 8px 12px;
  background: #F7F1E2;
  transition: background 0.6s cubic-bezier(.2,.7,.2,1);
}

.grade-row:hover { background: #F1E9D3; }

.course-tag {
  font-family: Spectral, serif;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(14,26,48,0.1);
  color: #0E1A30;
  padding: 4px 9px;
  border-radius: 5px;
}

.course-tag--grade {
  padding: 4px 8px;
  justify-self: start;
}

.sub-name {
  font-size: 14.5px;
  line-height: 1.2;
}

.sub-meta {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(14,26,48,0.65);
  white-space: nowrap;
  flex-shrink: 0;
}

.grade-spacer { /* empty column */ }

.grade-change {
  text-align: right;
  font-size: 12px;
  line-height: 1;
  color: rgba(14,26,48,0.7);
  white-space: nowrap;
}

.grade-change--muted {
  color: rgba(14,26,48,0.45);
}

.grade-arrow { font-size: 9px; }

.grade-pct {
  text-align: right;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.grade-letter {
  text-align: right;
  font-size: 12px;
  line-height: 1;
  color: rgba(14,26,48,0.6);
}

/* ---------- Canvas elements ---------- */
canvas { display: block; }

#heroTide {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;
  z-index: 3;
}

#heroTideOut { width: 100%; height: 96px; }
#trustTop    { width: 100%; height: 90px; }
#trustBottom { width: 100%; height: 90px; }
#footerTop   { width: 100%; height: 70px; }

/* ---------- Benefits ---------- */
.benefits {
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 40px 40px;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}

.benefit-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-family: Spectral, serif;
  line-height: 1;
  color: rgba(14,26,48,0.55);
  margin-bottom: 18px;
}

.benefit-h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.benefit-body {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(14,26,48,0.85);
  max-width: 460px;
}

/* artifact cards */
.artifact-card {
  background: #EFE8D6;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(8,15,31,0.16);
}

.artifact-inner {
  background: #FBF6E9;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* inbox artifact rows */
.inbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  opacity: 0.45;
}

.inbox-row--active {
  opacity: 1;
  padding: 12px 12px;
  background: #F1E9D3;
  border: 1px solid rgba(14,26,48,0.16);
  border-radius: 8px;
}

.inbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.inbox-dot--ink { background: #0E1A30; }

.inbox-sender {
  font-size: 14px;
  line-height: 1.2;
  color: rgba(14,26,48,0.8);
}

.inbox-sender--active {
  font-size: 14.5px;
}

.inbox-time {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  color: rgba(14,26,48,0.55);
  white-space: nowrap;
}

.inbox-time--active { font-weight: 600; }

/* verified artifact */
.verified-inner {
  padding: 14px;
  gap: 8px;
}

.verified-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(14,26,48,0.12);
  border-radius: 9px;
  padding: 11px 12px;
  background: #F7F1E2;
  opacity: 0.55;
}

.verified-row--solid {
  opacity: 1;
  border-color: rgba(14,26,48,0.2);
}

.canvas-tag {
  font-family: Spectral, serif;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(14,26,48,0.1);
  color: #0E1A30;
  padding: 4px 9px;
  border-radius: 5px;
}

.canvas-tag--verified {
  background: #0E1A30;
  color: #F4EFE2;
}

.strikethrough {
  font-size: 14.5px;
  line-height: 1.2;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.verified-text { font-size: 14.5px; line-height: 1.2; }

.divider {
  height: 1px;
  background: rgba(14,26,48,0.12);
  margin: 2px 0;
}

.grade-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px;
}

.grade-since {
  font-size: 13px;
  line-height: 1;
  color: rgba(14,26,48,0.7);
  white-space: nowrap;
}

.grade-since-arrow { font-size: 10px; }

.grade-big {
  margin-left: auto;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* announcement artifact */
.announce-inner {
  padding: 18px 20px;
}

.announce-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.announce-meta {
  font-family: Spectral, serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  line-height: 1;
  color: rgba(14,26,48,0.55);
}

.announce-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(14,26,48,0.6);
}

.highlight-ink {
  background: #0E1A30;
  color: #F4EFE2;
  padding: 2px 7px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.announce-link {
  margin-top: 14px;
  font-size: 13px;
  font-style: italic;
}

/* ---------- Data section (ink band) ---------- */
.data-section { position: relative; margin-top: 40px; }

.data-band {
  background: #0E1A30;
  color: #F4EFE2;
  padding: 30px 0 90px;
}

.data-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.data-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-family: Spectral, serif;
  line-height: 1;
  color: rgba(244,239,226,0.6);
  margin-bottom: 18px;
}

.data-h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 560px;
  text-wrap: pretty;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 52px;
}

.data-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-label {
  font-family: Spectral, serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  line-height: 1;
  color: rgba(244,239,226,0.55);
}

.data-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(244,239,226,0.85);
}

.data-body strong { color: #F4EFE2; }

/* ---------- Waitlist CTA ---------- */
.waitlist-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 40px 40px;
  text-align: center;
}

.waitlist-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 600;
  font-family: Spectral, serif;
  line-height: 1;
  color: rgba(14,26,48,0.55);
  margin-bottom: 18px;
}

.waitlist-h2 {
  margin: 0 auto;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 600px;
  text-wrap: pretty;
}

.waitlist-form-wrap {
  display: flex;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 40px 110px;
}

.faq-h2 {
  margin: 0 0 34px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #FBF6E9;
  border: 1px solid rgba(14,26,48,0.14);
  border-radius: 12px;
  overflow: hidden;
}

.faq-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font: 500 17.5px Newsreader, serif;
  color: #0E1A30;
}

.faq-question {
  flex: 1;
  line-height: 1.35;
}

.faq-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
  flex-shrink: 0;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.9s cubic-bezier(.2,.7,.2,1);
}

.faq-answer {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(14,26,48,0.85);
}

/* ---------- Footer ---------- */
.footer { position: relative; }

.footer-band {
  background: #0E1A30;
  color: #F4EFE2;
  padding: 14px 0 44px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
}

.footer-note {
  font-size: 13.5px;
  line-height: 1;
  font-style: italic;
  color: rgba(244,239,226,0.7);
}

.footer-divider {
  height: 1px;
  background: rgba(244,239,226,0.16);
  margin: 22px 0 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(244,239,226,0.6);
}

.footer-bottom a {
  color: rgba(244,239,226,0.6);
  text-decoration: underline;
}

.footer-bottom a:hover { color: rgba(244,239,226,0.9); }

/* ---------- Responsive < 1000px ---------- */
@media (max-width: 999px) {
  .masthead { padding: 20px 24px; flex-wrap: wrap; gap: 12px; }
  .masthead-note { display: none; }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 0;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
    padding-top: 16px;
    text-align: left;
  }

  .hero-h1 { font-size: 40px; max-width: 100%; }

  .brief-col {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .benefits { padding: 30px 24px; }

  .benefit-row {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }

  /* row 2 artifact comes first on mobile (order:1) but text is order:2;
     on mobile collapse, reset order so text appears first */
  .benefit-row .artifact-card { order: 2 !important; }
  .benefit-row > div:not(.artifact-card) { order: 1 !important; }

  .data-grid { grid-template-columns: 1fr; }

  .waitlist-section { padding: 60px 24px 30px; }
  .waitlist-h2 { font-size: 36px; }

  .faq-section { padding: 50px 24px 70px; }

  .footer-inner { padding: 0 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .hero-h1 { font-size: 32px; }
  .form-pill { padding: 6px 6px 6px 16px; }
  .form-input { width: 160px; font-size: 15px; }
  .liquid-btn { padding: 12px 20px; font-size: 15px; }
  .data-grid { grid-template-columns: 1fr; }
  .waitlist-h2 { font-size: 30px; }
}