/* 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: 80px;
  --header-safe-padding: 12px;
  --footer-height: 60px;
  --footer-safe-padding: 12px;
}

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

body {
  font-family: var(--font-family);
  margin: 0; padding: 0;
  background-color: var(--soft-white);
  color: var(--rich-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  overflow-x: 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,
.support-form button,
.contact-form button,
.contact-form .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 10px;
  padding: 0;
  line-height: 1.05;
  font-size: 1.75rem;
} 

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: 10px;
}
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;
}

/* Match root page header spacing behavior for informational pages. */
.page-header-tight {
  margin-top: -16.9px;
  padding-top: 0;
}

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

.page-header-tighter {
  margin-top: -20.9px;
  padding-top: 0;
}

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

.systems-page-header {
  text-align: center;
}

.systems-home-page {
  margin-top: -19.9px;
}

.systems-page-content {
  max-width: 900px;
  margin: 32px auto 0;
  text-align: center;
}

.systems-page-list {
  display: inline-block;
  text-align: left;
  margin: 12px auto 0;
  padding-left: 20px;
}

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

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

.systems-legal-content h1,
.systems-legal-content h2,
.systems-legal-content h3 {
  margin-top: 0;
}

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

.systems-legal-content ul,
.systems-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: 16px; 
  display: inline-block;
}
.daily-motivation-footer-button{
  background-color: #673AB7; 
  color: #fff; 
  padding: 8px 16px; 
  border-radius: 6px; 
  text-decoration: none; 
  margin-left: 16px; 
  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;
  padding: calc(var(--header-height) + var(--header-safe-padding) + 28px) 20px calc(var(--footer-height) + var(--footer-safe-padding));
  display: flex;
  flex-direction: column;
}

footer {
  background-color: var(--rich-black);
  color: var(--soft-white);
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  z-index: 9999;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}


.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;
  max-width: 1240px;
  margin: 40px auto 0 auto;
}
a.card-link {
  text-decoration: none;
  outline: none;
}

.division-columns {
  column-count: 5;
  column-gap: 24px;
  text-align: left;
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 20px;
}

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

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

/* Learmond Systems template-local styles migrated from templates */
.header-cli-link,
.header-app-link {
  margin-right: 0.8rem;
}

/* Home apps grid */
#apps-section .app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  justify-items: center;
  margin-top: 16px;
}

#apps-section .app-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
  width: 100%;
}

#apps-section .app-icon {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#apps-section .app-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: block;
}

#apps-section .app-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
  align-items: center;
}

#apps-section .app-link {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e6e6e6;
  background-image: none !important;
  border: 1px solid #c8c8c8;
  border-radius: 10px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  outline: none;
  line-height: 1;
}

#apps-section .app-link-android {
  position: static;
  top: auto;
}

#apps-section .android-icon {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
}

#apps-section .app-link svg,
#apps-section .source-store-image {
  width: 24px;
  height: 24px;
  display: block;
}

#apps-section .source-store-image {
  object-fit: contain;
}

/* Support page */
.support-list {
  list-style: none;
  padding: 0;
}

.support-list-item {
  margin-bottom: 10px;
}

.response-note {
  margin-bottom: -10px;
}

.contact-form-panel {
  flex: 1.2;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.support-form-row {
  display: flex;
  gap: 40px;
}

.support-form-col {
  flex: 1;
}

.form-control {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
}

.form-submit-btn {
  padding: 14px;
  border-radius: 8px;
  background-color: #4b0082;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.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: 4px;
  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; 
  border-radius:6px; 
  border:none; 
  cursor:pointer 
}
.btn-primary:hover {
  background:#1a5fc4 
}
.btn-secondary { 
  background: transparent; 
  border:1px solid #ccc; 
  padding:10px 16px; 
  border-radius:6px; 
  cursor:pointer 
}

.page {
  margin-right: 30px;
}
.page h2 {
  text-align: center;
}

/* 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;
}

@media (max-width:900px){
  html { font-size: 17px; }
  footer,
  footer.page-footer,
  .page-footer{
    display:block !important;
    visibility:visible !important;
    height:auto !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    margin-top: 30px !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;
  }
}

@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;
  }

  header h1{
    font-size: 25px;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .footer-links {
    font-size: 14px;  
  }

  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;
  }

  .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;
  }
  
  /* 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;
  }
  
  :root {
  --header-height: 120px;
  --header-safe-padding: 12px;
  --footer-height: 40px;
  --footer-safe-padding: 12px;
  }
  h2{
    font-size: 20px;
    font-weight: 700;
    align-items: center;
  }

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

}

@media (max-width: 1200px) {
  #apps-section .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #apps-section .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #apps-section .app-grid {
    grid-template-columns: 1fr;
  }
}

/* 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;
}
