/* ==========================================================================
   TABIFLOW LANDING v3 — Component Styles
   --------------------------------------------------------------------------
   File: styles/landing-v3.css
   Loads alongside styles.css. All selectors are scoped under tf-* prefix
   to avoid collision with planner styles. Touches no shared planner CSS.

   Default: Dark mode (.tf-mode-dark on body)
   Opt-in:  Light mode (.tf-mode-light on body)

   Day-color tokens are inherited from styles.css when present, otherwise
   fall back to the values defined here.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

.tf-landing {
  --tf-bg-page:        #0c0f17;
  --tf-bg-surface:     #141826;
  --tf-bg-elevated:    #21283c;
  --tf-text-primary:   #f4f3ee;
  --tf-text-secondary: #a8b0c0;
  --tf-text-muted:     #6b7388;
  --tf-border-soft:    #2a3148;

  --tf-day-1-pink:   #ec5e8a;
  --tf-day-2-gold:   #f5a623;
  --tf-day-3-teal:   #2bb8b8;
  --tf-day-4-blue:   #5e7fec;
  --tf-day-5-green:  #5eb87a;
  --tf-day-6-purple: #a25eec;

  --tf-primary:     #b9b6f0;
  --tf-primary-ink: #1a1730;
}

.tf-landing.tf-mode-light {
  --tf-bg-page:        #fafaf7;
  --tf-bg-surface:     #ffffff;
  --tf-bg-elevated:    #f0eee7;
  --tf-text-primary:   #1a1730;
  --tf-text-secondary: #4a4f5f;
  --tf-text-muted:     #8a8f9f;
  --tf-border-soft:    #d8d4c7;
  --tf-primary:        #1a1730;
  --tf-primary-ink:    #ffffff;
}


/* ==========================================================================
   2. BASE
   --------------------------------------------------------------------------
   Note on !important:
   The legacy `styles.css` applies a seasonal photo background to <body>
   for the deprecated "Photo mode." landing-v3 explicitly opts OUT of that
   visual treatment. Photo mode is gone — only Dark and Light remain.
   The override is intentional and tightly scoped to the landing surface.
   ========================================================================== */

body.tf-landing {
  background: var(--tf-bg-page) !important;
  background-image: none !important;
  background-color: var(--tf-bg-page) !important;
  color: var(--tf-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

/* Defensive: legacy stylesheets sometimes attach background to html as well */
html:has(body.tf-landing) {
  background: var(--tf-bg-page);
}

/* Kill the legacy body::before seasonal photo + body::after radial gradients.
   These were the foundation of the deprecated "Photo mode." On v3 landing
   we own the background entirely via the body itself. */
body.tf-landing::before,
body.tf-landing::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
  display: none !important;
}

.tf-landing * { box-sizing: border-box; }


/* ==========================================================================
   3. HEADER
   ========================================================================== */

.tf-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  gap: 8px;
}

.tf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.tf-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tf-day-3-teal), #1a8c8c);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  flex-shrink: 0;
}

.tf-brand-text { display: flex; flex-direction: column; min-width: 0; }
.tf-brand-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.tf-brand-subtitle { font-size: 11px; color: var(--tf-text-secondary); margin-top: 1px; }

.tf-header-actions { display: flex; gap: 6px; flex-shrink: 0; }

