/* tlc-root-font-enforcement */
:root {
  --tlc-root-font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
option {
  font-family: var(--font-family, var(--tlc-root-font-family)) !important;
}

:root {
  --rich-black: #0D0D0D;
  --electric-blue: #2978F0;
  --soft-white: #F5F5F5;
  --warm-beige: #F2E9E4;
  --vivid-coral: #FF5C5C;
  --font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --header-height: 75px;
  --header-safe-padding: 12px;
  --footer-height: 96px;
  --footer-safe-padding: 12px;
}

html { 
  box-sizing: border-box;
  font-size: 18px;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
}

body {
  font-family: var(--font-family);
  margin: 0; padding: 0;
  min-height: 100vh;
  height: 100%;
  background-color: var(--soft-white);
  color: var(--rich-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: hidden;
}

button,
.form-button,
a.button,
a[role="button"] {
  border-radius: 999px !important;
  font-family: var(--font-family) !important;
}

/* keep typo-safe exception; canonical footer button classes are defined below */
.daily-movation-footer-button {
  border-radius: 6px !important;
}

/* Keep support/contact pages in their original slightly rounded-square style */
.support-page button,
.contact-page button,
.contact-form button,
.contact-form .form-button,
.support-form button {
  border-radius: 8px !important;
}

header {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  box-sizing: border-box;
  background-color: #010203; 
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10001; 
  transform: translateZ(0) translateY(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease;
}

/* Header states for scroll behavior */
header.header-hidden {
  transform: translateZ(0) translateY(calc(-1 * var(--header-height)));
  pointer-events: none; /* don't intercept taps when hidden */
  box-shadow: none;
}
header.header-scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}


header h1 {
  margin: 0 0 6px 0;
  padding: 0;
  line-height: 1.05;
} 

header nav { 
  margin-top: 4px; 
}

.header-left {
  display: flex;
  align-items: center;
}


.header-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; 
  justify-content: center; 
}

header nav a:last-child {
  margin-right: 5px;
}
header nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px; 
  margin-right: 0.4rem;
  transition: color 0.3s ease;
}

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

.after-main-ad{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 16px auto calc(92px + env(safe-area-inset-bottom, 0px));
  padding: 14px 0;
  min-height: 120px;
  line-height: 1.8;
  box-sizing: border-box;
  clear: both;
}

