/* =========================================================
   Daily Tracker — Landing page styles
   Loaded after styles.css on the public homepage (landing.php).
   ========================================================= */

.landing-body {
  background: var(--bg);
}

/* ------ Header CTA reused from legal pages ------ */
a.brand { text-decoration: none; color: inherit; }

.landing-header { border-bottom: 1px solid var(--line-2); }

.header-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.header-cta:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
}
.header-cta span { margin-left: 2px; opacity: .6; }

/* ============ HERO ============ */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 50ch;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px -8px rgba(0,0,0,.4);
}

.hero-fine {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.hero-err {
  margin-top: 16px;
  background: var(--accent-soft);
  color: #8c2d10;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  display: inline-block;
}

/* ------ Hero mock ------ */
.hero-mock {
  position: relative;
}
.mock-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(20, 20, 30, .18), 0 0 0 1px rgba(20, 20, 30, .04);
  transform: rotate(-1deg);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}
.mock-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
}
.mock-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: auto;
}
.mock-body { padding: 18px 18px 14px; }

.mock-date {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 16px;
}
.mock-date-big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.mock-date-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.mock-panel {
  border-top: 1px solid var(--line-2);
  padding: 12px 4px 6px;
}
.mock-panel-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.mock-tag {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 6px; border-radius: 5px; font-weight: 500;
}
.mock-tag--ok { background: var(--ok-soft); color: var(--ok); }
.mock-h2 {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.mock-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  border-top: 1px solid var(--line-2);
}
.mock-row:first-of-type { border-top: 0; }

.mock-check {
  width: 13px; height: 13px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%; flex-shrink: 0;
}
.mock-check--done {
  background: var(--ok); border-color: var(--ok);
  position: relative;
}
.mock-check--done::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat;
}
.mock-row--done .mock-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.mock-text { flex: 1; color: var(--ink); }
.mock-flag {
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px;
}
.mock-ds {
  display: flex; gap: 9px;
  font-size: 12.5px; color: var(--ink);
  padding: 5px 0;
  border-top: 1px solid var(--line-2);
}
.mock-ds:first-of-type { border-top: 0; }
.mock-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ============ DEFINITION ============ */
.defn {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--line-2);
  text-align: center;
}
.defn-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.defn-body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.defn-body strong { font-weight: 500; }
.defn-body em { font-style: italic; color: var(--accent); }

/* ============ SECTION TITLE (shared) ============ */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--ink);
  text-align: center;
}

/* ============ HOW IT WORKS ============ */
.howto {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--line-2);
}
.howto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.howto-steps li {
  display: flex;
  flex-direction: column;
}
.howto-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}
.howto-steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.howto-steps p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* ============ FEATURES ============ */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--line-2);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.feature kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* ============ MID CTA ============ */
.midcta {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  text-align: center;
  border-top: 1px solid var(--line-2);
}
.midcta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.05;
}
.midcta-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.midcta-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 28px;
}

/* ============ FAQ ============ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--line-2);
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line-2);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .15s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
  line-height: 1;
}
.faq-item[open] .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-q:hover { color: var(--accent); }

.faq-a {
  padding: 0 32px 22px 0;
  animation: faq-fade .25s ease;
}
.faq-a p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ SHARED FOOTER (for landing) ============ */
.static-footer {
  border-top: 1px solid var(--line-2);
  padding: 28px 24px;
  background: var(--bg);
}
.static-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.static-foot-links {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
.static-foot-links a { color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.static-foot-links a:hover { color: var(--accent); }
.static-foot-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-mock { order: 2; max-width: 460px; margin: 16px auto 0; }
  .howto-steps { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 32px 18px 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .static-footer-inner { justify-content: center; text-align: center; }
}