.tf-icon-btn {
  background: none;
  border: 1px solid var(--tf-border-soft);
  color: var(--tf-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s;
}
.tf-icon-btn:hover { background: var(--tf-bg-surface); }


/* ==========================================================================
   4. TAB NAV
   ========================================================================== */

.tf-tabs {
  display: flex;
  border-bottom: 1px solid var(--tf-border-soft);
  padding: 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tf-tab {
  background: none;
  border: none;
  color: var(--tf-text-secondary);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.tf-tab.is-active {
  color: var(--tf-text-primary);
  border-bottom-color: var(--tf-day-3-teal);
  font-weight: 600;
}

.tf-tab-panel { display: none; }
.tf-tab-panel.is-active { display: block; }


/* ==========================================================================
   5. HERO
   ========================================================================== */

.tf-hero {
  padding: 28px 22px 22px;
  text-align: center;
}

.tf-hero-mascot {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  background: transparent;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: visible;
}
/* Mascot now floats on whatever the page background is — no frame tint needed
   since BG-removed PNGs handle the framing themselves. */

.tf-hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Fade the bottom 5% to transparent — kills the small cream/peach sliver
     that remove.bg keeps as "feet contact" on duo/scene images. */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 5%, black 100%);
          mask-image: linear-gradient(to top, transparent 0%, black 5%, black 100%);
}

.tf-hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.tf-hero-subtitle {
  font-size: 15px;
  color: var(--tf-text-secondary);
  margin: 0 0 22px;
  line-height: 1.55;
}

.tf-hero-scope {
  margin-top: 12px;
  font-size: 12px;
  color: var(--tf-text-muted);
  letter-spacing: 0.02em;
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.tf-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s;
}
.tf-btn:active { transform: scale(0.98); }

.tf-btn-primary {
  display: block;
  width: 100%;
  background: var(--tf-primary);
  color: var(--tf-primary-ink);
}

.tf-btn-secondary {
  background: transparent;
  color: var(--tf-day-3-teal);
  border: 1px solid var(--tf-day-3-teal);
  font-size: 13px;
  padding: 8px 16px;
}


/* ==========================================================================
   7. TRUST STRIP
   ========================================================================== */

.tf-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: center;
  font-size: 11.5px;
  color: var(--tf-text-secondary);
  border-top: 1px dashed var(--tf-border-soft);
  border-bottom: 1px dashed var(--tf-border-soft);
  padding: 10px 18px;
  margin: 0 18px 24px;
}
.tf-trust-strip span { white-space: nowrap; }
.tf-trust-strip span + span::before {
  content: "·";
  color: var(--tf-text-muted);
  margin-right: 14px;
}


/* ==========================================================================
   8. CONTINUE TRIP CARD
   ========================================================================== */

.tf-continue-card {
  margin: 0 18px 28px;
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
}

.tf-continue-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tf-day-3-teal);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.tf-continue-stat {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tf-continue-saved {
  font-size: 12.5px;
  color: var(--tf-text-muted);
  margin-bottom: 4px;
}
.tf-continue-saved-detail {
  font-size: 11px;
  color: var(--tf-text-muted);
  opacity: 0.8;
  margin-bottom: 12px;
}

.tf-continue-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tf-day-3-teal);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.tf-continue-dismiss {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--tf-text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
}


/* ==========================================================================
   9. HOW TABIFLOW WORKS
   ========================================================================== */

.tf-how {
  padding: 8px 22px 30px;
}

.tf-how-eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tf-text-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tf-how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.tf-how-step + .tf-how-step {
  border-top: 1px solid var(--tf-border-soft);
}

.tf-how-step.is-thesis {
  background: rgba(43,184,184,0.06);
  margin: 8px -22px 0;
  padding: 16px 22px 14px;
  border-top: 1px solid rgba(43,184,184,0.18);
  border-bottom: 1px solid rgba(43,184,184,0.18);
}

.tf-how-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}
.tf-how-num-1 { background: var(--tf-day-1-pink); }
.tf-how-num-2 { background: var(--tf-day-2-gold); }
.tf-how-num-3 { background: var(--tf-day-3-teal); }

.tf-how-step-title { font-size: 15px; font-weight: 600; margin: 4px 0; }
.tf-how-step-title.is-thesis { font-size: 16px; }
.tf-how-step-sub { font-size: 13px; color: var(--tf-text-secondary); }
.tf-how-step-sub.is-thesis { color: var(--tf-text-primary); font-weight: 500; }


/* ==========================================================================
   10. JAPAN TAB
   ========================================================================== */

.tf-japan-now-card {
  margin: 22px 18px 18px;
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 14px;
  padding: 18px;
}

.tf-japan-now-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tf-day-3-teal);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.tf-japan-now-city { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.tf-japan-now-context { font-size: 12.5px; color: var(--tf-text-muted); }


/* ==========================================================================
   11. SECTION EYEBROW (shared)
   ========================================================================== */

.tf-section-eyebrow {
  padding: 4px 22px 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tf-text-muted);
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 10px;
}


/* ==========================================================================
   12. AFFILIATE DISCLOSURE
   ========================================================================== */

.tf-affiliate-disc {
  font-size: 11px;
  color: var(--tf-text-muted);
  margin: 0 22px 14px;
  line-height: 1.5;
}


/* ==========================================================================
   13. TOOL CARDS (Travel Tools on Japan tab)
   ========================================================================== */

.tf-tool-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 24px;
}

.tf-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.tf-tool-card:hover { background: var(--tf-bg-elevated); }

.tf-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tf-bg-elevated);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tf-tool-content { flex: 1; min-width: 0; }
.tf-tool-title { font-size: 14.5px; font-weight: 600; }
.tf-tool-sub { font-size: 12px; color: var(--tf-text-secondary); margin-top: 2px; line-height: 1.4; }
.tf-tool-arrow { color: var(--tf-text-muted); font-size: 18px; }