.after-main-ad iframe,
.after-main-ad > div,
.after-main-ad > a {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

h2{
  margin-top: 40px;
  text-align: center;
}

/* Keep first-page headings aligned to a consistent header offset. */
.page-header-tight,
.page-header-tighter {
  margin-top: -21px;
  padding-top: 0;
}

.page-header-tight h1,
.page-header-tight h2,
.page-header-tighter h1,
.page-header-tighter h2 {
  margin-top: 0;
}

main > section.page-header-tight:first-child,
main > section.page-header-tighter:first-child {
  margin-top: -21px !important;
  padding-top: 0 !important;
}

main > section.page-header-tight:first-child h1,
main > section.page-header-tight:first-child h2,
main > section.page-header-tighter:first-child h1,
main > section.page-header-tighter:first-child h2 {
  margin-top: 0 !important;
}

.root-legal-page {
  max-width: 960px;
  margin: -24px auto 0;
  width: 100%;
}

.root-legal-content {
  text-align: center;
}

.root-legal-content h1,
.root-legal-content h2,
.root-legal-content h3,
.root-legal-content h4,
.root-legal-content h5,
.root-legal-content h6 {
  margin-top: 0;
}

.root-legal-content p,
.root-legal-content li {
  line-height: 1.55;
}

.root-legal-content ul,
.root-legal-content ol {
  list-style-position: inside;
  padding-left: 0;
}

.news-banner {
  background-color: #c62828; 
  color: white; 
  padding: 10px 20px;
  overflow: hidden;
  white-space: nowrap;
  width: 100vw;
  margin-left: -30px;
  margin-top: -20px;
}
.news-banner-items{
  padding-left: 300px; 
  padding-top: 0;
}
.app-store-banner{
  background-color: purple; 
  color: white; 
  padding: 10px; 
  text-align: center;
  width: 100vw;
  margin-left: -30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.app-store-banner a {
  color: white; 
  text-decoration: none; 
  text-align: center;
  font-weight: 600;
}
.source-footer-button{
  background-color: #FFD700; 
  color: white; 
  padding: 8px 16px; 
  border-radius: 6px; 
  text-decoration: none; 
  margin-left: 0; 
  display: inline-block;
}
.daily-motivation-footer-button{
  background-color: #673AB7; 
  color: #fff; 
  padding: 8px 16px; 
  border-radius: 6px; 
  text-decoration: none; 
  margin-left: 0; 
  display: inline-block;
}
.footer-links {
  color: white;
  text-decoration: none; 
  color: inherit; 
  margin-left: 12px
}

main {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: calc(var(--header-safe-padding) + 16px) 20px 20px;
  display: flex;
  flex-direction: column;
}

.page-scroll-container {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: var(--footer-height);
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


footer {
  background-color: var(--rich-black);
  color: var(--soft-white);
  text-align: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px;
  font-size: 0.9rem;
  z-index: 9999;
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0 !important;
  width: 100%;
  margin: 0 !important;
  height: var(--footer-height);
  min-height: var(--footer-height);
  max-height: var(--footer-height);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  overflow: hidden;
}

footer > div {
  margin-top: 0 !important;
  white-space: nowrap;
}

footer > div:first-child,
footer > div:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

footer .footer-links,
footer .footer-copyright,
footer .daily-motivation-footer-button,
footer .source-footer-button {
  white-space: nowrap;
}

.mailing-list-popup {
  display: block;
  position: fixed;
  right: 12px;
  bottom: calc(var(--footer-height) + 18px + env(safe-area-inset-bottom, 0px));
  width: min(290px, calc(100vw - 24px));
  background: #ffffff;
  color: #111;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding: 14px;
  z-index: 10030;
}

.mailing-list-popup h3 {
  margin: 0 24px 10px 0;
  font-size: 1rem;
}

.mailing-list-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #333;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mailing-list-popup-form {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.mailing-list-popup-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.92rem;
}

.mailing-list-popup-form button {
  border: none;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.mailing-list-popup-status {
  margin: 10px 0 0 0;
  min-height: 1.1em;
  font-size: 0.85rem;
}


.flip-card-container {
  perspective: 1000px;
  width: 260px;
  height: 160px;
  margin: 10px;
}
.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.flip-card-container:hover .flip-card,
.flip-card-container:focus-within .flip-card {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0D0D0D;
}
.flip-card-front {
  background: white;
}
.flip-card-back {
  background: var(--electric-blue);
  color: white;
  transform: rotateY(180deg);
}
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 40px auto 0 auto;
}
a.card-link {
  text-decoration: none;
  outline: none;
}

.division-columns {
  column-width: 220px;
  column-gap: 24px;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.division-columns li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.hidden-on-page { 
  display: none !important; 
}

.contact-header {
  text-align: center;
}
.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  margin-left: -20px; 
  width: 100vw;
}

.contact-info {
  flex: 1;
  padding: 20px;
  background-color: var(--warm-beige);
  border-radius: 8px;
  margin-right: 20px;
}

.contact-form {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  height: 48px;
}

.contact-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  height: 48px;
  background-color: #fff;
  color: #222;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
  opacity: 1;
}

.contact-form select option:first-child {
  color: #888;
}


.contact-form button {
  background-color: var(--electric-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a5fc4;
}

.support-wrapper {
  max-width: 1100px; 
  margin: 0 auto 12px auto; 
  padding: 20px 28px;
}

.support-form {
  background: white;
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(13,13,13,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

.form-field { 
  display:flex; 
  flex-direction:column 
}
.form-field label { 
  font-weight:600; 
  margin-bottom:8px; 
  color:var(--rich-black); 
  font-size:0.95rem 
}
.form-field input, 
.form-field select, 
.form-field textarea { 
  padding:12px; 
  border:1px solid #d7d7d7; 
  border-radius:6px; 
  font-size:0.95rem 
}
.form-field input:focus, 
.form-field select:focus, 
.form-field textarea:focus { 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(41,120,240,0.12); 
  border-color: var(--electric-blue) 
}
.form-field.full-width { 
  grid-column: 1 / -1 
}

.form-actions { 
  display:flex; 
  gap:12px; 
  justify-content:flex-end; 
  margin-top:18px 
}
.btn-primary { 
  background: var(--electric-blue); 
  color: #fff; padding:10px 18px; 
  font-size: calc(1.05rem - 0.5px);
  border-radius:999px; 
  border:none; 
  cursor:pointer 
}
.btn-primary:hover {
  background:#1a5fc4 
}
.btn-secondary { 
  background: transparent; 
  border:1px solid #ccc; 
  padding:10px 16px; 
  font-size: calc(1.05rem - 0.5px);
  border-radius:999px; 
  cursor:pointer 
}

.page {
  width: 100%;
  margin: 0 auto;
}
.page h2 {
  text-align: center;
}

.about-intro {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* row layout that centers the pillar cards */
.pillars-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0 12px;
  box-sizing: border-box;
}

.pillars-container {
  /* card dimensions: use a fixed card width so centering is predictable */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 320px;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  margin: 20px;
  box-sizing: border-box;
}

.pillar {
  display: block;
  padding: 0 8px;
  text-align: center;
}

.pillar p {
  font-size: 16px;
  max-width: 300px;
  margin-top: -12px;
}

.text-center {
  text-align: center;
}
 .footer-copyright {
  margin-top: 0;
  font-size: 0.8rem;
}

@media (max-width:900px){
  html { font-size: 17px; }
  footer,
  footer.page-footer,
  .page-footer{
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    width: 100%;
    display:block !important;
    visibility:visible !important;
    height: var(--footer-height) !important;
    min-height: var(--footer-height) !important;
    max-height: var(--footer-height) !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  footer > div:first-child {
    margin-bottom: 6px !important;
  }

  footer > div:nth-child(2) {
    margin-bottom: 6px !important;
  }

  footer .footer-copyright {
    margin-top: 2px !important;
  }
  header{ 
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
  }
  header h1{
    margin-bottom: 8px;
    text-align: center;
  }
  header nav {
    align-items: center;
    display: flex;
    margin-bottom: 10px;
    gap: 5.5px;
  }
  header nav a {
    font-size: 18px; 
    margin-right: 5px;
  }
  .contact-container { 
    flex-direction: column !important; 
  }
  .contact-info,
  .contact-form {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  .pillars-row {
    justify-content: center;
    gap: 16px;
    margin-right: 30px;
  }
  .pillars-container {
    width: calc(50% - 32px);
    max-width: 520px;
    margin: 12px;
    padding: 18px;
    box-sizing: border-box;
  }

  .division-columns {
    column-count: 2;
    column-gap: 18px;
    max-width: 100%;
    padding-left: 24px;
  }
}

@media (max-width: 440px) {
  header {
    flex-direction: column;
    align-items: center;
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--header-height) - 8px);
    padding: calc(var(--header-safe-padding)) 12px;
    z-index: 10001;
    margin-bottom: 0;
  }
  body {
    justify-content: center;
  }

  header h1{
    font-size: 25px;
    margin-bottom: 8px;
    text-align: center;
  }
  
  footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    width: 100%;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px !important;
    font-size: 0.9rem;
    line-height: 1.05;
    margin: 0 !important;
  }

  .footer-copyright {
    margin-top: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  header nav {
    display: flex;
    align-items: center;
    gap: 7px;
    row-gap: 2px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav a {
    font-size: 18px !important;
  }

  h2{
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .after-main-ad {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 18px auto calc(120px + env(safe-area-inset-bottom, 0px));
    padding: 16px 0 24px;
    min-height: 140px;
    line-height: 2;
  }

  .mailing-list-popup {
    right: 8px;
    width: calc(100vw - 16px);
    bottom: calc(var(--footer-height) + 14px + env(safe-area-inset-bottom, 0px));
    padding: 12px;
  }
  
  /* small phones: single column, full-width cards */
  .pillars-row {
    padding: 0 8px;
  }
  .pillars-container {
    width: calc(100% - 24px);
    max-width: none;
    margin: 8px auto;
    padding: 16px;
    box-sizing: border-box;
  }

  .support-page {
    margin-top: -24px;
  }

  .support-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 6px 2px 6px;
    box-sizing: border-box;
  }

  .support-form {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-field.full-width {
    grid-column: auto;
  }

  .support-form .form-field input,
  .support-form .form-field select,
  .support-form .form-field textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .form-actions {
    justify-content: stretch;
    gap: 10px;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    flex: 1;
    min-width: 0;
  }
  
  :root {
  --header-height: 115px;
  --header-safe-padding: 12px;
  --footer-height: 96px;
  --footer-safe-padding: 8px;
  }
  
  h2{
    font-size: 20px;
    font-weight: 700;
    text-align: center;
  }

  .home-welcome-title {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    white-space: nowrap;
  }

  .page-header-tight h1,
  .page-header-tight h2 {
    margin-top: 0;
  }

  .page-header-tighter h1,
  .page-header-tighter h2 {
    margin-top: 0;
  }
  .news-banner,
  .app-store-banner,
  #finance-banner {
    width: calc(100% + 40px) !important;
    max-width: none !important;
    margin-left: -20px !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  #finance-banner {
    margin-top: -7px !important;
  }
}
.hidden-on-page { 
  display: none !important; 
}
/* codex-scrollbar-hide-global */
html,
body,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}