.tf-tool-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(245,166,35,0.18);
  color: var(--tf-day-2-gold);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}
.tf-mode-light .tf-tool-badge { color: #8a5a00; }


/* ==========================================================================
   14. COMING SOON STRIP
   ========================================================================== */

.tf-coming-soon-strip {
  margin: 0 18px 28px;
  padding: 18px;
  background: rgba(162,94,236,0.06);
  border: 1px dashed rgba(162,94,236,0.32);
  border-radius: 12px;
  text-align: center;
}

.tf-coming-soon-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--tf-day-6-purple);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.tf-coming-soon-list {
  font-size: 12.5px;
  color: var(--tf-text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   15. LEARN TAB
   ========================================================================== */

.tf-learn-section { padding: 22px 18px 28px; }
.tf-learn-heading { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.tf-learn-sub { font-size: 13px; color: var(--tf-text-secondary); margin: 0 0 18px; line-height: 1.5; }

.tf-learn-subtabs {
  display: flex;
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}

.tf-learn-subtab {
  flex: 1;
  background: none;
  border: none;
  color: var(--tf-text-secondary);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tf-learn-subtab.is-active {
  background: var(--tf-primary);
  color: var(--tf-primary-ink);
  font-weight: 600;
}

/* Horizontal slide viewport — no scroll-of-doom on mobile */
.tf-learn-subviewport {
  overflow: hidden;
  position: relative;
}
.tf-learn-subtrack {
  display: flex;
  width: 300%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tf-learn-subpanel {
  width: 33.3333%;
  flex-shrink: 0;
  padding: 0 2px;
}

.tf-learn-categories-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tf-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tf-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.tf-category-card {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.1s, background 0.15s;
}
.tf-category-card:hover { background: var(--tf-bg-elevated); }
.tf-category-card:active { transform: scale(0.98); }

.tf-category-emoji { font-size: 22px; margin-bottom: 6px; }
.tf-category-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tf-category-count { font-size: 11.5px; color: var(--tf-text-muted); }

.tf-cat-d1 { background: rgba(236,94,138,0.06); border-color: rgba(236,94,138,0.34); }
.tf-cat-d2 { background: rgba(245,166,35,0.06); border-color: rgba(245,166,35,0.34); }
.tf-cat-d3 { background: rgba(43,184,184,0.06); border-color: rgba(43,184,184,0.34); }
.tf-cat-d4 { background: rgba(94,127,236,0.06); border-color: rgba(94,127,236,0.34); }
.tf-cat-d5 { background: rgba(94,184,122,0.06); border-color: rgba(94,184,122,0.34); }
.tf-cat-d6 { background: rgba(162,94,236,0.06); border-color: rgba(162,94,236,0.34); }

.tf-sample-phrase {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 16px;
}

.tf-sample-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tf-day-2-gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tf-mode-light .tf-sample-eyebrow { color: #b87a00; }

.tf-sample-ja { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.tf-sample-romaji { font-size: 13px; color: var(--tf-text-muted); font-style: italic; margin-bottom: 6px; }
.tf-sample-en { font-size: 13px; color: var(--tf-text-secondary); }
.tf-audio-icon { color: var(--tf-day-2-gold); font-size: 14px; }

/* Road signs */
.tf-sign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.tf-sign-tile {
  aspect-ratio: 1;
  background: var(--tf-bg-elevated);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  overflow: hidden;
}
.tf-sign-tile img {
  max-width: 60%;
  max-height: 50%;
  object-fit: contain;
  display: block;
}
.tf-sign-label {
  font-size: 10px;
  color: var(--tf-text-muted);
  line-height: 1.2;
}

.tf-disclaimer {
  font-size: 11px;
  color: var(--tf-text-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Quiz */
.tf-quiz-card {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.tf-quiz-card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.tf-quiz-card-sub { font-size: 12px; color: var(--tf-text-secondary); margin: 0 0 14px; line-height: 1.5; }


/* ==========================================================================
   16. COMMUNITY TAB
   ========================================================================== */

.tf-community-section { padding: 24px 22px 28px; }

.tf-community-hero {
  background: transparent;
  padding: 8px 16px;
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tf-community-hero-img {
  width: 320px;
  height: 320px;
  max-width: 90%;
  object-fit: contain;
  /* Same bottom-fade trick as hero — handles cream sliver consistently. */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 5%, black 100%);
          mask-image: linear-gradient(to top, transparent 0%, black 5%, black 100%);
}

.tf-community-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 12px;
}

.tf-community-sub {
  font-size: 13.5px;
  color: var(--tf-text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tf-whats-coming-card,
.tf-news-feed-card {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.tf-whats-coming-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.tf-whats-coming-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(43,184,184,0.18);
  color: var(--tf-day-3-teal);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.tf-whats-coming-row strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.tf-whats-coming-row p { font-size: 12px; color: var(--tf-text-secondary); margin: 0; line-height: 1.4; }

.tf-news-item { padding: 8px 0; border-top: 1px solid var(--tf-border-soft); }
.tf-news-item:first-of-type { border-top: none; }
.tf-news-date {
  font-size: 10.5px;
  color: var(--tf-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.tf-news-title { font-size: 13px; font-weight: 500; }

.tf-social-row {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  justify-content: space-around;
  align-items: center;
}

.tf-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--tf-text-secondary);
  font-size: 11px;
}

.tf-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tf-bg-elevated);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.tf-email-capture {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 12px;
  padding: 16px;
}

.tf-email-capture-q {
  font-size: 13px;
  text-align: center;
  margin: 0 0 12px;
  color: var(--tf-text-secondary);
}

.tf-email-form { display: flex; gap: 8px; margin-bottom: 8px; }

.tf-email-input {
  flex: 1;
  background: var(--tf-bg-elevated);
  border: 1px solid var(--tf-border-soft);
  color: var(--tf-text-primary);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.tf-email-btn {
  background: var(--tf-primary);
  color: var(--tf-primary-ink);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.tf-email-fineprint {
  text-align: center;
  font-size: 11px;
  color: var(--tf-text-muted);
  margin: 0;
}


/* ==========================================================================
   17. HAMBURGER DRAWER
   ========================================================================== */

.tf-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
.tf-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--tf-bg-page);
  border-left: 1px solid var(--tf-border-soft);
  padding: 22px 18px 24px;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.tf-drawer.is-open { transform: translateX(0); }

.tf-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.tf-drawer-title { font-size: 20px; font-weight: 700; }
.tf-drawer-close {
  background: none;
  border: none;
  color: var(--tf-text-muted);
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.tf-drawer-close:hover { background: var(--tf-bg-surface); }

.tf-drawer-section-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--tf-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 18px;
}

.tf-drawer-row {
  background: var(--tf-bg-surface);
  border: 1px solid var(--tf-border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.tf-drawer-row:hover { background: var(--tf-bg-elevated); }
.tf-drawer-row strong { font-size: 14px; font-weight: 500; }
.tf-drawer-row span { color: var(--tf-text-muted); font-size: 12px; }

.tf-drawer-row.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tf-drawer-coming-badge {
  font-size: 11px;
  background: rgba(162,94,236,0.18);
  color: var(--tf-day-6-purple);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.tf-drawer-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--tf-border-soft);
  font-size: 12px;
  color: var(--tf-text-muted);
}


/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.tf-site-footer {
  padding: 22px 18px 28px;
  border-top: 1px solid var(--tf-border-soft);
}

.tf-footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.tf-footer-pill {
  font-size: 11px;
  color: var(--tf-text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--tf-border-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.tf-mode-light .tf-footer-pill { background: rgba(0,0,0,0.04); }

.tf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 12px;
  color: var(--tf-text-secondary);
  margin-bottom: 12px;
}
.tf-footer-links a { color: var(--tf-text-secondary); text-decoration: none; }
.tf-footer-links a:hover { color: var(--tf-text-primary); }

.tf-footer-legal {
  text-align: center;
  font-size: 11px;
  color: var(--tf-text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ==========================================================================
   19. DESKTOP TUNING — light touch, mobile-first stays primary
   ========================================================================== */

@media (min-width: 720px) {
  .tf-hero { padding: 48px 22px 32px; }
  .tf-hero-mascot { width: 280px; height: 280px; }
  .tf-hero-title { font-size: 40px; }
  .tf-hero-subtitle { font-size: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .tf-btn-primary { max-width: 320px; margin: 0 auto; }
}


/* ==========================================================================
   20. ACCESSIBILITY
   ========================================================================== */

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

/* Auto-detect higher contrast preference within whichever mode is active */
@media (prefers-contrast: more) {
  .tf-landing.tf-mode-dark { --tf-text-secondary: #d8dde8; --tf-border-soft: #4a5170; }
  .tf-landing.tf-mode-light { --tf-text-secondary: #2a2640; --tf-border-soft: #a0a4b3; }
}


/* ==========================================================================
   END OF FILE
   ========================================================================== */
